Aligning Large Language Models with Representation Editing: A Control Perspective
Lingkai Kong, Haorui Wang, Wenhao Mu, Yuanqi Du, Yuchen Zhuang, Yifei Zhou, Yue Song, Rongzhi Zhang, Kai Wang, Chao Zhang
Abstract
Aligning large language models (LLMs) with human objectives is crucial for real-world applications. However, fine-tuning LLMs for alignment often suffers from unstable training and requires substantial computing resources. Test-time alignment techniques, such as prompting and guided decoding, do not modify the underlying model, and their performance remains dependent on the original model's capabilities. To address these challenges, we propose aligning LLMs through representation editing. The core of our method is to view a pre-trained autoregressive LLM as a discrete-time stochastic dynamical system. To achieve alignment for specific objectives, we introduce external control signals into the state space of this language dynamical system. We train a value function directly on the hidden states according to the Bellman equation, enabling gradient-based optimization to obtain the optimal control signals at test time. Our experiments demonstrate that our method outperforms existing test-time alignment techniques while requiring significantly fewer resources compared to fine-tuning methods. Our code is available at https://github.com/Lingkai-Kong/RE-Control.
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.
26 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
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing cites Language Models are Few-Shot Learners
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing cites Training language models to follow instructions with human feedback
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Language Models are Few-Shot Learners
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
- Inference-Time Intervention: Eliciting Truthful Answers from a Language Model cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Inference-Time Intervention: Eliciting Truthful Answers from a Language Model cites Language Models are Few-Shot Learners
- Inference-Time Intervention: Eliciting Truthful Answers from a Language Model cites Training language models to follow instructions with human feedback
- Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons cites Training language models to follow instructions with human feedback
- Robust Multi-Objective Controlled Decoding of Large Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Robust Multi-Objective Controlled Decoding of Large Language Models cites Training language models to follow instructions with human feedback
- ODESteer: A Unified ODE-Based Steering Framework for LLM Alignment cites Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
- Training language models to follow instructions with human feedback cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Training language models to follow instructions with human feedback cites Language Models are Few-Shot Learners
- Activation Steering with a Feedback Controller cites Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
- Activation Steering with a Feedback Controller cites Training language models to follow instructions with human feedback
Cited by top-tier papers26
- Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety NeuronsJianhui Chen, Xiaozhi Wang, Zijun Yao, Yushi Bai et al.NeurIPS 2025 · 53 citations
- ODESteer: A Unified ODE-Based Steering Framework for LLM AlignmentHongjue Zhao, Haosen Sun, Jiangtao Kong, Xiaochang Li et al.ICLR 2026 · 16 citations
- Activation Steering with a Feedback ControllerDung Viet Nguyen, Yen Nhi Pham, Hieu M. Vu, Lei Zhang et al.ICLR 2026 · 13 citations
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation EditingYisong Xiao, Aishan Liu, Siyuan Liang, Zonghao Ying et al.NeurIPS 2025 · 12 citations
- Robust Multi-Objective Controlled Decoding of Large Language ModelsSeongho Son, William Bankes, Sangwoong Yoon, Shyam Sundhar Ramesh et al.ICLR 2026 · 12 citations
Builds on25
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
- Inference-Time Intervention: Eliciting Truthful Answers from a Language ModelKenneth Li, Oam Patel, Fernanda B. Viégas, Hanspeter Pfister et al.NeurIPS 2023 · 1,549 citations
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations
Related papers
- MEAV: Model Editing with Alignment Vectors for inference time LLM alignment in single and multidomain preference spectrumSadat Shahriar, Zheng Qi, Nikolaos Pappas, Srikanth Doss et al.ACL Findings 2026 · 1 citation
- REAR: Test-time Preference Realignment through Reward DecompositionFuxiang Zhang, Pengcheng Wang, Chenran Li, Yi-Chen Li et al.ICML 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
- DeAL: Decoding-time Alignment for Large Language ModelsJames Y. Huang, Sailik Sengupta, Daniele Bonadiman, Yi-An Lai et al.ACL 2025
- Topology-Enhanced Alignment for Large Language Models: Trajectory Topology Loss and Topological Preference OptimizationYurui Pan, Ke Xu, Bo PengACL Findings 2026
