Learnability is a Compact Property

Julian Asilis, Siddartha Devic, Shaddin Dughmi, Vatsal Sharan, Shang-Hua TengarXiv 2024 · OpenReview

Abstract

Recent work on learning has yielded a striking result: the learnability of various problems can be undecidable, or independent of the standard ZFC axioms of set theory. Furthermore, the learnability of such problems can fail to be a property of finite character: informally, it cannot be detected by examining finite projections of the problem. On the other hand, learning theory abounds with notions of dimension that characterize learning and consider only finite restrictions of the problem, i.e., are properties of finite character. How can these results be reconciled? More precisely, which classes of learning problems are vulnerable to logical undecidability, and which are within the grasp of finite characterizations? We demonstrate that the difficulty of supervised learning with metric losses admits a tight finite characterization. In particular, we prove that the sample complexity of learning a hypothesis class can be detected by examining its finite projections. For realizable and agnostic learning with respect to a wide class of proper loss functions, we demonstrate an exact compactness result: a class is learnable with a given sample complexity precisely when the same is true of all its finite projections. For realizable learning with improper loss functions, we show that exact compactness of sample complexity can fail, and provide matching upper and lower bounds of a factor of 2 on the extent to which such sample complexities can differ. We conjecture that larger gaps are possible for the agnostic case. At the heart of our technical work is a compactness result concerning assignments of variables that maintain a class of functions below a target value, which generalizes Hall's classic matching theorem and may be of independent interest.

Introduction

In mathematical logic and topology, "compactness" suggests that the properties of an infinite system can be fully understood by examining its finite components. A classic example is graph theory: an infinite graph is $k$-colorable if and only if every finite subgraph is $k$-colorable. In the context of learning theory, this raises a fundamental question: does the learnability of an infinite hypothesis class—such as the set of all possible neural networks for a given architecture—depend solely on the learnability of its finite projections?

While qualitative versions of this idea have been explored, this research provides an exact quantitative answer. The study focuses on transductive learning, where a learner observes all unlabeled data points in advance and must predict the label of a single, randomly selected point. The central goal is to determine if the "sample complexity"—the amount of data required to achieve a specific error bound—of an infinite class is identical to the maximum sample complexity across all its finite projections.

Theoretical Framework

The paper establishes its results by framing learning as a variable-assignment problem. In this view, learning is equivalent to assigning labels to variables such that a set of constraints (defined by loss functions) is satisfied.

A key technical contribution is the generalization of Hall’s Marriage Theorem. The authors demonstrate that if a "matching" (a valid learning hypothesis) exists for every finite subset of data, then one must also exist for the entire infinite set. This is achieved by invoking Zorn’s Lemma and the properties of compact metric spaces. Specifically, for "proper" metric spaces—where closed and bounded sets are compact—the transition from finite to infinite is seamless.

Bipartite graph illustrating the reduction of learnability to a variable-assignment problem consistent with Hall's Marriage Theorem.

This framework allows the authors to prove that for most common loss functions, such as squared loss or cross-entropy, learnability is a local property. There is no "hidden" complexity that only manifests at the infinite limit.

Key Results

The research identifies a critical distinction between "proper" and "improper" loss functions:

  1. Exact Compactness for Proper Losses: For realizable learning with proper metric losses or continuous losses on compact spaces, an infinite class $\mathcal{H}$ has a transductive sample complexity $m$ if and only if every finite projection of $\mathcal{H}$ also has sample complexity $m$. This result extends to the agnostic setting, where data may not perfectly fit any hypothesis.
  2. The Metric Gap for Improper Losses: For general (improper) metric losses, exact compactness can fail. However, the authors prove a tight bound: the error rate of the infinite class is at most twice the error rate of its finite projections. They even construct a "pathological" metric space to demonstrate that this factor-of-2 gap is reachable.
  3. Classification and PAC Learning: Multiclass classification with 0-1 loss is shown to always enjoy exact compactness, even with infinite label sets. Furthermore, using black-box reductions, these transductive results translate to the PAC (Probably Approximately Correct) model, showing that PAC learnability is "almost" compact, differing only by minor logarithmic factors.

Conclusion and Future Directions

This work reconciles the existence of undecidable learning problems with the practical success of finite-dimensional characterizations. By showing that learnability is a compact property for a wide range of supervised learning tasks, it reinforces the idea that global behavior is rooted in local, finite interactions.

Future work remains in exploring the agnostic gap for improper metrics, where the authors conjecture that gaps larger than a factor of 2 might exist. Additionally, extending these compactness results to online learning or unsupervised learning paradigms presents a significant theoretical challenge.

Summary updated

Abstract

Recent work on learning has yielded a striking result: the learnability of various problems can be undecidable, or independent of the standard ZFC axioms of set theory. Furthermore, the learnability of such problems can fail to be a property of finite character: informally, it cannot be detected by examining finite projections of the problem. On the other hand, learning theory abounds with notions of dimension that characterize learning and consider only finite restrictions of the problem, i.e., are properties of finite character. How can these results be reconciled? More precisely, which classes of learning problems are vulnerable to logical undecidability, and which are within the grasp of finite characterizations? We demonstrate that the difficulty of supervised learning with metric losses admits a tight finite characterization. In particular, we prove that the sample complexity of learning a hypothesis class can be detected by examining its finite projections. For realizable and agnostic learning with respect to a wide class of proper loss functions, we demonstrate an exact compactness result: a class is learnable with a given sample complexity precisely when the same is true of all its finite projections. For realizable learning with improper loss functions, we show that exact compactness of sample complexity can fail, and provide matching upper and lower bounds of a factor of 2 on the extent to which such sample complexities can differ. We conjecture that larger gaps are possible for the agnostic case. At the heart of our technical work is a compactness result concerning assignments of variables that maintain a class of functions below a target value, which generalizes Hall's classic matching theorem and may be of independent interest.
BibTeX
@misc{asilis2024learnability,
  author = {Julian Asilis and Siddartha Devic and Shaddin Dughmi and Vatsal Sharan and Shang-Hua Teng},
  title = {{Learnability is a Compact Property}},
  year = {2024},
  eprint = {2402.10360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.10360},
}

Loading related content...

Figure