Identify, Classify, Act: Per-Instruction Controlled Compliance for LLMs over External Data
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
LLMs over external data face a per-instruction tension: a single document or tool return often interleaves legitimate directives with adversarial prompt injections, and the model must follow the former while rejecting the latter. Existing defenses suppress or trust all external instructions, collapsing the safety-utility frontier and forcing a choice between over-refusal and over-compliance. We argue the missing capability is per-instruction credit attribution and formalize it as External-Data Instruction Classification, an identify-classify-act decision over each embedded directive. We propose EDIC, a decomposed reward framework for per-instruction compliance. A scene-grounded pipeline injects mixed beneficial and harmful instructions with counterfactual filtering, while a generative judge is initialized by SFT and refined with GRPO to attribute compliance at the instruction level. The judge then produces a reward that separately encourages beneficial compliance and penalizes harmful compliance for RL training. Across two backbones and five benchmarks, EDIC improves both safety and utility over the strongest prior defense, lifting harmful-rejection by up to 7.7% and Arena-Hard-Auto utility by 12.5% on Qwen3-4B. The code repository is hosted at https://github.com/yingyingxia666/EDIC.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 33 of its 54 references that are in the map. Submitted 16 Oct 2026.
Builds on
33 of 54 references.
Closest ancestors · 1
Same direction, newest first
Other references · 32
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,507
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
- 2023Let's Verify Step by Stepcited by 4,259
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,986
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,374
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,271
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,828
20 more
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,824
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,718
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,392
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 896
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 766
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 712
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 595
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 568
- 2024From Crowdsourced Data to High-Quality Benchmarks: Arena-Hard and BenchBuilder Pipelinecited by 544
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 433
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 327
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 264
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 251
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 179
- 2026Multimodal Multi-Agent Empowered Legal Judgment Predictioncited by 15
- 2026SPADER: Step-wise Peer Advantage with Diversity-Aware Exploration Rewards for Multi-Answer Question Answeringcited by 8
- 2026ReasAlign: Reasoning Enhanced Safety Alignment against Prompt Injection Attackcited by 7
- 2025JPRO: Automated Multimodal Jailbreaking via Multi-Agent Collaboration Frameworkcited by 6
- 2023A Framework for Inference Inspired by Human Memory Mechanismscited by 3
- 2026HiCI: Hierarchical Construction-Integration for Long-Context Attentioncited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Training LLMs to Enforce Multi-Level Instruction Hierarchies via Gravity-Weighted Direct Preference Optimization
- 2025BLEUBERI: BLEU is a surprisingly effective reward for instruction following
- 2026What Do Safety-Aligned LLMs Learn From Mixed Compliance Demonstrations?
- 2026You Told Me to Do It: Measuring Instructional Text-induced Private Data Leakage in LLM Agents
- 2026Behind Harmful Compliance: Behavioral and Mechanistic Divergence Across LLM Jailbreaks
- 2026Recognition Without Enforcement: Configuration-Dependent Failures in LLM Agent Instruction Arbitration and External Control
- 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense