HyperAIHyperAI

Command Palette

Search for a command to run...

Mise à l'échelle en phase de test par localisation d'erreurs

Rajiv Shailesh Chitale Rahul Madhavan Taneesh Gupta Deepanway Ghosal Aravindan Raghuveer

Résumé

La mise à l'échelle du calcul en phase d'inférence est devenue une méthode fiable pour améliorer les performances des grands modèles de langue sur des tâches complexes de raisonnement et de programmation. Cependant, les approches standard telles que l'échantillonnage indépendant et le raffinement séquentiel multi-tours fonctionnent sans attribution de crédit au niveau des tokens, ce qui entraîne une inefficacité computationnelle, car les préfixes de raisonnement valides sont fréquemment écartés. Dans ce travail, nous introduisons la mise à l'échelle en phase de test par localisation d'erreurs (TTEL), un algorithme d'inférence qui utilise un retour fixe ou environnemental pour effectuer une localisation d'erreurs au niveau des tokens. En comparant les probabilités conditionnelles sous retour informé à une ligne de base sans contexte, TTEL isole l'étape à laquelle une erreur s'est produite. L'algorithme tronque ensuite la trajectoire et branche une nouvelle génération, réutilisant au maximum le préfixe valide. Des évaluations approfondies démontrent que TTEL établit des fronts de Pareto strictement dominants dans les domaines de raisonnement séquentiel, mesurés par le taux de réussite à k tentatives par rapport au coût en tokens générés. Avec Qwen3-8B sur LiveCodeBench, TTEL atteint un pass@64 de 71,0 % tout en générant environ deux fois moins de tokens que l'échantillonnage indépendant (360,4k contre 735,0k). En généralisant aux bancs d'essai mathématiques AIME-2025 et HMMT-2025, TTEL surpasse nettement les références concurrentes en phase de test, tant avec Qwen3-8B qu'avec 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.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp