Ranking with Abstention

Anqi Mao, Mehryar Mohri, Yutao Zhong

TL;DR

Learning-to-rank algorithms often minimize smooth surrogate losses (like exponential or hinge loss) instead of the discontinuous 0-1 pairwise misranking loss. This paper proves that for realistic, equicontinuous hypothesis classes (such as linear models and neural networks), non-trivial theoretical consistency bounds between surrogate loss and true misranking error are mathematically impossible—unless the learner is allowed to abstain. By introducing a framework where the model abstains from ranking pairs closer than a threshold distance $\gamma$ at a small cost $c$, the authors derive the first non-asymptotic $\mathcal{H}$-consistency bounds for both linear predictors and single-hidden-layer neural networks.

What Problem Does This Paper Address?

In score-based pairwise ranking, the goal is to learn a scoring function $h(x)$ that orders pairs $(x, x')$ correctly according to a ground-truth direction $y \in \{-1, +1\}$. Because the discrete pairwise 0-1 misranking loss is NP-hard to optimize directly, practitioners rely on continuous surrogate losses (e.g., RankBoost’s exponential loss or SVM-ranking’s hinge loss).

Historically, researchers studied Bayes consistency, which asks whether infinite data and unconstrained measurable functions will recover the optimal ranking. However, Bayes consistency is asymptotic and ignores the restricted capacity of hypothesis spaces $\mathcal{H}$ used in practice (e.g., bounded-norm linear models or neural networks). $\mathcal{H}$-consistency bounds address this by upper-bounding the target loss excess risk directly as a function of the surrogate loss excess risk for a specific class $\mathcal{H}$.

The central challenge: Can we establish $\mathcal{H}$-consistency bounds for ranking? The paper reveals a fundamental negative result: for any hypothesis set that is equicontinuous (which includes standard neural networks and linear models), non-trivial $\mathcal{H}$-consistency bounds for standard pairwise ranking do not exist.

Methods

To circumvent this impossibility barrier, the authors introduce ranking with abstention:

  • Pairwise Abstention Loss ($L_{0-1}^{\text{abs}}$): If the distance between two inputs $\|x - x'\|$ is smaller than a distance threshold $\gamma$, the model abstains from predicting an order and incurs a fixed abstention cost $c$. If $\|x - x'\| > \gamma$, it incurs the usual 0-1 misranking loss.
  • Formulations Studied: Both general pairwise ranking (arbitrary pairs with relational labels) and bipartite ranking (where points have independent binary class labels and the evaluation connects to Area Under the ROC Curve).
  • Theoretical Analysis: By monitoring the calibration gap under threshold $\gamma$, the authors establish explicit $\mathcal{H}$-consistency bounds for standard surrogates (hinge, exponential, and sigmoid losses) over:
  • $\mathcal{H}_{\text{lin}}$: Norm-constrained linear hypotheses ($\|w\|_q \le W$).
  • $\mathcal{H}_{\text{NN}}$: One-hidden-layer ReLU neural networks ($\|u\|_1 \le \Lambda, \|w_j\|_q \le W$).

Datasets

  • CIFAR-10: Evaluated general pairwise ranking using a ResNet-34 backbone trained with SGD and cosine learning rate schedules over 200 epochs. Input pairs $(x, x')$ were sampled from CIFAR-10 images, with labels $y = \pm 1$ assigned according to the natural ordering of their class labels.
  • No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • Why Standard Ranking Surrogates Break Down: For any equicontinuous hypothesis class, when two inputs $x$ and $x'$ are arbitrarily close in the input space, the margin $|h(x) - h(x')|$ can be forced arbitrarily close to zero. Consequently, surrogate penalties (like $e^{-y(h(x')-h(x))}$) become indistinguishable from the baseline value $\Phi(0)$, while the true 0-1 loss suffers a full error penalty of $1$. This causes any theoretical bound function $f(t)$ to satisfy $f(t) \ge 1$ (or $\ge 1/2$ for bipartite ranking), rendering standard surrogate risk guarantees completely vacuous.
  • Abstention Restores Consistency: Enforcing an abstention buffer $\gamma$ prevents inputs from colliding into the zone of vanishing margin. This enables provable excess risk bounds that scale gracefully with $\gamma$ and hypothesis norm bounds ($W$ or $\Lambda W$).
  • Surrogate-Specific Guarantees: For the exponential surrogate loss $\Phi_{\text{exp}}$, the target abstention estimation error exhibits a fast $\mathcal{O}(\sqrt{\epsilon})$ rate for small surrogate estimation errors $\epsilon$, and transitions to a linear $\mathcal{O}(\epsilon)$ rate scaled by $\frac{e^{2W\gamma}+1}{e^{2W\gamma}-1}$.

Key Results

  • Negative Theorems (Theorems 4.1 & 4.3): Proved that for any equicontinuous hypothesis set containing $0$, standard pairwise $\mathcal{H}$-consistency bounds satisfy $f(t) \ge 1$ for pairwise ranking and $f(t) \ge 1/2$ for bipartite ranking for any $t \ge 0$.
  • Positive Guarantees (Theorems 2.1 & 3.1): Established explicit bounds for hinge, exponential, and sigmoid surrogate losses in terms of $\gamma$, $W$ (and $\Lambda$ for ReLU nets).
  • CIFAR-10 Empirical Findings:
  • When $\gamma \le 0.3$, no pairs are abstained, yielding identical misranking loss to the unconstrained baseline ($8.33\% \pm 0.15\%$).
  • At a low cost $c = 0.1$, setting $\gamma = 0.7$ lowers the target abstention loss to $8.25\% \pm 0.07\%$, confirming that rejecting very close pairs—where RankBoost performs poorly—improves overall ranking quality.

Limitations and Future Work

  • Tuning $\gamma$ and $c$: The bounds rely on fixed geometric thresholds $\gamma$. Optimal practical heuristics for selecting $\gamma$ relative to abstention cost $c$ require further investigation.
  • Architectural Depth: Explicit consistency bounds were proven only up to single-hidden-layer neural networks. Extending these bounds to deep networks remains open.
  • Alternative Function Classes: Exploring non-equicontinuous hypothesis sets that bypass the negative results without requiring abstention is highlighted as a promising direction.

Summary updated

BibTeX
@inproceedings{mao2023ranking,
  author = {Anqi Mao and Mehryar Mohri and Yutao Zhong},
  title = {{Ranking with Abstention}},
  booktitle = {MFPL @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=B8mQ1eOTOo},
}
Figure