LLM2Vec-Gen: Generative Embeddings from Large Language Models

Parishad BehnamGhader, Vaibhav Adlakha, Fabian David Schmidt, Nicolas Chapados, Marius Mosbach, Siva Reddy

TL;DR

LLM2VEC-GEN shifts the text embedding paradigm from "what does this input say?" to "what would the LLM respond?" By compressing potential LLM responses into fixed-length vectors using a frozen backbone, it achieves state-of-the-art self-supervised performance while preserving the model's inherent reasoning and safety alignment.

What Problem Does This Paper Address?

Traditional text embeddings follow an "input-centric" paradigm. Whether using BERT or modern Large Language Models (LLMs), the goal is typically to represent the semantic content of the input text itself. To make these embeddings useful for tasks like retrieval, researchers usually rely on contrastive learning—fine-tuning models on massive, curated datasets to force queries and relevant documents into a shared representational space.

The authors argue that this process is counterproductive. By forcing the LLM into a new representational space, we often discard the "output semantics"—the rich reasoning, safety guardrails, and world knowledge the LLM acquired during its massive pretraining. Furthermore, there is often a "lexical gap" between a query (e.g., a question) and a document (e.g., an answer). LLM2VEC-GEN aims to bridge this gap by representing the query in the space of the LLM’s potential response.

Methods

The core innovation of LLM2VEC-GEN is its output-centric approach. Instead of encoding the query, the model learns to encode what it would say in response to that query.

  1. Frozen Backbone: The underlying LLM (e.g., Llama-3 or Qwen-2.5) remains completely frozen. This ensures the model retains its pretrained capabilities and makes training highly parameter-efficient.
  2. Compression Tokens: The authors add a small set of trainable "special tokens" (usually 10) to the vocabulary. These are appended to the input query as placeholders for the response.
  3. Dual Training Objectives:
    • Embedding Alignment ($L_{align}$): The model first generates a text response to a query. An unsupervised "teacher" model (like LLM2Vec) embeds that response. The trainable tokens are then optimized to match this teacher's embedding.
  4. Response Reconstruction ($L_{recon}$): To ensure the embeddings stay grounded in natural language, the model must be able to reconstruct the original text response using only these embeddings as a "soft prompt."
  5. Self-Supervision: The entire pipeline is self-supervised. It only requires a corpus of unlabeled queries; the LLM provides its own training targets by generating responses.

Datasets

The authors evaluated LLM2VEC-GEN across a diverse set of benchmarks to test general capability, safety, and reasoning:

  • Training: 160K unlabeled queries from the Tulu instruction-following dataset.
  • MTEB (Massive Text Embedding Benchmark): The standard for general text embedding performance (41 tasks).
  • AdvBench-IR: A benchmark designed to measure how vulnerable a retriever is to malicious or harmful queries.
  • BRIGHT: A reasoning-intensive retrieval benchmark where relevance requires logical deduction rather than simple keyword matching.
  • MTEB-Lite: A subset of 10 MTEB tasks used for ablation studies.

Key Insights and Ideas

  • Inheriting Safety: This is perhaps the most striking finding. Because the embedding represents the response, if an LLM is trained to refuse a harmful query (e.g., "I cannot help with that"), the resulting embedding reflects that refusal. This led to a 22.6% reduction in harmful content retrieval compared to standard models that encode the malicious intent of the query.
  • Reasoning Transfer: Reasoning capabilities that manifest in text generation transfer directly to the embedding space. The model saw up to a 35.6% improvement on the BRIGHT benchmark, which requires deep semantic understanding.
  • Interpretability by Design: Unlike most "black box" embeddings, LLM2VEC-GEN embeddings are decodable. Because of the reconstruction loss, you can pass the embedding back through the LLM to see the text it represents.
  • Efficiency: For an 8B parameter model, the training takes only about 3.5 hours on two H100 GPUs because only the special tokens and tiny projection layers (MLPs) are updated.

Key Results

  • State-of-the-Art: LLM2VEC-GEN achieved a new self-supervised SOTA on MTEB, outperforming its own unsupervised teacher models by an average of 8.8%.
  • Closing the Gap: On Qwen-3-8B, the model reached a score of 61.9 on MTEB, narrowing the gap to heavily supervised models to just 3.8 points.
  • Interpretability: Qualitative analysis showed that the embeddings for a query about "polar bears" decoded into tokens like "Arctic," "ice," and "snow," proving the model successfully captures answer-centric semantics.

Limitations and Future Work

  • Teacher Bottleneck: The model currently relies on an external unsupervised teacher (LLM2Vec) to provide alignment targets. The authors suggest a "Full JEPA mode" in the future where the LLM acts as its own teacher, eliminating this dependency.
  • Lexical Matching: The authors noted a marginal decline in performance on some standard retrieval tasks (like Qwen-3-4B on MTEB). They hypothesize that the output-centric approach might occasionally overlook surface-level keyword matches that certain benchmarks reward.
  • Latent Chaining: The authors propose "latent chaining"—feeding embeddings back into the model to perform multi-step reasoning entirely in the compressed vector space, which could significantly reduce the latency of complex reasoning tasks.

Summary updated

BibTeX
@inproceedings{behnamghader2026llm,
  author = {Parishad BehnamGhader and Vaibhav Adlakha and Fabian David Schmidt and Nicolas Chapados and Marius Mosbach and Siva Reddy},
  title = {{LLM2Vec-Gen: Generative Embeddings from Large Language Models}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=beZvWBRRtM},
}
Figure