Structure vs. Chaos: Asymmetric Entropic Optimization for Enforcing Instruction Hierarchy
Zitong Shi ⋅ Tianxiao Huang ⋅ Xinwei Liu ⋅ Yuxin Wu ⋅ Xuan Chen ⋅ Liangtao Zheng ⋅ Yixuan Tang ⋅ Anthony Tung
Abstract
Large language models (LLMs) deployed as agents remain vulnerable to instruction injection, where user inputs induce the model to violate higher-priority system directives. Existing methods often treat violations as a coherent class or rely on surface text patterns, which limits robustness as attack strategies evolve. In this paper, we investigate LLM internal-state dynamics under attack and uncover a phenomenon we term $\textit{Asymmetric Logic}$: the model's internal representations concentrate in a low-variability region of the latent space when it complies with the system prompt, while compromised behaviors exhibit diverse high-entropy deviations. Based on this observation, we propose $\textbf{Asymmetric Entropic Optimization (AEO)}$, a lightweight framework that monitors entropic shifts in latent representations to detect and proactively rectify anomalous behaviors. In our main IHEval setting, the detector learns generic instruction-violation signals rather than attack-family-specific templates. Across state-of-the-art LLM backbones, AEO demonstrates strong robustness to diverse instruction injection attacks: on Qwen2.5-14B-Instruct, it attains 97.28\% detection AUC with only 10.38\% FPR95. The same chaos score also gates a zero-shot post-hoc correction module that lifts overall instruction-following accuracy from 63.94\% to 76.00\% on IHEval, without model fine-tuning.
Successful Page Load