mlsanityData to 14 Oct 2026

SelfCP: Compressing Over-Limit Prompt via the Frozen Large Language Model Itself

arXiv 2405.17052 ↗First posted 27 May 2024cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Long prompt leads to huge hardware costs when using transformer-based Large Language Models (LLMs). Unfortunately, many tasks, such as summarization, inevitably introduce long documents, and the wide application of in-context learning easily makes the prompt length explode. This paper proposes a Self-Compressor (SelfCP), which employs the target LLM itself to compress over-limit prompts into dense vectors while keeping the allowed prompts unmodified. Dense vectors are then projected into dense tokens via a learnable connector to make the same LLM unburden to understand. The connector is supervised-tuned under the language modeling objective of the LLM on relatively long texts selected from publicly accessed datasets, involving an instruction dataset to make SelfCP respond to various prompts, while the target LLM keeps frozen during training. We build the lightweight SelfCP upon 2 different backbones with merely 17M learnable parameters originating from the connector and a learnable embedding. Evaluation on both English and Chinese benchmarks demonstrate that SelfCP effectively substitutes 12× over-limit prompts with dense tokens to reduce memory costs and booster inference throughputs, yet improving response quality. The outstanding performance brings an efficient solution for LLMs to tackle long prompts without training LLMs from scratch.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 30 of its 41 references that are in the map. First posted on arXiv 27 May 2024.

Builds on

30 of 41 references.

References · 30

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,137
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  7. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  8. 2020Longformer: The Long-Document Transformercited by 3,413
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  10. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  11. 2020Rethinking Attention with Performerscited by 1,601
  12. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
18 more
  1. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  2. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
  3. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
  4. 2023Is ChatGPT a Good NLG Evaluator? A Preliminary Studycited by 422
  5. 2023Learning to Compress Prompts with Gist Tokenscited by 390
  6. 2023Adapting Language Models to Compress Contextscited by 356
  7. 2021FNet: Mixing Tokens with Fourier Transformscited by 347
  8. 2023ChatIE: Zero-Shot Information Extraction via Chatting with ChatGPTcited by 250
  9. 2022Memorizing Transformerscited by 226
  10. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
  11. 2022Recurrent Memory Transformercited by 203
  12. 2021Learned Token Pruning for Transformerscited by 139
  13. 2023Exploring the Limits of ChatGPT for Query or Aspect-based Text Summarizationcited by 122
  14. 2022Training Language Models with Memory Augmentationcited by 113
  15. 2023Is ChatGPT a Good Sentiment Analyzer? A Preliminary Studycited by 96
  16. 2023Unlocking Context Constraints of LLMs: Enhancing Context Efficiency of LLMs with Self-Information-Based Content Filteringcited by 65
  17. 2022CICERO: A Dataset for Contextualized Commonsense Inference in Dialoguescited by 38
  18. 2022Linear Complexity Randomized Self-attention Mechanismcited by 31

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 4; 2026: 2.

8 papers.