Gumbel Reranking: Differentiable End-to-End Reranker Optimization

Siyuan Huang, Zhiyuan Ma, Jintao Du, Changhua Meng, Weiqiang Wang +3 more
2/16/2025
cs.CLcs.IR

No official code found. Best implementation: LUMIA-Group/Gumbel-Reranking (4 stars, last commit 2025-05-20).

Abstract

RAG systems rely on rerankers to identify relevant documents. However, fine-tuning these models remains challenging due to the scarcity of annotated query-document pairs. Existing distillation-based approaches suffer from training-inference misalignment and fail to capture interdependencies among candidate documents. To overcome these limitations, we reframe the reranking process as an attention-mask problem and propose Gumbel Reranking, an end-to-end training framework for rerankers aimed at minimizing the training-inference gap. In our approach, reranker optimization is reformulated as learning a stochastic, document-wise Top-$k$ attention mask using the Gumbel Trick and Relaxed Top-$k$ Sampling. This formulation enables end-to-end optimization by minimizing the overall language loss. Experiments across various settings consistently demonstrate performance gains, including a 10.4\% improvement in recall on HotpotQA for distinguishing indirectly relevant documents.

View on arXivView PDF

Code Implementations(1)

Official implementation for "Gumbel Reranking: Differentiable End-to-End Reranker Optimization" (ACL 2025 Main)

40Shell, PythonMay 20, 20251 years ago

Similar Papers

Cite this paper

@article{huang2025gumbel,
  title  = {Gumbel Reranking: Differentiable End-to-End Reranker Optimization},
  author = {Siyuan Huang and Zhiyuan Ma and Jintao Du and Changhua Meng and Weiqiang Wang and Jingwen Leng and Minyi Guo and Zhouhan Lin},
  year   = {2025},
  eprint = {2502.11116},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11116v2}
}

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

Discussion