Active Sampling of Pairs and Points for Large-scale Linear Bipartite Ranking

Wei-Yuan Shen, Hsuan-Tien Lin

Abstract

Bipartite ranking is a fundamental ranking problem that learns to order relevant instances ahead of irrelevant ones. The pair-wise approach for bipartite ranking constructs a quadratic number of pairs to solve the problem, which is infeasible for large-scale data sets. The point-wise approach, albeit more efficient, often results in inferior performance. In this paper, we develop a novel active sampling scheme within the pair-wise approach to conduct bipartite ranking efficiently. The scheme is inspired from active learning and can reach a competitive ranking performance while focusing only on a small subset of the many pairs during training. Moreover, we propose a general Combined Ranking and Classification (CRC) framework to accurately conduct bipartite ranking. The framework unifies point-wise and pair-wise approaches and is simply based on the idea of treating each instance point as a pseudo-pair. Experiments on 14 real-world large-scale data sets demonstrate that the proposed algorithm of Active Sampling within CRC, when coupled with a linear Support Vector Machine, usually outperforms state-of-the-art point-wise and pair-wise ranking approaches in terms of both accuracy and efficiency.

Introduction

Bipartite ranking is the core mechanism behind modern search engines and recommendation systems. The objective is to learn a function that orders "relevant" items (positives) ahead of "irrelevant" ones (negatives), with performance typically measured by the Area Under the ROC Curve (AUC).

Historically, researchers have chosen between two paradigms:

  1. The Pair-wise Approach: This models the relationship between every positive and negative instance. While theoretically robust, its $O(N^2)$ complexity makes it computationally prohibitive for large-scale datasets.
  2. The Point-wise Approach: This treats ranking as a standard binary classification problem. While efficient at $O(N)$, it often lacks the ranking precision of pair-wise methods because it does not explicitly model inter-instance relationships.

This paper introduces a way to bridge this gap, achieving the accuracy of pair-wise ranking with the efficiency of point-wise classification through a novel active sampling scheme and a unified framework.

Datasets and Experimental Setup

The authors conducted an extensive evaluation across 14 diverse, real-world large-scale datasets. These include benchmarks in information retrieval (MQ-08, Yahoo!), bioinformatics (Protein), and general machine learning (MNIST, RCV1).

Summary of the 14 large-scale datasets used for evaluation, showing the massive scale of potential pairs.

As shown in the table above, datasets like the URL dataset contain millions of points and trillions of potential pairs, highlighting the critical need for efficient sampling strategies that avoid full quadratic enumeration.

Methodology

The proposed solution consists of two primary innovations:

1. Active Sampling (AS)

To overcome the $O(N^2)$ bottleneck, the authors developed an active sampling scheme based on soft rejection sampling. This approach iteratively selects the most informative pairs without the need to sort or enumerate the entire pool. Two strategies were explored:

  • Closeness: Targets pairs where the model is most uncertain (scores are very similar).
  • Correctness: Targets pairs currently mis-ordered by the model.

To maintain an unbiased model, the authors incorporated a bias correction technique using inverse probability weighting.

2. Combined Ranking and Classification (CRC)

The CRC framework unifies point-wise and pair-wise approaches. By treating individual data points as "pseudo-pairs" (comparing a point against a zero-vector), the model learns from both specific pair relationships and individual point classifications simultaneously. The authors mathematically demonstrate that a weighted point-wise SVM minimizes an upper bound of the pair-wise ranking loss.

Key Results and Insights

The experiments yielded several critical insights into the behavior of active sampling in ranking:

  • The "8,000 Pair" Efficiency: A striking finding is that sampling as few as 8,000 well-chosen pairs is often sufficient to match or exceed the performance of models trained on the entire quadratic pool of millions of pairs.
  • Soft vs. Hard Sampling: While "hard" active sampling (finding the absolute best pairs) is computationally expensive, "soft" rejection sampling provides a low-overhead alternative feasible for massive data.
  • Strategy Performance: The "soft-correctness" strategy generally proved superior, indicating that focusing on pairs the model currently misclassifies is the most effective path to improving AUC.
AUC performance of active sampling strategies on real-sim and acoustic datasets.

As illustrated in the figure above, the active sampling methods (particularly soft_correct) converge rapidly to high AUC values, often surpassing the baseline ERankSVM with only a small fraction of the total available data.

Conclusion

The proposed Active Sampling within the CRC framework (ASCRC) provides a scalable and accurate solution for large-scale bipartite ranking. By intelligently selecting informative pairs and unifying point-wise and pair-wise objectives, the method achieves state-of-the-art performance with minimal computational overhead. Future work may involve developing more noise-tolerant sampling strategies to prevent overfitting to outliers during the later stages of training.

Summary updated

Abstract

Bipartite ranking is a fundamental ranking problem that learns to order relevant instances ahead of irrelevant ones. The pair-wise approach for bi-partite ranking construct a quadratic number of pairs to solve the problem, which is infeasible for large-scale data sets. The point-wise approach, albeit more efficient, often results in inferior performance. That is, it is difficult to conduct bipartite ranking accurately and efficiently at the same time. In this paper, we develop a novel active sampling scheme within the pair-wise approach to conduct bipartite ranking efficiently. The scheme is inspired from active learning and can reach a competitive ranking performance while focusing only on a small subset of the many pairs during training. Moreover, we propose a general Combined Ranking and Classification (CRC) framework to accurately conduct bipartite ranking. The framework unifies point-wise and pair-wise approaches and is simply based on the idea of treating each instance point as a pseudo-pair. Experiments on 14 real-word large-scale data sets demonstrate that the proposed algorithm of Active Sampling within CRC, when coupled with a linear Support Vector Machine, usually outperforms state-of-the-art point-wise and pair-wise ranking approaches in terms of both accuracy and efficiency.
BibTeX
@inproceedings{shen2013active,
  author = {Wei-Yuan Shen and Hsuan-Tien Lin},
  title = {{Active Sampling of Pairs and Points for Large-scale Linear Bipartite Ranking}},
  booktitle = {ACML},
  year = {2013},
  url = {https://openreview.net/forum?id=rWVbOP0A8x5},
}
Figure