arXiv:2609.00789cs.LGSep 2026

Manuscript Offprint

arXiv:2609.00789

Subspace Levenberg Marquardt Algorithms in Training Neural Networks

M. Duc Hoang

Abstract

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.

1. Introduction

Feedforward multilayer perceptrons are widely used for supervised learning tasks such as regression and classification. Their performance depends in part on whether the network has sufficient capacity to represent the underlying structure of the problem. Classical results show that feedforward networks with sufficiently many hidden units can approximate broad classes of nonlinear functions [2, 6]. Approximation theory further shows that the network complexity required to achieve a prescribed accuracy can depend on properties of the target function, including its dimensionality and smoothness [11, 16]. Thus, more complex learning problems may require greater network capacity. In regression, this additional capacity allows the representation of richer nonlinear mappings, while in classification, increasing the number of parameters and layers can increase the capacity of the classifier [1]. However, larger networks also increase the number of trainable parameters and consequently make the optimization problem more computationally demanding.

First-order optimization methods, such as stochastic gradient descent (SGD) and Adam [7], are widely used for training neural networks due to their low memory requirements and relatively inexpensive iterations. However, their performance can depend strongly on hyperparameter choices, including the learning rate and momentum parameters. In addition, they may require a large number of iterations to achieve high accuracy, particularly when the optimization landscape is poorly conditioned. In contrast, second-order methods incorporate curvature information to determine more effective search directions and can achieve faster local convergence and greater robustness to problem scaling. For nonlinear least-squares training, the Levenberg–Marquardt (LM) method offers a practical alternative by using the Gauss–Newton approximation with adaptive damping and is particularly effective for small- to medium-sized networks [4]. However, the computational and memory costs associated with forming and solving the full LM system make it impractical as network size increases [15].

© M.D. Hoang.

One approach for reducing these costs is to restrict the LM step to a low-dimensional subspace rather than solving the full-dimensional problem. Subspace LM methods retain important curvature information while reducing the size of the linear system that must be constructed and solved at each iteration. Subspace LM methods include Krylov subspace LM (KSLM) [12], which constructs a search space using Krylov directions. More recently, Hoang et al. introduced adaptive hybrid subspace LM (HSLM) [5], which combines multiple informative directions to improve the quality of the reduced-space approximation. These approaches provide a potential compromise between the inexpensive iterations of first-order methods and the rapid convergence of full LM.

In this work, we investigate the use of subspace LM algorithms for both regression and classification tasks in neural networks. We compare classical LM with its subspace variants, KSLM and HSLM, and evaluate their performance against widely used first-order optimizers such as SGD and Adam. Our study focuses on the trade-offs among convergence behavior, computational cost, and predictive performance to assess whether subspace formulations can extend the practical advantages of LM to larger neural-network optimization problems.

References (16)