Multiclass Learnability and the ERM principle

Amit Daniely, Sivan Sabato, Shai Ben-David, Shai Shalev-Shwartz

Introduction

In the realm of statistical learning theory, binary classification is often treated as the gold standard for understanding learnability. The Vapnik-Chervonenkis (VC) dimension provides a definitive characterization for this setting: if a problem is learnable, any Empirical Risk Minimization (ERM) algorithm—one that simply minimizes error on the training set—will eventually converge to an optimal predictor. However, as we move from binary to multiclass settings (where the number of labels $k > 2$), this fundamental equivalence breaks down. This paper explores the nuances of multiclass learnability, demonstrating that the choice of ERM is not just a matter of implementation, but a critical factor in statistical success.

The Non-Equivalence of ERM Learners

One of the most significant contributions of this research is the proof that not all ERM algorithms are created equal in the multiclass setting. In binary classification, the "gap" between different ERM strategies is negligible. In multiclass learning, however, the authors demonstrate the existence of "bad" ERMs. These algorithms can perfectly fit training data yet fail to generalize, requiring significantly higher sample complexity than "good" ERMs for the same hypothesis class.

This discrepancy arises because a "bad" ERM might select a hypothesis that fits the training data perfectly but generalizes poorly in a way that is mathematically impossible in a two-label system. This insight challenges the long-held assumption that any algorithm minimizing empirical risk is sufficient for learning.

Dimensions of Complexity: Natarajan vs. Graph

To quantify these differences, the authors utilize and extend two primary generalizations of the VC dimension: the Natarajan dimension ($d_N$) and the Graph dimension ($d_G$).

  • Natarajan Dimension ($d_N$): This dimension often provides tighter bounds and characterizes the complexity of "good" learners.
  • Graph Dimension ($d_G$): This can be significantly larger than $d_N$, with a potential gap up to a factor of $\log |\mathcal{Y}|$.

The authors formally prove that while a "good" ERM might only need $O(d_N)$ samples, a "bad" ERM can require $\Omega(d_G)$ samples. This gap explains why previous theories, which often conflated these dimensions or assumed a logarithmic gap was inevitable, were unable to provide precise sample complexity bounds.

The "Good ERM" Principle

To address the potential failure of arbitrary ERMs, the authors propose a new design principle for multiclass learners. They suggest that a "good" ERM should be structured such that, for any given target hypothesis, the algorithm only considers a "small" subset of the total hypothesis space. By limiting the effective search space in a principled way, the learner avoids the pitfalls of overfitting that "bad" ERMs encounter, ensuring that empirical success translates to true generalization.

Symmetry and Structural Models

The research also examines how specific structural properties affect learnability:

  • Symmetry: For "symmetric" classes—where labels are essentially names that can be permuted without altering the underlying class structure—the authors found that the range of functions is naturally constrained. This allows for much tighter sample complexity bounds, specifically $2d+1$.
  • Structural Models: For popular models like reduction trees (which decompose multiclass problems into a series of binary ones) and linear multiclass models, the sample complexity is shown to scale roughly linearly with the number of classes $k$, specifically $O(dk \log(dk))$.

Online and Bandit Learning

The paper extends these batch-setting insights into online and bandit scenarios to provide a holistic view of multiclass complexity:

  • Online Learning: The authors generalize the Littlestone dimension, showing it exactly characterizes the mistake bound for optimal multiclass online learners.
  • Bandit Feedback: In scenarios where the learner only receives binary feedback (correct/incorrect) rather than the true label, the "price of banditry" is shown to be roughly proportional to the number of labels $|\mathcal{Y}|$.

Conclusion and Future Work

While this work provides a more precise foundation for multiclass learning, it leaves open several intriguing questions. Most notably, the authors propose the Natarajan Conjecture: does the Natarajan dimension always characterize the sample complexity for the best possible algorithm, even if it does not for all ERMs?

Furthermore, while the paper clarifies the statistical complexity of these problems, the computational complexity of actually finding "good" ERM predictors remains a significant hurdle, as the task is often NP-hard. This research marks a pivotal shift in how we view multiclass algorithms, moving from the assumption of ERM universality to a more nuanced understanding of algorithmic selection and structural complexity.

Summary updated

BibTeX
@inproceedings{daniely2011multiclass,
  author = {Amit Daniely and Sivan Sabato and Shai Ben-David and Shai Shalev-Shwartz},
  title = {{Multiclass Learnability and the ERM principle}},
  booktitle = {Conference on Learning Theory},
  year = {2011},
  url = {https://openreview.net/forum?id=eWUMRhPVEHe},
}
Figure