Position, Role or Label? A Controlled Study of Instruction Conflicts in LLM Agents
On the map: LLM agents and tool use → Software engineering coding agents also fits: Tool learning and function calling
Abstract (arXiv)
LLM agents take instructions from the operator, repository configuration, user, tool results and saved memory, which often conflict. Instruction-hierarchy benchmarks ask whether the higher-ranked source wins, but a source sets position, role and label at once. First, we build WhoWins, 1,080 code-scored scenarios in five task types, each with up to five mutually exclusive instructions, and seven controlled experiments that vary only how instructions are delivered. Second, we study 14 open-weight models (0.6B to 122B, thinking off and on) over 1,887,356 scored replies, checking main findings on held-out scenarios. Inside one message the first of two conflicting lines wins 72.42 to 94.66%, and across messages it keeps 22.95 to 62.65%. A policy sent first in the system (or developer) message loses most conflicts with later lines in every Qwen model but wins most on gpt-oss when it acts. In tool and file-write tasks it wins less often than the same text sent first as a labelled user message, in every model-mode. Third, we test whether pairs forecast larger conflicts; forecasts improve in every model-mode once they know where the task line is. Finally, by our keyword patterns at most 2.92% of decided pair replies flag or hedge a conflict.
Key facts. Cited by 1 paper in the map (data through 26 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 52 references that are in the map. Submitted 23 Oct 2026.
Builds on
24 of 52 references.
References · 24
- 2025Qwen3 Technical Reportcited by 10,000
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,638
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 568
- 2025A Closer Look at System Prompt Robustnesscited by 36
- 2024SysBench: Can Large Language Models Follow System Messages?cited by 34
- 2026Prompt Injection as Role Confusioncited by 26
- 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMscited by 19
- 2026Auditing Provenance Sensitivity in LLM Agent Action Selectioncited by 13
- 2025The Illusion of Role Separation: Hidden Shortcuts in LLM Role Learning (and How to Fix Them)cited by 10
- 2026Many-Tier Instruction Hierarchy in LLM Agentscited by 9
- 2026IH-Benchmark: A Conflict-Centered Benchmark for Instruction-Hierarchy Robustness in LLM Applicationscited by 5
- 2026Authority Bias in Language Models: Source Deference and User Agreement Are Not Interchangeablecited by 5
12 more
- 2025Who is In Charge? Dissecting Role Conflicts in Instruction Followingcited by 4
- 2026When Context Gets Root: Privilege Escalation in LLM Harnessescited by 4
- 2026How Language Models Choose Sides: Internal Representations of Instruction Hierarchycited by 3
- 2026Hierarchical Alignment: Enforcing Hierarchical Instruction-Following in LLMs through Logical Consistencycited by 2
- 2026Language Shapes Instruction Hierarchy Compliance in Multilingual LLMscited by 2
- 2026When Personal Memory Has No Single Answer: Evaluating LLM Agents under Irreducible Conflictcited by 2
- 2026Recognition Without Enforcement: Configuration-Dependent Failures in LLM Agent Instruction Arbitration and External Controlcited by 2
- 2026Where Instruction Hierarchy Breaks: Diagnosing and Repairing Failures in Reasoning Language Modelscited by 1
- 2026Training LLMs to Enforce Multi-Level Instruction Hierarchies via Gravity-Weighted Direct Preference Optimizationcited by 1
- 2026PRIME: Evaluating Prompt Resolution Under Incompatible Instructions in LLMscited by 1
- 2026IHDec: Divergence-Steered Contrastive Decoding for Securing Multi-Turn Instruction Hierarchiescited by 1
- 2026Large Language Models in Resolving Contextual Knowledge Conflictscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Instructions Are Evidence, Not Objectives: Measuring Outcome Alignment of Agents
- 2026How Strongly Should Task State Influence an LLM Agent?
- 2025Diagnose, Localize, Align: A Full-Stack Framework for Reliable LLM Multi-Agent Systems under Instruction Conflicts
- 2025GroundAct: Can LLM Agents Ground Actions in Environmental States?
- 2025ConInstruct: Evaluating Large Language Models on Conflict Detection and Resolution in Instructions
- 2026How Consistent Are LLM Agents? Measuring Behavioral Reproducibility in Multi-Step Tool-Calling Pipelines
- 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs
- 2026Instruction Adherence in Coding Agent Configuration Files: A Factorial Study of Four File-Structure Variables