DEPT: Document Embedding Preservation Tuning for Unified Query Expansion and Retrieval

Jingyuan Wang, Richong Zhang, Zhijie Nie, Mingxin Li, Yanzhao Zhang
8/18/2026
cs.IRcs.AI

Official code: ILSparkle/DEPT (0 stars, Python, MIT, last commit 2026-08-18).

Abstract

Large language models (LLMs) can both expand underspecified queries and encode text as dense representations, suggesting a unified model for query expansion and retrieval. Existing systems usually rely on prompted expansions, independently trained modules, or staged optimization, leaving generated expansions only indirectly aligned with the retrieval loss that judges them.

Show full abstract

We train a single decoder-only LLM end to end, where the same model generates the expansion and encodes both the expanded query and candidate documents. This unified setting creates a moving-target problem: retrieval supervision should improve query-side expansion, but the same update also shifts the document embeddings that serve as retrieval targets. We introduce Document Embedding Preservation Tuning (DEPT), which keeps tuned document embeddings close to cached initial embeddings while allowing retrieval gradients to pass through straight-through decoding into the generator. DEPT converts joint query--document movement into query-side adaptation against approximately stable, whitened document embeddings that support index reuse and online hard-negative mining. Experiments with Qwen3-4B-Instruct-2507 and LLaMA-3.2-3B-Instruct on five datasets in BEIR benchmark show that DEPT improves average retrieval quality over training-free, independently trained, and staged unified baselines, while ablations isolate the effects of preservation, whitening, end-to-end expansion training, and online negatives. Code is available at https://github.com/ILSparkle/DEPT.

View on arXivView PDF

Code Implementations(1)

ILSparkle/DEPTOfficial100%
MIT
00Python, ShellAug 18, 20263 months agoMIT

Similar Papers

Cite this paper

@article{wang2026dept,
  title  = {DEPT: Document Embedding Preservation Tuning for Unified Query Expansion and Retrieval},
  author = {Jingyuan Wang and Richong Zhang and Zhijie Nie and Mingxin Li and Yanzhao Zhang},
  year   = {2026},
  eprint = {2608.17632},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.17632v1}
}

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/2608.17632.svg)](https://codeofpaper.com/paper/2608.17632)

Discussion