Conference Paper
Large Language Models

Consistency LLMs

Siqi Kou, Lanxiang Hu, Zhe He, Zhijie Deng, Hao Zhang
February 28, 2024International Conference on Machine Learning72 citations

72

Citations

6

Influential Citations

International Conference on Machine Learning

Venue

2024

Year

Abstract

Parallel decoding methods such as Jacobi decoding show promise for more efficient LLM inference as it breaks the sequential nature of the LLM decoding process and transforms it into parallelizable computation. However, in practice, it achieves little speedup compared to traditional autoregressive (AR) decoding, primarily because Jacobi decoding seldom accurately predicts more than one token in a single fixed-point iteration step. To address this, we develop a new approach aimed at realizing fast convergence from any state to the fixed point on a Jacobi trajectory. This is accomplished by refining the target LLM to consistently predict the fixed point given any state as input. Extensive experiments demonstrate the effectiveness of our method, showing 2.4$\times$ to 3.4$\times$ improvements in generation speed while preserving generation quality across both domain-specific and open-domain benchmarks.

Analysis

Why This Paper Matters

Large language models (LLMs) have become indispensable, but their autoregressive decoding—generating one token at a time—creates a fundamental latency bottleneck. Parallel decoding methods like Jacobi decoding promised to break this sequential dependency by solving for multiple tokens simultaneously via fixed-point iteration. However, in practice, Jacobi decoding rarely predicts more than one token per step, yielding negligible speedups. This paper tackles that core inefficiency head-on.

By reframing the problem as a consistency learning task, the authors introduce a principled way to train LLMs to converge faster on Jacobi trajectories. The result is a practical, training-based solution that delivers 2.4–3.4× speedups without degrading output quality. This matters because it directly addresses a pain point for practitioners deploying LLMs in real-time applications like chatbots, code assistants, and interactive systems.

Technical Contributions

  • Problem Diagnosis: Clearly identifies that Jacobi decoding's limited speedup stems from its inability to predict multiple tokens per iteration, not from the parallelization framework itself.
  • Consistency Training Objective: Introduces a novel training loss that encourages the LLM to map any intermediate state on a Jacobi trajectory directly to the fixed point (the final converged output). This is inspired by consistency models in diffusion but adapted for discrete token spaces.
  • Minimal Architectural Changes: The method only requires fine-tuning the existing LLM with the consistency objective, meaning it can be applied to off-the-shelf models without architectural modifications.
  • Comprehensive Evaluation: Tests across domain-specific (e.g., code generation) and open-domain (e.g., dialogue) benchmarks, showing consistent speedups while maintaining perplexity and task performance.

Results

  • Speedup: Achieves 2.4× to 3.4× improvement in generation speed over standard autoregressive decoding.
  • Quality Preservation: Generation quality (measured by perplexity and task-specific metrics) remains on par with the baseline autoregressive model.
  • Benchmarks: Validated on both domain-specific tasks (e.g., code generation) and open-domain tasks (e.g., conversational response generation), demonstrating broad applicability.
  • Comparison to Baselines: Outperforms naive Jacobi decoding by a large margin, confirming that consistency training is the key enabler.

Significance

This work bridges the gap between theoretical parallel decoding and practical speedups. By making Jacobi decoding actually faster, it opens the door to deploying larger LLMs in latency-constrained environments. The consistency training approach is elegant and model-agnostic, suggesting it could be combined with other acceleration techniques like speculative decoding or quantization. For the AI field, it represents a step toward more efficient inference, which is critical as LLMs grow in size and deployment scale. Practitioners should watch for follow-up work that extends this to even larger models or integrates it with hardware-specific optimizations.