On the Query Complexity of Verifier-Assisted Language Generation
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Recently, a plethora of works have proposed inference-time algorithms (e.g. best-of-n), which incorporate verifiers to assist the generation process. Their quality-efficiency trade-offs have been empirically benchmarked on a variety of constrained generation tasks, but the algorithmic design landscape is still largely poorly understood. In this paper, we develop a mathematical framework for reasoning about constrained generation using a pre-trained language model generator oracle and a process verifier--which can decide whether a prefix can be extended to a string which satisfies the constraints of choice. We show that even in very simple settings, access to a verifier can render an intractable problem (information-theoretically or computationally) to a tractable one. In fact, we show even simple algorithms, like tokenwise rejection sampling, can enjoy significant benefits from access to a verifier. Empirically, we show that a natural modification of tokenwise rejection sampling, in which the sampler is allowed to "backtrack" (i.e., erase the final few generated tokens) has robust and substantive benefits over natural baselines (e.g. (blockwise) rejection sampling, nucleus sampling)--both in terms of computational efficiency, accuracy and diversity.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 49 of its 72 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
49 of 72 references.
Closest ancestors · 3
Same direction, newest first
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters6 Aug
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Models17 May
- 2023Self-Evaluation Guided Beam Search for Reasoning1 May
Other references · 46
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Let's Verify Step by Stepcited by 3,789
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 928
- 2022Solving math word problems with process- and outcome-based feedbackcited by 901
34 more
- 2023Reasoning with Language Model is Planning with World Modelcited by 861
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
- 2022Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptionscited by 445
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2020Generative Language Modeling for Automated Theorem Provingcited by 388
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 106
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 102
- 2021The Efficiency Misnomercited by 98
- 2022Vision Transformers provably learn spatial structurecited by 93
- 2024Probabilistic Inference in Language Models via Twisted Sequential Monte Carlocited by 90
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 75
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
- 2023Don't throw away your value model! Generating more preferable text with Value-Guided Monte-Carlo Tree Search decodingcited by 60
- 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
- 2020How Can Self-Attention Networks Recognize Dyck-n Languages?cited by 51
- 2023Do Transformers Parse while Predicting the Masked Word?cited by 48
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detectioncited by 45
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
- 2023Butterfly Effects of SGD Noise: Error Amplification in Behavior Cloning and Autoregressioncited by 14
- 2020On the Dynamics of Training Attention Modelscited by 8
- 2024Promises and Pitfalls of Generative Masked Language Modeling: Theoretical Framework and Practical Guidelinescited by 6
- 2021The Limitations of Limited Context for Constituency Parsingcited by 5
Built on by
Citing papers per year: 2025: 4; 2026: 8.
12 papers.
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 21
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigmscited by 12
- 2026Verifier-Constrained Flow Expansion for Discovery Beyond the Datacited by 7
- 2025On Learning Verifiers and Implications to Chain-of-Thought Reasoningcited by 6
- 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inferencecited by 3
- 2026Flood and Harvest: The Provable Necessity of Trivia for Generating Valuable Mathematics via the Lens of Language Generation in the Limitcited by 2
- 2026Why Agentic Theorem Prover Works: A Statistical Provability Theory of Mathematical Reasoning Modelscited by 1
- 2026Exponential Sample Complexity Separation between Flat and Hierarchical Agentic Theorem Proverscited by 0
- 2026Caterpillar of Thoughts: The Optimal Test-Time Algorithm for Large Language Modelscited by 0
- 2026The Role of Generator Access in Autoregressive Post-Trainingcited by 0
- 2026Harnessing LLMs as Agents: What Does It Cost?cited by 0
- 2026Harnessing LLMs as Agents: What Does It Cost?1 Oct 2026
- 2026Flood and Harvest: The Provable Necessity of Trivia for Generating Valuable Mathematics via the Lens of Language Generation in the Limit12 Jun 2026
- 2026The Role of Generator Access in Autoregressive Post-Training6 Apr 2026
- 2026Caterpillar of Thoughts: The Optimal Test-Time Algorithm for Large Language Models24 Mar 2026
- 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inference9 Mar 2026
- 2026Verifier-Constrained Flow Expansion for Discovery Beyond the Data17 Feb 2026
- 2026Why Agentic Theorem Prover Works: A Statistical Provability Theory of Mathematical Reasoning Models11 Feb 2026
- 2026Exponential Sample Complexity Separation between Flat and Hierarchical Agentic Theorem Provers11 Feb 2026
- 2025Sample Complexity and Representation Ability of Test-time Scaling Paradigms5 Jun 2025
- 2025On Learning Verifiers and Implications to Chain-of-Thought Reasoning28 May 2025
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling7 Apr 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Taming Imperfect Process Verifiers: A Sampling Perspective on Backtracking
- 2025Lightweight Latent Verifiers for Efficient Meta-Generation Strategies
- 2025Variation in Verification: Understanding Verification Dynamics in Large Language Models
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Search
- 2026Thinking Before Constraining: A Unified Decoding Framework for Large Language Models
- 2025Test-Time Scaling with Repeated Sampling Improves Multilingual Text Generation
- 2026Adaptive Generate-Rank-Verify: Inference-Time Search with Costly Verification
- 2026Know When To Fold 'Em: Token-Efficient LLM Synthetic Data Generation via Multi-Stage In-Flight Rejection