Lune

ICML2024Top-tier venue

Controlled Decoding from Language Models

Sidharth Mudgal, Jong Lee, Harish Ganapathy, YaGuang Li, Tao Wang, Yanping Huang, Zhifeng Chen, Heng-Tze Cheng, Michael Collins, Trevor Strohman, Jilin Chen, Alex Beutel, Ahmad Beirami

Abstract

KL-regularized reinforcement learning (RL) is a popular alignment framework to control the language model responses towards high reward outcomes. We pose a tokenwise RL objective and propose a modular solver for it, called controlled decoding (CD). CD exerts control through a separate prefix scorer module, which is trained to learn a value function for the reward. The prefix scorer is used at inference time to control the generation from a frozen base model, provably sampling from a solution to the RL objective. We empirically demonstrate that CD is effective as a control mechanism on popular benchmarks. We also show that prefix scorers for multiple rewards may be combined at inference time, effectively solving a multi-objective RL problem with no additional training. We show that the benefits of applying CD transfer to an unseen base model with no further tuning as well. Finally, we show that CD can be applied in a blockwise decoding fashion at inference-time, essentially bridging the gap between the popular best-of-K strategy and tokenwise control through reinforcement learning. This makes CD a promising approach for alignment of language models.

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.

72 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

  • Fast Best-of-N Decoding via Speculative Rejection cites Scaling Laws for Reward Model Overoptimization
  • Fast Best-of-N Decoding via Speculative Rejection cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Fast Best-of-N Decoding via Speculative Rejection cites BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling
  • Fast Best-of-N Decoding via Speculative Rejection cites Fast Inference from Transformers via Speculative Decoding
  • Fast Best-of-N Decoding via Speculative Rejection cites Training language models to follow instructions with human feedback
  • Scaling Laws for Reward Model Overoptimization cites Training language models to follow instructions with human feedback
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Neural Text Generation With Unlikelihood Training
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Decoding-Time Language Model Alignment with Multiple Objectives cites Scaling Laws for Reward Model Overoptimization
  • Decoding-Time Language Model Alignment with Multiple Objectives cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Decoding-Time Language Model Alignment with Multiple Objectives cites Training language models to follow instructions with human feedback
  • COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability cites Training language models to follow instructions with human feedback
  • Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding cites Training language models to follow instructions with human feedback
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Scaling Laws for Reward Model Overoptimization
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling 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 papers72

  1. COLD-Attack: Jailbreaking LLMs with Stealthiness and ControllabilityXingang Guo, Fangxu Yu, Huan Zhang, Lianhui Qin et al.ICML 2024 · 173 citations
  2. Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based DecodingXiner Li, Yulai Zhao, Chenyu Wang, Gabriele Scalia et al.NeurIPS 2025 · 147 citations
  3. Fast Best-of-N Decoding via Speculative RejectionHanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang et al.NeurIPS 2024 · 144 citations
  4. BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n SamplingLin Gui, Cristina Garbacea, Victor VeitchNeurIPS 2024 · 138 citations
  5. Decoding-Time Language Model Alignment with Multiple ObjectivesRuizhe Shi, Yifang Chen, Yushi Hu, Alisa Liu et al.NeurIPS 2024 · 111 citations

Builds on15

  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. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 citations
  4. Scaling Laws for Reward Model OveroptimizationLeo Gao, John Schulman, Jacob HiltonICML 2023 · 963 citations
  5. Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan et al.ICLR 2020 · 683 citations

Related papers

  1. InfAlign: Inference-aware language model alignmentAnanth Balashankar, Ziteng Sun, Jonathan Berant, Jacob Eisenstein et al.ICML 2025
  2. Collab: Controlled Decoding using Mixture of Agents for LLM AlignmentSouradip Chakraborty, Sujay Bhatt, Udari Madhushani Sehwag, Soumya Suvra Ghosal et al.ICLR 2025
  3. Variational Best-of-N AlignmentAfra Amini, Tim Vieira, Elliott Ash, Ryan CotterellICLR 2025 · 1 citation
  4. Robust Multi-Objective Controlled Decoding of Large Language ModelsSeongho Son, William Bankes, Sangwoong Yoon, Shyam Sundhar Ramesh et al.ICLR 2026 · 12 citations
  5. Critic-Guided Decoding for Controlled Text GenerationMinbeom Kim, Hwanhee Lee, Kang Min Yoo, Joonsuk Park et al.ACL Findings 2023 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines