Principled Derivation of Neural Architectures

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 2334 papers360 conceptsfrozen 2026-10-04

For much of the last decade, the design of neural network architectures has been a process of "informed alchemy." Components like skip connections, layer normalization, and self-attention were discovered through empirical trial and error, then refined through massive benchmarks. While these motifs clearly work, the field has often lacked a rigorous mathematical "why" to explain their necessity.

A growing body of research is closing this gap by treating neural architectures not as arbitrary stacks of layers, but as principled approximations of classical mathematical processes. By deriving architectures from first principles—such as optimization algorithms, physical partial differential equations (PDEs), and variational inference—researchers are transforming "black-box" heuristics into "white-box" models.

Architectures as Optimization Algorithms

One of the most powerful ways to understand a neural network is to view its forward pass as an optimization algorithm in disguise. In this view, each layer of a network is not just a transformation, but a single step (like a gradient descent step) toward minimizing a specific energy function.

This perspective has been particularly fruitful for understanding Transformers. Yongyi Yang, David Wipf, and colleagues demonstrated in Transformers from an Optimization Perspective that the standard Transformer block—including its specific arrangement of self-attention and feed-forward networks—can be derived as a series of steps to minimize a global energy function. Similarly, the Energy Transformer by Benjamin Hoover and others re-imagines the block as a dynamical system grounded in the theory of Modern Hopfield Networks, where the goal is to reach a fixed point that represents a "clean" or "completed" state of the input data.

This "deep unrolling" approach is also prevalent in Graph Neural Networks (GNNs). Meiqi Zhu and Xiao Wang showed in Interpreting and Unifying Graph Neural Networks with An Optimization Framework that popular models like GCN are actually solving a trade-off between feature fitting and graph smoothing. By making this optimization explicit, researchers can derive new variants like TWIRLS that are mathematically guaranteed to resist common issues like "over-smoothing."

The Variational and Functional Foundation

If optimization explains the process of a forward pass, variational theory explains the structure of the functions being learned. Why do we use ReLU activations? Why are skip connections so effective?

Rahul Parhi and Michael Unser have provided a rigorous answer through Variational Spline Theory. They prove that deep ReLU networks are the mathematically optimal solutions to specific variational problems in "compositional" function spaces. In this framework, architectural features like skip connections and weight normalization are not just tricks; they are the necessary consequences of seeking the simplest (sparsest) function that fits the data. This work, along with their exploration of multivariate nonlinearities, suggests that our most successful architectures are essentially high-dimensional splines that minimize a specific "total variation" norm.

Physical and Probabilistic Origins

Beyond optimization, researchers are looking to the physical world and classical statistics for architectural blueprints.

  • Neural PDEs: In Partial Differential Equations is All You Need for Generating Neural Architectures, Kaizhu Huang and colleagues argue that CNNs, RNNs, and MLPs emerge naturally when you discretize classic physics equations, such as the heat equation or wave equation. This frames deep learning as a form of "Physical AI," where the network's layers simulate a physical process evolving over time.
  • Probabilistic Inference: The Probabilistic Transformer by Haoyi Wu and Kewei Tu shows that the computation graph of a Transformer can be derived from first principles using Conditional Random Fields (CRFs). This provides a bridge between the "black-box" attention mechanism and classical syntactic modeling in NLP.
  • Information Theory: Frameworks like Maximum Entropy and Information Flow modeling treat layers as a sequence of filters designed to satisfy specific entropy conditions, explaining why overparameterized models generalize so well.

Why This Matters: From Discovery to Design

The shift from empirical discovery to principled derivation is more than just a theoretical exercise. It leads to more efficient and robust models:

  1. Efficiency: The Token Statistics Transformer (ToST) uses "white-box" optimization principles (Maximal Coding Rate Reduction) to replace quadratic self-attention with a linear-time alternative that is both faster and more interpretable.
  2. Robustness: The OT-Transformer, derived from Optimal Control Theory, uses an Optimal Transport regularizer to significantly improve noise robustness and parameter efficiency.
  3. Interpretability: When a module is derived from a neuroscience-inspired energy function—as seen in the SimAM attention module by Lingxiao Yang—it becomes "parameter-free" and its weights have a clear, closed-form mathematical meaning.

By grounding neural architectures in these first principles, the field is moving toward a future where we don't just find models that work—we design them to be optimal by construction.

Papers in this version

Showing 60 of 334 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 261 papers
  2. Version 1 · 2026-10-04 · 334 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_heuristic_architecture_design_df0b316e,
  title = {heuristic architecture design},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/heuristic-architecture-design/rdr_df0b316e420b4dcfaf499e26fbc7338b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_principled_derivation_of_neural_architec_df0b316e_v1,
  title = {Principled Derivation of Neural Architectures},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/principled-derivation-of-neural-architectures/rdr_df0b316e420b4dcfaf499e26fbc7338b/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}