Research map / Large language models / Reasoning and chain of thought
Are Optimal Algorithms Still Optimal? Rethinking Sorting in LLM-Based Pairwise Ranking with Batching and Caching
Juan Wisznia, Cecilia Bolaños, Juan Tollo, Giovanni Marraffini, Agustín Gianolini, Noe Hsueh, Luciano Del Corro
Universidad de Buenos Aires · Lumina Labs
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Larger batch size
increase batch size from 2 to 128 · TREC DL 2019 (Flan-T5-L) · LLM inferences: 124.8 -> 13.2 Improved
What 943 accepted papers report for this change
- 539 improved
- 126 no clear effect
- 61 mixed
- 217 hurt
- Predicting the Emergence of Induction Heads in Language Model Pretraining ICML 2026 · increase batch size (fixed context 1024) · Natural data (CC100) · induction head emergence point (updates): rho=-1.0, p<0.001Improved
- When RL Meets Adaptive Speculative Training: A Unified Training-Serving System ICML 2026 · Increase batch size from 1 to 32 · MiniMax M2.1 FP8 · speedup: 1.57x -> 1.25xHurt
- Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking ICML 2026 · increase per-device batch size to 10 using freed memory · Llama 3-8B, 128K · throughput (TPS): 2464.10 (Ulysses) -> 2526.77 (UPipe)Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| batch size 2 instead of 1 for Quicksort partitioning | Quicksort vs Heapsort · TREC DL / BEIR | LLM inference calls: about 44-45% fewer inference calls than Heapsort | Improved |
| add caching of repeated comparisons (ablation) | Bubblesort · TREC DL / BEIR | LLM inference calls: 46% average reduction | Improved |
| add caching (ablation) | Bubblesort · TREC DL 2019 (Flan-T5-L) | LLM inferences: 843.7 -> 388.3 | Improved |
| add caching or batching (ablation) | Bubblesort / Quicksort · ranking quality | NDCG@10: same NDCG@10 with and without caching/batching | No clear effect |
| increase batch size from 2 to 128 (ablation) | Quicksort (median of three) · TREC DL 2019 (Flan-T5-L) | LLM inferences: 124.8 -> 13.2 | Improved |
| use Quicksort at batch 128 instead of Heapsort | Quicksort · BEIR (A100) | latency: 5.52x faster with similar nDCG@10 | Improved |
| use Quicksort (median of three, b=2) instead of Heapsort | Flan-T5-L · Touche2020 | NDCG@10: 0.332 -> 0.274 | Hurt |
| use cached Bubblesort instead of Heapsort | Flan-T5-L · Touche2020 | NDCG@10: 0.332 -> 0.447 | Improved |
| use Quicksort (median of three) instead of Heapsort | Flan-T5-XL · TREC DL 2019 | NDCG@10: 0.706 -> 0.696 | Hurt |
| increase GPU batch size | Flan-T5-Large single forward pass · A100 / RTX 3090 / RTX 2080 Ti | throughput speed-up: near-ideal scaling up to batch 8 (A100), 2 (3090), 4 (2080 Ti), then saturates | Mixed |
Open problems this paper states
- “Experiments are limited to medium-sized LLMs for budgetary and computational reasons.” → Tested only on models of about 14B parameters or fewer. (an open problem in routing, pruning and distillation for reasoning)
Open problems in routing, pruning and distillation for reasoning
Do routing, pruning and distillation savings hold on larger models, open-ended tasks and real deployments?
- The cost-saving method adds its own extra passes, calls or latency. · 14 papers state it
- Tested only on models of about 14B parameters or fewer. · 14 papers state it
- Building the supervision needs many rollouts, searches or samples offline. · 9 papers state it
Closest papers by meaning
- Active Learners as Efficient PRP Rerankers (EMNLP 2026 · similarity 0.89)
- Just Sort It! A Simple and Effective Approach to Active Preference Learning (ICML 2017 · similarity 0.87)
- Ranking Reasoning LLMs under Test-Time Scaling (ACL 2026 · similarity 0.87)
- Ranking Unraveled: Recipes for LLM Rankings in Head-to-Head AI Combat (ACL 2025 · similarity 0.87)
- PiRank: Scalable Learning To Rank via Differentiable Sorting (NeurIPS 2021 · similarity 0.87)
- Language Ranker: A Lightweight Ranking framework for LLM Decoding (NeurIPS 2025 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.