analiza aiqbench
This research addresses a critical failure mode in Large Language Models where subordinate inputs override superior instructions during multi-turn interactions, a phenomenon known as role-influence inversion. The proposed IHDec framework utilizes Jensen-Shannon Divergence to detect these violations and applies contrastive decoding to enforce hierarchy without requiring expensive fine-tuning. By effectively suppressing misaligned roles while preserving general response quality, this method significantly enhances the robustness of LLMs against adversarial prompt injections in complex, multi-source scenarios.
IHDec: Divergence-Steered Contrastive Decoding for Securing Multi-Turn Instruction Hierarchies
arXiv:2606.29960v2 Announce Type: replace 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. The Code is available at https://github.com/nxcolelxu/IHDec.git
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. The Code is available at this https URL
Computation and Language (cs.CL)
arXiv:2606.29960 [cs.CL]
(or arXiv:2606.29960v2 [cs.CL] for this version)
https://doi.org/10.48550/arXiv.2606.29960 Focus to learn more arXiv-issued DOI via DataCite
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Text integral sub licența deschisă a publicației · 237 cuvinte
Subiecte conexe

[AINews] not much happened today
Latent Space · 3 oct. 2026
Does Your LLM Trust You?
LessWrong · 4 aug. 2026
State of the Field: AI for Epistemics and Coordination
LessWrong · 2 oct. 2026
AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs
arXiv · 27 aug. 2026