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

Nicole Geumheon Liu, Haeun Jang, Yonghyun Jun, Hwanhee Lee


Abstract
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.
Anthology ID:
2026.findings-emnlp.1751
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
37459–37478
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.1751/
DOI:
Bibkey:
Cite (ACL):
Nicole Geumheon Liu, Haeun Jang, Yonghyun Jun, and Hwanhee Lee. 2026. IHDec: Divergence-Steered Contrastive Decoding for Securing Multi-Turn Instruction Hierarchies. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 37459–37478, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
IHDec: Divergence-Steered Contrastive Decoding for Securing Multi-Turn Instruction Hierarchies (Liu et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.1751.pdf