Prompt Compression for Large Language Models: A Survey

Zongqian Li, Yinhong Liu, Yixuan Su, Nigel Collier
10/16/2024
cs.CL

No official code found. Best implementation: yaolinli/MLLM-Token-Compression (225 stars, last commit 2026-04-16). 1 more below.

Abstract

Leveraging large language models (LLMs) for complex natural language tasks typically requires long-form prompts to convey detailed requirements and information, which results in increased memory usage and inference costs. To mitigate these challenges, multiple efficient methods have been proposed, with prompt compression gaining significant research interest. This survey provides an overview of prompt compression techniques, categorized into hard prompt methods and soft prompt methods. First, the technical approaches of these methods are compared, followed by an exploration of various ways to understand their mechanisms, including the perspectives of attention optimization, Parameter-Efficient Fine-Tuning (PEFT), modality integration, and new synthetic language. We also examine the downstream adaptations of various prompt compression techniques. Finally, the limitations of current prompt compression methods are analyzed, and several future directions are outlined, such as optimizing the compression encoder, combining hard and soft prompts methods, and leveraging insights from multimodality.

View on arXivView PDF

Code Implementations(2)

[NAACL 2025 Main Selected Oral] Repository for the paper: Prompt Compression for Large Language Models: A Survey

361Sep 16, 20241 years ago

Towards Efficient Multimodal Large Language Models: A Survey on Token Compression

22510Nov 26, 20256 months ago

Similar Papers

Cite this paper

@article{li2024prompt,
  title  = {Prompt Compression for Large Language Models: A Survey},
  author = {Zongqian Li and Yinhong Liu and Yixuan Su and Nigel Collier},
  year   = {2024},
  eprint = {2410.12388},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.12388v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.12388.svg)](https://codeofpaper.com/paper/2410.12388)

Discussion