mlsanityData to 7 Oct 2026

IHDec: Divergence-Steered Contrastive Decoding for Securing Multi-Turn Instruction Hierarchies

arXiv 2606.29960 ↗First posted 29 Jun 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) often fail to maintain instruction hierarchies (IH) when processing multi-source inputs with varying role-level priorities, paradoxically adhering to lower-priority directives during conflicts. While existing defenses mitigate this issue, they are largely restricted to single-turn scenarios and require expensive fine-tuning. In this paper, we formalize this failure mode in multi-turn contexts via a Jensen-Shannon Divergence (JSD) framework, uncovering a pervasive role-influence inversion phenomenon where subordinate inputs override superior roles. To rectify this without training, we propose IHDec (Instruction Hierarchy-steered Decoding). IHDec leverages JSD to automatically detect token-level hierarchy violations and dynamically executes contrastive decoding to suppress misaligned subordinate roles. Extensive evaluations demonstrate that IHDec outperforms training-based baselines in multi-turn conflicts while fully preserving general response quality. Furthermore, IHDec strengthens safety against adversarial prompt injections and exhibits a robust scaling synergy with larger models. The Code is available at https://github.com/nxcolelxu/IHDec.git

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 25 references that are in the map. First posted on arXiv 29 Jun 2026.

Builds on

15 of 25 references.

References · 15

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  2. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
  3. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
  4. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
  5. 2024MT-Bench-101: A Fine-Grained Benchmark for Evaluating Large Language Models in Multi-Turn Dialoguescited by 247
  6. 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 70
  7. 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchycited by 62
  8. 2025IHEval: Evaluating Language Models on Following the Instruction Hierarchycited by 48
  9. 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agentscited by 28
  10. 2025Can Language Models Follow Multiple Turns of Entangled Instructions?cited by 14
  11. 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMscited by 14
  12. 2025Reasoning Up the Instruction Ladder for Controllable Language Modelscited by 5
3 more
  1. 2025Diagnose, Localize, Align: A Full-Stack Framework for Reliable LLM Multi-Agent Systems under Instruction Conflictscited by 3
  2. 2026Steer Model beyond Assistant: Controlling System Prompt Strength via Contrastive Decodingcited by 1
  3. 2026Hierarchical Alignment: Enforcing Hierarchical Instruction-Following in LLMs through Logical Consistencycited by 1

Built on by

Not cited yet.