HyperAIHyperAI

Command Palette

Search for a command to run...

오류 위치 추정을 통한 테스트 시점 스케일링

Rajiv Shailesh Chitale Rahul Madhavan Taneesh Gupta Deepanway Ghosal Aravindan Raghuveer

초록

추론 시점 컴퓨팅을 확장하는 것은 복잡한 추론 및 프로그래밍 과제에서 대규모 언어 모델의 성능을 향상시키는 신뢰할 수 있는 방법으로 부상했다. 그러나 독립적 샘플링이나 순차적 다중 턴 개선과 같은 표준 접근법은 토큰 수준의 기여도 평가 없이 작동하여, 유효한 추론 접두사가 빈번히 폐기되므로 계산 효율성이 떨어진다. 본 연구에서는 고정된 피드백 또는 환경 피드백을 활용하여 토큰 수준의 오류 위치 추정을 수행하는 추론 시점 알고리즘인 TTEL(Test-Time Scaling via Error Localization)을 소개한다. TTEL은 정보가 제공된 피드백 하에서의 조건부 확률을 무정보 기반선과 비교함으로써 오류가 발생한 단계를 식별한다. 그런 다음 알고리즘은 궤적을 절단하고 새로운 생성을 분기하여 유효한 접두사를 최대한 재사용한다. 광범위한 평가 결과, TTEL은 pass-at-k 대비 생성 토큰 비용으로 측정했을 때 순차적 추론 영역 전반에 걸쳐 엄격히 우세한 파레토 최적 경계를 구축함을 입증한다. LiveCodeBench에서 Qwen3-8B를 사용했을 때, TTEL은 독립적 샘플링(735.0k 토큰) 대비 약 절반의 토큰(360.4k)만 생성하면서 71.0%의 pass@64를 달성한다. 수학 벤치마크인 AIME-2025와 HMMT-2025로 일반화했을 때, TTEL은 Qwen3-8B와 Qwen3-4B-Thinking-2507 모두에서 경쟁 테스트 시점 기반선을 깔끔하게 능가한다.

One-sentence Summary

Google DeepMind proposes Test-Time Scaling via Error Localization (TTEL), an inference-time algorithm that performs token-level error localization by comparing conditional probabilities under informed feedback against a null-context baseline to isolate errors, truncate trajectories, and branch new generations while maximally reusing valid prefixes, thereby establishing dominating Pareto frontiers on sequential reasoning benchmarks including LiveCodeBench, AIME-2025, and HMMT-2025 with models such as Qwen3-8B, where it achieves a pass@64\text{pass}@64pass@64 of 71.0%71.0\%71.0% while generating approximately half as many tokens as independent sampling.

Key Contributions

  • TTEL performs token-level error localization by comparing conditional probabilities under informed feedback against a null-context baseline, isolating the step at which an error occurred.
  • By truncating and branching only the faulty suffix, TTEL maximizes reuse of valid reasoning prefixes and eliminates redundant exploration.
  • On LiveCodeBench, TTEL with Qwen3-8B attains pass@64 of 71.0% at roughly half the token cost of independent sampling, and it cleanly outperforms competing test-time baselines on AIME-2025 and HMMT-2025 with both Qwen3-8B and Qwen3-4B-Thinking-2507.

Introduction

Scaling inference-time compute improves large language model performance on complex reasoning tasks, but the dominant best-of-K strategy is inefficient: it generates independent samples without learning from prior failures, leading to redundant exploration. Sequential refinement attempts to use environmental feedback, yet models often repeat errors or fail to pinpoint where reasoning diverged. The core problem is that feedback is trajectory-conditional, informative about a specific failed path, but existing methods treat it as a global revision signal or rely on coarse, heuristic-driven search that lacks fine-grained error localization.

The authors propose TTEL, an inference-time search algorithm that performs token-level credit assignment without gradient updates. When a solution fails, TTEL uses prompt log-probability contrasts between informed and non-diagnostic feedback to identify positions of maximal disagreement, localizing the highest-confidence error. It then truncates the reasoning trace at that point and branches a new generation from the retained valid prefix. This feedback-guided tree search reuses correct reasoning segments and directs computation toward correcting specific mistakes, achieving substantially higher token efficiency than standard sampling across competitive programming and mathematical reasoning benchmarks.

Method

The authors propose TTEL, a token-level test-time search algorithm that operates on a single pre-trained language model serving as both generator and evaluator. The core idea is to repurpose the token-level divergence signal used in self-distillation training, not for weight updates, but to dynamically prune and branch an inference-time search tree. The method proceeds in two stages: detecting and filtering token-level error signals, and using those signals to guide a branching strategy over candidate solutions.

In the first stage, spike detection and filtering, the model generates a candidate trajectory under standard autoregressive decoding and records the student token probabilities. The same trajectory is then re-scored in a feedback-augmented context to obtain teacher token probabilities, where the feedback typically contains environment-derived information such as compiler errors or failing test cases. A raw feedback-conditioned spike is defined as the difference between the student and teacher probabilities at each token position. A large positive spike indicates that, after observing the feedback, the model assigns substantially lower probability to its original token choice.

However, raw spikes can conflate genuine semantic re-evaluation with generic probability shifts caused by appending any text to the context window. To isolate feedback-specific disagreement, the authors introduce a null feedback string containing a non-diagnostic instruction. The same trajectory is re-scored under this null feedback to compute baseline token probabilities and a corresponding baseline spike. The filtered spike score is then defined as the difference between the raw spike and the baseline spike, effectively subtracting out context-induced shifts that also arise under non-diagnostic feedback. Token positions are retained only if the teacher spike exceeds a threshold while the null-feedback spike remains below a separate threshold, yielding a localized error set that captures positions where the model exhibits feedback-specific disagreement.

In the second stage, search and branching, the algorithm selects the branch point as the token with the strongest filtered spike score within the localized error set. The search tree truncates the failed trajectory at one position before this branch point and launches a new generation from the retained prefix. This mechanism reuses the portion of the trajectory that precedes the strongest localized error signal, rather than discarding the full generation. When the localized error set is empty, indicating that the available feedback does not localize any actionable token-level error, the algorithm performs a restart from the original prompt.

The full TTEL procedure maintains a search tree whose root corresponds to the empty prefix. At each iteration, a leaf prefix is selected and a full candidate continuation is generated. The execution environment returns feedback for re-scoring and subsequent regeneration. Spike detection proceeds by re-scoring under both the actual feedback and the null feedback, constructing the localized error set from token positions whose probability drops sharply under true feedback but not under null feedback. If the set is nonempty, the branch point with maximum filtered spike score is selected and the retained prefix is added to the tree for subsequent generation. Otherwise, the empty prefix is added back to encourage continued exploration. The procedure repeats until an inference-time budget is exhausted, and the generated candidate set is returned for evaluation.

A theoretical analysis formalizes the branching advantage over standard sequential restart. Under an autoregressive prefix consistency assumption, the success rate of branching equals the success rate of restart conditioned on recovering the anchor prefix. The theorem shows that branching strictly improves over restart as long as success is more likely once the correct prefix is reached, because a restart strategy may never naturally return to the necessary intermediate state, rendering trajectory-conditional feedback useless.

Experiment

The experimental framework evaluates TTEL on multi-step mathematical reasoning and code generation benchmarks, comparing it against independent sampling, multi-turn refinement, and recursive self-aggregation baselines. TTEL establishes a strictly dominating compute-optimal Pareto frontier, achieving higher pass@k rates with significantly lower token consumption by branching from retained prefixes and avoiding redundant regeneration. Ablation studies reveal that retaining the full reasoning trace and incorporating explicit environment feedback are critical for precise error localization, while the null-feedback baseline filter is strictly necessary to isolate genuine error-driven corrections from context-induced probability shifts. Overall, TTEL operates as a domain-agnostic test-time scaling method that maximally reuses valid reasoning prefixes to improve both efficiency and accuracy.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp