NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Prefill-Guided Trace Allocation for Sample-Efficient Test-Time Scaling

Zhi Yao, Zhiqing Tang, Hanshuai Cui, Qianli Ma, Fanshuai Meng, Weijia Jia

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Test-Time Scaling and Optimization · Type: new method · Keywords: test-time scaling, prefill guidance, trace allocation, sample-efficient, LLM reasoning

Areas: LLM Reasoning › Reasoning Strategies › Test-Time Scaling

Summary

HATS predicts greedy-trace reliability from prefill hidden states to allocate traces adaptively, achieving the same accuracy as four-sample self-consistency while using 48% fewer samples and 40% fewer decode tokens.

Explained to a 5-year-old

When a computer program tries to solve a problem, it can ask many friends for answers and pick the most common one. Sometimes the first friend already knows the answer, but the program still asks all friends, wasting time. This new idea looks at a quick guess before asking friends and decides how many friends to ask based on how confident the guess is. It asks only one friend for easy problems, a few for medium ones, and many for hard ones. This saves time while still getting the right answer.

Explained to a 5-year-old, longer

A computer program sometimes needs to figure out a tricky problem, like a math puzzle. To be sure, it can ask many different helpers for their answers and then pick the answer that most helpers agree on. This method works well, but it can use a lot of computer power because it always asks the same number of helpers, even when the first helper already knows the answer. The new idea watches a very quick first guess the program makes before it asks any helpers. From that quick guess, it can tell how confident the program is that the answer is correct. If the guess looks confident, the program only asks one helper, because it probably already has the right answer. If the guess looks a little unsure, the program asks a few helpers to vote together. If the guess looks very uncertain, the program asks many helpers to get a good majority. This way, the program saves a lot of computer time on easy problems while still being accurate on hard ones. The method also works well on different kinds of puzzles, like math problems used in tests. By using less computer power, more people can run these smart programs on smaller machines. Overall, the approach makes solving problems faster and cheaper without losing correctness.

For a technical reader

The paper introduces HATS, a scheduler that leverages prefill hidden states to gauge the reliability of a greedy LLM trace before committing compute to additional samples. By predicting confidence early, HATS allocates a single trace to easy inputs, a small vote to borderline cases, and the full self-consistency budget to hard problems. A compute-optimal analysis shows that allocating samples where marginal accuracy gain is highest yields better efficiency than uniform spending. On the MATH-500 benchmark with a distilled 7B model, HATS matches the 4-sample self-consistency accuracy of 80.6% while cutting sample usage by 48% and decode tokens by 40%. The approach thus provides a practical, token- and sample-saving mechanism for test-time scaling on resource-constrained hardware.

Problem

Test-time scaling methods such as self-consistency waste compute by applying a fixed number of sampled traces even when the first greedy attempt already solves the problem. Existing adaptive approaches rely on post-decode agreement signals that become reliable only after full traces are generated, missing opportunities to save compute early.

Method

The approach uses hidden states from the prefill stage to predict the reliability of greedy traces, then allocates additional sampled traces based on this prediction: easy problems receive a single trace, borderline problems a small vote, and hard problems the full budget. A compute-optimal analysis shows that extra samples should go where marginal accuracy gain is highest, explaining the benefit of non-uniform spending.

Results

HATS matches the four-sample self-consistency accuracy of 80.6% while reducing samples by 48% and decode tokens by 40% on MATH-500 under single-GPU serving, a result confirmed in strict out-of-fold evaluation.

Contributions

A prefill-guided trace allocation mechanism that predicts greedy-trace reliability before spending compute, and a compute-optimal analysis explaining why non-uniform sample spending outperforms fixed budgets. Empirical validation demonstrates significant compute savings without sacrificing accuracy.

Limitations and assumptions

Evaluated on a single GPU and on the MATH-500 benchmark; results may not generalize to multi-GPU settings or other datasets.

Practical relevance

The approach enables efficient test-time scaling on resource-constrained hardware, reducing compute costs for LLM reasoning in real-world deployments.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction