ASIDE: Architectural Separation of Instructions and Data in Language Models
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Despite their remarkable performance, large language models lack elementary safety features, making them susceptible to numerous malicious attacks. In particular, previous work has identified the absence of an intrinsic separation between instructions and data as the root cause of the success of prompt injection attacks. In this work, we propose a new architectural element, ASIDE, that allows language models to clearly separate instructions and data at the level of token embeddings. ASIDE applies an orthogonal rotation to the embeddings of data tokens, thus creating clearly distinct representations of instructions and data tokens without introducing any additional parameters. As we demonstrate experimentally across a range of models, instruction-tuning LLMs with ASIDE (1) achieves substantially higher instruction-data separation without performance loss and (2) makes the models more robust to prompt injection benchmarks, even without dedicated safety training. Additionally, we provide insights into the mechanism underlying our method through an analysis of the model representations. The source code and training scripts are openly accessible at https://github.com/egozverev/aside.
Key facts. Cited by 24 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 42 of its 62 references that are in the map. First posted on arXiv 13 Mar 2025.
Builds on
42 of 62 references.
Closest ancestors · 13
Same direction, newest first
- 2025Can Indirect Prompt Injection Attacks Be Detected and Removed?23 Feb
- 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy9 Oct
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
- 2024Get my drift? Catching LLM Task Drift with Activation Deltas2 Jun
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlighting20 Mar
- 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal6 Feb
- 2024Security and Privacy Challenges of Large Language Models: A Survey30 Jan
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuning29 Dec
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
- 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game2 Nov
1 more
Other references · 29
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2023A Survey of Large Language Modelscited by 2,576
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,319
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 897
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
17 more
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 748
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2024Improving Alignment and Robustness with Circuit Breakerscited by 322
- 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 200
- 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 199
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 156
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
- 2023Effective Prompt Extraction from Language Modelscited by 85
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 81
- 2023Can LLMs Follow Simple Rules?cited by 46
- 2024Prompt Stealing Attacks Against Large Language Modelscited by 40
- 2024Discovering Low-rank Subspaces for Language-agnostic Multilingual Representationscited by 19
- 2023TensorGPT: Efficient Compression of Large Language Models based on Tensor-Train Decompositioncited by 17
- 2024Large Language Models as Software Components: A Taxonomy for LLM-Integrated Applicationscited by 17
- 2024Vocabulary Attack to Hijack Large Language Model Applicationscited by 12
- 2024Goal Hijacking Attack on Large Language Models via Pseudo-Conversation Injectioncited by 4
Built on by
Citing papers per year: 2025: 8; 2026: 16.
24 papers.
Sort:
By area:
- 2025Defeating Prompt Injections by Designcited by 297
- 2025Effectively Controlling Reasoning Models through Thinking Interventioncited by 65
- 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challengecited by 21
- 2026Prompt Injection as Role Confusioncited by 17
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitizationcited by 12
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 9
- 2025Takedown: How It's Done in Modern Coding Agent Exploitscited by 6
- 2025Reasoning Up the Instruction Ladder for Controllable Language Modelscited by 5
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attackscited by 5
- 2026Multi-Stream LLMs: Unblocking Language Models with Parallel Streams of Thoughts, Inputs and Outputscited by 3
- 2026Untrusted Content Masking for Web Agents with Security Guaranteescited by 3
- 2026No More, No Less: Task Alignment in Terminal Agentscited by 2
12 more
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defensecited by 2
- 2025MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agentscited by 1
- 2026On the Inseparability of Instructions and Data in Shared-Embedding Sequence Modelscited by 1
- 2025Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMscited by 0
- 2026Engineering Robustness into Personal Agents with the AI Workflow Storecited by 0
- 2026Training LLMs to Enforce Multi-Level Instruction Hierarchies via Gravity-Weighted Direct Preference Optimizationcited by 0
- 2026Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectorscited by 0
- 2026ResumeShield: Channel Separation and an Open Benchmark for Indirect Prompt Injection in AI Resume Screeningcited by 0
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systemscited by 0
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injectioncited by 0
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steeringcited by 0
- 2026Can LLMs Separate Pasted Artifacts from User Speech? Absorption at Unmarked Prompt Seamscited by 0
- 2026Can LLMs Separate Pasted Artifacts from User Speech? Absorption at Unmarked Prompt Seams3 Oct 2026
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering29 Sep 2026
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injection28 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectors24 Aug 2026
- 2026ResumeShield: Channel Separation and an Open Benchmark for Indirect Prompt Injection in AI Resume Screening24 Jul 2026
- 2026Untrusted Content Masking for Web Agents with Security Guarantees6 Jul 2026
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense29 Jun 2026
- 2026On the Inseparability of Instructions and Data in Shared-Embedding Sequence Models25 Jun 2026
- 2026Training LLMs to Enforce Multi-Level Instruction Hierarchies via Gravity-Weighted Direct Preference Optimization9 Jun 2026
- 2026Multi-Stream LLMs: Unblocking Language Models with Parallel Streams of Thoughts, Inputs and Outputs12 May 2026
- 2026No More, No Less: Task Alignment in Terminal Agents12 May 2026
12 more
- 2026Engineering Robustness into Personal Agents with the AI Workflow Store11 May 2026
- 2026Prompt Injection as Role Confusion22 Feb 2026
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attacks14 Feb 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents11 Dec 2025
- 2025Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMs3 Dec 2025
- 2025Reasoning Up the Instruction Ladder for Controllable Language Models30 Oct 2025
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitization9 Oct 2025
- 2025Takedown: How It's Done in Modern Coding Agent Exploits29 Sep 2025
- 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challenge11 Jun 2025
- 2025Effectively Controlling Reasoning Models through Thinking Intervention31 Mar 2025
- 2025Defeating Prompt Injections by Design24 Mar 2025
- 2025Defeating Prompt Injections by Designcited by 297
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitizationcited by 12
- 2025Takedown: How It's Done in Modern Coding Agent Exploitscited by 6
- 2026Untrusted Content Masking for Web Agents with Security Guaranteescited by 3
- 2025MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agentscited by 1
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systemscited by 0
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injectioncited by 0
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steeringcited by 0
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering29 Sep 2026
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injection28 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Untrusted Content Masking for Web Agents with Security Guarantees6 Jul 2026
- 2025MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents11 Dec 2025
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitization9 Oct 2025
- 2025Takedown: How It's Done in Modern Coding Agent Exploits29 Sep 2025
- 2025Defeating Prompt Injections by Design24 Mar 2025
- 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challengecited by 21
- 2026Prompt Injection as Role Confusioncited by 17
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 9
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attackscited by 5
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defensecited by 2
- 2026On the Inseparability of Instructions and Data in Shared-Embedding Sequence Modelscited by 1
- 2026Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectorscited by 0
- 2026ResumeShield: Channel Separation and an Open Benchmark for Indirect Prompt Injection in AI Resume Screeningcited by 0
- 2026Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectors24 Aug 2026
- 2026ResumeShield: Channel Separation and an Open Benchmark for Indirect Prompt Injection in AI Resume Screening24 Jul 2026
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense29 Jun 2026
- 2026On the Inseparability of Instructions and Data in Shared-Embedding Sequence Models25 Jun 2026
- 2026Prompt Injection as Role Confusion22 Feb 2026
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attacks14 Feb 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challenge11 Jun 2025
- 2026No More, No Less: Task Alignment in Terminal Agentscited by 2
- 2025Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMscited by 0
- 2026Engineering Robustness into Personal Agents with the AI Workflow Storecited by 0
- 2026Can LLMs Separate Pasted Artifacts from User Speech? Absorption at Unmarked Prompt Seamscited by 0
- 2026Can LLMs Separate Pasted Artifacts from User Speech? Absorption at Unmarked Prompt Seams3 Oct 2026
- 2026No More, No Less: Task Alignment in Terminal Agents12 May 2026
- 2026Engineering Robustness into Personal Agents with the AI Workflow Store11 May 2026
- 2025Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMs3 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2025DRIP: Defending Prompt Injection via Token-wise Representation Editing and Residual Instruction Fusion
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
- 2023On the Exploitability of Instruction Tuning
- 2025Stronger Enforcement of Instruction Hierarchy via Augmented Intermediate Representations
- 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction
- 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning
- 2026Safety Targeted Embedding Exploit via Refinement
- 2025Defending against Indirect Prompt Injection by Instruction Detection