Lune

ICLR2025Top-tier venue

On-the-fly Preference Alignment via Principle-Guided Decoding

Mingye Zhu, Yi Liu, Lei Zhang, Junbo Guo, Zhendong Mao

Abstract

With the rapidly expanding landscape of large language models, aligning model generations with human values and preferences is becoming increasingly important. Popular alignment methods, such as Reinforcement Learning from Human Feedback, have shown significant success in guiding models with greater control. However, these methods require considerable computational resources, which is inefficient, and substantial collection of training data to accommodate the diverse and pluralistic nature of human preferences, which is impractical. These limitations significantly constrain the scope and efficacy of both task-specific and general preference alignment methods. In this work, we introduce On-the-fly Preference Alignment via Principle-Guided Decoding (OPAD) to directly align model outputs with human preferences during inference, eliminating the need for fine-tuning. Our approach involves first curating a surrogate solution to an otherwise infeasible optimization problem and then designing a principle-guided reward function based on this surrogate. The final aligned policy is derived by maximizing this customized reward, which exploits the discrepancy between the constrained policy and its unconstrained counterpart. OPAD directly modifies the model's predictions during inference, ensuring principle adherence without incurring the computational overhead of retraining or fine-tuning. Experiments show that OPAD achieves competitive or superior performance in both general and personalized alignment tasks, demonstrating its efficiency and effectiveness compared to state-of-the-art baselines. 1

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.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LifeAlign: Lifelong Alignment for Large Language Models with Memory-Augmented Focalized Preference Optimization cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Leveraging Importance Sampling to Detach Alignment Modules from Large Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Leveraging Importance Sampling to Detach Alignment Modules from Large Language Models cites The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning
  • Leveraging Importance Sampling to Detach Alignment Modules from Large Language Models cites Residual Energy-Based Models for Text Generation
  • Leveraging Importance Sampling to Detach Alignment Modules from Large Language Models cites Training language models to follow instructions with human feedback
  • Safety Alignment of Large Language Models via Contrasting Safe and Harmful Distributions cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Safety Alignment of Large Language Models via Contrasting Safe and Harmful Distributions cites RAIN: Your Language Models Can Align Themselves without Finetuning
  • The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning cites Training language models to follow instructions with human feedback
  • The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning cites RAIN: Your Language Models Can Align Themselves without Finetuning
  • Inference-Time Personalized Alignment with a Few User Preference Queries cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Inference-Time Personalized Alignment with a Few User Preference Queries cites The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning
  • Inference-Time Personalized Alignment with a Few User Preference Queries cites Training language models to follow instructions with human feedback
  • RAIN: Your Language Models Can Align Themselves without Finetuning cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • RAIN: Your Language Models Can Align Themselves without Finetuning cites Training language models to follow instructions with human feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Inference-Time Personalized Alignment with a Few User Preference QueriesVictor-Alexandru Padurean, Parameswaran Kamalaruban, Nachiket Kotalwar, Alkis Gotovos et al.NeurIPS 2025 · 5 citations
  2. Safety Alignment of Large Language Models via Contrasting Safe and Harmful DistributionsXiaoyun Zhang, Zhengyue Zhao, Wenxuan Shi, Kaidi Xu et al.AAAI 2026 · 4 citations
  3. LifeAlign: Lifelong Alignment for Large Language Models with Memory-Augmented Focalized Preference OptimizationJunsong Li, Jie Zhou, Bihao Zhan, Yutao Yang et al.AAAI 2026 · 3 citations
  4. Enhancing Persona Following at Decoding Time via Dynamic Importance Estimation for Role-Playing AgentsYuxin Liu, Mingye Zhu, Siyuan Liu, Bo Hu et al.ICLR 2026 · 2 citations
  5. Leveraging Importance Sampling to Detach Alignment Modules from Large Language ModelsYi Liu, Dianqing Liu, Mingye Zhu, Junbo Guo et al.NeurIPS 2025 · 1 citation

Builds on13

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. 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
  3. The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context LearningBill Yuchen Lin, Abhilasha Ravichander, Ximing Lu, Nouha Dziri et al.ICLR 2024 · 299 citations
  4. RAIN: Your Language Models Can Align Themselves without FinetuningYuhui Li, Fangyun Wei, Jinjing Zhao, Chao Zhang et al.ICLR 2024 · 171 citations
  5. Residual Energy-Based Models for Text GenerationYuntian Deng, Anton Bakhtin, Myle Ott, Arthur Szlam et al.ICLR 2020 · 147 citations

Related papers

  1. Alignment-Aware DecodingFrédéric Berdoz, Luca Lanzendörfer, René Caky, Roger WattenhoferICML 2026 · 1 citation
  2. PAD: Personalized Alignment of LLMs at Decoding-timeRuizhe Chen, Xiaotian Zhang, Meng Luo, Wenhao Chai et al.ICLR 2025
  3. ActiveDPO: Active Direct Preference Optimization for Sample-Efficient AlignmentXiaoqiang Lin, Arun Verma, Zhongxiang Dai, Daniela Rus et al.ICLR 2026 · 12 citations
  4. Self-Guided Alignment: Adaptive Preference Sensing for Multi-Objective GenerationNing Wang, Zhanyang Liu, Taotao Zhou, Xinrui Zhang et al.ACL 2026
  5. Fast Best-of-N Decoding via Speculative RejectionHanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang et al.NeurIPS 2024 · 144 citations
Dusk over the sea between two cliffs drawn in fine vertical lines