One Pass, Any Order: Position-Invariant Listwise Reranking for LLM-Based Recommendation

Ethan Bito, Yongli Ren, Estrid He
4/30/2026
15 citations
cs.IRcs.LG

Official code: ejbito/InvariRank (5 stars, Python, MIT, last commit 2026-08-18).

Abstract

Large language models (LLMs) are increasingly used for recommendation reranking, but their listwise predictions can depend on the order in which candidates are presented. This creates a mismatch between the set-based nature of recommendation and the sequence-based computation of decoder-only LLMs, where permuting an otherwise identical candidate set can change item scores and final rankings.

Show full abstract

Such order sensitivity makes LLM-based rerankers difficult to rely on, since rankings may reflect prompt serialization rather than user preference. We propose InvariRank, a permutation-invariant listwise reranking framework that addresses this dependence at the architectural level. InvariRank blocks cross-candidate attention with a structured attention mask and negates position-induced scoring changes through shared positional framing under Rotary Positional Embeddings (RoPE). Combined with a listwise learning-to-rank objective, the model scores all candidates in a single forward pass, avoiding permutation-based invariance training objectives that require multiple permutations of a candidate set. Experiments on recommendation benchmarks show that InvariRank maintains competitive ranking effectiveness while producing stable rankings across candidate permutations. The results suggest that architectural invariance is a practical route to reliable and efficient LLM-based recommendation reranking. The source code is at https://github.com/ejbito/InvariRank.

View on arXivView PDF

Code Implementations(1)

ejbito/InvariRankOfficial100%
MIT

[SIGIR '26] [RecSys '26] InvariRank: Position-Invariant and Position-Bias-Aware LLM Reranking

50PythonApr 30, 20263 months agoMIT

Similar Papers

Cite this paper

@article{bito2026pass,
  title  = {One Pass, Any Order: Position-Invariant Listwise Reranking for LLM-Based Recommendation},
  author = {Ethan Bito and Yongli Ren and Estrid He},
  year   = {2026},
  eprint = {2604.27599},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.27599v1}
}

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

Discussion