Deep learning has historically progressed through empirical trial-and-error. As noted by Joan Serrà in When the state of the art is ahead of the state of understanding: Unintuitive properties of deep neural networks, the empirical success of deep neural networks often far outpaces formal theoretical justification. Early architectures relied heavily on engineering heuristics, a sentiment echoed in the foundational training guidelines by Yoshua Bengio in Practical recommendations for gradient-based training of deep architectures.
Instead of stacking layers based on intuition, a growing paradigm seeks to design "white-box" architectures derived directly from mathematical first principles. The core intuition is simple: the forward pass of a neural network can be viewed as executing the steps of an iterative optimization algorithm or a continuous dynamical system.
The Forward Pass as an Energy Minimizer
To understand how a neural network layer maps to an optimization step, consider a classical optimization problem where the goal is to minimize an energy function $E(x)$. An iterative algorithm might update the state via a gradient step or a proximal operator:
$$x_{t+1} = \text{prox}(x_t - \eta \nabla E(x_t))$$
If we map the state $x_t$ to the activations of layer $t$, this mathematical operator looks exactly like a neural network layer: a linear transformation followed by a non-linear activation function.
Yongyi Yang et al. applied this perspective to transformers in Transformers from an Optimization Perspective, proving that the standard interleaving of self-attention and feed-forward blocks acts as an explicit step toward minimizing a global energy function. Similarly, Benjamin Hoover et al. designed the Energy Transformer by grounding the entire block structure in the energy minimization dynamics of Modern Hopfield Networks.
This connection explains why common heuristics work. For instance, Adel Bibi et al. demonstrated in Deep Layers as Stochastic Solvers that a standard block consisting of dropout, a linear layer, and an activation function is mathematically equivalent to a single iteration of a proximal stochastic gradient method. By viewing layers as solvers, the authors showed that repeatedly running the same layer—effectively "thinking longer" during the forward pass—improves performance without adding parameters. To generalize beyond standard Euclidean steps, Jordan Frécon et al. introduced Bregman Neural Networks, deriving skip connections naturally by substituting standard distances with Bregman distances.
Unrolling Signal Processing and Sparse Coding
Another powerful manifestation of this idea is "algorithm unrolling" in signal processing. Instead of treating a convolutional network as an arbitrary feature extractor, we can derive it by unrolling an algorithm designed to solve a sparse coding problem.
In Convolutional Neural Networks Analyzed via Convolutional Sparse Coding, Vardan Papyan et al. proved that the forward pass of a standard CNN is mathematically equivalent to a pursuit algorithm solving a Multi-Layer Convolutional Sparse Coding (ML-CSC) problem. This was expanded by Jeremias Sulam et al. in Multilayer Convolutional Sparse Modeling: Pursuit and Dictionary Learning to provide formal guarantees on network stability and operations.
This principle allows researchers to replace empirical architectures with structurally guaranteed ones. For example, Hui Li et al. developed LRRNet: A Novel Representation Learning Guided Fusion Network for Infrared and Visible Images by unrolling a Low-Rank Representation optimization algorithm into a lightweight, highly interpretable network that bypasses traditional trial-and-error design.
Continuous Dynamics and Numerical Schemes
If stacking layers corresponds to discrete optimization steps, then an infinitely deep network resembles a continuous dynamical system. This insight allows researchers to import mathematical tools from ordinary and partial differential equations (ODEs/PDEs) to design network topologies.
Bo Chang et al. formalized this in Multi-level Residual Networks from Dynamical Systems View, showing that Residual Networks (ResNets) can be interpreted as a simple Euler forward discretization scheme for an ODE:
$$\mathbf{x}_{t+1} = \mathbf{x}_t + \Delta t \cdot f(\mathbf{x}_t, \mathbf{W}_t)$$
Recognizing that the Euler scheme is numerically crude, Zhengbo Luo et al. proposed Rethinking ResNets: improved stacking strategies with high-order schemes for image classification. By reorganizing residual connections to mimic higher-order numerical integration schemes like Runge-Kutta, the authors achieved superior accuracy and information propagation without increasing the parameter count. Other formulations, such as the one proposed by Daniele Venturi and Xiantao Li in The Mori–Zwanzig formulation of deep learning, use statistical mechanics to decompose network behavior into memory and noise components, offering a formal path to simplify deep architectures.
The Payoff of White-Box Design
Why go through the trouble of deriving architectures from first principles? The benefits span interpretability, efficiency, and emergent capabilities:
- Emergent Structure: Yaodong Yu et al. demonstrated in Emergence of Segmentation with Minimalistic White-Box Transformers that CRATE, a transformer derived entirely from first-principles optimization (Maximal Coding Rate Reduction), naturally learns to segment objects without needing complex self-supervised training recipes like DINO.
- Computational Efficiency: By understanding the underlying mathematical objective, researchers can eliminate redundant components. Ziyang Wu leveraged this in Token Statistics Transformer: Linear-Time Attention via Variational Rate Reduction to replace standard quadratic attention with a linear-time alternative derived directly from rate-reduction principles.
By framing deep learning not as an empirical black box but as an unrolled mathematical solver, the field moves closer to a predictable, principled engineering discipline.