Margin-Independent Online Multiclass Learning via Convex Geometry

Guru Guruganesh, Allen Liu, Jon Schneider, Joshua Wang

TL;DR

Traditional online learning algorithms struggle when data classes lack a clear separation, causing error bounds to blow up to infinity. This paper introduces a geometric, distance-weighted loss function for online multiclass classification and proves that for nearest-neighbor partitions, we can achieve a total loss completely independent of the number of queries.

What Problem Does This Paper Address?

In online multiclass classification, a learning algorithm faces a continuous stream of adversarial data points and must predict their labels on the fly. Standard theoretical guarantees evaluate performance based on the total number of mistakes. However, these guarantees heavily depend on a "margin" ($\gamma$)—the minimum physical separation between different classes. If data points lie right on the classification boundary ($\gamma \to 0$), traditional bounds (like the Perceptron's classic $O(1/\gamma^2)$ mistake bound) fall apart.

The authors address this limitation by redefining the loss function. Instead of penalizing all mistakes equally, they weight each mistake by how ambiguous the query point is. Specifically, the loss is defined as the distance you would need to move the query point for its prediction to become correct. Under this framework, the authors investigate a fundamental question: Can we design online learning algorithms with total loss bounds that are completely independent of both the margin and the total number of rounds ($T$)?

Methods

The paper relies on a blend of online learning, convex geometry, and linear programming:

  • Reduction to Contextual Search: For binary linear classification, the authors map the problem to contextual search—an online learning setting where the algorithm tries to guess the hidden value of a vector's inner product based on binary (higher/lower) feedback. They leverage a potential-based algorithm that tracks a shrinking "knowledge set" of valid hypotheses using principles from integral geometry.
  • Pairwise Multiclass Reduction via Linear Programming: To scale from 2 classes to $k$ classes under a nearest-neighbor setup, the algorithm runs a separate binary classifier for every pair of labels ($\binom{k}{2}$ instances). Instead of using a standard majority vote to predict the final label, the algorithm solves a Linear Program (LP) each round. This LP constructs a probability distribution over the classes, ensuring that the expected loss is perfectly balanced by a geometric decrease in the total potential of the sub-algorithms.
  • Kernelization for $L_p$ Norms: To handle non-linear boundaries arising from $L_p$ distance metrics, the authors apply kernel mappings to linearize the space. They use exact polynomial kernels when $p$ is an even integer, and a multiscale approximate kernelization technique for general $p \ge 2$.

Datasets

Not discussed in the paper. This work is purely theoretical and does not evaluate its algorithms on empirical datasets or machine learning benchmarks.

Key Insights and Ideas

  • Fine-Grained Penalization: Shifting from a binary "correct/incorrect" mistake count to a continuous, distance-based loss function allows the algorithm to tolerate boundary errors gracefully, bypassing the traditional margin bottleneck.
  • The Nearest-Neighbor vs. Convex Set Dichotomy: The paper reveals a sharp geometric phase transition. If the classification regions are defined by proximity to $k$ hidden centers (Voronoi-like partitions), the total loss is bounded by a constant independent of time ($T$). However, if the regions are arbitrary convex sets, a time-independent bound is mathematically impossible.
  • LP Amortization: Standard voting schemes fail in online distance-based multiclass learning because the algorithm only receives partial feedback (it only learns the true label of the query). Using an LP to dynamically adjust sampling probabilities provides an elegant way to amortize regret across all pairwise classifiers.

Key Results

  • Linear Classifiers (Binary): The proposed algorithm incurs a total loss of at most $O(d \log d)$, which is entirely independent of the time horizon $T$.
  • Nearest Neighbor (Inner-Product Similarity): For $k$ classes in $d$ dimensions, the randomized algorithm achieves a total expected loss of $O(k^2 d \log d)$.
  • Nearest Neighbor ($L_p$ Similarity, Even Integers): Bounded by $O(k^2 \cdot \text{poly}(p, d))$, remaining independent of $T$.
  • General Convex Regions Lower Bound: The authors prove a lower bound of $\Omega(T^{(d-4)/(d-2)})$ for general convex sets, confirming that center-based nearest-neighbor geometry is uniquely learnable.
  • Traditional Mistake Bounds: Even though the algorithms are designed to minimize distance-based loss, they simultaneously achieve near state-of-the-art traditional mistake bounds ($O(d \log(d/\gamma))$) when a margin $\gamma$ actually exists.

Limitations and Future Work

  • Separation Constraints for General Norms: For arbitrary $p$-norms ($p \ge 2$), the time-independent bounds require an assumption that the hidden centers are $\Delta$-separated from each other. This assumption is not required when $p$ is an even integer.
  • The $1 \le p < 2$ Gap: The multiscale kernelization technique only yields time-independent bounds when $p \ge 2$. Developing algorithms for cases where $1 \le p < 2$ (such as the Manhattan distance / $L_1$ norm) remains an open problem.
  • Multiplicative Overhead: The multiclass mistake bound loses a factor of $k$ compared to the best dimension-dependent classical halving algorithms. The authors note that removing this factor is a promising direction for future research.

Summary updated

Abstract

We consider the problem of multi-class classification, where a stream of adversarially chosen queries arrive and must be assigned a label online. Unlike traditional bounds which seek to minimize the misclassification rate, we minimize the total distance from each query to the region corresponding to its correct label. When the true labels are determined via a nearest neighbor partition -- i.e. the label of a point is given by which of $k$ centers it is closest to in Euclidean distance -- we show that one can achieve a loss that is independent of the total number of queries. We complement this result by showing that learning general convex sets requires an almost linear loss per query. Our results build off of regret guarantees for the geometric problem of contextual search. In addition, we develop a novel reduction technique from multiclass classification to binary classification which may be of independent interest.
BibTeX
@inproceedings{guruganesh2021margin,
  author = {Guru Guruganesh and Allen Liu and Jon Schneider and Joshua Wang},
  title = {{Margin-Independent Online Multiclass Learning via Convex Geometry}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=XK4eVsG2LKw},
}
Figure