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

Learning Algorithms in the Limit

Hristo Papazov, Nicolas Flammarion

Introduction

In 1967, E. Mark Gold established a foundational constraint in algorithmic learning theory: the class of all computable (total recursive) functions is unlearnable from input-output pairs alone. This "no-go" theorem suggested that a learner, presented only with $x$ and $f(x)$, could be perpetually misled by an infinite sequence of inconsistent hypotheses. However, modern developments in artificial intelligence—specifically Chain-of-Thought (CoT) prompting and the observation of intermediate computational steps—suggest that the "black-box" assumption of Gold’s framework may be overly restrictive. This paper re-evaluates the limits of learnability by introducing "gray-box" observations, demonstrating that the "unlearnable" becomes learnable when the process of computation is partially visible.

Redefining the Learning Framework

The authors extend the classic inductive inference framework by defining two new types of computational side-information that bridge the gap between abstract recursion theory and practical algorithmic learning:

  1. Time-Bound Observations (TBO): The learner receives the input $x$, the output $f(x)$, and a rough upper bound on the number of computational steps the algorithm took to complete the task.
  2. Policy-Trajectory Observations (PTO): The learner observes the "external" behavior of the agent. For a Turing Machine, this involves seeing the sequence of symbols read and written and the movements of the head, without necessarily seeing the internal state transitions.

By grounding these observations in the (Extended) Church-Turing Thesis, the paper translates abstract computational models into concrete Turing Machine representations. This allows for the introduction of the Maximum-Similarity Merging (MSM) algorithm, a state-merging approach designed to infer Finite-State Transducers (FSTs) even when the learner only has access to a restricted subset of possible inputs.

Key Theoretical Insights

Complexity as a Learning Signal

A major contribution of this work is the realization that complexity constraints act as a powerful inductive bias. Simply knowing that a function belongs to a specific complexity class (such as P, NP, or EXP) is sufficient to make it learnable in the limit from standard input-output pairs. The complexity bound acts as a filter, preventing the learner from being distracted by the infinite sea of overly complex "fake" hypotheses that plague Gold's original model.

Trajectories and Rational Functions

The paper provides a significant "aha moment" by reducing the problem of learning recursive functions from trajectories (PTO) to the problem of learning rational functions (FSTs) from input-output data. This connection links high-level computability theory to the well-studied field of grammatical inference, providing a path forward for more practical learning algorithms.

The "Reasonable Encoding" Paradox

The authors also tackle a philosophical circularity in the Church-Turing Thesis, where "computable" is defined via "reasonable encodings," which are themselves defined as "computable." They propose grounding the definition of "reasonability" in First-Order Logic (FOL) descriptions, providing a more stable foundation for defining what constitutes a valid computational observation.

Results and Limitations

Learnability Results

  • Universal TBO Learning: The entire class of general recursive functions is proven to be learnable in the limit if the learner is provided with approximate time bounds (TBOs).
  • Complexity Class Learnability: Any parameterized complexity class (e.g., all functions computable in $O(n^k)$ time) is learnable from input-output observations alone.
  • MSM Efficiency: The MSM algorithm can learn recursive functions from a polynomial number of samples, provided the observations are generated by "well-behaved" Turing Machines.

Negative Results and Efficiency Gaps

Despite these successes, the paper highlights a significant challenge regarding efficiency. Even with trajectory data, there are no "small" (polynomial-mass) characteristic sets for linear-time Turing Machines. This means that while learning is possible in the limit, the learner may require extremely long or complex examples to distinguish between two similar-looking algorithms. Furthermore, many of the proofs rely on "learning by enumeration," which, while theoretically sound, is super-exponentially slow in practice.

Conclusion

This research breathes new life into Gold’s framework by showing that the "unlearnable" becomes learnable when we observe the process of computation rather than just the result. By incorporating computational effort and trajectories into the learning model, the authors provide a theoretical basis for why modern techniques like Chain-of-Thought data are so effective. Future work remains to bridge the gap between theoretical learnability and polynomial-time efficiency, particularly in reactive environments like Reinforcement Learning.

Summary updated

BibTeX
@inproceedings{papazov2025learning,
  author = {Hristo Papazov and Nicolas Flammarion},
  title = {{Learning Algorithms in the Limit}},
  booktitle = {Conference on Learning Theory},
  year = {2025},
}
Figure