cs.AIOct 26, 2026

Improving Instruction Hierarchy by Learning from Goal-Goal Conflicts

Authors: Sizhe Chen, Sanjay Kariyappa, Liwei Jiang, Chong Xiang, Jihye Choi, Chaowei Xiao, G. Edward Suh

Organizations: NVIDIA · UC Berkeley

Abstract

The recent incident in which OpenAI agents autonomously compromised Hugging Face's infrastructure illustrates the importance of instruction hierarchy (IH): an LLM should follow lower-priority instructions, such as user requests, only when they do not conflict with higher-priority instructions, such as system policies. IH can be effectively improved by fine-tuning LLMs on simulated examples of instruction conflicts, whose diversity is key to teaching LLMs to properly handle conflicts at test time. However, our decomposition of a task into goals and constraints reveals a conflict type -- goal-goal conflicts -- that is absent from existing IH training sets from OpenAI and NVIDIA. We show the importance of this conflict type: fine-tuning Qwen3.5-9B and Gemma4-12B-it on examples of this conflict type significantly improves IH on a wide range of real-world tasks unseen in training; adding these examples to existing IH training sets for fine-tuning also gives better IH adherence. The IH gains come with trivial mean utility changes on no-conflict tasks across eight benchmarks. Our work advocates including this new conflict type in IH training, even if these examples do not reflect typical LLM use.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Many-Tier Instruction Hierarchy in LLM Agents

    Apr 10, 2026Jingyu Zhang, Tianjian Li, William Jurayj +3LLM AgentsAI Agent Safety Benchmarks

  2. Hierarchical Alignment: Enforcing Hierarchical Instruction-Following in LLMs through Logical Consistency

    Apr 10, 2026Shu Yang, Zihao Zhou, Di Wang +1LLM AlignmentInference-Time Language Model Alignment