Position, Role or Label? A Controlled Study of Instruction Conflicts in LLM Agents
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.SE
- Comments
- 55 pages, 8 figures, 24 tables. Code and data: https://github.com/anishh15/WhoWins (pip install whowins). Website: https://anishh15.github.io/WhoWins/
Related papers
Do More Roles or Larger Models Improve LLM Fact-Checking? A Controlled Study on Fixed Evidence
Shared title terminologycs.CLMartin Pavlíček, Martin Kotyrba, Eva Volná et al.
CoSA: The Conflict of Skills Attack in Real-World LLM Agent Ecosystems
Shared title terminologycs.CLYujia Zheng, Tianhao Li, Shangzhi Xu et al.
RoleHear: Pseudo-Labeling for Semi-Supervised Role-Attributed Streaming Speech Recognition
Shared title terminologycs.CLZefang Liu, Chenyang Zhu, Sangwoo Cho et al.
fork() for Agents: Agent Kernel for Non-blocking LLM Orchestration
Shared title terminologycs.CLAnkit Chadha, Pratyay Banerjee
SecondChance: Benchmarking Reliable Error Recovery in AI Agents
Shared title terminologycs.CLAtahan Dokme, Adar Avsian, Larry Heck
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.