SelfCP: Compressing Over-Limit Prompt via the Frozen Large Language Model Itself
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
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,137
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
18 more
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
- 2023Is ChatGPT a Good NLG Evaluator? A Preliminary Studycited by 422
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2023Adapting Language Models to Compress Contextscited by 356
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2023ChatIE: Zero-Shot Information Extraction via Chatting with ChatGPTcited by 250
- 2022Memorizing Transformerscited by 226
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2022Recurrent Memory Transformercited by 203
- 2021Learned Token Pruning for Transformerscited by 139
- 2023Exploring the Limits of ChatGPT for Query or Aspect-based Text Summarizationcited by 122
- 2022Training Language Models with Memory Augmentationcited by 113
- 2023Is ChatGPT a Good Sentiment Analyzer? A Preliminary Studycited by 96
- 2023Unlocking Context Constraints of LLMs: Enhancing Context Efficiency of LLMs with Self-Information-Based Content Filteringcited by 65
- 2022CICERO: A Dataset for Contextualized Commonsense Inference in Dialoguescited by 38
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 2.
8 papers.
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modelingcited by 13
- 2025Long Context In-Context Compression by Getting to the Gist of Gistingcited by 13
- 2025Continuous Autoregressive Language Modelscited by 10
- 2024Position IDs Matter: An Enhanced Position Layout for Efficient Context Compression in Large Language Modelscited by 9
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descentcited by 9
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modelingcited by 5
- 2025BP-Seg: A graphical model approach to unsupervised and non-contiguous text segmentation using belief propagationcited by 0
- 2025ProtTeX-CC: Activating In-Context Learning in Protein LLM via Two-Stage Instruction Compressioncited by 0
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descent14 Mar 2026
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modeling2 Feb 2026
- 2025Continuous Autoregressive Language Models31 Oct 2025
- 2025ProtTeX-CC: Activating In-Context Learning in Protein LLM via Two-Stage Instruction Compression17 Aug 2025
- 2025BP-Seg: A graphical model approach to unsupervised and non-contiguous text segmentation using belief propagation22 May 2025
- 2025Long Context In-Context Compression by Getting to the Gist of Gisting11 Apr 2025
- 2024Position IDs Matter: An Enhanced Position Layout for Efficient Context Compression in Large Language Models22 Sep 2024
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modeling28 Aug 2024