Prompt Injection: Parameterization of Fixed Inputs
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Recent works have shown that attaching prompts to the input is effective at conditioning Language Models (LM) to perform specific tasks. However, prompts are always included in the input text during inference, thus incurring substantial computational and memory overhead. Also, there is currently no straightforward method of utilizing prompts that are longer than the maximum input length of the LMs without incurring additional costs during inference. We propose Prompt Injection (PI), a novel formulation of injecting the prompt into the parameters of an LM to be an efficient alternative to attaching fixed prompts to the input. We show that in scenarios with long fixed prompts, PI can be up to 280 times more efficient in terms of total FLOPs than previous approaches. We further explore methodologies for PI and show promising results in persona-dependent conversation, semantic parsing, and zero-shot learning with task instructions. Through these explorations, we show that PI can be a promising direction for conditioning language models, especially in scenarios with long and fixed prompts.
Key facts. Cited by 36 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 33 of its 41 references that are in the map. First posted on arXiv 31 May 2022.
Builds on
33 of 41 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
21 more
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2018Personalizing Dialogue Agents: I have a dog, do you have pets too?cited by 828
- 2020Efficient Transformers: A Surveycited by 790
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
- 2020Recipes for building an open-domain chatbotcited by 593
- 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 319
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2022UnifiedSKG: Unifying and Multi-Tasking Structured Knowledge Grounding with Text-to-Text Language Modelscited by 231
- 2019TransferTransfo: A Transfer Learning Approach for Neural Network Based Conversational Agentscited by 188
- 2018Dialogue Natural Language Inferencecited by 135
- 2018Training Millions of Personalized Dialogue Agentscited by 126
- 2020Structure-Grounded Pretraining for Text-to-SQLcited by 126
- 2022Should You Mask 15% in Masked Language Modeling?cited by 118
- 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
- 2020You Impress Me: Dialogue Generation via Mutual Persona Perceptioncited by 85
- 2021What Changes Can Large-scale Language Models Bring? Intensive Study on HyperCLOVA: Billions-scale Korean Generative Pretrained Transformerscited by 76
- 2019Exploiting Persona Information for Diverse Generation of Conversational Responsescited by 58
- 2021Text-to-SQL in the Wild: A Naturally-Occurring Dataset Based on Stack Exchange Datacited by 43
- 2021Curriculum learning for language modelingcited by 32
- 2022Meet Your Favorite Character: Open-domain Chatbot Mimicking Fictional Characters with only a Few Utterancescited by 32
Built on by
Citing papers per year: 2022: 2; 2023: 9; 2024: 10; 2025: 7; 2026: 8.
36 papers.
Sort:
By area:
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 759
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2026Reinforcement Learning via Self-Distillationcited by 332
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 256
- 2022Learning by Distilling Contextcited by 138
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 67
- 2026Expanding the Capabilities of Reinforcement Learning via Text Feedbackcited by 53
- 2024Efficient Prompting Methods for Large Language Models: A Surveycited by 47
- 2024Current state of LLM Risks and AI Guardrailscited by 46
- 2023RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignmentcited by 43
- 2023In-Context Learning with Many Demonstration Examplescited by 39
- 2025A Survey of Multimodal Retrieval-Augmented Generationcited by 37
24 more
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
- 2024PICLe: Eliciting Diverse Behaviors from Large Language Models with Persona In-Context Learningcited by 29
- 2023Propagating Knowledge Updates to LMs Through Distillationcited by 28
- 2023Improving Translation Faithfulness of Large Language Models via Augmenting Instructionscited by 28
- 2026Aligning Language Models from User Interactionscited by 28
- 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 24
- 2024Self-Updatable Large Language Models by Integrating Context into Model Parameterscited by 21
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
- 2025Recontextualization Mitigates Specification Gaming without Modifying the Specificationcited by 14
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compressioncited by 12
- 2024Evaluating AI Evaluation: Perils and Prospectscited by 11
- 2023FLamE: Few-shot Learning from Natural Language Explanationscited by 10
- 2026The Illusion of Certainty: Decoupling Capability and Calibration in On-Policy Distillationcited by 9
- 2024Exact Conversion of In-Context Learning to Model Weights in Linearized-Attention Transformerscited by 7
- 2024Enhancing In-Context Learning via Implicit Demonstration Augmentationcited by 6
- 2025Rote Learning Considered Useful: Generalizing over Memorized Data in LLMscited by 5
- 2025You Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectorscited by 4
- 2026Updating Parametric Knowledge with Context Distillation Retains Post-Training Capabilitiescited by 3
- 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
- 2022Efficiently Enhancing Zero-Shot Performance of Instruction Following Model via Retrieval of Soft Promptcited by 2
- 2024On the Transformations across Reward Model, Parameter Update, and In-Context Promptcited by 1
- 2025Can Gradient Descent Simulate Prompting?cited by 0
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systemscited by 0
- 2026Function-Space Temporal Self-Distillation for Policy Optimizationcited by 0
- 2026Function-Space Temporal Self-Distillation for Policy Optimization14 Oct 2026
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systems7 Jul 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
- 2026The Illusion of Certainty: Decoupling Capability and Calibration in On-Policy Distillation18 Apr 2026
- 2026Aligning Language Models from User Interactions18 Feb 2026
- 2026Updating Parametric Knowledge with Context Distillation Retains Post-Training Capabilities17 Feb 2026
- 2026Expanding the Capabilities of Reinforcement Learning via Text Feedback2 Feb 2026
- 2026Reinforcement Learning via Self-Distillation28 Jan 2026
- 2025Recontextualization Mitigates Specification Gaming without Modifying the Specification22 Dec 2025
- 2025You Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectors26 Sep 2025
- 2025Rote Learning Considered Useful: Generalizing over Memorized Data in LLMs29 Jul 2025
- 2025Can Gradient Descent Simulate Prompting?26 Jun 2025
24 more
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2025A Survey of Multimodal Retrieval-Augmented Generation26 Mar 2025
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compression21 Feb 2025
- 2024Efficient Knowledge Injection in LLMs via Self-Distillation19 Dec 2024
- 2024Self-Updatable Large Language Models by Integrating Context into Model Parameters1 Oct 2024
- 2024Evaluating AI Evaluation: Perils and Prospects12 Jul 2024
- 2024Enhancing In-Context Learning via Implicit Demonstration Augmentation27 Jun 2024
- 2024On the Transformations across Reward Model, Parameter Update, and In-Context Prompt24 Jun 2024
- 2024Current state of LLM Risks and AI Guardrails16 Jun 2024
- 2024Exact Conversion of In-Context Learning to Model Weights in Linearized-Attention Transformers5 Jun 2024
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenization27 May 2024
- 2024PICLe: Eliciting Diverse Behaviors from Large Language Models with Persona In-Context Learning3 May 2024
- 2024Efficient Prompting Methods for Large Language Models: A Survey1 Apr 2024
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation6 Oct 2023
- 2023Improving Translation Faithfulness of Large Language Models via Augmenting Instructions24 Aug 2023
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedback27 Jul 2023
- 2023RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment24 Jul 2023
- 2023Propagating Knowledge Updates to LMs Through Distillation15 Jun 2023
- 2023FLamE: Few-shot Learning from Natural Language Explanations13 Jun 2023
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledge2 May 2023
- 2023Learning to Compress Prompts with Gist Tokens17 Apr 2023
- 2023In-Context Learning with Many Demonstration Examples9 Feb 2023
- 2022Efficiently Enhancing Zero-Shot Performance of Instruction Following Model via Retrieval of Soft Prompt6 Oct 2022
- 2022Learning by Distilling Context30 Sep 2022
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 759
- 2023RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignmentcited by 43
- 2026Aligning Language Models from User Interactionscited by 28
- 2024On the Transformations across Reward Model, Parameter Update, and In-Context Promptcited by 1
- 2026Aligning Language Models from User Interactions18 Feb 2026
- 2024On the Transformations across Reward Model, Parameter Update, and In-Context Prompt24 Jun 2024
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedback27 Jul 2023
- 2023RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment24 Jul 2023
- 2024Current state of LLM Risks and AI Guardrailscited by 46
- 2024Current state of LLM Risks and AI Guardrails16 Jun 2024
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2022Learning by Distilling Contextcited by 138
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 67
- 2024Efficient Prompting Methods for Large Language Models: A Surveycited by 47
- 2023In-Context Learning with Many Demonstration Examplescited by 39
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
- 2024PICLe: Eliciting Diverse Behaviors from Large Language Models with Persona In-Context Learningcited by 29
- 2023Propagating Knowledge Updates to LMs Through Distillationcited by 28
- 2023Improving Translation Faithfulness of Large Language Models via Augmenting Instructionscited by 28
- 2024Self-Updatable Large Language Models by Integrating Context into Model Parameterscited by 21
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
- 2025Recontextualization Mitigates Specification Gaming without Modifying the Specificationcited by 14
12 most cited of 24 All 24 (JSON)
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systems7 Jul 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
- 2026Updating Parametric Knowledge with Context Distillation Retains Post-Training Capabilities17 Feb 2026
- 2025Recontextualization Mitigates Specification Gaming without Modifying the Specification22 Dec 2025
- 2025You Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectors26 Sep 2025
- 2025Rote Learning Considered Useful: Generalizing over Memorized Data in LLMs29 Jul 2025
- 2025Can Gradient Descent Simulate Prompting?26 Jun 2025
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2025R3Mem: Bridging Memory Retention and Retrieval via Reversible Compression21 Feb 2025
- 2024Self-Updatable Large Language Models by Integrating Context into Model Parameters1 Oct 2024
- 2024Evaluating AI Evaluation: Perils and Prospects12 Jul 2024
- 2024Enhancing In-Context Learning via Implicit Demonstration Augmentation27 Jun 2024
12 newest of 24 All 24 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications
- 2023Batch Prompting: Efficient Inference with Large Language Model APIs
- 2024Large Language Models Prompting With Episodic Memory
- 2026How Much Prompt Is Enough? A Blackbox Minimization of Few-Shots in LLMs
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelity
- 2025Inference-Aware Prompt Optimization for Aligning Black-Box Large Language Models
- 2023Boosted Prompt Ensembles for Large Language Models
- 2026Prompt Compression via Activation Aggregation