paper-with-me

Papers

KOALA: Enhancing Speculative Decoding for LLM via Multi-Layer Draft Heads with Adversarial Learning

2024-08-15 · Kaiqi Zhang, Jing Zhao, Rui Chen

Large Language Models (LLMs) exhibit high inference latency due to their autoregressive decoding nature. While the draft head in speculative decoding mitigates this issue, its full potential remains unexplored. In this paper, we introduce KOALA (K-layer Optimized Adversarial Learning Architecture), an orthogonal approach to the draft head. By transforming the conventional single-layer draft head into a multi-layer architecture and incorporating adversarial learning into the traditional supervised training, KOALA significantly improves the accuracy of the draft head in predicting subsequent tokens, thus more closely mirroring the functionality of LLMs. Although this improvement comes at the cost of slightly increased drafting overhead, KOALA substantially unlocks the draft head's potential, greatly enhancing speculative decoding. We conducted comprehensive evaluations of KOALA, including both autoregressive and non-autoregressive draft heads across various tasks, demonstrating a latency speedup ratio improvement of 0.24x-0.41x, which is 10.57%-14.09% faster than the original draft heads.

📄 PDF Abstract BibTeX arXiv:2408.08146

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

M2R2: Mixture of Multi-Rate Residuals for Efficient Transformer Inference

2025-02-04 · Nikhil Bhendawade, Mahyar Najibi, Devang Naik, Irina Belousova

Residual transformations enhance the representational depth and expressive power of large language models (LLMs). However, applying static residual transformations across all tokens in auto-regressive generation leads to…

Mixture-of-Experts

Optimized Multi-Token Joint Decoding with Auxiliary Model for LLM Inference

2024-07-12 · Zongyue Qin, Ziniu Hu, Zifan He, Neha Prakriya 외

Large language models (LLMs) have achieved remarkable success across diverse tasks, yet their inference processes are hindered by substantial time and energy demands due to single-token generation at each decoding step. …

Language ModellingLarge Language Model

LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding

2024-04-25 · Mostafa Elhoushi, Akshat Shrivastava, Diana Liskovich, Basil Hosmer 외

We present LayerSkip, an end-to-end solution to speed-up inference of large language models (LLMs). First, during training we apply layer dropout, with low dropout rates for earlier layers and higher dropout rates for la…

GSM8KHellaSwagHumanEvalMath+6

KNN-SSD: Enabling Dynamic Self-Speculative Decoding via Nearest Neighbor Layer Set Optimization

2025-05-22 · Mingbo Song, Heming Xia, Jun Zhang, Chak Tou Leong 외

Speculative Decoding (SD) has emerged as a widely used paradigm to accelerate the inference of large language models (LLMs) without compromising generation quality. It works by efficiently drafting multiple tokens using …

S3D: A Simple and Cost-Effective Self-Speculative Decoding Scheme for Low-Memory GPUs

2024-05-30 · Wei Zhong, Manasa Bharadwaj

Speculative decoding (SD) has attracted a significant amount of research attention due to the substantial speedup it can achieve for LLM inference. However, despite the high speedups they offer, speculative decoding meth…

GPUQuantization