Training LLMs to be Better Text Embedders through Bidirectional Reconstruction
Chang Su, Dengliang Shi, Siyuan Huang, Jintao Du, Changhua Meng, Yu Cheng, Weiqiang Wang, Zhouhan Lin
Abstract
Large language models (LLMs) have increasingly been explored as powerful text embedders. Existing LLM-based text embedding approaches often leverage the embedding of the final token, typically a reserved special token such as [EOS]. However, these tokens have not been intentionally trained to capture the semantics of the whole context, limiting their capacity as text embeddings, especially for retrieval and re-ranking tasks. We propose to add a new training stage before contrastive learning to enrich the semantics of the final token embedding. This stage employs bidirectional generative reconstruction tasks, namely EBQ2D (Embedding-Based Query-to-Document) and EBD2Q (Embedding-Based Document-to-Query), which interleave to anchor the [EOS] embedding and reconstruct either side of Query-Document pairs. Experimental results demonstrate that our additional training stage significantly improves LLM performance on the Massive Text Embedding Benchmark (MTEB), achieving new state-ofthe-art results across different LLM base models and scales. 1
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Causal2Vec: Improving Decoder-only LLMs as Embedding Models through a Contextual Token cites One Embedder, Any Task: Instruction-Finetuned Text Embeddings
- Causal2Vec: Improving Decoder-only LLMs as Embedding Models through a Contextual Token cites Dense Passage Retrieval for Open-Domain Question Answering
- Causal2Vec: Improving Decoder-only LLMs as Embedding Models through a Contextual Token cites Language Models are Few-Shot Learners
- Causal2Vec: Improving Decoder-only LLMs as Embedding Models through a Contextual Token cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- One Embedder, Any Task: Instruction-Finetuned Text Embeddings cites Dense Passage Retrieval for Open-Domain Question Answering
- One Embedder, Any Task: Instruction-Finetuned Text Embeddings cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden States cites Dense Passage Retrieval for Open-Domain Question Answering
- LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden States cites Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation
- RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encoder cites Dense Passage Retrieval for Open-Domain Question Answering
- RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encoder cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites Dense Passage Retrieval for Open-Domain Question Answering
- Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation cites One Embedder, Any Task: Instruction-Finetuned Text Embeddings
- Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
Cited by top-tier papers3
- Learning to Compress: Unlocking the Potential of Large Language Models for Text RepresentationYeqin Zhang, Yizheng Zhao, Chen Hu, Binxing Jiao et al.AAAI 2026 · 2 citations
- LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden StatesYeqin Zhang, Yunfei Wang, Jiaxuan Chen, Ke Qin et al.ICML 2026 · 1 citation
- Causal2Vec: Improving Decoder-only LLMs as Embedding Models through a Contextual TokenAiliang Lin, Zhuoyun Li, Yusong Wang, Kotaro Funakoshi et al.ACL 2026
Builds on13
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- Dense Passage Retrieval for Open-Domain Question AnsweringVladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis et al.EMNLP 2020 · 142 citations
- One Embedder, Any Task: Instruction-Finetuned Text EmbeddingsHongjin Su, Weijia Shi, Jungo Kasai, Yizhong Wang et al.ACL Findings 2023 · 134 citations
- RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-EncoderShitao Xiao, Zheng Liu, Yingxia Shao, Zhao CaoEMNLP 2022 · 63 citations
Related papers
- Negative Matters: Multi-Granularity Hard-Negative Synthesis and Anchor-Token-Aware Pooling for Enhanced Text EmbeddingsTengyu Pan, Zhichao Duan, Zhenyu Li, Bowen Dong et al.ACL 2025 · 3 citations
- Learning to Look at the Other Side: A Semantic Probing Study of Word Embeddings in LLMs with Enabled Bidirectional AttentionZhaoxin Feng, Jianfei Ma, Emmanuele Chersoni, Xiaojing Zhao et al.ACL 2025
- NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding ModelsChankyu Lee, Rajarshi Roy, Mengyao Xu, Jonathan Raiman et al.ICLR 2025
- Conan-Embedding-v2: Training an LLM from Scratch for Text EmbeddingsShiyu Li, Yang Tang, Ruijie Liu, Shi-Zhe Chen et al.EMNLP 2025
- Embedding-based In-Context Prompt Training for Enhancing LLMs as Text EncodersAiliang Lin, Zhuoyun Li, Keyu Mao, Kotaro Funakoshi et al.ACL Findings 2026
