Skip to yearly menu bar Skip to main content


Oral
in
Workshop: Workshop on Theoretical Foundations of Foundation Models (TF2M)

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

Adway Girish · Alliot Nagle · Ashok Vardhan Makkuva · Marco Bondaschi · Michael Gastpar · Hyeji Kim


Abstract:

We formalize the problem of token-level hard prompt compression for black-box large language models (LLMs). We derive the distortion-rate function for this setup as a linear program, and provide an efficient algorithm to compute this fundamental limit via its dual. We compare the performance of existing compression schemes with this fundamental limit on a synthetic dataset consisting of prompts generated from a Markov chain, natural language queries, and their respective answers. Our empirical analysis demonstrates the criticality of the compressor being aware of the downstream task/query for the black-box. We observe a large gap between the performance of current prompt compression methods and the optimal strategy, and propose a query-aware, variable-rate adaptation of a prior work to close the gap.

Chat is not available.