TensorX
返回文献探索

Paper · arXiv 2505.15045

Diffusion vs. Autoregressive Language Models: A Text Embedding Perspective

Siyue Zhang, Yilun Zhao, Liyuan Geng, Arman Cohan, Anh Tuan Luu, Chen Zhao

57 upvotesMay 21, 2025arXiv 预印本
AI 摘要

Diffusion language models outperform large language model embeddings in text retrieval tasks due to their bidirectional architecture.

large language model (LLM)diffusion language modelsunidirectional attentionbidirectional attentiondocument retrievalreasoning-intensive retrievalinstruction-following retrievaltext embedding benchmarks

Abstract

Large language model (LLM)-based embedding models, benefiting from large scale pre-training and post-training, have begun to surpass BERT and T5-based models on general-purpose text embedding tasks such as document retrieval. However, a fundamental limitation of LLM embeddings lies in the unidirectional attention used during autoregressive pre-training, which misaligns with the bidirectional nature of text embedding tasks. To this end, We propose adopting diffusion language models for text embeddings, motivated by their inherent bidirectional architecture and recent success in matching or surpassing LLMs especially on reasoning tasks. We present the first systematic study of the diffusion language embedding model, which outperforms the LLM-based embedding model by 20% on long-document retrieval, 8% on reasoning-intensive retrieval, 2% on instruction-following retrieval, and achieve competitive performance on traditional text embedding benchmarks. Our analysis verifies that bidirectional attention is crucial for encoding global context in long and complex text.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Diffusion vs. Autoregressive Language Models: A Text Embedding Perspective | TensorX