paper-with-me

Papers

Characterizing Prompt Compression Methods for Long Context Inference

2024-07-11 · Siddharth Jha, Lutfi Eren Erdogan, Sehoon Kim, Kurt Keutzer, Amir Gholami

Long context inference presents challenges at the system level with increased compute and memory requirements, as well as from an accuracy perspective in being able to reason over long contexts. Recently, several methods have been proposed to compress the prompt to reduce the context length. However, there has been little work on comparing the different proposed methods across different tasks through a standardized analysis. This has led to conflicting results. To address this, here we perform a comprehensive characterization and evaluation of different prompt compression methods. In particular, we analyze extractive compression, summarization-based abstractive compression, and token pruning methods. Surprisingly, we find that extractive compression often outperforms all the other approaches, and enables up to 10x compression with minimal accuracy degradation. Interestingly, we also find that despite several recent claims, token pruning methods often lag behind extractive compression. We only found marginal improvements on summarization tasks.

📄 PDF Abstract BibTeX arXiv:2407.08892

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

An Empirical Study on Prompt Compression for Large Language Models

2025-04-24 · Zheng Zhang, Jinyi Li, Yihuai Lan, Xiang Wang 외

Prompt engineering enables Large Language Models (LLMs) to perform a variety of tasks. However, lengthy prompts significantly increase computational complexity and economic costs. To address this issue, we study six prom…

ArticlesMathPrompt EngineeringVisual Question Answering (VQA)

Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference

2025-01-22 · Weizhi Fei, Xueyan Niu, Guoqing Xie, Yingqing Liu 외

Although applications involving long-context inputs are crucial for the effective utilization of large language models (LLMs), they also result in increased computational costs and reduced performance. To address this ch…

Can LLMs Maintain Fundamental Abilities under KV Cache Compression?

2025-02-04 · Xiang Liu, Zhenheng Tang, Hong Chen, Peijie Dong 외

This paper investigates an underexplored challenge in large language models (LLMs): the impact of KV cache compression methods on LLMs' fundamental capabilities. Although existing methods achieve impressive compression r…

Arithmetic ReasoningCode GenerationLong-Context UnderstandingSensitivity+1

ICPC: In-context Prompt Compression with Faster Inference

2025-01-03 · Ziyang Yu, Yuyu Liu

Despite the recent success of Large Language Models (LLMs), it remains challenging to feed LLMs with long prompts due to the fixed size of LLM inputs. As a remedy, prompt compression becomes a promising solution by remov…

Perception Compressor: A Training-Free Prompt Compression Framework in Long Context Scenarios

2024-09-28 · Jiwei Tang, Jin Xu, Tingwei Lu, Zhicheng Zhang 외

Large language models (LLMs) demonstrate exceptional capabilities in various scenarios. However, they suffer from much redundant information and are sensitive to the position of key information in long context scenarios.…

Position