SelfJudge: Faster Speculative Decoding via Self-Supervised Judge Verification

Kanghoon Yoon, Minsub Kim, Sungjae Lee, Joonhyung Lee, Sunghyeon Woo, Yeonjun In, Se Jung Kwon, Chanyoung Park, Dongsoo Lee

Large Language Models (LLMs) are notoriously slow due to autoregressive generation, where text is produced one token at a time. Speculative Decoding (SD) mitigates this bottleneck by using a smaller, faster "draft" model to predict a sequence of tokens, which a larger "target" model then verifies in parallel.

However, standard SD relies on strict probability-based alignment. If the draft model suggests "find" but the target model prefers "solve," the draft is rejected—even if the semantic meaning is identical. While recent "Judge Decoding" methods attempt to relax these strict criteria, they rely heavily on expensive human annotations or are limited to tasks with verifiable ground truths, such as math or code.

SelfJudge introduces a novel, self-supervised framework that trains a lightweight verifier to accept draft tokens that are "close enough" in meaning. By measuring semantic preservation rather than exact token matches, SelfJudge achieves up to a 46% wall-clock speedup without sacrificing task accuracy, generalizing seamlessly across diverse NLP tasks.

Methodology: The SelfJudge Framework

SelfJudge eliminates the need for human labels by leveraging the target model as its own teacher. The process involves three core steps:

  1. Mismatch Identification: The system runs both the draft and target models to identify points of token disagreement.
  2. Semantic Preservation Scoring: For mismatched tokens, SelfJudge calculates a score based on how the replacement affects the likelihood of the entire response. Crucially, it uses bidirectional context (both the prefix and the future suffix) to evaluate if a substitution is semantically safe.
  3. Verifier Training: Using the Log Bayes Factor to compare original and substituted sequences, tens of thousands of tokens are labeled as "acceptable" or "rejected." These labels are used to train a lightning-fast logistic regression classifier—the "Judge"—that operates on the target model's internal hidden states to make real-time acceptance decisions during inference.

Key Insights

  • The Power of the Suffix: The paper demonstrates that looking at "future" tokens during the training phase drastically reduces uncertainty. A token that appears incorrect in isolation may be perfectly valid once the rest of the sentence is considered.
  • 14x Faster Data Generation: Unlike previous methods (e.g., AutoJudge) that require generating entirely new responses to check correctness, SelfJudge only requires a "prefill" operation to check likelihoods. This efficiency allowed the authors to generate 69k labels in just 8 hours, compared to 82 hours for 14k labels in prior work.
  • Domain Agnostic: Because the verifier is trained on semantic preservation rather than strict correctness, a single verifier generalizes across math, code, and creative writing without requiring task-specific tuning.

Empirical Results

Evaluated across a diverse battery of benchmarks—including GSM8K and MATH-500 (Mathematical Reasoning), MMLU (General Knowledge), CNN/DailyMail (Summarization), and LiveCodeBench (Coding)—SelfJudge consistently outperformed standard SD and previous baselines:

  • Significant Speedups: On the Llama-3.1-8B model, SelfJudge achieved a 23.5% throughput increase on GSM8K and a massive 46.3% increase on MMLU compared to standard SD.
  • Accuracy Preservation: While other relaxed decoding methods often suffer a 2-10% accuracy drop, SelfJudge maintains performance, typically staying within 1% of the original model's accuracy.
  • Scalability: The framework scales effectively to larger models, delivering over 22% wall-clock speedups on the massive Llama-3.1-70B model, proving its viability for production-grade systems.

Limitations and Future Directions

While SelfJudge represents a significant step forward for efficient LLM inference, the authors note a few areas for future exploration. The current "Judge" relies on a simple logistic regression model; exploring more complex architectures could yield even higher acceptance rates. Additionally, the scaling laws relating the volume of self-supervised training data to inference speedups require further mapping. Finally, while minimal, relaxing verification criteria carries a theoretical risk of "semantic drift" over very long sequences, necessitating further long-form evaluation.

Summary updated

BibTeX
@inproceedings{yoon2026selfjudge,
  author = {Kanghoon Yoon and Minsub Kim and Sungjae Lee and Joonhyung Lee and Sunghyeon Woo and Yeonjun In and Se Jung Kwon and Chanyoung Park and Dongsoo Lee},
  title = {{SelfJudge: Faster Speculative Decoding via Self-Supervised Judge Verification}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=9DAX4oLVhy},
}
Figure