paper-with-me

홈 › Papers

AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelism

2025-06-04 · Zhepei Wei, Wei-Lin Chen, Xinyu Zhu, Yu Meng

Large language models (LLMs) are increasingly used for long-content generation (e.g., long Chain-of-Thought reasoning) where decoding efficiency becomes a critical bottleneck: Autoregressive decoding is inherently limited by its sequential token generation process, where each token must be generated before the next can be processed. This sequential dependency restricts the ability to fully leverage modern hardware's parallel processing capabilities. Existing methods like speculative decoding and layer skipping offer potential speedups but have notable drawbacks: speculative decoding relies on an auxiliary "drafter" model, which can be challenging to acquire and increases memory overhead, while layer skipping may introduce discrepancies in the outputs due to the missing key-value cache at skipped layers. In this work, we propose AdaDecode, which accelerates LLM decoding without requiring auxiliary models or changes to the original model parameters, while ensuring output consistency. AdaDecode leverages the insight that many tokens can accurately be generated at intermediate layers, as further layers often do not significantly alter predictions once the model reaches a certain confidence. By adaptively generating tokens at intermediate layers when confidence is high, AdaDecode enables the next token's computation to begin immediately. The remaining layer computations for early-predicted tokens are deferred and executed in parallel with subsequent tokens when needed, maximizing hardware utilization and reducing decoding latency. A final verification step ensures that early predictions match the results of standard autoregressive decoding, preserving output parity. Experiments across diverse generation tasks shows that AdaDecode consistently achieves superior decoding throughput with up to 1.73x speedup, while guaranteeing output parity with standard autoregressive decoding.

📄 PDF Abstract BibTeX arXiv:2506.03700

Code (1)

weizhepei/adadecode 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Divide and Conquer: Accelerating Diffusion-Based Large Language Models via Adaptive Parallel Decoding

2026-02-27 · Xiangzhong Luo, Yilin An, Zhicheng Yu, Weichen Liu 외 arxiv

Diffusion-based large language models (dLLMs) have shown promising performance across various reasoning tasks, establishing themselves as an alternative to autoregressive large language models (LLMs). Unlike autoregressi…

Exploring the Hidden Dimension in Accelerating Convolutional Neural Networks

2018-01-01 · ICLR 2018 1 · Zhihao Jia, Sina Lin, Charles R. Qi, Alex Aiken

DeePa is a deep learning framework that explores parallelism in all parallelizable dimensions to accelerate the training process of convolutional neural networks. DeePa optimizes parallelism at the granularity of each in…

Deep Learning

Cerberus: Efficient Inference with Adaptive Parallel Decoding and Sequential Knowledge Enhancement

2024-10-17 · Yuxuan Liu, Wenyuan Li, Laizhong Cui, Hailiang Yang

Large language models (LLMs) often face a bottleneck in inference speed due to their reliance on auto-regressive decoding. Recently, parallel decoding has shown significant promise in enhancing inference efficiency. Howe…

Accelerating Long-Tail Generation in Synchronous RLHF Training via Adaptive Tensor Parallelism

2026-05-03 · Long Zhao, Qinghe Wang, Jiaan Zhu, Youhui Bai 외 arxiv

Reinforcement Learning from Human Feedback (RLHF) has become a key post-training paradigm for improving model quality. However, the synchronous three-stage RLHF pipeline is often bottlenecked by the generation stage, whe…

Reinforcement Learning

Amphista: Bi-directional Multi-head Decoding for Accelerating LLM Inference

2024-06-19 · Zeping Li, Xinlong Yang, Ziheng Gao, Ji Liu 외

Large Language Models (LLMs) inherently use autoregressive decoding, which lacks parallelism in inference and results in significantly slow inference speed. While methods such as Medusa constructs parallelized heads, the…