Sample, Don't Search: Rethinking Test-Time Alignment for Language Models
On the map: LLM reasoning → Reinforcement learning for reasoning
Abstract (arXiv)
Increasing test-time computation has emerged as a promising direction for improving language model performance, particularly in scenarios where model finetuning is impractical or impossible due to computational constraints or private model weights. However, existing test-time search methods using a reward model (RM) often degrade in quality as compute scales, due to the over-optimization of what are inherently imperfect reward proxies. We introduce QAlign, a new test-time alignment approach. As we scale test-time compute, QAlign converges to sampling from the optimal aligned distribution for each individual prompt. By adopting recent advances in Markov chain Monte Carlo for text generation, our method enables better-aligned outputs without modifying the underlying model or even requiring logit access. We demonstrate the effectiveness of QAlign on mathematical reasoning benchmarks (GSM8K and GSM-Symbolic) using a task-specific RM, showing consistent improvements over existing test-time compute methods like best-of-n and majority voting. Furthermore, when applied with more realistic RMs trained on the Tulu 3 preference dataset, QAlign outperforms direct preference optimization (DPO), best-of-n, majority voting, and weighted majority voting on a diverse range of datasets (GSM8K, MATH500, IFEval, MMLU-Redux, and TruthfulQA). A practical solution to aligning language models at test time using additional computation without degradation, our approach expands the limits of the capability that can be obtained from off-the-shelf language models without further training.
Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 46 of its 83 references that are in the map. First posted on arXiv 4 Apr 2025.
Builds on
46 of 83 references.
Closest ancestors · 8
Same direction, newest first
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Training22 Nov
- 2024GLoRe: When, Where, and How to Improve LLM Reasoning via Global and Local Refinements13 Feb
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations14 Dec
- 2023Don't throw away your value model! Generating more preferable text with Value-Guided Monte-Carlo Tree Search decoding26 Sep
- 2023Let's Verify Step by Step31 May
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Model29 May
- 2022Solving math word problems with process- and outcome-based feedback25 Nov
- 2017Proximal Policy Optimization Algorithms20 Jul
Other references · 38
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
- 2022Scaling Laws for Reward Model Overoptimizationcited by 1,095
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,017
26 more
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 991
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 872
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
- 2022Self-critiquing models for assisting human evaluatorscited by 380
- 2024Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Modelscited by 290
- 2022Generating Sequences by Learning to Self-Correctcited by 277
- 2023A Survey of Reinforcement Learning from Human Feedbackcited by 264
- 2023Self-Evaluation Guided Beam Search for Reasoningcited by 196
- 2024Are We Done with MMLU?cited by 194
- 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 185
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
- 2023Platypus: Quick, Cheap, and Powerful Refinement of LLMscited by 150
- 2024Theoretical guarantees on the best-of-n alignment policycited by 124
- 2024BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Samplingcited by 121
- 2024Back to Basics: Revisiting REINFORCE Style Optimization for Learning from Human Feedback in LLMscited by 108
- 2023Shepherd: A Critic for Language Model Generationcited by 97
- 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
- 2022PEER: A Collaborative Language Modelcited by 86
- 2023Improving Code Generation by Training with Natural Language Feedbackcited by 76
- 2023It's MBR All the Way Down: Modern Generation Techniques Through the Lens of Minimum Bayes Riskcited by 51
- 2024Asymptotics of Language Model Alignmentcited by 47
- 2025How Do Large Language Monkeys Get Their Power (Laws)?cited by 43
- 2023An Empirical Study of Translation Hypothesis Ensembling with Large Language Modelscited by 16
- 2024QUEST: Quality-Aware Metropolis-Hastings Sampling for Machine Translationcited by 16
- 2024Reranking Laws for Language Generation: A Communication-Theoretic Perspectivecited by 4
Built on by
Citing papers per year: 2025: 12; 2026: 10.
22 papers.
Sort:
By area:
- 2025RewardBench 2: Advancing Reward Model Evaluationcited by 150
- 2025Scaling Test-time Compute for LLM Agentscited by 63
- 2025Security Challenges in AI Agent Deployment: Insights from a Large Scale Public Competitioncited by 24
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 21
- 2025AdaBoN: Adaptive Best-of-N Alignmentcited by 9
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systemscited by 8
- 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Surveycited by 8
- 2026Rare Event Analysis of Large Language Modelscited by 8
- 2025Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scalingcited by 4
- 2025Less Data Less Tokens: Multilingual Unification Learning for Efficient Test-Time Reasoning in LLMscited by 3
- 2026Best-of-Tails: Bridging Optimism and Pessimism in Inference-Time Alignmentcited by 3
- 2026Reliable Chain-of-Thought via Prefix Consistencycited by 3
10 more
- 2025Tree Reward-Aligned Search for TReASURe in Masked Diffusion Language Modelscited by 2
- 2025Kad: A Framework for Proxy-based Test-time Alignment with Knapsack Approximation Deferralcited by 1
- 2025STARS: Synchronous Token Alignment for Robust Supervision in Large Language Modelscited by 1
- 2026Probabilistic Programs of Thoughtcited by 1
- 2026DecompressionLM: Deterministic, Diagnostic, and Zero-Shot Concept Graph Extraction from Language Modelscited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignmentcited by 0
- 2026Multimodal Diffusion to Mutually Enhance Polarized Light and Low Resolution EBSD Datacited by 0
- 2026Gradient-Guided Reward Optimization for Inference-time Alignmentcited by 0
- 2026Best-of-Better-N: Generating Pre-Aligned Responses with In-Context Learningcited by 0
- 2026Flow-Support-Weighted Proposals for Test-Time Verified VLA Policiescited by 0
- 2026Flow-Support-Weighted Proposals for Test-Time Verified VLA Policies10 Oct 2026
- 2026Best-of-Better-N: Generating Pre-Aligned Responses with In-Context Learning3 Jul 2026
- 2026Gradient-Guided Reward Optimization for Inference-time Alignment8 Jun 2026
- 2026Reliable Chain-of-Thought via Prefix Consistency8 May 2026
- 2026Multimodal Diffusion to Mutually Enhance Polarized Light and Low Resolution EBSD Data24 Apr 2026
- 2026Probabilistic Programs of Thought19 Apr 2026
- 2026On the Rejection Criterion for Proxy-based Test-time Alignment17 Apr 2026
- 2026Best-of-Tails: Bridging Optimism and Pessimism in Inference-Time Alignment6 Mar 2026
- 2026Rare Event Analysis of Large Language Models6 Feb 2026
- 2026DecompressionLM: Deterministic, Diagnostic, and Zero-Shot Concept Graph Extraction from Language Models30 Jan 2026
- 2025Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scaling22 Dec 2025
- 2025STARS: Synchronous Token Alignment for Robust Supervision in Large Language Models5 Nov 2025
10 more
- 2025Kad: A Framework for Proxy-based Test-time Alignment with Knapsack Approximation Deferral30 Oct 2025
- 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Survey2 Oct 2025
- 2025Tree Reward-Aligned Search for TReASURe in Masked Diffusion Language Models27 Sep 2025
- 2025Security Challenges in AI Agent Deployment: Insights from a Large Scale Public Competition28 Jul 2025
- 2025Less Data Less Tokens: Multilingual Unification Learning for Efficient Test-Time Reasoning in LLMs23 Jun 2025
- 2025Scaling Test-time Compute for LLM Agents15 Jun 2025
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systems11 Jun 2025
- 2025RewardBench 2: Advancing Reward Model Evaluation2 Jun 2025
- 2025AdaBoN: Adaptive Best-of-N Alignment17 May 2025
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling7 Apr 2025
- 2025Scaling Test-time Compute for LLM Agentscited by 63
- 2025Security Challenges in AI Agent Deployment: Insights from a Large Scale Public Competitioncited by 24
- 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Surveycited by 8
- 2025Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scalingcited by 4
- 2025Less Data Less Tokens: Multilingual Unification Learning for Efficient Test-Time Reasoning in LLMscited by 3
- 2026Reliable Chain-of-Thought via Prefix Consistencycited by 3
- 2026Probabilistic Programs of Thoughtcited by 1
- 2026Reliable Chain-of-Thought via Prefix Consistency8 May 2026
- 2026Probabilistic Programs of Thought19 Apr 2026
- 2025Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scaling22 Dec 2025
- 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Survey2 Oct 2025
- 2025Security Challenges in AI Agent Deployment: Insights from a Large Scale Public Competition28 Jul 2025
- 2025Less Data Less Tokens: Multilingual Unification Learning for Efficient Test-Time Reasoning in LLMs23 Jun 2025
- 2025Scaling Test-time Compute for LLM Agents15 Jun 2025
- 2025RewardBench 2: Advancing Reward Model Evaluationcited by 150
- 2025AdaBoN: Adaptive Best-of-N Alignmentcited by 9
- 2026Best-of-Tails: Bridging Optimism and Pessimism in Inference-Time Alignmentcited by 3
- 2025STARS: Synchronous Token Alignment for Robust Supervision in Large Language Modelscited by 1
- 2026Gradient-Guided Reward Optimization for Inference-time Alignmentcited by 0
- 2026Best-of-Better-N: Generating Pre-Aligned Responses with In-Context Learningcited by 0
- 2026Best-of-Better-N: Generating Pre-Aligned Responses with In-Context Learning3 Jul 2026
- 2026Gradient-Guided Reward Optimization for Inference-time Alignment8 Jun 2026
- 2026Best-of-Tails: Bridging Optimism and Pessimism in Inference-Time Alignment6 Mar 2026
- 2025STARS: Synchronous Token Alignment for Robust Supervision in Large Language Models5 Nov 2025
- 2025RewardBench 2: Advancing Reward Model Evaluation2 Jun 2025
- 2025AdaBoN: Adaptive Best-of-N Alignment17 May 2025
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 21
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systemscited by 8
- 2026Rare Event Analysis of Large Language Modelscited by 8
- 2025Kad: A Framework for Proxy-based Test-time Alignment with Knapsack Approximation Deferralcited by 1
- 2026DecompressionLM: Deterministic, Diagnostic, and Zero-Shot Concept Graph Extraction from Language Modelscited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignmentcited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignment17 Apr 2026
- 2026Rare Event Analysis of Large Language Models6 Feb 2026
- 2026DecompressionLM: Deterministic, Diagnostic, and Zero-Shot Concept Graph Extraction from Language Models30 Jan 2026
- 2025Kad: A Framework for Proxy-based Test-time Alignment with Knapsack Approximation Deferral30 Oct 2025
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systems11 Jun 2025
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling7 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Reward-Shifted Speculative Sampling Is An Efficient Test-Time Weak-to-Strong Aligner
- 2024Inference Time Alignment with Reward-Guided Tree Search
- 2024GenARM: Reward Guided Generation with Autoregressive Reward Model for Test-time Alignment
- 2026REAR: Test-time Preference Realignment through Reward Decomposition
- 2026Revisiting the (Sub)Optimality of Best-of-N for Inference-Time Alignment
- 2025Test-time reward-guided alignment of language models by importance sampling on pre-logit space
- 2025Test-Time Preference Optimization: On-the-Fly Alignment via Iterative Textual Feedback
- 2025Is Best-of-N the Best of Them? Coverage, Scaling, and Optimality in Inference-Time Alignment