GEM: Empowering LLM for both Embedding Generation and Language Understanding
Not on the map. Why?
Abstract (arXiv)
Large decoder-only language models (LLMs) have achieved remarkable success in generation and reasoning tasks, where they generate text responses given instructions. However, many applications, e.g., retrieval augmented generation (RAG), still rely on separate embedding models to generate text embeddings, which can complicate the system and introduce discrepancies in understanding of the query between the embedding model and LLMs. To address this limitation, we propose a simple self-supervised approach, Generative Embedding large language Model (GEM), that enables any large decoder-only LLM to generate high-quality text embeddings while maintaining its original text generation and reasoning capabilities. Our method inserts new special token(s) into a text body, and generates summarization embedding of the text by manipulating the attention mask. This method could be easily integrated into post-training or fine tuning stages of any existing LLMs. We demonstrate the effectiveness of our approach by applying it to two popular LLM families, ranging from 1B to 8B parameters, and evaluating the transformed models on both text embedding benchmarks (MTEB) and NLP benchmarks (MMLU). The results show that our proposed method significantly improves the original LLMs on MTEB while having a minimal impact on MMLU. Our strong results indicate that our approach can empower LLMs with state-of-the-art text embedding capabilities while maintaining their original NLP performance
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 29 of its 35 references that are in the map. First posted on arXiv 4 Jun 2025.
Builds on
29 of 35 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2023Mistral 7Bcited by 3,164
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
17 more
- 2020Aligning AI With Shared Human Valuescited by 723
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 361
- 2023Adapting Language Models to Compress Contextscited by 356
- 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 272
- 2024Generative Representational Instruction Tuningcited by 233
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 199
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
- 2024VoCo-LLaMA: Towards Vision Compression with Large Language Modelscited by 79
- 2024Repetition Improves Language Model Embeddingscited by 72
- 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separatorcited by 41
- 2024Efficient Continual Pre-training by Mitigating the Stability Gapcited by 25
- 2024A Silver Bullet or a Compromise for Full Attention? A Comprehensive Study of Gist Token-based Context Compressioncited by 17
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2025Position: Text Embeddings Should Capture Implicit Semantics, Not Just Surface Meaningcited by 10
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2025HT-Transformer: Event Sequences Classification by Accumulating Prefix Information with History Tokenscited by 3
- 2026Learn Before Represent: Bridging Generative and Contrastive Learning for Domain-Specific LLM Embeddingscited by 2
- 2026LLM2Vec-Gen: Generative Embeddings from Large Language Modelscited by 2
- 2026Efficient Iterative Retrieval with Heterogeneous Batchingcited by 1
- 2026A Unified Model and Document Representation for On-Device Retrieval-Augmented Generationcited by 0
- 2026Integrating Chain-of-Thought into Generative Retrieval: A Preliminary Studycited by 0
- 2026Efficient Iterative Retrieval with Heterogeneous Batching21 Sep 2026
- 2026Integrating Chain-of-Thought into Generative Retrieval: A Preliminary Study21 May 2026
- 2026A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation15 Apr 2026
- 2026LLM2Vec-Gen: Generative Embeddings from Large Language Models11 Mar 2026
- 2026Learn Before Represent: Bridging Generative and Contrastive Learning for Domain-Specific LLM Embeddings16 Jan 2026
- 2025HT-Transformer: Event Sequences Classification by Accumulating Prefix Information with History Tokens2 Aug 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Position: Text Embeddings Should Capture Implicit Semantics, Not Just Surface Meaning10 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2024One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Models
- 2025Exploring Reasoning-Infused Text Embedding with Large Language Models for Zero-Shot Dense Retrieval
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities
- 2024Recent advances in text embedding: A Comprehensive Review of Top-Performing Methods on the MTEB Benchmark
- 2024Embedding-Informed Adaptive Retrieval-Augmented Generation of Large Language Models
- 2025LMAR: Language Model Augmented Retriever for Domain-specific Knowledge Indexing
- 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reduction
- 2026Latent Abstraction for Retrieval-Augmented Generation