TL;DR
Cross-Regression is a new decoding framework that accelerates Large Language Model (LLM) inference by 3–6× without the massive retraining costs typically associated with parallel generation. By combining a "control stream" for autoregressive precision with a "predictive stream" for parallel proposals, it achieves a new Pareto frontier for the speed-quality tradeoff, even scaling effectively to 70B parameter models.
What Problem Does This Paper Address?
Standard LLMs are "autoregressive," meaning they generate text one token at a time. This creates a massive bottleneck: to generate a 100-token response, the model must perform 100 sequential forward passes.
Researchers have tried two main ways to break this:
- Speculative Decoding: Uses a small "draft" model to guess future tokens, which a larger "target" model then verifies. While accurate, it wastes computation because if the draft model makes one mistake, all subsequent guessed tokens are discarded.
- Discrete Diffusion Models: These attempt to generate many tokens in parallel. However, they rely on a "mean-field approximation"—essentially assuming tokens in a block can be predicted independently. This ignores the causal dependencies of language, leading to a "speedup" that often comes at the cost of catastrophic quality degradation.
The authors of this paper bridge this gap, creating a hybrid method that is fast, high-quality, and compatible with existing pre-trained models.
Methods
The core of the paper is the Cross-Regression algorithm, which uses a dual-stream architecture within a single transformer forward pass:
- Dual-Stream Architecture: A single model produces two outputs simultaneously. The Control Stream ($P$) maintains exact autoregressive probabilities, while the Predictive Stream ($Q$) proposes parallel future-token candidates.
- Residual Energy Guidance: The algorithm calculates the "energy" (the log probability ratio) between the two streams. This energy acts as a signal to refine predictions and decide which tokens to accept.
- Lossless vs. Lossy Regimes:
- In Lossless mode, the algorithm uses rejection sampling to ensure the output distribution perfectly matches the original model.
- In Lossy mode, it uses Exponential Moving Average (EMA) smoothing on the energy signal. This allows the model to "forgive" minor transient errors in the predictive stream if the overall sequence remains high-quality, leading to much higher speedups with negligible (less than 1%) quality loss.
- Lightweight Training: Instead of retraining a model from scratch, Cross-Regression uses a parameter-efficient LoRA adapter. This allows the method to be applied to any fine-tuned model for a tiny fraction of the usual compute cost.
Datasets
The authors trained their LoRA adapters on two 7k-task datasets:
- GSM8K: A dataset of grade-school math word problems, used to train for structured reasoning.
- Mixed-7k: A balanced mixture of UltraChat, ShareGPT, and BaGel instructions for general-domain tasks.
Evaluation was performed across several standard benchmarks, including GSM8K, HumanEval (code generation), MBPP (programming), and MT-bench (multi-turn conversation).
Key Insights and Ideas
- Hybridization is Key: Pure diffusion models struggle with causality, but by using the autoregressive stream as a "control," Cross-Regression forces the parallel generation to remain coherent.
- Information Persistence: Unlike speculative decoding, which discards everything after a mismatch, Cross-Regression retains accepted tokens and uses the residual energy to correct mismatches, recycling the remaining draft tokens for the next step.
- Scaling Benefits: Interestingly, the speedup factor increases with model size. Larger models have richer latent representations that allow the predictive stream to "guess" the future with much higher fidelity.
- The "Energy" Knob: The use of EMA smoothing (Algorithm 1) provides a precise mathematical knob to tune the speed-quality tradeoff, a feature missing in most other acceleration frameworks.
Key Results
Cross-Regression consistently outperforms existing methods on the speed-quality Pareto frontier:
- Speedup: It achieves 3–6× speedups across models ranging from 1.5B to 70B parameters.
- Quality Retention: In lossy mode, it maintains over 99% quality, whereas diffusion methods at similar speeds often retain only 37–62% of baseline performance.
- Training Efficiency: Training a LoRA adapter for an 8B model took only 18 H100 GPU hours. For comparison, training a competitive diffusion model can take over 100,000 hours.
Limitations and Future Work
While highly effective, the authors note that the magnitude of acceleration is task-dependent. Structured tasks like math and coding see the highest gains (up to 6.3×), while open-ended conversational tasks show more modest improvements (2.0–2.8×) due to their higher entropy and lower predictability.
Future directions suggested by the authors include:
- Adaptive Horizon Scheduling: Dynamically changing how many future tokens the model attempts to predict based on the current context's complexity.
- Multimodal Extension: Applying the dual-stream decoding approach to models that handle images or audio.
Summary updated