Token-Aware Editing of Internal Activations for Large Language Model Alignment
Tianbo Wang, Yuqing Ma, Kewei Liao, Chengzhao Yang, Zhange Zhang, Jiakai Wang, Xianglong Liu
Abstract
Intervening the internal activations of large language models (LLMs) provides an effective inference-time alignment approach to mitigate undesirable behaviors, such as generating erroneous or harmful content, thereby ensuring safe and reliable applications of LLMs.However, previous methods neglect the misalignment discrepancy among varied tokens, resulting in deviant alignment direction and inflexible editing strength.To address these issues, we propose a token-aware editing (TAE) approach to fully utilize token-level alignment information in the activation space, therefore realizing superior post-intervention performance.Specifically, a Mutual Information-guided Graph Aggregation (MIG) module first develops an MI-guided graph to exploit the tokens' informative interaction for activation enrichment, thus improving alignment probing and facilitating intervention.Subsequently, Misalignment-aware Adaptive Intervention (MAI) comprehensively perceives the token-level misalignment degree from token representation and prediction to guide the adaptive adjustment of editing strength, thereby enhancing final alignment performance.Extensive experiments on three alignment capabilities demonstrate the efficacy of TAE, notably surpassing baseline by 25.8% on the primary metric of truthfulness with minimal cost. 1 MHSA FFN + +Q: What is the capital of UK?
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Query-Routed Activation Editing with Truth-hierarchical Preference Optimization cites TruthfulQA: Measuring How Models Mimic Human Falsehoods
- Query-Routed Activation Editing with Truth-hierarchical Preference Optimization cites DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models
- TruthfulQA: Measuring How Models Mimic Human Falsehoods cites Queens are Powerful too: Mitigating Gender Bias in Dialogue Generation
- DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models cites SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models
- DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models cites TruthfulQA: Measuring How Models Mimic Human Falsehoods
- HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models cites SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models
Cited by top-tier papers2
- Query-Routed Activation Editing with Truth-hierarchical Preference OptimizationKewei Liao, Tianbo Wang, Yuqing Ma, Zhange Zhang et al.AAAI 2026 · 1 citation
- MEDA: Medical-Oriented Activation Editing for Hallucination Mitigation in Medical Large Vision-Language ModelTianbo Wang, Yuqing Ma, Lingyan Meng, Zhange Zhang et al.ICML 2026
Builds on9
- TruthfulQA: Measuring How Models Mimic Human FalsehoodsStephanie Lin, Jacob Hilton, Owain EvansACL 2022 · 3,228 citations
- DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language ModelsYung-Sung Chuang, Yujia Xie, Hongyin Luo, Yoon Kim et al.ICLR 2024 · 354 citations
- SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language ModelsPotsawee Manakul, Adian Liusie, Mark J. F. GalesEMNLP 2023 · 331 citations
- HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language ModelsJunyi Li, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie et al.EMNLP 2023 · 224 citations
- Queens are Powerful too: Mitigating Gender Bias in Dialogue GenerationEmily Dinan, Angela Fan, Adina Williams, Jack Urbanek et al.EMNLP 2020 · 14 citations
Related papers
- Spectral Editing of Activations for Large Language Model AlignmentYifu Qiu, Zheng Zhao, Yftah Ziser, Anna Korhonen et al.NeurIPS 2024 · 66 citations
- EAMET: Robust Massive Model Editing via Embedding Alignment OptimizationYanbo Dai, Zhenlan Ji, Zongjie Li, Shuai WangICLR 2026
- Constructing Your Model's Value Distinction: Towards LLM Alignment with Anchor Words TuningZhen Yang, Ping Jian, Chengzhi Li, Chenxu Wang et al.EMNLP Findings 2025 · 1 citation
- Differentially Private Steering for Large Language Model AlignmentAnmol Goel, Yaxi Hu, Iryna Gurevych, Amartya SanyalICLR 2025
- HyperEdit: Mitigating Hallucinations of Large Language Models via Hyperbolic Representation EditingTongxu Lin, Junping Du, Zhe Xue, Meiyu Liang et al.KDD 2026
