paper-with-me

Papers

Draft-based Approximate Inference for LLMs

2025-06-10 · Kevin Galim, Ethan Ewer, Wonjun Kang, Minjae Lee, Hyung Il Koo, Kangwook Lee

Optimizing inference for long-context Large Language Models (LLMs) is increasingly important due to the quadratic compute and linear memory complexity of Transformers. Existing approximation methods, such as key-value (KV) cache dropping, sparse attention, and prompt compression, typically rely on rough predictions of token or KV pair importance. We propose a novel framework for approximate LLM inference that leverages small draft models to more accurately predict the importance of tokens and KV pairs. Specifically, we introduce two instantiations of our proposed framework: (i) SpecKV, which leverages a draft output to accurately assess the importance of each KV pair for more effective KV cache dropping, and (ii) SpecPC, which uses the draft model's attention activations to identify and discard unimportant prompt tokens. To the best of our knowledge, this is the first work to use draft models for approximate LLM inference acceleration, extending their utility beyond traditional lossless speculative decoding. We motivate our methods with theoretical and empirical analyses, and show a strong correlation between the attention patterns of draft and target models. Extensive experiments on long-context benchmarks show that our methods consistently achieve higher accuracy than existing baselines, while preserving the same improvements in memory usage, latency, and throughput. Our code is available at https://github.com/furiosa-ai/draft-based-approx-llm.

📄 PDF Abstract BibTeX arXiv:2506.08373

Code (1)

furiosa-ai/draft-based-approx-llm 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees

2024-06-24 · Yuhui Li, Fangyun Wei, Chao Zhang, Hongyang Zhang

Inference with modern Large Language Models (LLMs) is expensive and time-consuming, and speculative sampling has proven to be an effective solution. Most speculative sampling methods such as EAGLE use a static draft tree…

Fast Inference of Visual Autoregressive Model with Adjacency-Adaptive Dynamical Draft Trees

2025-12-26 · Haodong Lei, Hongsong Wang, Xin Geng, Liang Wang 외 arxiv

Autoregressive (AR) image models achieve diffusion-level quality but suffer from sequential inference, requiring approximately 2,000 steps for a 576x576 image. Speculative decoding with draft trees accelerates LLMs yet u…

Efficient Epistemic Uncertainty Estimation for Large Language Models via Knowledge Distillation

2026-02-02 · Seonghyeon Park, Jewon Yeom, Jaewon Sok, Jeongjae Park 외 arxiv

Quantifying uncertainty in Large Language Models (LLMs) is essential for mitigating hallucinations and enabling risk-aware deployment in safety-critical tasks. However, estimating Epistemic Uncertainty(EU) via Deep Ensem…

Knowledge Distillation

Dovetail: A CPU/GPU Heterogeneous Speculative Decoding for LLM inference

2024-12-25 · Libo Zhang, Zhaoning Zhang, Baizhou Xu, Songzhu Mei 외

Due to the high resource demands of Large Language Models (LLMs), achieving widespread deployment on consumer-grade devices presents significant challenges. Typically, personal or consumer-grade devices, including server…

CPUGPUHumanEval

Structuring The Future: Diffusion LLM Speculative Decoding via Calibrated Draft Graphs

2025-09-22 · Sudhanshu Agrawal, Risheek Garrepalli, Raghavv Goel, Christopher Lott 외 arxiv

Diffusion LLMs (dLLMs) have recently emerged as a powerful alternative to autoregressive LLMs (AR-LLMs) with the potential to operate at significantly higher token-generation rates. To unlock this potential, we present S…

Computational Efficiency