mlsanityData to 7 Oct 2026

Better Prompt Compression Without Multi-Layer Perceptrons

arXiv 2501.06730 ↗First posted 12 Jan 2025cs.CL cs.LGcited by 4

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

Prompt compression is a promising approach to speeding up language model inference without altering the generative model. Prior works compress prompts into smaller sequences of learned tokens using an encoder that is trained as a LowRank Adaptation (LoRA) of the inference language model. However, we show that the encoder does not need to keep the original language model's architecture to achieve useful compression. We introduce the Attention-Only Compressor (AOC), which learns a prompt compression encoder after removing the multilayer perceptron (MLP) layers in the Transformer blocks of a language model, resulting in an encoder with roughly 67% less parameters compared to the original model. Intriguingly we find that, across a range of compression ratios up to 480x, AOC can better regenerate prompts and outperform a baseline compression encoder that is a LoRA of the inference language model without removing MLP layers. These results demonstrate that the architecture of prompt compression encoders does not need to be identical to that of the original decoder language model, paving the way for further research into architectures and approaches for prompt compression.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 15 of its 23 references that are in the map. First posted on arXiv 12 Jan 2025.

Builds on

15 of 23 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024500xCompressor: Generalized Prompt Compression for Large Language Models6 Aug
  2. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
  3. 2023In-context Autoencoder for Context Compression in a Large Language Model13 Jul
  4. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models6 Oct

Other references · 11

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2016Layer Normalizationcited by 5,579
  5. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  6. 2023Adapting Language Models to Compress Contextscited by 350
  7. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  8. 2024Many-Shot In-Context Learningcited by 203
  9. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  10. 2021Pretrained Transformers as Universal Computation Enginescited by 162
  11. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Prompt Compression for Large Language Models: A Survey
  2. 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference
  3. 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Models
  4. 2026End-to-End Context Compression at Scale
  5. 2026Lexical Prompt Compression for Large Language Models: A Training-Free, Deterministic Pipeline with Empirical Pareto Analysis Across Eleven Task Categories
  6. 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference
  7. 2024Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models
  8. 2026Prompt Compression via Activation Aggregation