paper-with-me

홈 › Papers

500xCompressor: Generalized Prompt Compression for Large Language Models

2024-08-06 · Zongqian Li, Yixuan Su, Nigel Collier

Prompt compression is crucial for enhancing inference speed, reducing costs, and improving user experience. However, current methods face challenges such as low compression ratios and potential data leakage during evaluation. To address these issues, we propose 500xCompressor, a method that compresses extensive natural language contexts into a minimum of one single special token. The 500xCompressor introduces approximately 0.3% additional parameters and achieves compression ratios ranging from 6x to 480x. It is designed to compress any text, answer various types of questions, and could be utilized by the original large language model (LLM) without requiring fine-tuning. Initially, 500xCompressor was pretrained on the Arxiv Corpus, followed by fine-tuning on the ArxivQA dataset, and subsequently evaluated on strictly unseen and classical question answering (QA) datasets. The results demonstrate that the LLM retained 62.26-72.89% of its capabilities compared to using non-compressed prompts. This study also shows that not all the compressed tokens are equally utilized and that K V values have significant advantages over embeddings in preserving information at high compression ratios. The highly compressive nature of natural language prompts, even for fine-grained complex information, suggests promising potential for future applications and further research into developing a new LLM language.

📄 PDF Abstract BibTeX arXiv:2408.03094

Code (1)

ZongqianLi/500xCompressor 공식 구현 pytorch

Tasks

Language ModellingLarge Language ModelQuestion Answering

Similar Papers 제목 키워드 기반

Say More with Less: Understanding Prompt Learning Behaviors through Gist Compression

2024-02-25 · Xinze Li, Zhenghao Liu, Chenyan Xiong, Shi Yu 외

Large language models (LLMs) require lengthy prompts as the input context to produce output aligned with user intentions, a process that incurs extra costs during inference. In this paper, we propose the Gist COnditioned…

DecoderLanguage ModelingLanguage ModellingPrompt Learning

Prompt Compression for Large Language Models: A Survey

2024-10-16 · Zongqian Li, Yinhong Liu, Yixuan Su, Nigel Collier

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…

parameter-efficient fine-tuningSurvey

Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models

2024-07-22 · Alliot Nagle, Adway Girish, Marco Bondaschi, Michael Gastpar 외

We formalize the problem of prompt compression for large language models (LLMs) and present a framework to unify token-level prompt compression methods which create hard prompts for black-box models. We derive the distor…

Natural Language Queries

Prompt Compression in Diffusion Large Language Models: Evaluating LLMLingua-2 on LLaDA

2026-05-18 · Sterling Huang, Abigayle Brown, Jiyoo Noh, Jiakang Xu 외 arxiv

Prompt compression reduces inference cost and context length in large language models, but prior evaluations focus mainly on autoregressive architectures. This study examines whether LLMLingua-2 transfers effectively to …

Mathematical ReasoningSemantic Similarity

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)