paper-with-me

Papers

PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inference

2025-03-30 · Weisheng Jin, Maojia Song, Tej Deep Pala, Yew Ken Chia, Amir Zadeh, Chuan Li, Soujanya Poria

As large language models (LLMs) tackle increasingly complex tasks and longer documents, their computational and memory costs during inference become a major bottleneck. To address this, we propose PromptDistill, a novel, training-free method that improves inference efficiency while preserving generation quality. PromptDistill identifies and retains the most informative tokens by leveraging attention interactions in early layers, preserving their hidden states while reducing the computational burden in later layers. This allows the model to focus on essential contextual information without fully processing all tokens. Unlike previous methods such as H2O and SnapKV, which perform compression only after processing the entire input, or GemFilter, which selects a fixed portion of the initial prompt without considering contextual dependencies, PromptDistill dynamically allocates computational resources to the most relevant tokens while maintaining a global awareness of the input. Experiments using our method and baseline approaches with base models such as LLaMA 3.1 8B Instruct, Phi 3.5 Mini Instruct, and Qwen2 7B Instruct on benchmarks including LongBench, InfBench, and Needle in a Haystack demonstrate that PromptDistill significantly improves efficiency while having minimal impact on output quality compared to the original models. With a single-stage selection strategy, PromptDistill effectively balances performance and efficiency, outperforming prior methods like GemFilter, H2O, and SnapKV due to its superior ability to retain essential information. Specifically, compared to GemFilter, PromptDistill achieves an overall $1\%$ to $5\%$ performance improvement while also offering better time efficiency. Additionally, we explore multi-stage selection, which further improves efficiency while maintaining strong generation performance.

📄 PDF Abstract BibTeX arXiv:2503.23274

Code (1)

declare-lab/PromptDistill 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingLarge Language Model

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 설명 없음
LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…
BASE 설명 없음
Focus 설명 없음

Similar Papers 제목 키워드 기반

Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction

2026-05-10 · Ngoc Bui, Hieu Trung Nguyen, Arman Cohan, Rex Ying arxiv

The key-value (KV) cache is a major bottleneck in long-context inference, where memory and computation grow with sequence length. Existing KV eviction methods reduce this cost but typically degrade performance relative t…

OmniFocus: Query-Guided Modality-Balanced Token Compression for Omni-Modal Large Language Models

2026-07-03 · Shijie Cao, Qingyu Zhang, Boxi Yu, Yuzhong Zhang 외 arxiv

Omni modal large language models (OmniLLMs) have attracted wide attention for their ability to jointly process audio and video, but they generate large token sequences under audio-visual inputs, leading to substantial in…

Enhanced Training of Query-Based Object Detection via Selective Query Recollection

2022-12-15 · CVPR 2023 1 · Fangyi Chen, Han Zhang, Kai Hu, Yu-Kai Huang 외

This paper investigates a phenomenon where query-based object detectors mispredict at the last decoding stage while predicting correctly at an intermediate stage. We review the training process and attribute the overlook…

AttributeObjectobject-detectionObject Detection

Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMs

2025-12-03 · Ngoc Bui, Shubham Sharma, Simran Lamba, Saumitra Mishra 외 arxiv

Memory and computation remain core bottlenecks in long-horizon LLM inference due to the quadratic cost of self-attention and the ever-growing key-value (KV) cache. Existing strategies for memory-bounded inference, such a…

Long-Context UnderstandingMathematical Reasoning

SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering

2026-07-31 · Maryam Haghifam, Jason Cong, Yizhou Sun arxiv

Long-context inference with large language models (LLMs) is costly: self-attention during prefill scales quadratically with sequence length, and the key-value (KV) cache grows with the number of processed tokens. Larger …

Question Answering