NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Set-Encoder: Permutation-Invariant Inter-Passage Attention for Listwise Passage Re-Ranking with Cross-Encoders

Ferdinand Schlatt, Maik Fröbe, Harrisen Scells, Shengyao Zhuang, Bevan Koopman, Guido Zuccon, Benno Stein, Martin Potthast, Matthias HagenarXiv 2024 · DOI

TL;DR

The Set-Encoder is a novel cross-encoder architecture that enables listwise passage interactions without the computational bloat or order-sensitivity of traditional models. By using a dedicated interaction token ([INT]) and a modified attention mechanism, it achieves state-of-the-art re-ranking effectiveness while being up to 110x faster and inherently robust to input permutations.

What Problem Does This Paper Address?

In information retrieval, cross-encoders are the gold standard for re-ranking because they allow deep interactions between a query and a passage. These models generally fall into three categories:

  1. Pointwise: Process each passage independently. They are efficient and ignore input order, but they can't "see" other passages to account for things like redundancy or relative importance.
  2. Pairwise/Listwise: Concatenate multiple passages into one long sequence. While this allows for passage-to-passage interaction, it introduces two major flaws:
  3. Efficiency: Transformer complexity scales quadratically with sequence length. Concatenating 20+ passages makes inference painfully slow.
  4. Permutation Sensitivity: The model’s output changes depending on the order in which passages are concatenated. To get stable results, researchers often have to re-rank multiple permutations and fuse them, further killing efficiency.

The authors propose the Set-Encoder to bridge this gap, providing the interaction capabilities of listwise models with the efficiency and invariance of pointwise ones.

Methods

The Set-Encoder shifts away from the "concatenation" paradigm. Instead, it processes passages in parallel (like a batch of pointwise inputs) but introduces a "lightweight bridge" for information exchange.

  • Inter-Passage Attention: Each input sequence consists of a [CLS] token, a novel [INT] (interaction) token, the query, and a single passage. During the attention step, tokens within one passage sequence are allowed to attend to their own tokens and the [INT] tokens of all other passages in the set.
  • Permutation Invariance: Because each passage is processed as a separate sequence with positional encodings starting from zero, the model has no way of knowing the "input order." This makes it mathematically invariant to permutations by design.
  • Two-Stage Fine-Tuning: The model is first trained on MS MARCO using InfoNCE loss, then distilled from a powerful LLM-based teacher (RankZephyr) using RankNet loss.
Fig. 1: Comparison of our Set-Encoder architecture (top) with state-of-the-art listwise re-rankers (bottom) for three input passages. List-wise re-rankers concatenate the in- put passages, leading to potentially inconsistent rankings for different concatenation orderings. Many (or all) permutations are thus re-ranked for optimization. Instead, the Set-Encoder uses novel [INT] tokens for permutation-invariant inter-passage attention.

Datasets

The authors evaluated the Set-Encoder across a wide range of benchmarks:

  • TREC Deep Learning (2019 & 2020): Standard in-domain passage re-ranking tasks.
  • TIREx: A platform encompassing 13 different out-of-domain retrieval collections (e.g., CORD-19, NFCorpus, Antique).
  • Rank-DistiLLM-Novelty: A new dataset introduced in this paper to test novelty-aware ranking. It uses Jaccard similarity clustering on MS MARCO to identify near-duplicate passages, challenging models to rank diverse information higher.

Key Insights and Ideas

  • The "Unnecessity" of Interactions: Surprisingly, for standard TREC-style benchmarks, passage interactions don't actually help much. Pointwise models perform just as well because standard relevance judgments are independent.
  • Novelty is the Real Test: The benefits of listwise models only truly emerge when the task requires comparing passages—such as filtering out near-duplicates (novelty) or ensuring diversity. In these scenarios, the Set-Encoder significantly outperforms pointwise baselines.
  • LLMs are Biased by Position: The study shows that state-of-the-art LLM re-rankers (like RankGPT-4o) have strong positional biases, often favoring passages that appear earlier in the input or struggling to move passages across "window" boundaries. The Set-Encoder eliminates this bias entirely.
  • The [INT] Token is Essential: The authors found that using the standard [CLS] token for inter-passage communication was ineffective. A dedicated, "fresh" [INT] token is necessary to learn these complex interactions during fine-tuning.

Key Results

  • Effectiveness: On TREC DL 19/20, the 330M parameter Set-Encoder matched or exceeded the performance of much larger models like RankZephyr (7B) and RankGPT-4o.
  • Speedup: The Set-Encoder is 33x faster than RankGPT-4o (when re-ranking 100 passages at once) and 110x faster than RankZephyr.
  • Memory Efficiency: It uses 6x less GPU memory than RankZephyr, making it much more accessible for production environments.
  • Robustness: Unlike LiT5 or RankGPT, which lose significant effectiveness when the input order is "corrupted" (e.g., inverse ideal order), the Set-Encoder’s performance remains perfectly flat regardless of permutation.
Table 1 showing nDCG@10 scores. The Set-Encoder (bottom) is on par with or better than state-of-the-art listwise models across TREC DL 19 and 20.

Limitations and Future Work

  • Interaction "Priming": The model doesn't automatically learn to use the [INT] tokens just by training on standard relevance data. It requires specific "priming" tasks—like duplicate detection—to force the model to utilize the inter-passage attention mechanism.
  • Scaling the Set Size: While the paper tests re-ranking 100 passages, future work could explore the limits of how many passages can be effectively "bridged" via [INT] tokens before the attention mechanism becomes saturated or noisy.
  • Pre-training: The current model uses standard ELECTRA checkpoints. Developing a pre-training objective specifically designed for inter-passage attention could further boost performance.

Summary updated

BibTeX
@misc{schlatt2024set,
  author = {Ferdinand Schlatt and Maik Fröbe and Harrisen Scells and Shengyao Zhuang and Bevan Koopman and Guido Zuccon and Benno Stein and Martin Potthast and Matthias Hagen},
  title = {{Set-Encoder: Permutation-Invariant Inter-Passage Attention for Listwise Passage Re-Ranking with Cross-Encoders}},
  year = {2024},
  eprint = {2404.06912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.06912},
}

Loading related content...

Figure