atlas

Research map / Large language models / Reasoning and chain of thought

On the Query Complexity of Verifier-Assisted Language Generation

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Test-time compute scaling · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Develops a theoretical query-complexity framework for verifier-assisted constrained generation and proposes tokenwise rejection sampling with backtracking, which reduces CodeLlama/Dyck generation errors while cutting queries.

Problem

Verifier-assisted inference-time generation (e.g. best-of-n, process-verifier guided decoding) lacks a principled understanding of when verifiers make constrained generation tractable and how to design query-efficient algorithms.

Approach

Formalizes constrained generation with an autoregressive oracle and a process verifier that decides prefix completability, shows hardness without a verifier versus easy generation with one, and proposes tokenwise rejection sampling augmented with backtracking (erase last B tokens, regenerate with argmax, up to Q times).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add tokenwise backtracking with Q=4, B=4 and a trained verifierCodeLlama-7B test-case generation · Python append test casesAcc_distinct: 0.660 ± 0.042 -> 0.714 ± 0.011Helped
Add tokenwise backtracking with Q=4, B=4Dyck-trained Transformer · Dyck OOD unseen prompts, top_p=0.9completion errors: 240.0 ± 5.177 -> 179.4 ± 1.020Helped
Add tokenwise backtracking with Q=4, B=4Dyck-trained Transformer · Dyck OOD unseen prompts, top_p=1.0completion errors: 461.8 ± 8.304 -> 200.0 ± 3.225Helped
Use a perfect process verifier with tokenwise rejection sampling instead of full-string rejection samplingConstrained generation of 0^D from uniform binary strings · Uniform binary strings; target 0^Dexpected oracle calls: 2^D D -> 2 DHelped
Use layer 27 verifier representations instead of layer 31 (ablation)Tokenwise rejection sampling with backtracking on CodeLlama-7B · Python append test casesAcc_distinct: 0.688 ± 0.028 -> 0.714 ± 0.011Helped
Use error prediction threshold 0.1 instead of 0.5 (ablation)Tokenwise rejection sampling with backtracking on CodeLlama-7B · Python append test cases, top_p=0.95 and temperature=1.0Acc_distinct: 0.676 ± 0.019 -> 0.714 ± 0.011Helped
Use a 1-layer verifier instead of a 4-layer verifier (ablation)Tokenwise rejection sampling with backtracking on CodeLlama-7B · Python append test casesAcc_distinct: 0.699 ± 0.038 -> 0.714 ± 0.011Helped
Replace the trained verifier with a random verifier (ablation)Tokenwise rejection sampling with backtracking on CodeLlama-7B · Python append test casesAcc_distinct: 0.714 ± 0.011 -> 0.663 ± 0.027Hurt
Increase backtrack quota Q from 4 to 10 (ablation)Tokenwise rejection sampling with a trained verifier on CodeLlama-7B · Python append test casesAcc_distinct: 0.714 ± 0.011 -> 0.692 ± 0.025Hurt
Increase backtrack stride B from 4 to 10 (ablation)Tokenwise rejection sampling with a trained verifier on CodeLlama-7B · Python append test casesAcc_distinct: 0.714 ± 0.011 -> 0.622 ± 0.046Hurt
Increase backtrack stride B from 0 to 8 at an error-inducing prefix (ablation)Dyck-trained Transformer · Dyck OOD error-inducing prefixesaccuracy: 0.331 -> 0.790Helped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Dyck grammar data generated Python append test-case prompts

Benchmarks: Dyck OOD prompts (in-house) Python list append test-case generation (in-house)

Metrics: accuracy distinct correct test cases (Acc_distinct) query complexity diversity

Baselines: rejection sampling nucleus sampling temperature scaling block best-of-n greedy argmax decoding

Builds on: best-of-n nucleus sampling rejection sampling process reward models

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy