The Complexity Gap Between Maxing and Ranking

19 concepts6 papers1 proposal

When sorting a list of numbers, finding the largest element and sorting the entire array are closely related problems. Finding the maximum takes linear time ($O(n)$), while sorting takes log-linear time ($O(n \log n)$). The gap between them is small.

However, when we move from deterministic numbers to noisy, pairwise preferences—where we only observe the probability $P(A > B)$ that item $A$ beats item $B$—this gap widens into a chasm. In preference learning, finding the single best item ("maxing") can be exceptionally easy, while fully ordering the set ("ranking") remains brutally difficult.

Understanding why this complexity gap exists requires looking at the geometric and mathematical structure of human (or algorithmic) preferences, a landscape mapped out across several foundational papers.

The Spectrum of Stochastic Transitivity

To analyze noisy preferences, theorists categorize data based on how "consistent" the probabilities are. If we know that $A$ is preferred to $B$ ($P(A > B) \ge 0.5$) and $B$ is preferred to $C$ ($P(B > C) \ge 0.5$), what can we say about the relationship between $A$ and $C$?

The answer depends on the assumed strength of stochastic transitivity:

  • Weak Stochastic Transitivity (WST): Simply asserts that $P(A > C) \ge 0.5$. The direction of preference is preserved, but nothing more.
  • Strong Stochastic Transitivity (SST): Asserts that the preference becomes stronger when items are further apart: $P(A > C) \ge \max(P(A > B), P(B > C))$.

Intuitively, you might think we should always assume the strictest condition (SST) to make algorithms efficient. However, Björn Haddenhorst et al. demonstrated a fundamental barrier to this approach: it is mathematically impossible to verify any form of transitivity stronger than WST within a finite expected number of samples. If your online ranking system relies on strict assumptions, you can never actually prove your data satisfies them. This forces researchers to confront the stark complexity differences between these regimes.

Why Maxing is Easier Than Ranking

The core of the complexity gap lies in how information scales under these transitivity models.

As shown by Moein Falahatgar et al., if your data satisfies SST, maxing is easy, but ranking is hard. Specifically, finding the top item requires only a linear number of comparisons ($O(n)$), but ranking the entire set requires a quadratic number of comparisons ($O(n^2)$).

Why does this happen?

To find the maximum element under SST, you can run a simple knockout tournament. If item $A$ beats item $B$ in a noisy matchup, SST guarantees that $B$ is highly unlikely to be the global maximum. You can confidently discard losers, narrowing down the pool linearly.

Ranking, however, requires resolving the relationship between every pair of items, either directly or by inference. Moein Falahatgar et al. proved that unless the probabilities satisfy an additional constraint called the stochastic triangle inequality, knowing that $A$ beats $B$ and $B$ beats $C$ tells you nothing about the exact magnitude of $P(A > C)$. Without this predictable scaling, knowing the global winner provides zero information about how to sort two mediocre items deep in the middle of the pack. You are forced to perform what amounts to an exhaustive search, driving the sample complexity up to quadratic limits.

Maxing (Linear Complexity):
[A] vs [B] -> A wins (Discard B)
[A] vs [C] -> A wins (Discard C) -> A is Max!

Ranking (Quadratic Complexity without Triangle Inequality):
Knowing A > B and B > C does not bound the exact difficulty of comparing A vs C or X vs Y.
Every local ambiguity must be queried directly.

The Limits of Weak Assumptions

What happens if we relax our assumptions further and operate under Weak Stochastic Transitivity? The landscape shifts dramatically.

In The Limits of Maxing, Ranking, and Preference Learning, Ayush Jain et al. showed that under WST, even maxing becomes quadratic. Without the strict amplification of probabilities guaranteed by SST, a potential maximum item might only beat its closest competitors by an infinitesimally small, noisy margin ($\approx 0.5 + \epsilon$). Discarding losers becomes dangerous, meaning finding the single best item becomes computationally equivalent to an exhaustive search of all pairs.

The authors map out this exact boundary, showing that moving from Weak to Medium Stochastic Transitivity is the precise mathematical pivot that unlocks linear-time selection algorithms.

Bridging the Gap Without Strict Assumptions

Because assuming SST is practically unverifiable, recent research focuses on designing algorithms that achieve sub-quadratic ranking complexity under weaker, more realistic assumptions.

Focusing on Adjacent Items

If non-adjacent items have highly unpredictable, noisy relationships, why waste samples comparing them? This is the intuition behind the Probe-Rank algorithm introduced by Hao Lou et al.. Instead of trying to resolve every arbitrary pair, their active learning framework isolates its sample complexity to the difficulty of comparing adjacent items in the true underlying ranking. This bypasses the need for global SST constraints and prevents deceptively noisy, distant pairs from ruining algorithmic efficiency.

Leveraging Multiple Oracles

Another frontier involves changing how we collect data. In real-world scenarios—like evaluating Large Language Models—we often have access to multiple sources of feedback (e.g., different human annotators or automated benchmarks).

Tao Jin et al. developed a framework that adaptively routes queries to the most accurate oracles depending on the items being compared. By intelligently allocating queries, they achieved optimal sample complexity bounds that span the entire spectrum from Weak to Strong Stochastic Transitivity, helping to tame the inherent complexity gap of noisy sorting.

Key Foundational Work

The Limits of Maxing, Ranking, and Preference Learning (2018) — contributed 8 concept elements to this direction.
Maxing and Ranking with Few Assumptions (2017) — contributed 6 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 6 papers
  2. Version 1 · 2026-10-04 · 8 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_ranking_maxing_complexity_gap_2fc860d4,
  title = {ranking-maxing complexity gap},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/ranking-maxing-complexity-gap/rdr_2fc860d45ebd4b9cac98c3fbd015b6ce},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 2, frozen text):

@misc{lacuna_ranking_maxing_complexity_gap_2fc860d4_v2,
  title = {ranking-maxing complexity gap},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/ranking-maxing-complexity-gap/rdr_2fc860d45ebd4b9cac98c3fbd015b6ce/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake