TriSpec: Ternary Speculative Decoding via Lightweight Proxy Verification

Haoyun Jiang, Junqi He, Feng Hong, Xinlong Yang, jianwei zhang, Zhengyang Zhuge, Zheng Li, Xiaofeng Cao, Zhiyong Chen, Bo Han, Junyang Lin, Jiangchao YaoNeurIPS 2026

TL;DR

Running massive Large Language Models (LLMs) is notoriously slow because they generate text one token at a time, and even clever tricks like speculative decoding still force the giant model to review every single guess. TriSpec introduces a nimble "middle manager" model to quickly check easy guesses on its own, waking up the giant model only when things get genuinely tricky. The result? Up to a 35% speedup over state-of-the-art speculative decoding while cutting giant-model wake-up calls in half—all with virtually zero loss in accuracy.

What Problem Does This Paper Address?

To understand TriSpec, let's briefly look at how LLMs generate text. Standard decoding is autoregressive—it spits out words serially, one after another. As models tackle complex reasoning tasks with thousands of tokens, this serial bottleneck becomes painfully slow.

Speculative Decoding (SD) fixed a huge part of this by turning generation into a "draft-then-verify" game. A tiny, blazing-fast "drafter" model guesses the next several tokens, and the massive "target" LLM checks all of them simultaneously in a single parallel pass.

Historically, researchers obsessed over making the drafter faster and its guesses more accurate (hitting acceptance rates up to 90% with modern tools like EAGLE-3). Because drafting is now nearly instantaneous, a new bottleneck has quietly taken over the latency budget: verification. Even in parallel, waking up a 32-billion or 70-billion parameter behemoth to verify every single batch of 5 or 6 tokens requires traversing a massive, expensive neural network. The authors ask: Does the giant model really need to verify every single token itself?

Methods

TriSpec turns the two-player game of speculative decoding into a three-tier hierarchy—a ternary framework guided by a simple rule: use the cheapest component capable of doing the job.

  1. The Drafter (Standard): A lightweight single-layer architecture (like EAGLE-3) rapidly proposes a draft tree of candidate tokens. To ensure it works smoothly with the middle tier, the authors add a tiny one-layer MLP adapter to align feature spaces.
  2. The Proxy Verifier (New): Instead of sending drafts straight to the giant target model, TriSpec routes them to a smaller model from the same model family (e.g., using Qwen3-1.7B as a proxy for Qwen3-32B).
  3. Margin-Based Routing (New): How do we know if we can trust the proxy? TriSpec measures the confidence margin—the gap between the proxy's top-1 and top-2 predicted token probabilities. If this margin exceeds a threshold ($\lambda = 0.5$ by default), the proxy is considered "trusted."
Figure 1: Comparison of (a) standard SD and (b-c) TriSpec. In (b), the proxy remains trusted at the first rejection, enabling local correction without invoking the target. In (c), the proxy becomes untrusted before the first rejection, so the remaining draft tokens are escalated to the target for authoritative verification. A margin-based criterion determines whether proxy verification is trusted.

As illustrated above, verification plays out in one of two ways:

  • Case I (Local Correction): If the proxy rejects a bad draft token while remaining confident (trusted), it fixes the token itself and moves on. The giant target model sleeps through the entire round.
  • Case II (Escalation & Token Pruning): If the proxy hits an uncertain, low-margin token before finding an error, it flags the sequence. TriSpec locks in the confident prefix ("token pruning") and escalates only the remaining uncertain branches to the giant target model for authoritative verification.

Datasets

  • Alignment Analysis: ShareGPT is used to study how well proxy and target predictions match at the token level. (Retraining data for the drafters is deferred to the paper's appendix).
  • Primary Reasoning & Coding Evaluation: GSM8K, MATH500, and Gaokao-2023-EN (math reasoning), alongside HumanEval and MBPP (code generation).
  • Challenging & General Domains: SpecBench (multi-domain subtasks), HotpotQA, Polymath, AIME24 & AIME25, and GPQA-Diamond. No new benchmarks were introduced.

Key Insights and Ideas

  • Same-family models think remarkably alike: When testing Qwen3-1.7B against its 32B big brother, the tiny proxy achieved an 82% exact token match rate (compared to 68% for an EAGLE-3 drafter). Another 12% were "benign divergences"—different words that meant the exact same thing or led to the right answer anyway. Only 6% were potentially harmful "salient divergences."
  • Confidence margins cleanly separate safe guesses from landmines: Those 6% harmful divergences aren't random; they cluster heavily when the proxy is torn between its top two choices. Subtracting the top-2 probability from the top-1 probability acts as a remarkably clean, zero-overhead tripwire—outperforming complex learned routers and raw entropy metrics.
  • Cost-effective plug-and-play: You don't have to train drafters from scratch to use TriSpec. Freezing an existing pretrained drafter and fine-tuning only the tiny 0.42B-parameter feature adapter gets you nearly identical speedups at a fraction of the training cost.

Key Results

Tested across Qwen3 (1.7B proxy / 32B target), DeepSeek-R1-Distill-Qwen (1.5B / 32B), and DeepSeek-R1-Distill-LLaMA (8B / 70B), TriSpec shines:

  • Substantial Speedups: At greedy decoding (temperature 0), integrating TriSpec boosts EAGLE-3's average speedup from $2.85\times$ to $3.55\times$ on Qwen3, and from $2.48\times$ to $3.36\times$ on the 70B LLaMA distill—yielding roughly 25%–37% relative acceleration over standard SD. On GPQA-Diamond, speedup jumps from $2.97\times$ to $4.39\times$.
  • Fewer Giant Wake-ups: On MATH500 (Qwen3), TriSpec cuts the target-model invocation ratio more than in half—from 21.38% down to 9.95%—dropping per-round verification latency from 0.094s to 0.071s.
  • Preserved Accuracy: Across benchmarks, average accuracy drops by less than 1% (e.g., 84.4% vs. 84.2% on Qwen3), vastly outperforming lossy cascade baselines like SpecCascade at similar speeds.
  • Modest Memory Footprint: Hosting a third model sounds heavy, but the 1.7B proxy adds only 6.4% to total GPU memory at an 8k context length (and stays under 15% even at 128k).

Limitations and Future Work

  • No Longer Strictly Lossless: Standard speculative decoding mathematically guarantees the exact same output distribution as the target model alone. Because TriSpec lets the proxy finalize confident tokens, it introduces slight distributional deviations and is technically a lossy method (even if task accuracy barely budges).
  • Batch Size 1 Focus: Following standard SD literature, all experiments are evaluated at a batch size of 1; behavior under high-throughput, large-batch serving isn't explored here.
  • Threshold Calibration: While a margin threshold of $\lambda = 0.5$ works well across the board, squeezing out the absolute best speed-accuracy trade-off can benefit from task-specific tuning. Exploring proxy verification across broader, dynamic serving architectures remains a ripe direction for future work.

Summary updated

Abstract

Inference efficiency in Large Language Models (LLMs) is fundamentally limited by their serial, autoregressive generation, especially as reasoning becomes a key capability and response sequences grow longer. Speculative decoding (SD) offers a powerful solution, providing significant speed-ups through its lightweight drafting and parallel verification mechanism. While existing work has nearly saturated improvements in draft effectiveness and efficiency, this paper advances SD from a new yet critical perspective: the verification cost. We propose TriSpec, a novel ternary SD framework that, at its core, introduces a lightweight proxy to significantly reduce computational cost by approving easily verifiable draft sequences and engaging the full target model only when encountering uncertain tokens. TriSpec can be integrated with state-of-the-art SD methods like EAGLE-3 to further reduce verification costs, achieving greater acceleration. Extensive experiments on the Qwen3 and DeepSeek-R1-Distill-Qwen/LLaMA families show that TriSpec achieves up to 35\% speedup over standard SD, with up to 50\% fewer target model invocations while maintaining comparable accuracy.
BibTeX
@inproceedings{jiang2026trispec,
  author = {Haoyun Jiang and Junqi He and Feng Hong and Xinlong Yang and jianwei zhang and Zhengyang Zhuge and Zheng Li and Xiaofeng Cao and Zhiyong Chen and Bo Han and Junyang Lin and Jiangchao Yao},
  title = {{TriSpec: Ternary Speculative Decoding via Lightweight Proxy Verification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=V2xJUmQ22n},
}
Figure