Abstract
Supervised learning typically relies on manual annotation of the true labels. When there are many potential classes, searching for the best one can be prohibitive for a human annotator. On the other hand, comparing two candidate labels is often much easier. We focus on this type of pairwise supervision and ask how it can be used effectively in learning, and in particular in active learning. We obtain several insightful results in this context. In principle, finding the best of $k$ labels can be done with $k-1$ active queries. We show that there is a natural class where this approach is sub-optimal, and that there is a more comparison-efficient active learning scheme. A key element in our analysis is the "label neighborhood graph" of the true distribution, which has an edge between two classes if they share a decision boundary. We also show that in the PAC setting, pairwise comparisons cannot provide improved sample complexity in the worst case. We complement our theoretical results with experiments, clearly demonstrating the effect of the neighborhood graph on sample complexity.
Introduction
Traditional supervised learning assumes access to "argmax" queries, where an annotator identifies the correct label from $k$ possible classes. However, as the number of classes grows, this task becomes cognitively demanding. For instance, selecting the single best category for a document among hundreds is much harder than deciding which of two specific categories fits better. Pairwise comparisons offer a more human-friendly alternative, yet their theoretical and practical efficiency in machine learning has remained under-explored. This paper investigates whether comparisons can do more than just simulate argmax queries—specifically, whether they can reduce the total number of queries needed to achieve high accuracy in active learning.
The Label Neighborhood Graph
A central concept in this work is the Label Neighborhood Graph. In a multi-class classification problem, two classes are considered "neighbors" if their decision regions share a boundary in the feature space. This geometric structure is crucial because it identifies which labels are actually competing for the same regions of the input space.
By exploiting the sparsity of this graph, we can significantly reduce query complexity. In many real-world scenarios, the graph is sparse—most classes do not share a boundary—meaning a model only needs to resolve ambiguities between a few neighboring labels for any given input.
Methods and Algorithms
The authors propose two primary algorithms:
- NbrGraphM2B: A theoretical framework that reduces multi-class learning to a series of binary learning tasks along the edges of the neighborhood graph.
- NbrGraphSGD: A practical active learning algorithm. It uses the current model's confidence to select pairs for comparison. When the model is uncertain between two neighboring labels (i.e., their predicted scores are close), it queries the annotator for a pairwise comparison.
Additionally, the paper introduces a method to learn the structure of the neighborhood graph itself using a small number of queries on extreme points of the data distribution.
Key Results
The research reveals a stark contrast between passive and active learning. In the passive setting, label comparisons offer no advantage in sample complexity over standard labels; both require $\Omega(k/\epsilon)$ samples.
However, in active learning, the neighborhood graph's structure provides a massive efficiency boost. For 1D linear classifiers, the proposed comparison-based active learner requires only $\tilde{O}(k \log 1/\epsilon)$ queries, compared to $\Omega(k^2 \log 1/\epsilon)$ for a naive tournament-based approach.
Empirical evaluations on the QuickDraw dataset (345 categories) confirm these findings. The NbrGraphSGD algorithm reaches high accuracy significantly faster than both passive and active tournament baselines, especially as the dimensionality and class count increase.
Conclusion
This work demonstrates that while pairwise comparisons do not help in passive learning, they are a powerful tool for active learning when the underlying geometric structure of the problem is exploited via the label neighborhood graph. Future research could extend these results to non-linear classifiers and explore robustness to noisy human annotators.
Summary updated