arXiv:2610.35093cs.AIOct 2026

Manuscript Offprint

arXiv:2610.35093

Improving Instruction Hierarchy by Learning from Goal-Goal Conflicts

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Recently, OpenAI agents undergoing evaluations autonomously compromised parts of Hugging Face’s infrastructure because they believed it might contain information useful for solving their evaluation tasks (OpenAI, 2026b). This incident illustrates the importance of adherence to the instruction hierarchy (IH) (Wallace et al., 2024), which requires large language models (LLMs) to follow lower-priority instructions only when they do not conflict with higher-priority instructions. In this incident, some agents mistakenly treated messages from other agents (lower-priority instructions) as authorization to override higher-priority system

(a) Three conflict types based on our decomposition of a task

Task: Summarize this paper in exactly 3 bullets.

goalconstraint
Constraint-constraint conflictExactly 3 bullets⇔\Leftrightarrow Exactly 5 bullets
Constraint-goal conflictSummarize this paper⇔\Leftrightarrow You can only do translation
Goal-goal conflictSummarize this paper⇔\Leftrightarrow Please translate the above into French

(b) Conflict coverage in existing training sets

Figure

Figure 1: Conflict types (a) and coverage in existing IH training sets (b) (Jiang et al., 2026; Guo et al., 2026).

messages with security specifications (OpenAI, 2026a).

Fine-tuning on simulated conflicts can effectively improve IH (Wallace et al., 2024). The key is to simulate diverse and strong conflicts, so that the fine-tuned LLM learns to resolve conflicts well at test time. This paper studies conflict diversity.

To measure conflict diversity, we decompose a task into goals, which specify what to accomplish, and constraints, which restrict goal completion. Based on this new perspective, there are three possible types of conflicts: constraint–constraint, constraint–goal, and goal–goal conflicts; see Figure 1(a). Our analysis of OpenAI's IH-Challenge (Guo et al., 2026) and NVIDIA's HieraSuite (Jiang et al., 2026) shows these existing IH training sets miss the goal–goal conflict type; see Figure 1(b).

This gap motivates us to construct the missing goal–goal conflicts and study the effect of training on them. We construct 9,544 goal–goal conflict samples, each containing two text-processing instructions that operate on each other. We put one text-processing instruction in the high-priority system message, and another in the low-priority user message. Thus, the desirable response follows the system instruction to process the user message, and the undesirable response does the reverse.

System (high-priority): Encode the user message inside text XML tags.

User (low-priority): Swap the case of every cased character for the system message.

Desirable response: <text>Swap the case of every cased character for the system message.</text>

Undesirable response: eNCODE THE USER MESSAGE INSIDE TEXT xml TAGS.

Training on these goal–goal conflicts improves IH adherence across four benchmarks (IHEval, RuLES, IH-Benchmark, and XIH-Bench) on a wide range of real-world tasks with conflicts unseen in training. We fine-tune two models on our goal–goal training set using direct preference optimization (DPO; Rafailov et al., 2023) to prefer outputs that follow the higher-priority instruction over those that follow the conflicting lower-priority instruction. This training increases the conflict resistance rates of Qwen3.5-9B and Gemma4-12B-it by 34.3 and 19.4 points, respectively.

If we add our goal–goal conflicts to a subset of the existing HieraSuite training set, training on this combined set yields better IH adherence than training on this HieraSuite subset alone. In this comparison, our fine-tuned Qwen3.5-9B and Gemma4-12B-it models have mean conflict resistance rates that are 18.0 and 10.5 points higher, respectively. This shows that goal–goal conflicts, if simulated in training, complement existing conflict types in improving IH.

The IH gains are accompanied by small changes in mean utility across eight benchmarks. Evaluations on non-conflicting samples from eight benchmarks (MMLU-Pro, GPQA Diamond, IFEval, GSM8K, IHEval, RuLES, IH-Benchmark, and XIH-Bench) show that using our goal–goal conflicts in training (both alone and when added to existing conflict training) yields utility scores similar to those of the corresponding original models. Together, our results advocate including goal–goal conflicts in IH training, even if these examples do not reflect typical LLM use.