Closed-Form Last Layer Optimization
Not on the map. Why?
Abstract (arXiv)
Neural networks are typically optimized with variants of stochastic gradient descent. Under a squared loss, however, the optimal solution to the linear last layer weights is known in closed-form. We propose to leverage this during optimization, treating the last layer as a function of the backbone parameters, and optimizing solely for these parameters. We show this is equivalent to alternating between gradient descent steps on the backbone and closed-form updates on the last layer. We adapt the method for the setting of stochastic gradient descent, by trading off the loss on the current batch against the accumulated information from previous batches. We provide theoretical analyses showing convergence of the method to an optimal solution in the neural tangent kernel regime, as well as quantifying the gains compared to standard SGD in a one-step analysis. Finally, we demonstrate the effectiveness of our approach compared with SGD and Adam on a squared loss in several regression tasks, including neural operators and causal inference.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 20 of its 28 references that are in the map. First posted on arXiv 6 Oct 2025.
Builds on
20 of 28 references.
References · 20
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,806
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2017Large Batch Training of Convolutional Networkscited by 529
- 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
- 2020Evaluation of Neural Architectures Trained with Square Loss vs Cross-Entropy in Classification Taskscited by 137
- 2024Variational Bayesian Last Layerscited by 67
- 2020Learning Deep Features in Instrumental Variable Regressioncited by 65
- 2023Learning time-scales in two-layers neural networkscited by 57
- 2021Deep Proxy Causal Learning and its Application to Confounded Bandit Policy Evaluationcited by 39
- 2023An Introduction to Bi-level Optimization: Foundations and Applications in Signal Processing and Machine Learningcited by 39
- 2021On Instrumental Variable Regression for Deep Offline Policy Evaluationcited by 22
8 more
- 2024Functional Bilevel Optimization for Machine Learningcited by 20
- 2015Layer-Specific Adaptive Learning Rates for Deep Networkscited by 19
- 2023Leveraging the two timescale regime to demonstrate convergence of neural networkscited by 18
- 2023Wide Neural Networks as Gaussian Processes: Lessons from Deep Equilibrium Modelscited by 14
- 2023Kalman Filter for Online Classification of Non-Stationary Datacited by 13
- 2024Bayesian Optimization via Continual Variational Last Layer Trainingcited by 13
- 2024Mean-Field Langevin Dynamics for Signed Measures via a Bilevel Approachcited by 6
- 2025Ultra-fast feature learning for the training of two-layer neural networks in the two-timescale regimecited by 4
Built on by
Citing papers per year: 2026: 3.
3 papers.