Risk Bounds for Low Cost Bipartite Ranking

San Gultekin, John W. Paisley

Abstract

Bipartite ranking is an important supervised learning problem; however, unlike regression or classification, it has a quadratic dependence on the number of samples. To circumvent the prohibitive sample cost, many recent work focus on stochastic gradient-based methods. In this paper we consider an alternative approach, which leverages the structure of the widely-adopted pairwise squared loss, to obtain a stochastic and low cost algorithm that does not require stochastic gradients or learning rates. Using a novel uniform risk bound—based on matrix and vector concentration inequalities—we show that the sample size required for competitive performance against the all-pairs batch algorithm does not have a quadratic dependence. Generalization bounds for both the batch and low cost stochastic algorithms are presented. Experimental results show significant speed gain against the batch algorithm, as well as competitive performance against state-of-the-art bipartite ranking algorithms on real datasets.

Introduction

In many machine learning applications, such as online advertising, information retrieval, or medical diagnosis, the primary goal is not just classification but ranking: ordering "positive" items above "negative" ones. Bipartite ranking aims to learn a scoring function that maximizes the Area Under the Curve (AUC). However, optimizing for AUC traditionally presents a significant computational challenge. If a dataset contains $N_1$ positive samples and $N_0$ negative samples, a standard batch algorithm must process $N_1 \times N_0$ pairs. This $O(N^2)$ dependence creates a massive bottleneck as datasets scale.

While Stochastic Gradient Descent (SGD) is often used to mitigate this, it introduces its own set of challenges, most notably the sensitivity to hyperparameters like learning rates and step sizes. This paper introduces Low Cost Bipartite Ranking (LCBR), an analytic, learning-rate-free alternative that breaks the quadratic sample complexity barrier.

Methodology: BBR vs. LCBR

The authors propose two algorithms based on the pairwise squared loss, a convex surrogate for the AUC metric.

  1. Batch Bipartite Ranking (BBR): This is the "all-pairs" approach. It calculates the exact mean ($\mu_N$) and covariance ($\Sigma_N$) of all possible positive-negative differences. While accurate, its nested loop structure makes it computationally prohibitive for large $N$.
  2. Low Cost Bipartite Ranking (LCBR): Instead of processing every pair, LCBR subsamples $S$ pairs uniformly at random with replacement. This reduces the accumulation complexity from $O(N_1 N_0)$ to $O(S)$.
Comparison of the Batch Bipartite Ranking (BBR) and Low Cost Bipartite Ranking (LCBR) algorithms.

Unlike iterative SGD methods, LCBR is an analytic solution. It accumulates the necessary statistics in a single pass and then solves a simple optimization problem to find the optimal weight vector $w_S$. This approach eliminates the need for the trial-and-error process of tuning optimization hyperparameters.

Theoretical Insights

The core contribution of this work is a theoretical proof using matrix and vector concentration inequalities. The authors establish a "uniform risk bound," demonstrating that the error of LCBR relative to the full batch version decreases as the number of subsamples $S$ increases.

Crucially, the theory shows that $S$ can be significantly smaller than the total number of available pairs ($S \ll N_1 N_0$) while still producing a competitive ranker. The sample complexity is shown to depend more on the properties of the data distribution—such as the norm of the covariance matrix—than on the raw number of possible pairs. Additionally, the analysis highlights how "label skew" (an imbalance between positive and negative samples) affects generalization, a vital consideration for real-world imbalanced datasets.

Experimental Results

The performance of LCBR was evaluated against BBR and state-of-the-art SGD-based methods (like AdaOAM and PGD) across synthetic and real-world datasets (A9A, GERMAN, and SVMGUIDE3).

  • Efficiency: In synthetic tests, LCBR achieved nearly identical AUC to the batch algorithm while being approximately 100 times faster.
  • Generalization: On the GERMAN and SVMGUIDE3 datasets, LCBR significantly outperformed SGD-based competitors. The authors attribute this to LCBR being "learning rate free," which prevents the optimization from oscillating or stalling due to poor hyperparameter choices.
  • Sample Efficiency: On the A9A dataset, LCBR reached peak performance using only a small fraction of the total possible pairs, empirically validating the theoretical claim that $S$ does not need to grow quadratically with $N$.

Limitations and Future Work

While LCBR successfully addresses the sample size bottleneck ($N$), it retains a quadratic dependence on the feature dimension ($D$). The algorithm requires storing and inverting a $D \times D$ matrix, making it less suitable for extremely high-dimensional, sparse features without further modification, such as sparse covariance approximations.

Furthermore, the current framework focuses on linear ranking functions. Future research directions include extending this low-cost, learning-rate-free approach to non-linear models, such as those using random kernel features or neural networks.

Summary updated

Abstract

Bipartite ranking is an important supervised learning problem; however, unlike regression or classification, it has a quadratic dependence on the number of samples. To circumvent the prohibitive sample cost, many recent work focus on stochastic gradient-based methods. In this paper we consider an alternative approach, which leverages the structure of the widely-adopted pairwise squared loss, to obtain a stochastic and low cost algorithm that does not require stochastic gradients or learning rates. Using a novel uniform risk bound---based on matrix and vector concentration inequalities---we show that the sample size required for competitive performance against the all-pairs batch algorithm does not have a quadratic dependence. Generalization bounds for both the batch and low cost stochastic algorithms are presented. Experimental results show significant speed gain against the batch algorithm, as well as competitive performance against state-of-the-art bipartite ranking algorithms on real datasets.
BibTeX
@inproceedings{gultekin2020risk,
  author = {San Gultekin and John W. Paisley},
  title = {{Risk Bounds for Low Cost Bipartite Ranking}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=r5fESCA-Ubf},
}
Figure