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 trade-off 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

Despite their massive success, deep learning models are often viewed as "black boxes" governed by heuristics. This lack of theoretical grounding leads to several challenges, including adversarial instability, data inefficiency, and massive memory requirements. Structure-preserving deep learning addresses these issues by replacing heuristic design with rigorous mathematical principles from physics and geometry. By treating architectures as dynamical systems and optimization as a controlled physical process, researchers can guarantee properties like stability, invertibility, and symmetry.

Theoretical Pillars

The paper categorizes structure-preserving methods into three main pillars:

  • Differential Equation Architectures: Viewing Residual Networks (ResNets) as discretizations of Ordinary Differential Equations (ODEs). This allows the use of Geometric Numerical Integration to design layers that conserve "energy" or "mass," ensuring the network remains stable regardless of depth.
  • Invertible Neural Networks (INNs): Designing layers that are mathematically bijective. These are essential for "Normalizing Flows" in generative modeling and allow for memory-efficient backpropagation by recomputing activations on the fly.
  • Geometric & Equivariant Design: Using Representation Theory to build networks that are "equivariant" to group transformations (e.g., rotations). This ensures that if the input transforms, the output transforms predictably, baking domain knowledge directly into the architecture.

Visualizing Stability and Feature Evolution

Toy problems such as the "Two Half-Moons" dataset are instrumental in visualizing how structure-preserving networks transform data. By viewing the network as a continuous dynamical system, we can observe the stable evolution of features across layers (represented by the index $k$).

Visualization of the "Two Half-Moons" dataset at an intermediate stage (k=15) of transformation.
The same dataset at a later stage (k=30), demonstrating the progressive separation and stability of the feature space.

Key Insights and Results

  • The "Deep Limit": As the number of layers goes to infinity, a ResNet becomes a continuous ODE, allowing the application of control theory to deep learning.
  • Symmetry as a Data Multiplier: Equivariant networks don't need to see every possible rotation of an object to recognize it. In denoising experiments, an equivariant denoiser used less than 10% of the parameters of a standard CNN while achieving superior performance.
  • Stability via Dissipation: Forcing weight matrices to be skew-symmetric can guarantee that data "energy" does not explode as it passes through hundreds of layers.
  • Hamiltonian Optimization: Training can be viewed as a physical system moving toward a low-energy state. Using "Conformal Hamiltonian Systems" leads to optimization algorithms that naturally include momentum, helping escape flat regions of the loss landscape.

Future Directions

While promising, several challenges remain. Extending current theory to "non-autonomous" systems (where weights change per layer) while maintaining stability is an open mathematical problem. Additionally, bridging the gap between elegant continuous-time mathematics and the discrete reality of computer implementation remains a critical frontier 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