Raptor: Dynamically Tuning Tree-Structured Speculative Decoding with Rejection Feedback

Raptor adaptively tunes tree-structured speculative decoding using three complementary signals from rejection feedback, achieving up to 2.39× speedup without training.
The article introduces Raptor, a framework addressing the inference bottleneck of vision-language models. Tree-structured speculative decoding accelerates autoregressive decoding by verifying multiple candidate paths in parallel, but speculative overhead climbs under long visual contexts, and existing methods adjust tree shape based only on acceptance length, unable to distinguish insufficient candidate coverage from excessive depth expansion. Raptor extracts three complementary signals from rejection feedback—speculative progress, frontier coverage, and redundant expansion—and jointly updates tree depth, branching width, and draft budget in a bounded, momentum-smoothed manner, paired with execution control that limits ineffective drafts and restores expansion when appropriate. Training-free and acting directly at inference, it achieves up to 2.39× average speedup over autoregressive decoding on two VLMs and seven multimodal benchmarks.
Vision-language models (VLMs) perform impressively on multimodal tasks, but the sequential nature of autoregressive decoding makes inference speed a bottleneck. Tree-structured speculative decoding accelerates by verifying multiple candidate continuations in parallel; however, as visual context grows longer, the cost of speculative computation climbs, and insufficient candidate coverage and redundant expansion become thornier problems than tree topology adaptation. The recently proposed Raptor framework offers a training-free solution to precisely this pain point.

The Blind Spot of Tree-Structured Speculative Decoding: Acceptance Length Is Not a Panacea
The core idea of speculative decoding is to use a lightweight draft model to generate multiple candidate tokens, which the target model then verifies in parallel, thereby reducing the number of serial decoding steps. Tree structures go further by organizing candidates into a tree so that multiple paths can be verified at once. But existing methods, when adjusting the tree shape, often fixate on a single signal: acceptance length.
The Raptor authors point out that acceptance length alone cannot distinguish between two fundamentally different failure modes: insufficient candidate coverage, where the draft model does not generate the continuation the target model actually wants; and excessive depth expansion, where compute is wasted continuing along paths that are already sufficient. These two situations call for completely different resource-allocation decisions—the former should widen branching, the latter should shrink depth. With acceptance length alone, the system cannot make the right call.
Speculative decoding is a lossless technique for accelerating autoregressive generation: a smaller, faster draft model generates several candidate tokens in sequence, and the target large model then performs a single parallel forward pass to verify this string of candidates. Any token that matches the target model's own greedy or sampled result is "accepted," compressing multiple serial forward passes into one. Its speedup ratio depends on the trade-off between acceptance rate and draft overhead, with a theoretical guarantee that the output distribution matches that of the original decoding.
Tree-structured speculative decoding expands a single candidate sequence into a tree structure: the draft model retains multiple branches at each step, forming multiple candidate paths, and the target model can verify all nodes across the entire tree in a single forward pass using a tree attention mask. Compared with linear speculation, the tree structure covers more possible continuations under the same verification cost, raising the probability of hitting the target model's preferred path—but it also introduces the new problem of how to allocate tree width, tree depth, and draft budget.
Acceptance length refers to the number of tokens consecutively accepted by the target model in a single speculative verification round. It is the most commonly used metric for measuring speculative decoding efficiency and is usually positively correlated with average speedup. But it is a scalar aggregate result: regardless of which branch or depth of the tree the rejection occurs at, it ultimately manifests only as a shortened length value. Therefore, when acceptance length drops, the system cannot tell whether "the draft simply failed to cover the correct continuation" (should widen exploration) or "the tree burrowed too deep along some path and wasted compute" (should shrink depth). This is precisely why Raptor considers a single signal insufficient.
Three Complementary Signals: Progress, Frontier Coverage, and Redundant Expansion
Raptor's key design is to extract three complementary signals from rejection feedback, characterizing speculative progress, frontier coverage, and redundant expansion respectively.
- Speculative progress: reflects the degree of match between the current draft and the target model's acceptance behavior, helping determine whether overall speculation is advancing effectively.
- Frontier coverage: measures whether the candidate tree has reached regions the target model is likely to accept, used to identify insufficient coverage.
- Redundant expansion: captures paths that are repeatedly expanded but never accepted, identifying wasted compute.
Together, these three signals guide bounded, momentum-smoothed updates to tree depth, branching width, and draft budget. "Bounded" means the adjustment magnitude is controlled to avoid violent oscillations in tree shape; "momentum smoothing" lets parameters change gradually along a trend rather than overreacting to single-step feedback.
Execution Control: Stop When Needed, Expand Only When Appropriate
Beyond tree parameter adjustment, Raptor also introduces an execution control mechanism that limits unnecessary draft computation and gradually restores expansion when conditions are suitable. This layer of control complements the tree updates: the former decides "whether to continue speculating," the latter decides "what the tree looks like." Combined, they allow the system to maintain high compute efficiency even under long visual contexts.
The entire framework requires no additional training and acts directly at the inference stage, lowering the barrier to deployment—for already-deployed VLM services, acceleration can in principle be obtained by swapping the decoding strategy without retraining the model.
Experimental Performance: Average Speedup on Multimodal Benchmarks
The authors conducted experiments on two vision-language models and seven multimodal benchmarks. Results show that Raptor achieves up to a 2.39× average speedup compared with autoregressive decoding. This figure comes from the paper's abstract; specific benchmarks and model configurations should be referenced in the original text. Considering that the experiments cover multiple benchmarks and two models, this speedup ratio has some generalizable reference value, but actual deployment results will still be affected by draft model quality, task type, and hardware conditions.
Implications for Speculative Decoding Practice
Raptor's value goes beyond a single speedup number. It offers a perspective worth noting: adaptation in speculative decoding should not rely on a single acceptance signal alone, but should extract richer feedback from rejections. Rejection behavior itself carries information—which candidates were rejected, at what depth, and whether rejections are concentrated—all of which can be converted into a basis for resource allocation.
For developers and researchers focused on VLM inference optimization, Raptor's approach can be extended: in long-context, multimodal scenarios, draft budget allocation strategy may affect end-to-end efficiency more than tree topology itself. If such rejection-aware signals can be combined with hardware-aware scheduling in the future, there is further room to unlock the benefits of speculative decoding in real services.
(This article is written based on information from the paper's abstract; for specific methodological details and experimental setups, please refer to the original text.)
One-line Summary
Raptor uses three complementary signals from rejection feedback to adaptively tune tree-structured speculative decoding, achieving up to 2.39× speedup without training.
Paragraph Summary
The article introduces the Raptor framework, which targets the inference bottleneck of vision-language models. Tree-structured speculative decoding accelerates autoregressive decoding by verifying multiple candidate paths in parallel, but speculative overhead climbs under long visual contexts, and existing methods adjust the tree shape based only on acceptance length, unable to distinguish between insufficient candidate coverage and excessive depth expansion. Raptor extracts three complementary signals from rejection feedback—speculative progress, frontier coverage, and redundant expansion—and jointly updates tree depth, branching width, and draft budget in a bounded, momentum-smoothed manner, paired with an execution control mechanism that limits ineffective drafts and restores expansion at the right time. The framework requires no additional training and acts directly at the inference stage, achieving up to a 2.39× average speedup compared with autoregressive decoding on two VLMs and seven multimodal benchmarks.
Related articles

Aphasia Discourse Analysis: Language Metric Differences Across Tasks
A study of 61 adults with aphasia found that narrative, descriptive, and procedural discourse tasks yield non-interchangeable language metrics. Total words and lexical diversity show a gradient; disfluency is higher in narrative tasks. Each metric must be labeled by task type and compared only within the same task.

Must-Read for Quality Engineers: A Practical Guide to Structured Data Extraction with Generative AI
A paper shows how quality engineers use LLMs and VLMs for structured data extraction, validated through two web apps, with R and Python implementations.

CocoonBench: Can Multilingual Search Agents Break Out of the Language Information Cocoon?
CocoonBench evaluates whether multilingual search agents can escape the language information cocoon. Tests show 10 advanced models range from 33.8% to 69.7% accuracy, with the strongest system still below 70%, revealing key challenges in connecting cross-lingual evidence.