Structure vs. Chaos: Asymmetric Entropic Optimization for Enforcing Instruction Hierarchy
Tianxiao Huang, Xinwei Liu, Zitong Shi, Yuxin Wu, Xuan Chen, Liangtao Zheng, Yixuan Tang, Anthony Tung
NeurIPS page · OpenReview · Open on the map
Category: AI Safety, Security & Alignment › Adversarial Attacks on Agents · Type: new method · Keywords: instruction injection, LLM hidden-state dynamics, asymmetric logic, entropic optimization, robustness
Areas: Safety & Security › Language Model Security › Prompt Injection and Resource Attacks
Summary
The paper introduces Asymmetric Entropic Optimization (AEO), a framework that monitors LLM hidden-state entropy shifts to detect and correct instruction injection attacks.
Explained to a 5-year-old
Some computers that talk (LLMs) can be tricked by people giving them bad instructions. When they follow the good instructions, they act in a very calm and predictable way. When they are tricked, they act in a very confused and unpredictable way. The researchers noticed this difference and built a system that watches how confused the computer gets. This system helps stop the bad instructions and makes the computer follow the good ones again.
Explained to a 5-year-old, longer
Large language models are computer programs that can talk and write like people. When they are used as helpers or agents, they have important rules called system prompts. Sometimes someone can give them a sneaky instruction that makes them break those rules. This is called prompt-based instruction injection, and it can cause the model to say things it shouldn't. Existing ways to stop this often look at the words themselves, but attackers can change their tricks. The researchers looked inside the model and saw that when it follows the good rules, its internal thinking stays calm and stable. When it is tricked, its internal thinking becomes very chaotic and unpredictable. They called this difference "asymmetric logic" because the two states behave very differently. Based on this observation, they created a new method that watches how the model's internal chaos changes. The method measures how much the chaotic behavior differs from the calm, correct behavior. This measurement helps detect when the model is being tricked. It also lets a simple correction step fix the model's answer so it follows the right rules again.
For a technical reader
The paper observes that compliant LLM hidden states occupy a low-entropy manifold while compromised states exhibit high variability. Leveraging this, the authors propose Asymmetric Entropic Optimization (AEO), which computes an entropic divergence score between the two regimes to flag anomalies. This score also drives a lightweight post-hoc correction module that re-aligns the model’s output without any fine-tuning. Evaluations on Qwen2.5-14B-Instruct and the IHEval benchmark show detection AUC of 97.28% with an FPR95 of 10.38% and lift instruction-following accuracy from 63.94% to 76.00%. The approach provides a parameter-efficient, black-box defense that can be deployed on existing LLM services to mitigate instruction injection attacks.
Problem
Large language models deployed as agents can be coerced by prompt-based instruction injection to violate higher-priority system directives, and existing detection methods often rely on surface patterns that may not generalize.
Method
The approach monitors internal shifts in latent representations, quantifying entropic divergence between a compliant manifold and a chaotic violation space to detect anomalies, and uses this chaos score to gate a lightweight post-hoc correction module.
Results
The approach achieves a detection AUC of 97.28% with an FPR95 of 10.38% on Qwen2.5-14B-Instruct, and improves instruction-following accuracy from 63.94% to 76.00% on IHEval using a post-hoc correction module.
Contributions
The paper reveals Asymmetric Logic in LLM hidden-state dynamics under attack, proposes a framework that leverages entropic divergence for detection and correction, and demonstrates strong robustness across multiple LLM backbones without model fine-tuning.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction