CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter

Yepeng Weng, Dianwen Mei, Huishi Qiu, Xujie Chen, Li Liu, Jiang Tian, Zhongchao Shi

Introduction: The Bottleneck of LLM Inference

Large Language Model (LLM) generation is primarily memory-bound, meaning speed is limited by data movement rather than computation. Speculative decoding addresses this by using a lightweight "draft" model to predict future tokens, which are then verified in parallel by the larger "target" model. Despite its promise, modern speculative decoding faces two critical challenges: training-inference misalignment and the latency overhead of massive vocabularies.

The Vocabulary Size Penalty

Modern LLMs, such as Llama 3 and Qwen 2.5, utilize expansive vocabularies (128k to 150k+ tokens). This scaling causes the Language Model (LM) head of the draft model to grow significantly, often becoming the primary latency bottleneck.

Figure 2: Latency breakdown showing the dominance of the LM head in modern draft models.

As shown in Figure 2, for models like Llama3-8B and Qwen2.5-7B, the LM head accounts for a substantial portion of total drafting time, negating the speed benefits of a lightweight architecture. In these newer models, the LM head can account for approximately 60% of the drafter's total latency.

Methodology: The CORAL Framework

To overcome these hurdles, the authors propose CORAL, a framework featuring two core innovations designed to stabilize training and reduce inference overhead.

1. Cross-Step Representation Alignment (CSRA)

Multi-step training, where a draft model's output is fed back into itself to improve accuracy, often leads to unstable feature distributions that hinder convergence. CORAL employs a contrastive learning approach called CSRA. By treating features of the same token position across different training steps as positive pairs and applying an InfoNCE loss, the model learns stable, consistent representations. This ensures the drafter remains effective throughout the autoregressive process, regardless of the specific step in the sequence.

2. LM Head Router

To mitigate vocabulary-induced latency, CORAL introduces an LM head router. The massive LM head is partitioned into $N$ equal groups. A lightweight routing mechanism predicts the most likely vocabulary groups for the next token, activating only the top-$k$ parameters during inference. This sparse activation significantly reduces the number of matrix multiplications required to draft a token, trading a negligible amount of acceptance accuracy for a substantial gain in wall-clock speed.

Key Results and Performance

CORAL demonstrates superior performance across various models and benchmarks, including MT-Bench, HumanEval, and GSM8K.

Figure 1: Speedup comparison of CORAL against state-of-the-art baselines on Llama3 and Qwen2.5.

As illustrated in Figure 1, CORAL achieves significant speedups on Llama3 and Qwen2.5, consistently outperforming existing methods like EAGLE-2 and HASS. Across the full range of evaluated models, CORAL achieves speedup ratios of 2.50× to 4.07× over standard decoding. On Llama3-8B, the LM head router reduced drafting latency to 63% of its original time. Even though the router slightly decreased the average acceptance length (e.g., from 4.70 to 4.42 tokens on GSM8K), the reduction in per-token latency resulted in a net wall-clock speedup increase from 2.58× to 2.76×.

Conclusion

CORAL effectively addresses the misalignment and latency issues inherent in modern speculative decoding. While the CSRA module is specifically tailored for multi-step training and the router is most beneficial for large-vocabulary models, the combined framework sets a new state-of-the-art for inference acceleration. Future work may involve optimizing the router for high-performance inference backends like vLLM to further minimize overhead and maximize throughput.

Summary updated

BibTeX
@inproceedings{weng2025coral,
  author = {Yepeng Weng and Dianwen Mei and Huishi Qiu and Xujie Chen and Li Liu and Jiang Tian and Zhongchao Shi},
  title = {{CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure