ExpandR: Teaching Dense Retrievers Beyond Queries with LLM Guidance

Sijia Yao, Pengcheng Huang, Zhenghao Liu, Yu Gu, Yukun Yan +2 more
2/24/2025
17 citations
cs.IRcs.AI
rlhf-rlvr-dpo

Official code: NEUIR/ExpandR (39 stars, Python, last commit 2025-08-13).

Abstract

Large language models (LLMs) have demonstrated significant potential in enhancing dense retrieval through query augmentation. However, most existing methods treat the LLM and the retriever as separate modules, overlooking the alignment between generation and ranking objectives.

Show full abstract

In this work, we propose ExpandR, a unified LLM-augmented dense retrieval framework that jointly optimizes both the LLM and the retriever. ExpandR employs the LLM to generate semantically rich query expansions, which are leveraged to enhance the retriever's training. Simultaneously, the LLM is trained using Direct Preference Optimization (DPO), guided by a carefully designed reward function that balances retrieval effectiveness and generation consistency. This joint optimization paradigm enables mutual adaptation between the LLM and the retriever, resulting in query expansions that are both informative and well-suited for retrieval. Experimental results on multiple benchmarks show that ExpandR consistently outperforms strong baselines, achieving more than a 5% improvement in retrieval performance. All codes are available at https://github.com/NEUIR/ExpandR.

View on arXivView PDF

Code Implementations(1)

NEUIR/ExpandROfficial100%

[EMNLP '25] Source code for paper "ExpandR: Teaching Dense Retrievers Beyond Queries with LLM Guidance"

390Python, MDXFeb 24, 20251 years ago

Similar Papers

Cite this paper

@article{yao2025expandr,
  title  = {ExpandR: Teaching Dense Retrievers Beyond Queries with LLM Guidance},
  author = {Sijia Yao and Pengcheng Huang and Zhenghao Liu and Yu Gu and Yukun Yan and Shi Yu and Ge Yu},
  year   = {2025},
  eprint = {2502.17057},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.17057v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.17057.svg)](https://codeofpaper.com/paper/2502.17057)

Discussion