TL;DR
Large Language Models (LLMs) often fail to reliably follow hierarchical instructions, even when developers explicitly set system-level directives to take precedence over user messages. This study introduces a framework to test this, finding that LLMs struggle with even simple conflicts, and that "societal" hierarchies learned during pre-training can override explicit instructions.
What Problem Does This Paper Address?
As LLMs become more sophisticated and integrated into various applications, developers need to control their behavior. A common method is using hierarchical instruction schemes, where system-level directives (from developers) are supposed to override user-level instructions. This is crucial for safety, ensuring consistent behavior, and enabling complex agentic systems. However, there's a lack of systematic understanding of how well these hierarchical control mechanisms actually work in practice. This paper investigates whether the widely adopted system/user prompt separation effectively establishes a reliable instruction hierarchy, or if LLMs fail to consistently prioritize developer instructions.
Methods
The researchers developed a systematic evaluation framework to assess how LLMs enforce instruction hierarchies. This framework involves creating verifiable, mutually exclusive conflicting constraints (e.g., "response in English" vs. "response in French," or "at least 300 words" vs. "less than 50 words"). They then tested how LLMs handle these conflicts when presented with different priority assignments, particularly using the system/user prompt separation.
To analyze model behavior beyond simple obedience rates, they introduced several metrics:
- Explicit Conflict Acknowledgement Rate (ECAR): Measures how often models explicitly recognize conflicting instructions.
- Priority Adherence Ratio (PAR): Assesses how well models follow the designated primary constraint when they successfully satisfy one of the conflicting instructions.
- Constraint Bias (CB): Captures inherent model preferences for certain constraint types, independent of priority designation, by analyzing behavior without explicit priority settings.
They also explored the influence of "societal hierarchies" (like authority, expertise, and consensus) by framing constraints within these social structures, comparing their impact to the artificial system/user roles.
Datasets
The study used a curated dataset of 100 diverse base tasks, covering applications like writing emails, stories, and analytical responses. These tasks were combined with explicitly conflicting constraints. The researchers also created "rich context" versions of prompts to add realistic complexity. The conflicting constraints were inspired by the IF Eval dataset.
Key Insights and Ideas
- System/User Separation is Fragile: The common system/user prompt separation, intended to establish developer priority, is largely ineffective. LLMs struggle to consistently enforce these hierarchies, even with simple, verifiable conflicts.
- Inherent Biases Dominate: Models exhibit strong, often consistent, biases towards certain types of constraints (e.g., preferring lowercase over uppercase, avoiding specific keywords) that can override designated priorities.
- Societal Hierarchies Matter More: Implicitly learned "societal" hierarchies (authority, expertise, consensus) from pre-training data have a stronger influence on model behavior than explicit system/user roles. This suggests LLMs internalize social structures that can compete with or override engineered safety instructions.
- Conflict Acknowledgment is Rare and Insufficient: Models rarely acknowledge conflicting instructions explicitly. Even when they do, it doesn't guarantee correct prioritization.
- Categorical Constraints are Easier: Models show slightly better priority control over categorical constraints (like language or case) compared to continuous ones (like word count or sentence count).
Key Results
- Low Priority Adherence: When faced with conflicting instructions, the average Primary Obedience Rate (R1) across models dropped significantly, ranging from 9.6% to 45.8%, compared to their baseline instruction-following performance (74.8%-90.8%).
- No Consistent Improvement: Different separation configurations (Pure, Task, Emphasized) showed varying effectiveness, but none consistently maintained the intended hierarchy. Even emphasized configurations with explicit priority declarations failed to achieve reliable control.
- Model Size Doesn't Guarantee Better Control: Larger models did not necessarily perform better; some smaller models outperformed larger counterparts in priority adherence.
- Societal Hierarchies Boost Control: Framing constraints within societal hierarchies (authority, expertise, consensus) consistently yielded higher priority adherence than system/user separation. For example, GPT40-mini's PAR increased from 47.5% to 77.8% under social consensus.
- Shared Biases: Models consistently favored lowercase over uppercase, preferred more sentences, and tended to avoid keywords, suggesting these biases stem from pre-training data.
Limitations and Future Work
The study acknowledges several limitations:
- Controlled Setting: The experiments were conducted in a tightly controlled, single-turn setting with simple, verifiable constraints. This might not reflect real-world multi-turn interactions or more complex linguistic variations.
- Scope of Constraints: The focus was on formatting and simple content constraints. More complex control mechanisms like safety rules, tone management, or agentic behaviors were not evaluated.
- Underlying Mechanisms: The paper does not delve into the underlying architectural or training mechanisms that cause these failures.
Future work could explore:
- How these hierarchy failures evolve in multi-turn conversations.
- The impact of these failures on more complex control tasks.
- Investigating the internal mechanisms driving these biases and failures.
- The implications of latent hierarchical priors for AI alignment research, including whether they can or should be surfaced, audited, or attenuated.
Summary updated