NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Test-Time Speculation

Avinash Kumar, Sujay Sanghavi, Poulami Das

NeurIPS page · Open on the map

Category: Efficient LLM Inference & Training › Speculative Decoding Optimization · Type: new method · Keywords: speculative decoding, acceptance length, online distillation, LLM inference, test-time adaptation

Summary

Test-Time Speculation (TTS) is an online distillation method that adapts the draft model during inference to improve acceptance length and accelerate LLM generation for long responses.

Explained to a 5-year-old

When a big computer writes long stories, it can be slow. It uses a fast helper to guess words, but the helper gets less accurate as it writes more. We give the helper a way to learn while it's writing, so it gets better at guessing. This helps the big computer finish longer stories faster. The helper learns from the correct answers it checks.

Explained to a 5-year-old, longer

A big computer needs to write long texts, which takes time. To speed it up, it uses a fast guesser to make words quickly. Then a slower checker looks at those guesses to see if they are right. The guesser often gets worse as it writes more words, so the speedup disappears. The paper gives the guesser a chance to learn while the story is being written. It uses the checker’s answers as a teacher to improve the guesser. This learning happens without needing extra work. Over time, the guesser becomes more accurate, so more guesses are accepted. This makes the big computer finish long stories much faster. The method works for many different big computer models. It helps when you need long answers, like in chatbots or writing assistants. The improvement is biggest for the longest texts. It also works well with different types of models. The approach is simple and cheap, using existing verification steps. This makes it practical for real-world use. It can be added to any speculative decoding system without changing the original models.

For a technical reader

Speculative decoding uses a fast draft model to generate tokens while a slower target model verifies them, aiming to speed up LLM inference. However, the draft's acceptance rate drops as the generated text gets longer, reducing the speedup. The paper proposes continuously updating the draft model during inference by using the verification step as a learning signal. This online distillation improves the draft's accuracy over time without extra computation. As a result, longer generations see larger speedups compared to existing methods.

Problem

Speculative decoding methods suffer from decreasing acceptance length as generation length increases, limiting speedup for long outputs.

Method

The approach continuously distills the target model into the draft model at test time by using the verification step as a training signal, updating the draft over multiple speculation rounds to improve its accuracy as generation proceeds.

Results

The approach improves acceptance lengths over state-of-the-art speculators by up to 72% and 41% on average, with benefits scaling with longer generation lengths.

Contributions

It introduces an online distillation technique that adapts the draft model during inference, leveraging the target model's verification step to provide training signals without extra cost.

Research questions this paper is counted under

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