atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Formalizes hard-prompt compression for black-box LLMs as a rate-distortion problem, computes the optimal distortion-rate function via a dual LP, and proposes Adaptive QuerySelect, a query-aware variable-rate LLMLingua-2 variant that nearly matches the optimum on a synthetic binary-prompt task.

Problem

Prompt compression for black-box LLMs lacks a formal framework, and it is unknown how far existing token-level compression methods are from the fundamental rate-distortion limit, or how much query-awareness and tokenization matter.

Approach

Model the compressor as a conditional distribution over compressed prompts with a rate constraint, write the distortion-rate function as a linear program, and solve its dual efficiently via a lower-left convex envelope algorithm; use this as the optimal baseline to evaluate existing compressors and propose a query-aware, variable-rate threshold-based LLMLingua-2 adaptation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Condition compression on the query (QuerySelect vs. LLMLingua-2)LLMLingua-2 prompt compression · Synthetic datasetdistortionHelped
Use query-aware, variable-rate compression (Adaptive QuerySelect) instead of fixed-rate compressionLLMLingua-2 prompt compression · Synthetic datasetdistortionHelped
Use query-aware, variable-rate compression (Adaptive QuerySelect) instead of fixed-rate compressionLLMLingua-2 prompt compression · Small natural language datasetdistortionHelped
Use query-aware compression (QuerySelect) instead of query-agnostic compression (LLMLingua-2)LLMLingua-2 prompt compression · Small natural language datasetdistortionHelped
Use query-aware, variable-rate compression (Adaptive QuerySelect) instead of fixed-rate query-aware compression (QuerySelect)LLMLingua-2 prompt compression · Synthetic dataset, selected querydistortionNo clear effect
Use query-aware compression (LLMLingua Query) instead of vanilla LLMLinguaLLMLingua · Synthetic dataset, selected querydistortionMixed
Use standard tokenization instead of forced tokenization (ablation)Prompt compression methods · Synthetic datasetdistortionNo clear effect
Restrict candidate compressed prompts to pruned versions of the original prompt instead of all shorter sequences (ablation)Optimal distortion-rate strategy · Small natural language datasetdistortionNo clear effect
Use LLMLingua-2-based compression instead of no compressionLLMLingua-2 methods · Small natural language datasetdistortionHelped
Use query-aware rather than query-agnostic compressionPrompt compression methods · NarrativeQAdistortionHelped

Surprising findings

Limitations

Experimental setup

Datasets: Databricks Dolly 15k NarrativeQA

Benchmarks: NarrativeQA

Metrics: log loss 0/1 loss RougeL BertScore

Baselines: Selective Context LLMLingua LLMLingua Query LLMLingua-2 QuerySelect

Builds on: LLMLingua-2 LLMLingua Selective Context LongLLMLingua

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy