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

Source: [One Pass, Any Order: Position-Invariant Listwise Reranking for LLM-Based Recommendation](<https://www.sota2.com/research/paper/69f433be55a3c32af89fd2ff>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-07-21T05:00:05.525Z

Authors: Ethan Bito, Yongli Ren, Estrid He

Published: 2026-04-30T08:49:44.000Z

## 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. 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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Reranking on Amazon Books (HR, nDCG, Tau, Rho)](<https://www.sota2.com/research/sota/reranking-on-amazon-books-hr-ndcg-tau-rho.md>): Reranking; Amazon Books; HR@5: 52.16.

- [Reranking on MovieLens 32M](<https://www.sota2.com/research/sota/reranking-on-movielens-32m.md>): Reranking; MovieLens 32M; HR@5: 97.66.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2604.27599>)

[PDF](<https://arxiv.org/pdf/2604.27599.pdf>)
