paper-with-me

Papers

Parallel Decoding via Hidden Transfer for Lossless Large Language Model Acceleration

2024-04-18 · Pengfei Wu, Jiahao Liu, Zhuocheng Gong, Qifan Wang, Jinpeng Li, Jingang Wang, Xunliang Cai, Dongyan Zhao

Large language models (LLMs) have recently shown remarkable performance across a wide range of tasks. However, the substantial number of parameters in LLMs contributes to significant latency during model inference. This is particularly evident when utilizing autoregressive decoding methods, which generate one token in a single forward process, thereby not fully capitalizing on the parallel computing capabilities of GPUs. In this paper, we propose a novel parallel decoding approach, namely \textit{hidden transfer}, which decodes multiple successive tokens simultaneously in a single forward pass. The idea is to transfer the intermediate hidden states of the previous context to the \textit{pseudo} hidden states of the future tokens to be generated, and then the pseudo hidden states will pass the following transformer layers thereby assimilating more semantic information and achieving superior predictive accuracy of the future tokens. Besides, we use the novel tree attention mechanism to simultaneously generate and verify multiple candidates of output sequences, which ensure the lossless generation and further improves the generation efficiency of our method. Experiments demonstrate the effectiveness of our method. We conduct a lot of analytic experiments to prove our motivation. In terms of acceleration metrics, we outperform all the single-model acceleration techniques, including Medusa and Self-Speculative decoding.

📄 PDF Abstract BibTeX arXiv:2404.12022

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

Free Draft-and-Verification: Toward Lossless Parallel Decoding for Diffusion Large Language Models

2025-09-30 · Shutong Wu, Jiawei Zhang arxiv

Diffusion Large Language Models (DLLMs) have emerged as a new paradigm of language modeling beyond autoregressive next-token prediction. Taking advantage of their inherent modeling foundations, DLLMs have the great poten…

Code Generation

A Learned Pixel-by-Pixel Lossless Image Compression Method with 59K Parameters and Parallel Decoding

2022-12-02 · Sinem Gumus, Fatih Kamisli

This paper considers lossless image compression and presents a learned compression system that can achieve state-of-the-art lossless compression performance but uses only 59K parameters, which is more than 30x less than …

DecoderGPUImage Compression

Inference with Reference: Lossless Acceleration of Large Language Models

2023-04-10 · Nan Yang, Tao Ge, Liang Wang, Binxing Jiao 외

We propose LLMA, an LLM accelerator to losslessly speed up Large Language Model (LLM) inference with references. LLMA is motivated by the observation that there are abundant identical text spans between the decoding resu…

DecoderLanguage ModelingLanguage ModellingLarge Language Model

Lossless Acceleration for Seq2seq Generation with Aggressive Decoding

2022-05-20 · Tao Ge, Heming Xia, Xin Sun, Si-Qing Chen 외

We study lossless acceleration for seq2seq generation with a novel decoding algorithm -- Aggressive Decoding. Unlike the previous efforts (e.g., non-autoregressive decoding) speeding up seq2seq generation at the cost of …

Abstractive Text SummarizationGPUGrammatical Error CorrectionMachine Translation+3

DART: Diffusion-Inspired Speculative Decoding for Fast LLM Inference

2026-01-27 · Fuliang Liu, Xue Li, Ketai Zhao, Yinxi Gao 외 arxiv

Speculative decoding is an effective and lossless approach for accelerating LLM inference. However, existing widely adopted model-based draft designs, such as EAGLE3, improve accuracy at the cost of multi-step autoregres…