LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding

Alexander Samarin, Sergei Krutikov, Anton Shevtsov, Sergei Skvortsov, Filipp Fisin, Alexander Golubev

TL;DR

This paper introduces "LK losses," a novel training objective for speculative decoding that directly optimizes the acceptance rate of drafted tokens, rather than relying on the traditional KL divergence proxy. This leads to significant improvements in speculative decoding efficiency, especially for smaller draft models, without introducing computational overhead.

What Problem Does This Paper Address?

Large language model (LLM) inference is a major bottleneck, often limited by memory bandwidth rather than computation. Speculative decoding offers a solution by using a smaller "draft" model to propose candidate tokens, which are then verified by the larger "target" model. The speedup from this technique hinges on the acceptance rate – how often the target model agrees with the draft. However, current methods train draft models by minimizing Kullback-Leibler (KL) divergence between the draft and target distributions. While KL divergence and acceptance rate are aligned at their global optimum, small, capacity-limited draft models often get stuck in local optima where minimizing KL doesn't guarantee a high acceptance rate. This paper aims to bridge this gap by directly optimizing for acceptance rate.

Methods

The core contribution is the proposal of two new training objectives, collectively termed "LK losses," designed to directly optimize the acceptance rate.

  • Direct Acceptance Rate Optimization: The paper introduces two variants. One is motivated by maximum likelihood estimation and directly optimizes the negative log-acceptance rate. The other is a "hybrid objective" that adaptively blends KL divergence with Total Variation (TV) distance. This hybrid approach starts with a KL-dominated objective for stable early training and gradually shifts towards TV distance (which is directly related to acceptance rate) as training progresses, controlled by an adaptive schedule based on the current acceptance rate.
  • Gradient Analysis: The authors provide a theoretical analysis of the gradients of KL divergence and TV distance. They show that while TV distance directly targets acceptance rate, its gradients can vanish for under-trained models. The proposed LK losses, particularly the hybrid one, are shown to overcome these limitations by providing well-conditioned gradients that adapt to the training stage.

Datasets

The paper uses a training corpus generated from 660K prompts from "Infinity-Instruct-0625" and responses from various target models. For evaluation, they use standard benchmarks:

  • MT-Bench: For multi-turn conversational prompts.
  • HumanEval: For code generation tasks.
  • GSM8K: For grade-school math problems.

The authors emphasize that they evaluate on full datasets, unlike some prior work that uses smaller subsets.

Key Insights and Ideas

  • KL Divergence is a Suboptimal Proxy for Small Draft Models: The paper strongly argues that for draft models with limited capacity (e.g., 1-5% of the target model's parameters), minimizing KL divergence is not sufficient to maximize acceptance rate. This is a critical insight for practical deployment of speculative decoding.
  • Total Variation (TV) Distance is Directly Aligned with Acceptance Rate: The paper highlights that maximizing acceptance rate is equivalent to minimizing TV distance. However, pure TV optimization is challenging due to vanishing gradients and non-smooth loss landscapes, especially during early training.
  • Adaptive Hybrid Objective is Key: The proposed hybrid LK loss with an adaptive schedule (gradually shifting from KL to TV) effectively combines the benefits of both: stable gradients from KL for initial learning and direct optimization of acceptance rate via TV for improved performance.
  • Low-Capacity Draft Models Benefit Most: The experiments show that LK losses yield larger relative improvements for smaller draft architectures (like MLP and MEDUSA) compared to larger, more capable ones (like EAGLE-3), reinforcing the idea that LK losses are particularly valuable when the draft model's capacity is a bottleneck.

Key Results

  • Consistent Improvements: LK losses consistently improve acceptance metrics across various target models (8B to 685B parameters) and draft architectures.
  • Significant Gains: The paper reports gains of up to 8-10% in average acceptance length across general, coding, and math domains.
  • Hybrid Objective Outperforms: The hybrid LK loss with an adaptive scheduler generally achieves the strongest results, outperforming both the KL baseline and the likelihood-based LK loss.
  • No Computational Overhead: LK losses are easy to implement and integrate into existing speculative decoding frameworks without adding computational cost during training or inference.

Limitations and Future Work

  • Adaptive Scheduler Exploration: The paper uses a specific adaptive scheduler and fixed aggregation scheme across draft heads. Future work could explore alternative scheduler parameterizations, learnable or data-dependent aggregation strategies, and investigate the sensitivity of the adaptive schedule to the order of aggregation.
  • Inference Scheme Variations: The current evaluation focuses on chain sampling. Further research could explore how LK-trained speculators perform with more complex inference schemes like tree-based sampling or alternative verification mechanisms (e.g., block verification).
  • Training Data Diversity vs. Epoch Count: The study uses a large generated corpus and a fixed training schedule. Investigating the trade-off between training data diversity and the number of training epochs could be beneficial.
  • Direct Optimization of Acceptance Length: The paper suggests that directly optimizing the acceptance length metric (τ) could be a promising direction for even closer alignment with practical speedups.

Summary updated

BibTeX
@inproceedings{samarin2026lk,
  author = {Alexander Samarin and Sergei Krutikov and Anton Shevtsov and Sergei Skvortsov and Filipp Fisin and Alexander Golubev},
  title = {{LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ZqnVidXtxV},
}
Figure