LLM2Vec-Gen: Generative Embeddings from Large Language Models
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Fine-tuning LLM-based text embedders via contrastive learning maps inputs and outputs into a new representational space, discarding the LLM's output semantics. We propose LLM2Vec-Gen, a self-supervised alternative that instead produces embeddings directly in the LLM's output space by learning to represent the model's potential response. Specifically, trainable special tokens are appended to the input and optimized to compress the LLM's own response into a fixed-length embedding, guided by an unsupervised embedding teacher and a reconstruction objective. Crucially, the LLM backbone remains frozen and training requires only unlabeled queries. LLM2Vec-Gen achieves state-of-the-art self-supervised performance on the Massive Text Embedding Benchmark (MTEB), improving by 8.8% over the unsupervised embedding teacher. Since the embeddings preserve the LLM's response-space semantics, they inherit capabilities such as safety alignment (up to 22.6% reduction in harmful content retrieval) and reasoning (up to 35.6% improvement on reasoning-intensive retrieval). Finally, the learned embeddings are also interpretable: they can be decoded back into text to reveal their semantic content. Our code, data, and pretrained models are publicly available at https://github.com/McGill-NLP/llm2vec-gen.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 31 of its 45 references that are in the map. First posted on arXiv 11 Mar 2026.
Builds on
31 of 45 references.
References · 31
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2025Qwen3 Technical Reportcited by 8,195
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2020Supervised Contrastive Learningcited by 2,803
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 988
- 2022MTEB: Massive Text Embedding Benchmarkcited by 623
- 2020Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillationcited by 591
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
19 more
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
- 2023Improving Text Embeddings with Large Language Modelscited by 295
- 2024Generative Representational Instruction Tuningcited by 227
- 2024BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrievalcited by 153
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
- 2025SafeArena: Evaluating the Safety of Autonomous Web Agentscited by 97
- 2023Scaling Sentence Embeddings with Large Language Modelscited by 83
- 2024Repetition Improves Language Model Embeddingscited by 70
- 2025LLM-JEPA: Large Language Models Meet Joint Embedding Predictive Architecturescited by 35
- 2024Answer is All You Need: Instruction-following Text Embedding via Answering the Questioncited by 26
- 2022Joint Embedding Predictive Architectures Focus on Slow Featurescited by 24
- 2024Meta-Task Prompting Elicits Embeddings from Large Language Modelscited by 15
- 2024GenEOL: Harnessing the Generative Power of LLMs for Training-Free Sentence Embeddingscited by 14
- 2025Let LLMs Speak Embedding Languages: Generative Text Embeddings via Iterative Contrastive Refinementcited by 9
- 2025CLaRa: Bridging Retrieval and Generation with Continuous Latent Reasoningcited by 9
- 2026LatentLens: Revealing Highly Interpretable Visual Tokens in LLMscited by 9
- 2025GEM: Empowering LLM for both Embedding Generation and Language Understandingcited by 8
- 2025Exploiting Instruction-Following Retrievers for Malicious Information Retrievalcited by 4
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2023Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLM
- 2024Recent advances in text embedding: A Comprehensive Review of Top-Performing Methods on the MTEB Benchmark
- 2024LMFusion: Adapting Pretrained Language Models for Multimodal Generation
- 2025Following the Autoregressive Nature of LLM Embeddings via Compression and Alignment
- 2025GRACE: Generative Representation Learning via Contrastive Policy Optimization
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities
- 2026Repurposing Pre-trained LLMs as High Fidelity Continuous Text Autoencoders
- 2025A Comprehensive Study of Decoder-Only LLMs for Text-to-Image Generation