Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation
Not on the map. Why?
Abstract (arXiv)
Text representation plays a critical role in tasks like clustering, retrieval, and other downstream applications. With the emergence of large language models (LLMs), there is increasing interest in harnessing their capabilities for this purpose. However, most of the LLMs are inherently causal and optimized for next-token prediction, making them suboptimal for producing holistic representations. To address this, recent studies introduced pretext tasks to adapt LLMs for text representation. Most of these tasks, however, rely on token-level prediction objectives, such as the masked next-token prediction (MNTP) used in LLM2Vec. In this work, we explore the untapped potential of context compression as a pretext task for unsupervised adaptation of LLMs. During compression pre-training, the model learns to generate compact memory tokens, which substitute the whole context for downstream sequence prediction. Experiments demonstrate that a well-designed compression objective can significantly enhance LLM-based text representations, outperforming models trained with token-level pretext tasks. Further improvements through contrastive learning produce a strong representation model (LLM2Comp) that outperforms contemporary LLM-based text encoders on a wide range of tasks while being more sample-efficient, requiring significantly less training data. Code is available at https://github.com/longtaizi13579/LLM2Comp.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 33 of its 42 references that are in the map. First posted on arXiv 21 Nov 2025.
Builds on
33 of 42 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
21 more
- 2019ELI5: Long Form Question Answeringcited by 567
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 357
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
- 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
- 2021Mr. TyDi: A Multi-lingual Benchmark for Dense Retrievalcited by 118
- 2017DuReader: a Chinese Machine Reading Comprehension Dataset from Real-world Applicationscited by 110
- 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 96
- 2024Making Text Embedders Few-Shot Learnerscited by 78
- 2023Llama2Vec: Unsupervised Adaptation of Large Language Models for Dense Retrievalcited by 77
- 2023To Compress or Not to Compress- Self-Supervised Learning and Information Theory: A Reviewcited by 72
- 2023T2Ranking: A large-scale Chinese Benchmark for Passage Rankingcited by 59
- 2023Dodo: Dynamic Contextual Compression for Decoder-only LMscited by 23
- 2024When Text Embedding Meets Large Language Model: A Comprehensive Surveycited by 19
- 2025Following the Autoregressive Nature of LLM Embeddings via Compression and Alignmentcited by 14
- 2024Flexibly Scaling Large Language Models Contexts Through Extensible Tokenizationcited by 6
- 2024ULLME: A Unified Framework for Large Language Model Embeddings with Generation-Augmented Learningcited by 6
- 2025Training LLMs to be Better Text Embedders through Bidirectional Reconstructioncited by 6
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction
- 2025ARC-Encoder: learning compressed text representations for large language models
- 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
- 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
- 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
- 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2026From Similarity to Structure: Training-free LLM Context Compression with Hybrid Graph Priors