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

A Formal Proof of the Expressiveness of Deep Learning

Alexander Bentkamp, Jasmin Christian Blanchette, Dietrich KlakowITP 2017

TL;DR

This paper presents a formal proof, using the Isabelle/HOL theorem prover, of a key theoretical result about the expressiveness of deep learning architectures called Convolutional Arithmetic Circuits (CACs). The formalization simplifies and generalizes the original proof, providing a more robust understanding of why deeper networks can be exponentially more efficient than shallower ones for certain tasks.

What Problem Does This Paper Address?

Deep learning has achieved remarkable success across various domains, yet a deep theoretical understanding of why it works so well, particularly the advantage of depth, has lagged behind. While empirical results abound, formal guarantees are crucial for building trust and guiding future research. Specifically, this paper addresses the theoretical gap in understanding the "depth efficiency" of deep learning models. A previous theoretical result by Cohen et al. showed that for a specific architecture (CACs), deeper networks can express certain functions exponentially more efficiently than shallower ones. This paper aims to formally verify and generalize this crucial theoretical finding.

Methods

The core of this work is the formalization of Cohen et al.'s proof using the Isabelle/HOL theorem prover. This involves:

  • Formalizing Mathematical Libraries: The authors developed or enriched libraries for essential mathematical concepts, including:
  • Tensors: A new library for tensors and their operations (product, CP-rank, matricization) was created, as existing libraries were either too abstract or not suitable for the specific needs of this formalization.
  • Multivariate Polynomials: Extending existing libraries to handle polynomials and their properties, particularly their zero sets.
  • Lebesgue Measure: Adapting the definition of the Borel measure to handle spaces of arbitrary dimensions, which is crucial for analyzing the weight space of neural networks.
  • Restructuring the Proof: The original proof was restructured into a more modular form, separating concerns and making the overall argument clearer and more generalizable. This involved breaking down the proof into distinct steps related to tensor representation, tensor order reduction, and polynomial properties.
  • Defining CACs Formally: A recursive datatype was defined to represent Convolutional Arithmetic Circuits (CACs), allowing for both weighted and unweighted networks.
  • Using Theorem Proving: The Isabelle/HOL theorem prover was used to rigorously verify each step of the formalized proof, ensuring mathematical correctness and exploring the implications of the formalization.

Datasets

Not discussed in the paper. The paper focuses on a theoretical result and its formal verification, rather than empirical evaluation on datasets.

Key Insights and Ideas

  • Formal Verification of Depth Efficiency: The paper provides a rigorous, machine-checked proof of a fundamental theoretical result about why deep networks can be more efficient than shallow ones. This moves beyond empirical observations to solid mathematical guarantees.
  • Generalization of the Proof: The formalization not only verifies the original proof but also generalizes it. The set of "problematic" weight configurations, which prevents shallow networks from matching deep ones, is shown to be not just a Lebesgue null set, but a subset of the zero set of a non-zero multivariate polynomial. This offers a stronger characterization and potential for further analysis.
  • Importance of Formal Libraries: The development and enrichment of specialized libraries for tensors, polynomials, and measures were critical for the success of the formalization. This highlights the foundational role of robust mathematical infrastructure in formal verification.
  • Modularity in Formal Proofs: Restructuring the original proof into a more modular form proved beneficial for clarity, generalization, and potentially for future extensions.

Key Results

The primary result is the formal proof of the fundamental theorem of network capacity for Convolutional Arithmetic Circuits (CACs) with non-shared weights. This theorem states that for a given function, the set of weight configurations in a deeper network that can express the same function as a shallower network is a Lebesgue null set. The formalization confirms this and shows that this set is also a subset of the zero set of a non-zero multivariate polynomial, providing a stronger condition.

Limitations and Future Work

  • Focus on a Specific Architecture: The formalization is for Convolutional Arithmetic Circuits (CACs), a specific type of deep learning architecture. Extending this to more common architectures like Convolutional Neural Networks (CNNs) with ReLU activations would be a significant next step.
  • Shared Weights and Generalized Theorem: While the paper mentions that the case of shared weights and the generalized theorem of network capacity are similar and could be formalized with minor extensions, this was not fully implemented in this work.
  • Practical Implications of the Polynomial Result: The generalization involving polynomial zero sets offers theoretical advantages, but the paper notes that directly estimating the size of the discrete counterpart of the problematic set (relevant for practical implementations) remains challenging due to the precision requirements of modern computers.
  • Development of Formal Libraries: The paper emphasizes the effort required to develop and extend formal libraries. Future work could involve further contributions to these libraries and their integration with other formalization efforts.
  • Exploration of Training Algorithms: The paper notes that CACs could be a leading approach for deep learning "once suitable training algorithms have been developed," suggesting that formalizing the properties of such algorithms could be a future research direction.

Summary updated

BibTeX
@inproceedings{bentkamp2017formal,
  author = {Alexander Bentkamp and Jasmin Christian Blanchette and Dietrich Klakow},
  title = {{A Formal Proof of the Expressiveness of Deep Learning}},
  booktitle = {ITP},
  year = {2017},
  doi = {10.1007/978-3-319-66107-0\_4},
}
Figure