Are Optimal Algorithms Still Optimal? Rethinking Sorting in LLM-Based Pairwise Ranking with Batching and Caching
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
We introduce a novel framework for analyzing sorting algorithms in pairwise ranking prompting (PRP), re-centering the cost model around LLM inferences rather than traditional pairwise comparisons. While classical metrics based on comparison counts have traditionally been used to gauge efficiency, our analysis reveals that expensive LLM inferences overturn these predictions; accordingly, our framework encourages strategies such as batching and caching to mitigate inference costs. We show that algorithms optimal in the classical setting can lose efficiency when LLM inferences dominate the cost under certain optimizations.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 13 of its 23 references that are in the map. First posted on arXiv 30 May 2025.
Builds on
13 of 23 references.
References · 13
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Mistral 7Bcited by 3,065
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 373
- 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 356
- 2020Overview of the TREC 2019 deep learning trackcited by 282
- 2021Overview of the TREC 2020 deep learning trackcited by 193
- 2023Zero-Shot Listwise Document Reranking with a Large Language Modelcited by 81
- 2020Active Sampling for Pairwise Comparisons via Approximate Message Passing and Information Gain Maximizationcited by 17
1 more
- 2023Sorting with Predictionscited by 14
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025LLM Optimization Unlocks Real-Time Pairwise Reranking
- 2026Ranking Reasoning LLMs under Test-Time Scaling
- 2025SortBench: Benchmarking LLMs based on their ability to sort lists
- 2023Found in the Middle: Permutation Self-Consistency Improves Listwise Ranking in Large Language Models
- 2025Batched Self-Consistency Improves LLM Relevance Assessment and Ranking
- 2025R1-Ranker: Teaching LLM Rankers to Reason
- 2026Think When Needed: Model-Aware Reasoning Routing for LLM-based Ranking
- 2025Ranking Before Serving: Low-Latency LLM Serving via Pairwise Learning-to-Rank