Text Speeding Itself Up: Recency and Restraint in Session-Local Drafting

Antal van den BoscharXiv 2026 · arXiv

TL;DR

The secret to efficient speculative decoding isn't complex neural drafting, but simple "session-local" lookups. By prioritizing the most recent matches in a prompt and exercising restraint (abstaining from drafting on short matches), you can achieve significant speedups and energy savings with zero training and negligible computational overhead.

What Problem Does This Paper Address?

Speculative decoding is a popular technique to speed up Large Language Models (LLMs). It uses a tiny "draft" model to guess the next few tokens, which a massive "verifier" model then checks in a single parallel pass. However, as verifiers become more efficient (using techniques like KV caching), the cost of running the draft model becomes a bottleneck. If drafting takes too long, you lose the speed advantage.

"Session-local" drafters—which simply look at the current prompt and the text generated so far—are attractive because they require no training and are computationally "nearly free." This paper investigates a critical question: Which specific ingredients of these drafters actually drive performance? Is it complex weighting, backoff strategies, or simply copying the most recent relevant text?

Methods

The author compares several flavors of session-local drafters using a Mistral-7B verifier:

  1. Prompt Lookup Decoding (PLD): The baseline approach that finds an exact n-gram match earlier in the text and copies what followed it. The author tests two versions:
  2. Earliest: Copies from the first time the match appeared (the standard implementation).
  3. Most Recent: A "one-line change" that copies from the most recent occurrence.
  4. Session Memory: A more sophisticated, "richer" variant using:
  5. Recency Weighting: Giving more importance to recent tokens.
  6. Longest-match Backoff: Trying to match 4 tokens, then 3, then 2, etc.
  7. Confidence Gating: An entropy-based rule to decide when the drafter is "too uncertain" to propose anything (abstention).
  8. The "Floor" Strategy: A simple rule for PLD where the drafter only proposes tokens if it finds a match of at least $m$ tokens (e.g., a 3-token floor).

Datasets

The study evaluates these methods across three distinct domains to see how they handle different linguistic styles:

  • General Text: WikiText-103.
  • Medical Text: PubMed Summarization.
  • Legal Text: EurLex (legal documents).

The experiments include both short (100-token) and long (500-token) generations, as well as tests with a repetition penalty to see how the drafters perform when the model isn't just repeating itself.

Key Insights and Ideas

  • Recency is King for Speed: The most surprising finding is that the complex math of "Session Memory" (weighting and backoff) adds almost nothing to speed. Simply changing Prompt Lookup to use the most recent match instead of the earliest one provides nearly all the speedup.
  • The Energy-Speed Paradox: Faster isn't always "greener." Unselective drafters can speed up generation by 14% but actually increase power consumption because they force the hardware (accelerators) to work harder on verification passes that ultimately fail.
  • Restraint Saves Joules: To save energy, a drafter must know when to shut up. The "Confidence Gate" in Session Memory and the "3-token Floor" in PLD both save significant energy (3–4 joules per 100 tokens) by abstaining from drafting when evidence is weak.
  • Repetition is the Hidden Engine: A huge portion of speculative decoding's success comes from the fact that LLMs tend to repeat themselves. When a repetition penalty is applied, speedups drop from ~1.7x to ~1.1x. However, even in these "non-loopy" scenarios, recency still helps.
  • Numerical Ties: Speculative output is almost perfectly identical to standard greedy decoding (94% of the time). The rare divergences only happen during "numerical near-ties" where the top two token candidates have nearly identical probabilities.

Key Results

  • Speedup: On 500-token generations, most-recent lookup achieves 1.4x–1.7x speedups.
  • Recency Gain: Switching from "earliest" to "most recent" match adds +0.08 to the speedup factor on long generations.
  • Efficiency: A simple 3-token match floor on prompt lookup matches the energy savings of the much more complex gated session memory.
  • Drafting Cost: Prompt lookup is incredibly cheap, costing only 10–14 microseconds per call, compared to ~600 microseconds for the session memory approach.

Limitations and Future Work

  • Scope: The study focused on a single verifier (Mistral-7B) on consumer-grade hardware (Mac Studio). Results might shift with different attention architectures or batched serving environments.
  • Greedy Only: The research focused on greedy decoding. The impact on sampling-based decoding (where randomness is introduced) remains untested.
  • Implementation: The current Session Memory implementation has a quadratic cost relative to output length. While PLD is already 30-40x cheaper, an incremental version of Session Memory could close that gap, though the paper suggests the extra complexity might not be worth the effort.
  • Language: The study was limited to English text; formulaic or highly repetitive structures in other languages or code might yield different results.

Summary updated

Abstract

Speculative decoding lets a cheap draft model propose tokens that a large language model verifies in a single forward pass. When the verifier keeps a KV cache, verification is cheap and drafting must be nearly free. Session-local drafters, which predict from the prompt and the text generated so far, meet that bar without training. We compare a recency-weighted, backing-off, confidence-gated session memory against prompt lookup decoding in its reference form, which copies from the earliest earlier match, and in a variant that copies from the most recent one, with paired per-prompt bootstrap intervals throughout. On general, medical, and legal text with a Mistral-7B verifier, recency accounts for the speed: most-recent lookup gains up to 0.09 in speedup over earliest-match lookup on 500-token generations, and session memory's weighting and backoff add nothing measurable on top, at 30 to 40 times the drafting cost. Energy tells a different story. On medical and legal text, unselective drafters are 14% faster than plain decoding yet use as much energy per token, while drafters that abstain on weak evidence save 3 to 4 joules per 100 tokens; a three-token minimum match length on prompt lookup matches the confidence-gated session memory. Outputs are token-identical to greedy decoding in 94% of generations, with every divergence at a numerical near-tie. Under a repetition penalty, long-generation speedups shrink from 1.4-1.7x to 1.1-1.2x, but recency still helps and the length floor is the only drafter that saves energy in both domains.
BibTeX
@misc{bosch2026text,
  author = {Antal van den Bosch},
  title = {{Text Speeding Itself Up: Recency and Restraint in Session-Local Drafting}},
  year = {2026},
  eprint = {2611.19455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19455},
}
Figure