# Close and Sort: Exact Maximum-Likelihood Aggregation of Cyclic Rank-Two Preferences

arXiv: https://arxiv.org/abs/2611.10538 · HTML: https://mlsanity.com/paper/2611.10538/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 6 of its 49 references that are in the map.
- Submitted 7 Nov 2026.

## Builds on (most cited first, 6 of 6)

- [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://mlsanity.com/paper/2306.05685/) (2023)
- [G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment](https://mlsanity.com/paper/2303.16634/) (2023)
- [From Crowdsourced Data to High-Quality Benchmarks: Arena-Hard and BenchBuilder Pipeline](https://mlsanity.com/paper/2406.11939/) (2024)
- [Investigating Non-Transitivity in LLM-as-a-Judge](https://mlsanity.com/paper/2502.14074/) (2025)
- [Stochastically Transitive Models for Pairwise Comparisons: Statistical and Computational Issues](https://mlsanity.com/paper/1510.05610/) (2015)
- [Minimum Weighted Feedback Arc Sets for Ranking from Pairwise Comparisons](https://mlsanity.com/paper/2412.16181/) (2024)

## Abstract (arXiv)

Pairwise probabilities arise in rank aggregation, recommendation, and human or LLM evaluation, yet converting them into a maximum-likelihood list is a weighted Kemeny problem and is NP-hard in general. Known exact algorithms for rank-two tournaments use only comparison signs and do not optimize this likelihood. We show that the weighted problem is exactly solvable when the skew-symmetric log-odds matrix Wij=log(pij/pji) has rank two, including when the induced preferences contain cycles. Writing Wij=det(hi,hj) and adding the closing vector h0=-sumi hi turns the objective into twice the signed area of a closed polygon. This geometry yields CloseSort, which polar-sorts the n+1 edge vectors, cuts after h0, and returns a global maximum-likelihood order in O(nlog n) time from the factors. The same geometry identifies the runner-up and gives a stability certificate beyond exact rank two. When the smallest determinant δ of two consecutive edges in the closed angular cycle is positive, it is exactly the best-to-runner-up log-likelihood gap. For W=W0+E, the CloseSort order of W0 has regret at most sumi<j|Eij| on W and remains optimal whenever this sum is below δ, a worst-case tight threshold. In 5,120 determinant-logit simulations, increasing the observations per pair from 4 to 64 raises the fraction on which rank-two projection outperforms the empirical plug-in optimum from 68.6% to 85.7%. On 3,600 Arena-Hard LLM-judge profiles drawn from 63 systems and ten judges, the leading rank-two component captures 89.2% of the log-odds energy. On profiles containing a directed majority triangle, CloseSort reduces normalized regret by 44% relative to Borda and improves the mean normalized objective over each of eight baselines. With factors supplied, it is 8,407 times faster than exact dynamic programming on 18-item rankings.
