DiffuRank: Effective Document Reranking with Diffusion Language Models

Qi Liu, Kun Ai, Jiaxin Mao, Yanzhao Zhang, Mingxin Li, Dingkun Long, Pengjun Xie, Fengbin Zhu, Ji-Rong Wen

Abstract

Recent advances in large language models (LLMs) have inspired new paradigms for document reranking. While this paradigm better exploits the reasoning and contextual understanding capabilities of LLMs, most existing LLM-based rerankers rely on autoregressive generation, which limits their efficiency and flexibility. In particular, token-by-token decoding incurs high latency, while the fixed left-to-right generation order causes early prediction errors to propagate and is difficult to revise. To address these limitations, we explore the use of diffusion language models (dLLMs) for document reranking and propose DiffuRank, a reranking framework built upon dLLMs. Unlike autoregressive models, dLLMs support more flexible decoding and generation processes that are not constrained to a left-to-right order, and enable parallel decoding, which may lead to improved efficiency and controllability. We investigate three reranking strategies: pointwise, logit-based listwise, and permutation-based listwise. Experimental results show that dLLMs achieve performance comparable to, and in some cases exceeding, that of autoregressive LLMs with similar model sizes.

Introduction

In modern information retrieval, reranking is the crucial second stage where a small set of candidate documents is re-ordered to ensure the most relevant content appears at the top. While Large Language Models (LLMs) have become the state-of-the-art for this task, their standard autoregressive (AR) architecture presents significant challenges. AR models generate ranked lists token-by-token from left to right. This sequential nature leads to high inference latency and "exposure bias," where a single mistake at the start of a list forces the model to generate the remainder of the ranking based on that error.

To solve these issues, we introduce DiffuRank, a framework that utilizes Diffusion Language Models (dLLMs) for document reranking. By moving away from sequential generation, DiffuRank enables parallel decoding and bidirectional context processing, allowing the model to refine the entire ranking list simultaneously.

Methodology

DiffuRank is built upon LLaDA-1.5-8B, a state-of-the-art diffusion-based language model. We propose three distinct strategies to leverage the unique properties of dLLMs:

1. Pointwise and Logits-based Listwise Reranking

In the pointwise approach, the model estimates the relevance of a single query-document pair by predicting a score (0 or 1) at a masked token position. The Logits-based Listwise approach extends this by prompting the model to assess multiple documents at once. Instead of generating a text list, the model predicts relevance scores for all documents in parallel via multiple mask tokens in a single forward pass.

2. Permutation-based Listwise Reranking

This approach directly generates a sequence of document identifiers (e.g., "A B C"). To ensure the model produces valid, non-duplicate rankings, we introduce two novel inference methods:

  • Constrained Sampling: An iterative process that dynamically masks and updates the set of available document IDs at each denoising step.
  • Assignment (Hungarian Algorithm): A "one-shot" method that treats ranking as a bipartite matching problem. It uses the model's logit matrix to find the optimal valid permutation of IDs in a single step.
Overview of DiffuRank's listwise reranking strategies, including logit-based scoring and permutation-based inference via diffusion and the Hungarian algorithm.

Training Strategies

The models are fine-tuned using listwise distillation, where a larger teacher model (GPT-4) provides ground-truth rankings. We also introduce a DocID Mask strategy, which forces the model to specifically learn the structure and dependencies of document identifier sequences during training.

Experimental Results

We evaluated DiffuRank across several benchmarks, including TREC Deep Learning (2019 & 2020) and the BEIR suite of zero-shot retrieval tasks.

Performance and Efficiency

After fine-tuning on a subset of MS MARCO, DiffuRank (using the Permutation-Assign method) achieved an average NDCG@10 of 55.21 on BEIR. This outperformed fine-tuned versions of Llama-3.1-8B (54.28) and Qwen3-8B (53.39).

Furthermore, DiffuRank demonstrates superior efficiency. In listwise tasks, it can achieve high accuracy with just 2-4 denoising steps. In contrast, autoregressive models must generate dozens of tokens sequentially to produce a list of 20 documents, making DiffuRank significantly faster in high-throughput scenarios.

Bidirectional Context and Coarse-to-Fine Dynamics

A key advantage of dLLMs is bidirectional attention. Unlike AR models that only look "backward," every document in a DiffuRank prompt can "see" every other document, facilitating better cross-document comparison. Analysis of the denoising process reveals a "coarse-to-fine" dynamic: the model typically identifies the most and least relevant documents in the first few steps and spends later iterations refining the ambiguous documents in the middle of the list.

Conclusion

DiffuRank proves that diffusion-based language models are a powerful and efficient alternative to autoregressive architectures for document reranking. By enabling parallel decoding and global refinement, DiffuRank overcomes the latency and error propagation issues inherent in sequential generation while delivering state-of-the-art ranking performance.

Summary updated

BibTeX
@misc{liu2026diffurank,
  author = {Qi Liu and Kun Ai and Jiaxin Mao and Yanzhao Zhang and Mingxin Li and Dingkun Long and Pengjun Xie and Fengbin Zhu and Ji-Rong Wen},
  title = {{DiffuRank: Effective Document Reranking with Diffusion Language Models}},
  year = {2026},
  eprint = {2602.12528},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.12528},
}
Figure