Generative Prompt Internalization
Not on the map. Why?
Abstract (arXiv)
Prompts used in recent large language model based applications are often fixed and lengthy, leading to significant computational overhead. To address this challenge, we propose Generative Prompt Internalization (GenPI), a lightweight method that employs a joint training approach. GenPI not only replicates the behavior of models with prompt inputs but also generates the content of the prompt along with reasons for why the model's behavior should change accordingly. We demonstrate that our approach effectively internalizes complex prompts across various agent-based application scenarios. For effective training without interactions with the dedicated environments, we introduce a data synthesis technique that autonomously collects conversational datasets by swapping the roles of the agent and environment. This method is especially useful in scenarios where only a predefined prompt is available without a corresponding training dataset. By internalizing complex prompts, Generative Prompt Internalization enables high performance and efficient inference without the need for explicit prompts.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 23 of its 34 references that are in the map. First posted on arXiv 24 Nov 2024.
Builds on
23 of 34 references.
References · 23
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,242
- 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
- 2016Sequence-Level Knowledge Distillationcited by 801
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
11 more
- 2023Adapting Language Models to Compress Contextscited by 356
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 348
- 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 338
- 2021PAQ: 65 Million Probably-Asked Questions and What You Can Do With Themcited by 200
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttentioncited by 163
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 108
- 2020Autoregressive Knowledge Distillation through Imitation Learningcited by 74
- 2020LightPAFF: A Two-Stage Distillation Framework for Pre-training and Fine-tuningcited by 25
- 2024MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learningcited by 15
- 2024PromptIntern: Saving Inference Costs by Internalizing Recurrent Prompt during Large Language Model Fine-tuningcited by 13
- 2023KTRL+F: Knowledge-Augmented In-Document Searchcited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 7.
8 papers.
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 43
- 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuningcited by 1
- 2026SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalizationcited by 1
- 2026Context Memorization for Efficient Long Context Generationcited by 0
- 2026PRISMR: Overcoming Parse Collapse in Multimodal Listwise Ranking via Parameterized Representation Internalizationcited by 0
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systemscited by 0
- 2026E2-OPSD: Taming Entropy Overshoot in On-Policy Self-Distillationcited by 0
- 2026WIRE: Weight Space Implicit Representation Encoding of Frozen Video LLMscited by 0
- 2026WIRE: Weight Space Implicit Representation Encoding of Frozen Video LLMs12 Oct 2026
- 2026E2-OPSD: Taming Entropy Overshoot in On-Policy Self-Distillation4 Oct 2026
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systems7 Jul 2026
- 2026PRISMR: Overcoming Parse Collapse in Multimodal Listwise Ranking via Parameterized Representation Internalization11 Jun 2026
- 2026Context Memorization for Efficient Long Context Generation18 May 2026
- 2026SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization4 Apr 2026
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contexts13 Feb 2026
- 2025IA2: Alignment with ICL Activations Improves Supervised Fine-Tuning26 Sep 2025