Second-Order Complexity Theory for Neural Networks
Yoshihiro Maruyama
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Edge of Stability Dynamics · Type: theory · Keywords: second-order complexity, neural network training, computational complexity, backpropagation, smoothness certificates
Areas: Model Architectures & Sequence Modeling › Neural and brain architectures › Expressivity and complexity of neural architectures
Summary
This paper studies neural-network training primitives using second-order complexity theory, proving that many standard primitives are second-order polynomial-time computable and identifying sources of higher complexity.
Explained to a 5-year-old
People build computer brains called neural networks to help them solve problems. Training these brains means adjusting many tiny numbers so they get better at their jobs. This paper uses a special math tool to count how hard that adjusting really is. It shows that many common ways of adjusting the numbers are not too hard, but some tricky choices make it harder. The result helps scientists design simpler and faster ways to teach computer brains.
Explained to a 5-year-old, longer
People make computer programs that can learn to do things, like recognize pictures or understand words. These programs are called neural networks because they are inspired by how our brains work. To learn, the program changes many tiny numbers inside it, a process called training. Training can be slow and expensive, so scientists want to know how hard it really is. This paper uses a special math language that counts work with very high precision. It looks at common training steps like backpropagation, which moves errors backward through the network. The math shows that many of these steps are not too hard and can be done quickly. For example, adjusting the numbers for a simple network costs about as many steps as there are numbers. More complex steps, like choosing the best path or picking the top items, need more work. The paper also points out that some choices, like exact line search, make training harder. Understanding these difficulties helps engineers design simpler and faster learning methods. Overall, the work gives a clear picture of which training tricks are easy and which are tough.
For a technical reader
The paper formalizes the computational cost of training neural networks by treating the training process as a mathematical operator that must produce results with a given precision. It shows that many standard operations-like computing gradients for dense layers, convolutions, and attention-are efficiently computable, scaling linearly or polynomially with the size of the network. However, certain operations that involve discrete choices, global optimization, or exact continuous solving can become significantly more expensive. The analysis also highlights the importance of smoothness assumptions and analytic certificates, which are often implicit in floating-point analyses. This unified view helps engineers anticipate where training may become costly and where certifiable, precise methods can be applied.
Problem
Understanding the computational complexity of neural-network training primitives over continuous real-valued data is a fundamental question in machine learning theory.
Method
The authors model training primitives as represented-real operators within the second-order complexity framework, establishing polynomial-time computability under smoothness and analytic certificates, and analyzing sources of higher complexity such as discontinuous selections and global optimization.
Results
The paper shows that dense backpropagation has arithmetic complexity Θ(s) for s weights and polynomial bit complexity, convolutional backpropagation is polynomial in active incidences, soft-attention backpropagation costs Θ(ℓ d² + ℓ² d), and standard optimizer updates stay second-order polynomial under smoothness certificates, while discontinuous selections, global optimization, and continuous-time flow solving introduce higher complexity.
Contributions
It introduces a rigorous second-order complexity framework for neural-network training primitives, provides tight complexity bounds for many standard operations, and identifies the mechanisms that raise complexity, unifying precision, conditioning, and certificate analyses.
Limitations and assumptions
The analysis assumes smoothness and the availability of analytic certificates for the primitives and focuses on fixed finite optimizer updates, not covering all possible training scenarios.
Practical relevance
It offers a unified complexity perspective that can guide the design of more precise and certifiable training algorithms for real-world neural networks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction