NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Computable universal online learning

Dariusz Kalociński, Tomasz Steifer

Abstract

In classical online learning theory, a hypothesis class is considered learnable if there exists a mathematical function capable of making a finite number of mistakes. However, this abstract existence does not guarantee that such a function is computable. This paper investigates the intersection of statistical learning theory and computability theory, identifying a fundamental gap between what is mathematically learnable and what is algorithmically achievable. By introducing a framework based on Recursively Enumerably Representable (RER) classes and the concept of class closure, the authors characterize the conditions under which universal online learning can be implemented by actual computer programs.

Introduction

Standard machine learning theory often operates under the assumption that if a learning strategy exists, it can be implemented. Seminal work by Littlestone established that a hypothesis class is learnable in the online setting if and only if it has a finite Littlestone dimension. Recent extensions have moved toward "universal online learning," where the requirement is simply a finite (though not necessarily bounded) number of mistakes.

However, these frameworks typically treat the "Learner" as an abstract mapping. This paper addresses a critical oversight: the Learner must often be a computable algorithm. If a learning strategy requires solving the Halting Problem, it is effectively useless for real-world computation. This research bridges this gap by applying recursion theory to combinatorial learning, determining which hypothesis classes are mastered by programs and which remain theoretically learnable but computationally unreachable.

The Computability Gap in Online Learning

The most significant contribution of this work is the demonstration of the "Computability Gap." The authors prove that there exist hypothesis classes that are universally online learnable in a purely mathematical sense but possess no computable learner.

This gap arises because a computer program must commit to its predictions based on finite data, whereas a non-computable strategy might rely on properties of the hypothesis class that cannot be verified in finite time. Even if a class consists entirely of simple, computable functions, the strategy required to select the correct hypothesis may itself be uncomputable. To prove this, the authors utilize diagonalization and the construction of "evil sequences"—data streams designed to force any specific computer program into making infinite mistakes, even when a non-computable function could learn the pattern easily.

Methodology: RER Classes and Closures

The authors employ several key theoretical tools to analyze these limits:

  • Recursively Enumerably Representable (RER) Classes: These are classes where a program can systematically list all the "recipes" or algorithms for the functions within the class. This provides a structured way to discuss classes that are "accessible" to computation.
  • The Closure ($\overline{\mathcal{H}}$): The authors define the closure of a hypothesis class as the set of all functions that are locally consistent with the class. This is a vital tool for understanding the Adversary's power; if an Adversary can mimic an uncomputable function while staying locally consistent with the class, they can defeat any computable learner.
  • The Doubling Trick: To address agnostic learning—where the data may not follow any specific rule in the class—the authors adapt randomized algorithms like Weighted Majority. They use a "doubling trick" to manage an infinite pool of experts while maintaining the program's computability.

Key Results and Characterizations

The paper provides several rigorous characterizations of computable learning:

  1. Agnostic Learning (Theorem 5): A class is computably agnostically learnable if and only if it is a subset of some RER class. This provides a clean boundary for the agnostic setting.
  2. The Realizable-Agnostic Equivalence (Theorem 7): In standard theory, the ability to learn in the realizable case (where the data follows a rule in the class) usually implies the ability to learn in the agnostic case. This paper shows that while this equivalence breaks down for arbitrary classes in the computable regime, it is preserved specifically for RER classes.
  3. Proper vs. Improper Learning (Theorem 9): A "proper" learner must output a hypothesis from the original class, while an "improper" learner can output any computable hypothesis. The authors demonstrate that proper learning is strictly more difficult; there are classes where a computer can learn the pattern improperly but cannot do so if restricted to the original class.

Limitations and Future Directions

While this work provides a foundational understanding of computable learning, it is currently restricted to binary classification on the domain of natural numbers ($\mathbb{N}$). While $\mathbb{N}$ is a sufficient proxy for strings and integers used in practical software, the theory does not yet extend to continuous domains or real-valued outputs.

Furthermore, the paper focuses on computability (whether a program exists) rather than complexity (how efficient that program is). A remaining open problem is the precise combinatorial characterization for realizable computable learning in non-RER classes. Future research into "poly-time" universal online learning could further bridge the gap between these logical foundations and practical software engineering constraints.

Conclusion

By proving that mathematical learnability does not imply algorithmic learnability, this paper forces a re-evaluation of the limits of machine learning. It establishes that the "closure" of a hypothesis class and its representability are the true gatekeepers of computable intelligence, ensuring that our theoretical models of learning remain grounded in the realities of what computers can actually calculate.

Summary updated

BibTeX
@inproceedings{kalocinski2025computable,
  author = {Dariusz Kalociński and Tomasz Steifer},
  title = {{Computable universal online learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=aVWVx7cqIE},
}
Figure