Computability of Classification and Deep Learning: From Theoretical Limits to Practical Feasibility Through Quantization

Holger Boche, Vit Fojtik, Adalbert Fono, Gitta Kutyniok

Abstract

The unwavering success of deep learning in the past decade led to the increasing prevalence of deep learning methods in various application fields. However, the downsides of deep learning, most prominently its lack of trustworthiness, may not be compatible with safety-critical or high-responsibility applications requiring stricter performance guarantees. Recently, several instances of deep learning applications have been shown to be subject to theoretical limitations of computability, undermining the feasibility of performance guarantees when employed on real-world computers. We extend the findings by studying computability in the deep learning framework from two perspectives: From an application viewpoint in the context of classification problems and a general limitation viewpoint in the context of training neural networks. In particular, we show restrictions on the algorithmic solvability of classification problems that also render the algorithmic detection of failure in computations in a general setting infeasible. Subsequently, we prove algorithmic limitations in training deep neural networks even in cases where the underlying problem is well-behaved. Finally, we end with a positive observation, showing that in quantized versions of classification and deep network training, computability restrictions do not arise or can be overcome to a certain degree.

Introduction: The Quest for Trustworthy Deep Learning

As deep learning transitions from experimental research into safety-critical domains—such as autonomous driving and medical diagnostics—the demand for "trustworthiness" has become paramount. Engineers and regulators require hard performance guarantees and verifiably correct results. However, a fundamental gap exists: while most deep learning theory is built upon the mathematics of infinite-precision real numbers, the digital computers (Turing machines) that execute these models operate in a discrete, finite-precision world.

This paper investigates whether it is algorithmically possible for a computer to achieve these necessary guarantees. The authors categorize potential algorithmic failures into two types:

  1. Type 1 Failure: The underlying problem is mathematically impossible to solve within guaranteed error bounds using a digital algorithm.
  2. Type 2 Failure: A solution exists in theory, but no universal algorithm can "learn" or find it from finite data.

Methodology: Bridging Turing Machines and Neural Networks

To analyze these limits, the study employs Computability Theory, specifically focusing on Borel-Turing and Banach-Mazur computability. Unlike empirical studies that measure accuracy on specific benchmarks, this work uses formal proofs to determine the existence of "computable solvers" or "learning algorithms."

The research methodology involves:

  • Modeling Classification: Defining classification as a mapping from continuous domains to discrete classes and evaluating if these classes are "semi-decidable."
  • Training Analysis: Investigating the existence of universal learning algorithms (denoted as $\Gamma$) capable of reconstructing neural network parameters from finite data samples.
  • Quantization Mapping: Comparing theoretical barriers in the real-valued domain ($\mathbb{R}$) against a quantized, integer-based domain ($\mathbb{Z}$).

The Theoretical Landscape: Why Perfect Classification is Impossible

A core insight of the paper is the "Discontinuity Trap." Classification is inherently a discontinuous operation—an input is assigned to either Class A or Class B with no middle ground. However, a fundamental tenet of computability theory is that any function computable on real numbers must be continuous. Consequently, achieving "perfect" classification on a connected continuous domain is mathematically impossible for a digital computer.

Furthermore, the authors identify an "I Don't Know" Paradox. They prove that it is impossible to construct a perfect "exit flag"—an algorithm that can reliably signal when a non-computable model is about to fail. In essence, we cannot algorithmically "know when we don't know."

The Training Bottleneck: Type 2 Failures

Even in scenarios where a perfect neural network exists for a specific task, the process of finding it is fraught with difficulty. Theorem 3.7 demonstrates that for real-valued networks, no universal learning algorithm can reliably reconstruct a network's realization from data within an arbitrary error $\varepsilon > 0$. The bottleneck is not the existence of the model, but the algorithmic feasibility of the learning process itself in a continuous setting.

Quantization: A Path Toward Computability

The paper offers a significant "light at the end of the tunnel" through the lens of quantization. Most of the identified impossibility results vanish when the problem is restricted to fixed-point arithmetic. In the discrete world of integers, the exact re-learning of network realizations becomes algorithmically possible (Theorems 4.8 and 4.9).

However, this solution comes with a "Quantization Catch-22." While quantized deep learning is computable, the process of converting a real-world continuous problem into a quantized one (the quantization function) is itself non-computable (Proposition 4.12). This means we cannot algorithmically guarantee that a quantized model remains a faithful representation of the original continuous reality.

Conclusion and Future Directions

This research highlights a fundamental "Theory-to-Practice Gap." While quantization provides a theoretical path to computability, the algorithms used in these proofs—often involving exhaustive enumeration—are not yet efficient enough for modern high-speed training loops.

Future research should focus on:

  • Developing efficient learning algorithms that preserve computability guarantees.
  • Exploring "Problem Relaxation," such as finding "good enough" networks rather than optimal ones, to bypass Type 2 failures.
  • Identifying specific conditions under which the transition from continuous to discrete domains can be made with formal guarantees.

Summary updated

BibTeX
@article{boche2025computability,
  author = {Holger Boche and Vit Fojtik and Adalbert Fono and Gitta Kutyniok},
  title = {{Computability of Classification and Deep Learning: From Theoretical Limits to Practical Feasibility Through Quantization}},
  journal = {Journal of Fourier Analysis and Applications},
  year = {2025},
  doi = {10.1007/s00041-025-10163-w},
}
Figure