Hybrid Neural Network Training with Two-Dimensional Model-Based Subspace Search
Authors: Churui Wang, Pengcheng Xie
Organizations: University of California, Berkeley, Berkeley, CA, USA · Applied Mathematics and Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, CA, USA
Training neural networks without derivatives is challenging because full-dimensional quadratic models require a number of coefficients that grows quadratically with the parameter dimension. We investigate 2D-MoSub, which constructs quadratic models in two-dimensional subspaces, as both a standalone optimizer and a complement to Adam. Two hybrid strategies are considered: periodic subspace interventions and an Adam phase followed by derivative-free refinement. In the reported noisy Ackley fitting experiment with 1,341 parameters, standalone 2D-MoSub reaches a lower mean squared error than finite-difference Adam. In a flow-matching experiment with 12,866 parameters, standalone search stagnates, whereas Adam and the hybrids reduce the loss; the available curves do not establish a consistent advantage of the hybrids over Adam. We analyze conditional unbiasedness and noise amplification for fixed-geometry stochastic quadratic models, characterize the limited guarantee provided by exact-loss acceptance, and derive stationarity bounds for randomized and deterministic hybrids with stochastic gradient steps. These bounds do not apply directly to Adam. The analysis also identifies the endpoint regularization needed for the reported flow-matching path and includes the cost of model construction and acceptance checks. Together, the results define conditions under which subspace training can be assessed without equating a small interpolation problem with dimension-independent training cost.
Figures & tables
Figure 1: Noisy Ackley function fitting with 1,341 trainable parameters. Left: best MSE versus function evaluations, with a logarithmic vertical axis. Middle: target and fitted functions along the slice x2=0 ; the curve labeled Adam uses finite-difference gradients. Right: the surface reconstructed by 2D-MoSub .
Configuration
Update schedule
Adam
Adam throughout
2D-MoSub
Derivative-free subspace search throughout
Hybrid 1
One subspace update every q=2 steps
Hybrid 2
One subspace update every q=10 steps
Hybrid 3
Adam for the first half; 2D-MoSub for the second half
Table 1: Flow-matching training configurations. The intervention periods follow the labels in Figure 2 .
Figure 2: Flow-matching training losses over 2,000 epochs/steps, with Adam learning rate 10−3 and seed 18931 as indicated in the plot. Left: Adam and standalone 2D-MoSub . Middle: Adam and the two interleaved hybrids. Right: Hybrid 1 and the sequential Hybrid 3, whose phase switch occurs halfway through training. The vertical axes are logarithmic; the curves display substantial fluctuations.
Figure 3: Flow-matching visualizations for Adam, Hybrid 1, Hybrid 2, and Hybrid 3, from top to bottom. Each row shows reference marginal samples (left), samples generated by the learned ordinary differential equation (middle), and learned trajectories (right). Point colors indicate time, from blue at t=0 to red at t=1 . In the trajectory panels, the central red shading marks the initial distribution and the blue shading marks the target modes.
The Levenberg-Marquardt (LM) algorithm is a well-known second-order method for rapid convergence and strong robustness when training small- to medium-sized neural networks (NNs). However, its computational and memory costs increase significantly as the number of parameters in an NN grows. To address this limitation, subspace methods have been proposed, such as the Krylov subspace LM (KSLM) and the hybrid subspace LM (HSLM), making second-order algorithms more efficient. In this work, we evaluate the subspace Levenberg-Marquardt algorithms for regression and classification tasks in neural networks. We compare the performance of subspace LM variants with the classical LM method, as well as other popular first-order algorithms, such as stochastic gradient descent (SGD) and Adam.
M. Duc Hoang
Department of Mathematics, University of California, Davis, Davis, CA, USA
Momentum Stochastic Gradient Descent (mSGD) relies on a fixed momentum coefficient shared across all parameters, failing to account for the heterogeneous structure of modern loss landscapes. In this work, we adopt a continuous-time formulation to introduce individual, adaptive momentum coefficients regulated by the kinetic energy of each model parameter. This mechanism automatically adjusts to evolving training dynamics to maintain stability without sacrificing convergence speed. We demonstrate that this adaptive friction is inextricably linked to cubic damping, a suppression mechanism from structural dynamics. We additionally introduce two optimization schemes by augmenting the continuous dynamics of mSGD and Adam with a cubic damping term. Empirically, our methods demonstrate robustness and match or outperform Adam on training ViT, BERT, and GPT2 tasks where mSGD typically struggles. We further provide theoretical results establishing the exponential convergence of the proposed schemes.
School of Mathematics University of Bristol · School of Mathematics University of Edinburgh · CERMICS, CNRS, École des Ponts, Institut Polytechnique de Paris; Inria Paris, France
We study Consensus-Based Optimization (CBO) for two-layer neural network training. We compare the performance of CBO against Adam on two test cases and demonstrate how a hybrid approach, combining CBO with Adam, provides faster convergence than CBO. Additionally, in the context of multi-task learning, we recast CBO into a formulation that offers less memory overhead. The CBO method allows for a mean-field model formulation, which we couple with the mean-field model of the neural network. To this end, we first reformulate CBO within the optimal transport framework. As the number of particles tends to infinity, we lift the corresponding dynamics to the Wasserstein-over-Wasserstein space and show that the variance decreases monotonically. We confirm numerically that both mean-field models converge.
William De Deyn, Michael Herty, Giovanni Samaey
Institut für Geometrie und Praktische Mathematik, RWTH Aachen University, Germany · Department of Computer Science, KU Leuven, Belgium · Extraordinary Professor, Department of Mathematics and Applied Mathematics, University of Pretoria, South Africa