Structure preserving deep learning

Elena Celledoni, Matthias J. Ehrhardt, Christian Etmann, Robert I. McLachlan, Brynjulf Owren, Carola-Bibiane Schönlieb, Ferdia Sherry

Abstract

Over the past few years, deep learning has risen to the foreground as a topic of massive interest, mainly as a result of successes obtained in solving large-scale image processing tasks. There are multiple challenging mathematical problems involved in applying deep learning: most deep learning methods require the solution of hard optimisation problems, and a good understanding of the tradeoff between computational effort, amount of data and model complexity is required to successfully design a deep learning approach for a given problem. A large amount of progress made in deep learning has been based on heuristic explorations, but there is a growing effort to mathematically understand the structure in existing deep learning methods and to systematically design new deep learning methods to preserve certain types of structure in deep learning. In this article, we review a number of these directions: some deep neural networks can be understood as discretisations of dynamical systems, neural networks can be designed to have desirable properties such as invertibility or group equivariance, and new algorithmic frameworks based on conformal Hamiltonian systems and Riemannian manifolds to solve the optimisation problems have been proposed. We conclude our review of each of these topics by discussing some open problems that we consider to be interesting directions for future research.

Introduction: Bridging the Gap Between ODEs and AI

Despite their massive success, deep neural networks are often criticized as "black boxes" built on heuristics. This lack of a rigorous mathematical foundation leads to several challenges, including instability where small input perturbations cause wild output fluctuations, memory bottlenecks during training, and data inefficiency where networks must re-learn basic symmetries from scratch.

This paper argues that these problems can be addressed by viewing deep learning through the lens of structure-preserving numerics. By treating neural networks as discretizations of continuous dynamical systems (Neural ODEs), researchers can bake mathematical structures like invertibility, symmetry, and energy conservation directly into the model architecture.

Methods of Structure Preservation

The paper synthesizes several high-level mathematical frameworks to achieve these goals:

  • Neural ODEs and ResNets: Residual Networks (ResNets) can be viewed as a Forward Euler discretization of an Ordinary Differential Equation (ODE). Upgrading the solver to higher-order or symplectic schemes allows models to inherit stability properties from classical numerical analysis.
  • Hamiltonian and Dissipative Systems: Architectures can be designed to mimic physical systems. Hamiltonian networks preserve volume in phase space, while dissipative models ensure features do not explode as they propagate through deep layers.
  • Invertible Neural Networks (INNs): These bijective architectures allow for perfect reconstruction of inputs from outputs, often utilizing coupling layers or fixed-point iterations.
  • Equivariant Networks: Using group and representation theory, these networks are mathematically guaranteed to respect symmetries, such as rotations or translations, ensuring internal features transform consistently with the input.

Datasets and Visualizing Transformations

The review references standard benchmarks and toy problems to illustrate these concepts. A key example is the use of "Two Half-Moons" and "Donut" datasets to demonstrate the "warping" of probability distributions in Normalizing Flows and Neural ODEs.

Evolution of 2D and 3D datasets (halfmoon and donut) through structure-preserving transformations at various steps $k$.

Other datasets mentioned include ImageNet for scaling discussions, and manifold-valued data like Diffusion Tensor Imaging (DTI) and InSAR, where data points naturally reside on curved surfaces rather than Euclidean space.

Key Insights and Ideas

  • The "Deep Limit": As layers in a ResNet approach infinity, training converges to a continuous Optimal Control Problem, allowing the use of the Pontryagin Maximum Principle for better algorithm derivation.
  • Memory Efficiency: Invertible networks reduce memory costs from $O(Layers)$ to $O(1)$ because intermediate activations do not need to be stored; they can be reconstructed on the fly during backpropagation.
  • Symmetry as a Parameter Reducer: Equivariant networks can achieve superior performance with less than 10% of the parameters of standard CNNs by baking symmetry into the architecture.
  • Stability via Lipschitz Constraints: Enforcing one-sided Lipschitz conditions guarantees that the network remains contractive and stable against noise amplification.

Key Results

In denoising experiments, equivariant denoisers have shown significant advantages, outperforming standard CNNs with nearly 12 times fewer parameters and demonstrating better generalization to rotated images. Furthermore, mathematical proofs highlight that discrete structure-preserving schemes, such as Symplectic Euler, correctly capture the long-term behavior of underlying continuous models, which is critical for the reliability of Neural ODE architectures.

Limitations and Future Work

Several open challenges remain. Preserving energy in non-autonomous Hamiltonian systems (where weights change per layer) is not yet fully understood. Additionally, designing efficient numerical schemes that strictly adhere to curved manifolds remains difficult. Establishing exact convergence rates for these architectures in the deep limit and optimizing the computational overhead of stability-enforcing techniques like spectral normalization are also key areas for future research.

Summary updated

BibTeX
@inproceedings{celledoni2021structure,
  author = {Elena Celledoni and Matthias J. Ehrhardt and Christian Etmann and Robert I. McLachlan and Brynjulf Owren and Carola-Bibiane Schönlieb and Ferdia Sherry},
  title = {{Structure preserving deep learning}},
  booktitle = {European},
  year = {2021},
  doi = {10.1017/s0956792521000139},
}
Figure