Manuscript Offprint
arXiv:2608.25524Adaptive Hybrid Subspace Levenberg Marquardt Algorithm with Adequacy Monitor for Large Scale Least Squares Problems
ABSTRACT
The Levenberg–Marquardt (LM) algorithm is the most widely used method for solving nonlinear least-squares problems, as it combines the robustness of steepest descent with the fast local convergence of the Gauss-Newton method. However, its computational cost can become prohibitive for large-scale problems because each iteration requires solving a large damped linear system, and conventional step-acceptance strategies may require repeated solves as the damping parameter is adjusted. Despite this computational challenge, many large-scale least-squares problems exhibit effective low-dimensional structure, with only a small number of parameter-space directions strongly informed by the data. We propose an adaptive hybrid subspace Levenberg–Marquardt (HSLM) algorithm that constructs a low-dimensional subspace from complementary sources of gradient, memory, Krylov-subspace, and randomized curvature information and computes a spectrally damped LM step within this subspace. A distinguishing feature of the method is a deterministic adequacy monitor that quantifies how much descent information is captured by the reduced space and adaptively enriches the subspace when necessary. Step acceptance is decoupled from damping adjustment: Armijo backtracking determines the accepted step length, while the ratio of actual to predicted reduction is used solely to update the damping parameter, thereby avoiding repeated damped-system solves during step acceptance. For the HSLM algorithm, we establish global convergence to stationarity and prove local linear and superlinear convergence. Numerical experiments on neural-network training problems show that HSLM achieves convergence behavior comparable to classical and Krylov-subspace LM (KSLM) while substantially reducing per-iteration computational cost, with increasing advantages observed as the parameter dimension grows.
Keywords: Levenberg-Marquardt, large-scale least squares problem, hybrid subspace, Adequacy Monitor
1 INTRODUCTION
Large-scale nonlinear least-squares problems arise in many areas, including physics, engineering, inverse modeling, and machine learning. Second-order methods, such as Levenberg–Marquardt (LM) algorithm, are attractive because of their robustness and fast local convergence, especially for ill-conditioned nonlinear least-squares problems [18, 21, 20]. However, their direct application becomes computationally expensive in high-dimensional problems, since each iteration requires solv-ing large linear systems involving the Jacobian or an approximate Hessian [24, 11]. At the same time, many inverse problems possess intrinsic low-dimensional structure, in the sense that the data constrain only a relatively small subspace of the full parameter space, while directions outside this subspace are weakly identifiable or dominated by regularization. This observation is consistent with active-subspace ideas, which identify important directions along which the model or objective varies most strongly [8, 9]. This structure motivates reduced-space and low-rank variants of LM, which seek to approximate the full problem within a lower-dimensional subspace that captures the dominant data-informed and curvature directions.
Subspace and low-rank approximations have long been studied as a way to reduce the cost of LM-type methods for large-scale inverse and nonlinear least-squares problems. These approaches include modified LM methods for large-scale inverse problems [27], general subspace frameworks for nonlinear equations and nonlinear least squares [29], randomized truncated SVD approximations of sensitivity matrices [4], and Krylov-based projection methods for highly parameterized inverse models [19]. In parallel, random embedding and randomized subspace optimization methods have been developed to reduce the dimension of the variable space itself [6, 25]. Related randomized techniques include stochastic Hessian approximation, as in SPAN [16], and randomized matrix-decomposition methods for identifying dominant low-rank subspaces [14]. Together, these works show that subspace approximations provide a natural route toward scalable LM-type methods by reducing the cost of each iteration while retaining important curvature and data-informed directions.
Despite these advances, most existing subspace methods lack an explicit deterministic mechanism to ensure that the chosen subspace remains adequate as the optimization progresses and local curvature directions change. Randomized subspace methods, for example, rely on probabilistic embedding properties to guarantee sufficient descent or curvature capture with high probability, but they do not necessarily exploit problem-specific curvature structure or incorporate memory from previous iterations. In addition, low-rank and Krylov-based approaches can efficiently approximate individual LM steps, but the quality of the reduced space may depend strongly on how well the current subspace captures the dominant local geometry. As a result, achieving both robust global convergence and fast local convergence within a scalable, matrix-free framework remains challenging.
In this work, we propose a hybrid subspace Levenberg-Marquardt (HSLM) algorithm that integrates ideas from spectral truncation, Krylov subspace methods, and randomized subspace methods. At each iteration, the method constructs a compact subspace that explicitly incorporates descent information via the gradient, previous accepted steps, and curvature information obtained from Hessian or Jacobian-vector probes. A projected-gradient adequacy measure is employed to monitor descent-relevant information in the subspace and to adaptively expand or refine it when necessary. To avoid repeatedly solving expensive damped systems, we also use Armijo backtracking line search for step acceptance and rely exclusively on the predicted-versus-actual reduction ratio to update the damping parameter. Under standard smoothness, regularity, and vanishing-approximation assumptions, we establish global convergence of the HSLM algorithm, with global convergence to stationarity and local linear/superlinear convergence rates. Finally, we implement the HSLM algorithm to train feedforward neural networks of varying problem sizes and compare its performance with the classical LM and Krylov subspace LM.
algorithms.
where is a vector of the residual. The Gauss–Newton method [11] solves nonlinear least-squares problems by linearizing the residual function at each step. At iteration , the residual is approximated by , leading to a linear least-squares subproblem where the update direction satisfies the equations
where is the Jacobian of the residuals and is the corresponding Gauss–Newton approximation to the Hessian matrix. Gauss–Newton exhibits second-order local convergence when residuals are small and the Jacobian has full rank. However, the method may fail when the Jacobian is ill-conditioned or the initial guess is far from the optimal solution. To improve robustness, Levenberg [18] and Marquardt [21] introduced a damping strategy that modifies the system as
where the damping term . In the classical Levenberg-Marquardt algorithm, the damping update strategy plays a key role in the method's stability and efficiency. When the residual is effectively reduced, the damping parameter is decreased, bringing the algorithm closer to the Gauss-Newton direction. Conversely, when an iteration produces insufficient reduction in the residual, the damping parameter is increased, yielding a step closer to the steepest-descent direction.
For notational convenience, we denote
and denote the residual, the Jacobian matrix, the gradient and Gauss-Newton Hessian approximation at by
3 HYBRID SUBSPACE LEVENBERG MARQUART ALGORITHM
The HSLM algorithm is based on the observation that, although the optimization takes place in a high-dimensional parameter space, only a relatively small number of directions are typically needed to capture the dominant descent and curvature information. Rather than relying on a fixed reduced space, HSLM constructs an adaptive hybrid subspace at each iteration.
from multiple sources of information, including the gradient, recent optimization history, Krylov/Lanczos directions, and randomized curvature probes. A distinguishing feature of the method is a deterministic adequacy monitor that evaluates whether the current subspace captures sufficient descent information and adaptively enriches the subspace whenever necessary. Once an adequate subspace has been constructed, the algorithm computes a spectrally damped Levenberg–Marquardt step within the reduced space. Step acceptance is determined using Armijo backtracking, while the ratio of actual to predicted reduction is used solely to update the damping parameter, thereby avoiding repeated damped-system solves. The remainder of this section describes the subspace construction, the adequacy monitor, the reduced LM system, step acceptance and damping update.
3.1 Subspace construction
At each iteration, HSLM constructs an orthonormal basis from candidate directions that provide complementary information about the local optimization problem. Krylov directions provide an efficient way to incorporate local curvature information [26, 29], while randomized Hessian-vector products provide an inexpensive way to sample local curvature information without explicitly forming the Hessian [16]. Other dimension-reduction techniques include randomized subspace and embedding methods that construct lower-dimensional representations of high-dimensional optimization problems while approximately preserving relevant geometric information [6, 25], and truncated SVD approaches that approximate dominant directions of the sensitivity matrix [4]. Motivated by these complementary ideas, HSLM draws candidate and enrichment directions from four complementary sources:
• the normalized gradient, which provides first-order descent information;
• recent optimization steps, which encode local optimization history;
• Krylov/Lanczos vectors, which approximate dominant curvature directions; and
• randomized Gauss-Newton-vector probes where , which broaden spectral coverage and improve robustness when the local curvature is noisy or heterogeneous.
In this way, the method adapts the reduced space to the local geometry at each iteration while keeping the dominant linear algebra restricted to a low-dimensional subproblem.
3.2 Deterministic Adequacy Monitor
Although the candidate pool combines multiple complementary sources of information, there is no guarantee that the resulting reduced space adequately represents the current descent geometry. Therefore, before computing the reduced Levenberg–Marquardt step, we evaluate the quality of the subspace using a deterministic adequacy criterion. Specifically, we measure the fraction of the gradient energy captured by the current subspace through the projected-gradient energy ratio
The quantity takes values in , with larger values indicating that the subspace captures a greater proportion of the full gradient and therefore contains sufficient first-order descent information. If drops below a prescribed threshold , additional candidate directions are generated from the pool described in Section 3.1, the basis is updated, and the adequacy test is repeated until the threshold is satisfied.
3.3 Reduced LM system
Once the adequacy criterion is satisfied, the reduced basis is fixed for the current iteration. The Levenberg–Marquardt step is then computed entirely within this subspace, reducing the n-dimensional damped system to a much smaller p-dimensional problem. Restricting the Jacobian to the reduced subspace gives the reduced Jacobian .
Let
denote its singular value decomposition. This decomposition diagonalizes the reduced Gauss–Newton matrix restricted to the reduced subspace and provides a convenient basis for constructing the reduced LM system. In particular,
and
We restrict the search direction to the reduced subspace by writing . Using (4) and (5), the classical reduced Levenberg–Marquardt system becomes
This reduced formulation inherits the isotropic damping of the standard LM algorithm. However, because the singular values of the reduced Jacobian can vary substantially, treating all directions equally may lead to unnecessary damping in some directions and insufficient damping in others. To better accommodate ill-conditioning and varying local curvature, we replace the isotropic damping matrix with a diagonal, curvature-dependent damping matrix , giving
and
The threshold guarantees that every damping coefficient remains strictly positive, preventing excessively large updates associated with very small singular values. Consequently, the amount of regularization adapts to the local curvature represented by the singular values: directions associated with larger singular values receive stronger damping, while flat-ter directions remain comparatively less damped. This curvature-adaptive damping improves numerical stability while preserving efficient progress along weakly constrained directions. The resulting reduced system (6) is therefore solved in the low-dimensional subspace, after which the corresponding search direction is mapped back to the original parameter space.
Remark 1. When the candidate subspace becomes large, its dimension may be controlled by compressing the basis using an SVD-based energy criterion. In practice, the basis can be maintained efficiently using incremental QR factorization together with an SVD of a small compressed matrix, following standard incremental SVD techniques [5].
3.4 Step acceptance and damping updates
After computing the reduced LM search direction , we determine an appropriate step length using Armijo backtracking [2]. Rather than accepting the full step unconditionally, Armijo backtracking performs a line search to ensure a sufficient decrease in the objective function. Specifically, Armijo backtracking starts with the full step and repeatedly reduces the step length by a factor until the Armijo condition
is satisfied. The accepted step length is therefore , where is the smallest nonnegative integer for which the inequality holds. The iterate is updated according to
Once a step has been accepted, we define the damped quadratic model associated with the reduced Levenberg–Marquardt system,
This model combines the linearized least-squares objective with the curvature-adaptive damping introduced in Section 3.3 and provides the predicted reduction used to update the damping parameter. The agreement between the predicted reduction of the model and the actual reduction of the objective is measured by the gain ratio
Following [20, 7], the damping parameter is updated according to the gain ratio using the standard rule
Unlike the classical LM algorithm, step acceptance and damping updates are decoupled: Armijo backtracking determines the step length, while the gain ratio is used to update the damping parameter. This separation avoids repeated damped-system solves during step acceptance while preserving the role of the damping parameter as a measure of local quadratic approximation quality.
3.5 Pseudocode
Algorithm Hybrid subspace Levenberg Marquardt
Input: Initial guess , Jacobian matrix , gradient vector , damping term , singular value threshold , adequacy threshold , Armijo constants , ratio thresholds .
for do
Construct a candidate basis, then orthonormalize it to obtain .
Compute .
while and do
Expand the subspace, then update .
Recompute .
end while
Form and its SVD .
Set and .
Solve and set .
Find smallest such that satisfies (8); set .
Update .
end for
4 CONVERGENCE ANALYSIS
This section establishes the global and local convergence properties of HSLM. The analysis follows the standard framework for line-search Levenberg–Marquardt methods while accounting for the adaptive reduced subspace. Building on the classical analysis, we identify the additional conditions needed to ensure that restricting the LM step to an adaptive subspace preserves the relevant global and local convergence properties. For global convergence, the key ingredients are the deterministic adequacy condition, which ensures that the reduced space retains sufficient gradient information, and the Armijo line search, which guarantees sufficient decrease. For local convergence, we quantify how accurately the reduced system approximates the full Newton system and show how the resulting approximation errors determine the local convergence rate.
4.1 Global Convergence
We first impose two standard assumptions used in the global convergence analysis of line-search methods [2, 24]. Lower boundedness prevents indefinite decrease of the objective along the initial level set, , while Lipschitz continuity of the gradient provides the smoothness needed to establish sufficient decrease.
Assumption 1 (Lower boundedness on the level set). F is bounded below on .
Assumption 2 (Lipschitz gradient on the level set). is Lipschitz continuous on an open neighborhood of : there exist such that for all .
The remaining assumptions account for the fact that the search direction is computed only in a reduced subspace. In a full-space method, a nonzero gradient directly provides a descent direction. In a subspace method, however, the projected gradient may be arbitrarily small if the chosen subspace is poorly aligned with the gradient. Therefore, we required the algorithm to construct or enrich the subspace until it captures a uniformly positive fraction of the full-gradient information. This deterministic adequacy condition is analogous to alignment and subspace-quality requirements appear in randomized and reduced subspace methods [6, 25].
Assumption 3 (Deterministic adequacy enforcement). There exists such that the algorithm enforces for all iterations with , where is defined in (2).
Finally, we assume the reduced problem to remain uniformly well conditioned. Positive definiteness of the reduced matrix guarantees that the reduced model is strictly convex and that the subspace step is uniquely defined, while uniform eigenvalue bounds prevent the reduced system from becoming nearly singular or excessively scaled. These bounds also provide the estimates needed to relate the step norm and predicted reduction to the projected gradient, and are standard conditioning requirements for subspace methods [11, 20], even when the reduced Jacobian is rank deficient.
Assumption 4 (Uniform boundedness of reduced conditioning). There exists such that for all , where is defined in (6).
Before establishing descent and convergence properties, we first verify that the reduced Levenberg–Marquardt system is well posed. The following lemma shows that the regularization term makes the reduced matrix positive definite whenever , ensuring that the reduced step exists uniquely.
Lemma 1 (Positive definiteness of the reduced system). is symmetric positive definite.
Proof. Since , and (7), hence .
The next result shows that the positive definiteness of the reduced system translates into descent for the full objective. In particular, the deterministic adequacy condition prevents the projected gradient from vanishing when , while ensures that the reduced LM solution produces a strictly negative directional derivative.
Lemma 2 (Descent direction). Under Assumption 3, if , then the reduced LM step defined in (6) satisfies .
Proof. From (5) and (6),
By Lemma 1, , hence whenever .
After showing is a strict descent direction, we next verify that the line-search procedure is well defined. By Lipschitz continuity of the gradient, the first-order decrease along dominates the quadratic Taylor remainder for sufficiently small step lengths, ensuring that the Armijo condition is eventually satisfied.
Lemma 3 (Existence of an Armijo step). Assume Assumption 2. If and , then there exists such that for all ,
and Armijo backtracking terminates.
Proof. From Assumption 2, we have
Then,
Since , it suffices to choose
Backtracking over will eventually produce for some .
We now combine the preceding lemmas to establish global convergence. Specifically, we show that every infinite sequence generated by the algorithm has a subsequence along which the gradient norm converges to zero.
Theorem 1 (Global convergence to stationarity). Under Assumptions 1, 2, 3, and 4, either the algorithm terminates at a stationary point, or
Proof. Assume the algorithm does not terminate and suppose, for contradiction, that there exists such that for all k. Lemma 3 shows Armijo backtracking holds for all with
To prevent , we want to bound and .
Consider and ,
From Lemma 2 and (5),
By Assumption 4 and (2),
Then,
From assumption 4, we have .
Armijo backtracking then returns , which satisfy
Thus, as , contradicting Assumption 1. Therefore .
4.2 Local Convergence
Now, we introduce the additional assumptions required for the local convergence analysis. Unlike the global assumptions, which ensure sufficient descent and convergence toward stationarity, these conditions describe the local geometry of the objective and require the subspace and curvature approximations to become increasingly accurate as the iterates approach a solution. The key identity for local analysis is the exact Hessian decomposition
where is the Gauss–Newton curvature and collects residual-dependent second-derivative. The Levenberg–Marquardt algorithm is built on the Gauss–Newton approximation and computes steps from a damped system. In this study, we analyze the local convergence of the proposed algorithm under the assumption of zero (or very small) residual at the optimal solutions.
We first impose the standard local regularity conditions used in Newton-type convergence analyses [11, 24]. Positive definiteness of the Hessian at ensures that the solution is locally isolated and that the objective has stable quadratic curvature near the minimizer. Lipschitz continuity of the Hessian controls the remainder in the second-order Taylor expansion and is essential for deriving a local error recursion.
Assumption 5 (Strict local minimizer and Lipschitz Hessian). There exists a strict local minimizer such that and . Moreover, is Lipschitz in a neighborhood of : for all .
The next assumption accounts for the evolving reduced subspace, which arise in reduced and randomized subspace methods [6, 25]. Global convergence requires only that the subspace retain a fixed amount of gradient information, whereas fast local convergence requires the subspace approximation to improve as approaches . Accordingly, the component of the gradient omitted by the subspace must vanish, the reduced space must become increasingly invariant under the local curvature operator, and the LM regularization must disappear as the subspace approximation becomes more accurate.
Assumption 6 (Vanishing subspace/curvature errors and regularization). Let and define . Suppose , , , and there exists such that
Here, measures the relative portion of the gradient missed by the subspace, while measures the relative curvature (Hessian) information not captured by the subspace. As , the reduced subspace increasingly captures both the relevant gradient and curvature information near . Finally, the local curvature approximation used in the LM system must become sufficiently accurate near the solution. The following condition requires the Hessian approximation error to decrease at least linearly with the distance to , which ensures that the Hessian approximation error becomes negligible at the rate required for fast local convergence. Consequently, its contribution to the local iterate-error recursion is of quadratic order, allowing the method to recover the fast local behavior of a Newton-type iteration.
Assumption 7 (Vanishing Hessian approximation error near ). Assume there exist such that for all close enough to ,
To analyze the local convergence rate, we next quantify how accurately the reduced regularized step satisfies the full Newton equation. The following lemma provides a bound on the step norm and decomposes the exact Newton residual into four distinct error components: the gradient component omitted by the subspace, the lack of curvature invariance of the subspace, the LM regularization, and the Hessian-approximation error. This decomposition makes explicit the conditions under which the reduced LM step becomes an increasingly accurate inexact Newton step near .
Lemma 4 (Exact Newton residual bound). Let and suppose satisfies a reduced regularized system
where and for some . Then:
-
-
Defining the exact Newton residual ,
Proof. (1) Let , so . Then
Since has orthonormal columns and is orthogonal, .
(2) Let where .
Consider and , we have
(12)
By multiplying the reduced regularized system by , we also have
Then
Combining the estimates 12 and 13 yields the central local error recursion
□
Using the exact Newton residual bound in Lemma 4, we relate the local convergence rate to the combined subspace, curvature, regularization, and Hessian-approximation errors. Once full steps are accepted, a uniformly controlled residual yields local linear convergence, while vanishing residual components make the reduced LM step asymptotically equivalent to the exact Newton step and therefore produce superlinear convergence.
Theorem 2 (Local linear and superlinear convergence). Assume Assumptions 4–7. Let and assume eventually . Then:
-
If for all sufficiently large , then for some (linear convergence).
-
If , then (superlinear convergence).
Proof. Since and is Lipschitz near , there exist and a neighborhood such that for all [11, 24]. Since , we have
where . Using Hessian Lipschitz continuity, we also have
Define the Newton residual . Since is continuous in a neighborhood of , there exists such that for all sufficiently large . By Lemma 4 and Assumption 6,
At , and
Then,
We also have
Combine 14 and 15, we have
If eventually, choose and take sufficient large so that , yielding .
If , then , giving superlinear convergence.
Remark 2. The local convergence analysis above is carried out using the Gauss–Newton/LM curvature approximation . Therefore, the superlinear local behavior established in this section is only applicable to the zero-residual (or very small) regime, i.e.,
In contrast, if , then the additional term in is generally nonzero, so does not coincide with the true Hessian. In that case, the HSLM method is typically expected to be at best locally linear.
5 NUMERICAL EXPERIMENTS
We evaluate the HSLM algorithm by training feedforward neural networks for nonlinear function approximation. Feedforward neural networks are suitable test problems because their training can be formulated as a nonlinear least-squares problem whose size can be systematically increased by varying the network architecture and training dataset, while preserving the same approximation objective. Their use is motivated by their ability to represent complex nonlinear relationships and by classical universal approximation results [10, 15, 3]. Although the classical LM method is known for rapid convergence and strong robustness when training small- to medium-sized neural networks [1, 17, 28], its computational and memory costs increase significantly with the number of parameters and data points. In this section, we compare classical LM, Krylov-subspace LM, and HSLM across different network and dataset sizes and measure performance using training and validation errors, convergence behavior, and computational cost. Our experiments evaluate whether HSLM can maintain convergence behavior and solution quality comparable to classical LM while reducing computational cost as the problem size increases.
5.1 Experimental Setup
The neural network is trained to approximate the following Friedman function:
where . This modified nonlinear-regression benchmark, which was introduced by Friedman [12], combines trigonometric, linear, and polynomial components, making it well-suited for evaluating the nonlinear least-squares algorithms.
Training input samples are drawn uniformly from , and corresponding outputs are computed from Friedman's function. Three training-set sizes are considered (Table 1), while 1000 noise-free samples are reserved for validation. To assess robustness, additive zero-mean Gaussian noise with standard deviation equal to 5% of the standard deviation of the target signal, , is applied to the training output,
A fully connected multilayer perceptron (MLP) with two hidden layers is used to approximate the target function [28]. For an input vector , the hidden layers use hyperbolic tangent activation function, while the output layer is linear
where and denote the weight matrices and bias vectors of layer , respectively.
Three network architectures, with increasing numbers of training parameters ( and ) are described in Table 1, allowing the dimension of the nonlinear least-squares problem to systematically increase while using the same underlying regression task.
Table 1. Neural network configurations with increasing model complexity and training data size. Network architecture is reported as the number of neurons in the input layer, the two hidden layers, and the output layer, respectively.
| Network | Architecture | Trainable Parameters | Training data size |
|---|---|---|---|
By collecting all trainable weights and biases into a single parameter vector , training the neural network can be formulated as a nonlinear least-squares problem
where the residual vector is
with , denoting the network prediction for the training input and the corresponding noisy target output. The Jacobian matrix
is computed efficiently using a modified backpropagation procedure, which is described in detail in [13].
In our implementation, the maximum subspace dimension in both Krylov subspace LM and HSLM is limited to 10% of the parameter dimension. HSLM constructs the reduced basis using the hybrid strategy described in Section 3, whereas Krylov-subspace LM uses Lanczos-based projection of the scaled LM system, consistent with the Krylov subspace framework described in [19]. Additional implementation details are provided in Appendix A.
5.2 Results
We compare the three algorithms in terms of convergence behavior and computational efficiency as the size of the nonlinear least-squares problem increases. For each network architecture, 50 trials are performed using randomly generated initial weights and bias . Figure 1 shows five representative runs for the largest network using identical initializations across the three algorithms, while Table 2 summarizes the average number of iterations and computational time per iteration over all 50 trials. We use the mean squared error (MSE) to quantify both the training error and the validation error.
Classical LM

Krylov Subspace LM
HSLM
Figure 1. Training results for five representative runs of network 3 for nonlinear function approximation. A1-A2. Levenberg–Marquardt algorithm. B1-B2. Krylov subspace Levenberg–Marquardt algorithm. C1-C2. Hybrid subspace Levenberg–Marquardt algorithm. The gray dashed line indicates the variance of the added noise, . These results indicate that HSLM achieves convergence behavior comparable to the classical LM and Krylov-subspace LM algorithms.
Table 2. Comparison in Computational Performance of Neural Network Training Algorithms
| Classical LM | Krylov Subspace LM | HSLM | ||||
|---|---|---|---|---|---|---|
| Iteration | Time / Iteration (s) | Iteration | Time / Iteration (s) | Iteration | Time / Iteration (s) | |
| Network 1 | 41.7 | 0.492 | 41.1 | 0.262 | 52.7 | 0.131 |
| Network 2 | 41.6 | 2.367 | 39.4 | 1.738 | 36.9 | 0.615 |
| Network 3 | 34.9 | 15.830 | 36.5 | 13.082 | 35.4 | 3.665 |
All three algorithms achieve similar final training errors, with the training error approaching the variance of the added noise, , indicating that the networks capture the underlying Friedman function to approximately the noise level (see Appendix B for network 1 & 2). Despite this comparable convergence behavior, their computational costs differ substantially. HSLM reduces the average execution time per iteration relative to classical LM by factors of approximately 3.7, 3.8, and 4.3 for Networks 1, 2, and 3, respectively. Relative to Krylov-subspace LM, the corresponding speedups are approximately 2.0, 2.8, and 3.6. The increasing advantage with network size suggests that the reduced adaptive formulation becomes increasingly beneficial as the cost of the full LM system grows.
HSLM achieves this computational efficiency using relatively small adaptive subspaces. The deterministic adequacy monitor adjusts the subspace dimension according to the information required at each iteration. As shown in Appendix C, HSLM generally operates with a substantially smaller subspace than Krylov-subspace LM and still satisfies the prescribed projected-gradient adequacy criterion. The convergence behavior also depends on the composition of the subspace. Appendix D shows that randomized curvature probes alone, or randomized probes combined only with the gradient, converge more slowly than the full hybrid construction. This comparison supports the use of complementary gradient, memory, Krylov/Lanczos, and randomized curvature information in HSLM.
6 DISCUSSION
We have developed an adaptive hybrid subspace Levenberg–Marquardt method for large-scale nonlinear least-squares problems. The framework provides convergence guarantees for a general hybrid subspace construction, so the choice of basis directions can be tailored to the structure of the problem. The adequacy monitor provides a systematic mechanism for integrating complementary basis directions while adaptively controlling the subspace dimension. The numerical experiments illustrate both aspects of this construction: Appendix C shows how the subspace dimension adapts during optimization, while Appendix D demonstrates the benefit of combining multiple sources of descent and curvature information. Because the convergence framework does not prescribe a specific candidate pool, the subspace construction can incorporate problem-dependent directions, providing flexibility for other classes of large-scale nonlinear least-squares problems [22, 26, 19, 4].
In addition, separating step acceptance from damping adjustment allows HSLM to retain adaptive regularization while decoupling the two mechanisms [2, 24]. Armijo backtracking determines whether and how far to move along the computed direction, whereas the gain ratio is used only to adjust the damping parameter based on the quality of the local quadratic approximation [7, 20, 23]. This separation avoids the cost of repeated damped-system solves during step acceptance without eliminating the stabilizing role of LM regularization. Moreover, the predicted reduction remains positive for accepted Armijo step lengths and can be evaluated directly in the reduced coordinates (Appendix F), ensuring that the gain ratio is well defined.
The adequacy monitor ensures that the reduced space captures a prescribed fraction of the gradient, but it does not directly measure whether the subspace captures all curvature directions relevant to an effective LM step. Performance therefore still depends on the quality and diversity of the candidate directions used to construct and enrich the subspace. The hybrid construction used here addresses this issue by combining gradient, memory, Krylov/Lanczos, and randomized curvature information, but other problems may benefit from different or problem-specific candidate directions.
The scaling experiments in Appendix E help clarify a separate limitation related to computational cost. At a fixed training-set size, HSLM becomes increasingly advantageous as the parameter dimension grows, indicating that the reduced-space construction is particularly effective in reducing parameter-dependent linear-algebra costs. However, these experiments do not examine the effect of increasing the number of training samples. As the training-set size grows, the cost of Jacobian evaluations and matrix-vector products is expected to become increasingly important and is not reduced directly by restricting the optimization step to a low-dimensional parameter subspace. In addition, the present numerical study is limited to neural-network regression problems. Future work should therefore examine mini-batch and matrix-free HSLM variants for larger training sets, as well as applications to large-scale inverse problems with different Jacobian and curvature structures.
Overall, the results demonstrate that adaptive hybrid subspace construction can preserve convergence behavior comparable to full-space LM while substantially reducing the cost of linear-algebra computations as the parameter dimension increases. Together with the convergence analysis, these results suggest that HSLM provides a promising approach for retaining the favorable properties of LM-type methods while improving computational efficiency for large-scale problems.
APPENDIX
A IMPLEMENTATION DETAILS FOR THE SUBSPACE LEVENBERG–MARQUARDT METHODS
We implemented two subspace variants of the Levenberg–Marquardt method: a Krylov-subspace LM method and HSLM method. For the updating damping strategy, we use delayed gratification for all algorithms by choosing and . This appendix summarizes the main subspace construction rules, numerical tolerances, and expansion criteria for each method.
A.1 Krylov-Subspace Levenberg–Marquardt Method
The Krylov basis is generated by the Lanczos process, initialized with the normalized gradient , which spans the Krylov subspace
To reduce computational and memory costs, we avoid explicitly forming the Gauss–Newton matrix, , and instead compute the required matrix–vector products directly. The Lanczos iteration is terminated when either the Krylov subspace reaches the prescribed maximum dimension or the Lanczos residual satisfies .
Let denote the resulting orthonormal Krylov basis and the projected tridiagonal matrix. Since the first Lanczos vector is the normalized gradient,
where is the first canonical basis vector. Consequently, the reduced Levenberg–Marquardt system is
and the full-space step is recovered as . If a trial step is rejected, the previously computed Krylov basis is retained and only the reduced system is solved with the updated damping parameter. This avoids recomputing the Jacobian and repeating the Lanczos process, thereby reducing the computational cost of rejected iterations.
A.2 Adaptive Hybrid Reduced-Subspace Levenberg–Marquardt Method
At iteration , the hybrid method constructs a reduced orthonormal basis by combining Lanczos–Krylov directions with stochastic curvature probes. The Lanczos process is initialized with the normalized gradient , and uses implicit Gauss–Newton matrix–vector products, . The initial candidate subspace consists of random curvature probes and recent accepted step . Each random probe is generated as
normalized, and appended to the candidate matrix. The combined candidate matrix is then orthogonalized using a thin QR factorization, with linearly dependent directions removed. The quality of the reduced basis is measured by the fraction of the squared gradient norm captured by the subspace. If this quantity satisfies , the current basis is accepted. Otherwise, the subspace is expanded by adding Lanczos directions and random curvature probes.
Subspace expansion continues until either the target is achieved or the maximum dimension reaches . Since linearly dependent vectors are discarded during QR orthogonalization, the final numerical dimension of may be smaller than the total number of generated candidate directions.
The hybrid method also employs backtracking, starting with and updating , with at most ten trial step lengths evaluated, which is an implementation safeguard outside the theorem. The algorithm is terminated when the reduction in the objective function satisfies , or when the maximum number of 10000 iterations is reached.
A.3 Summary of Numerical Settings
Table 3. Numerical settings used for the Krylov and adaptive hybrid reduced-subspace LM methods.
| Setting | Krylov LM | Hybrid reduced-subspace LM |
|---|---|---|
| Initial Krylov directions | Up to maximum | — |
| Initial random probes | — | |
| Krylov directions per expansion | — | |
| Random probes per expansion | — | |
| Adequacy threshold | — | |
| Lanczos tolerance | ||
| QR dependence tolerance | — | |
| Reduced singular-value floor | — | |
| Initial damping | ||
| Damping decrease | ||
| Damping increase | ||
| Step stopping tolerance | ||
| Maximum iterations |
B TRAINING AND VALIDATION RESULTS FOR NETWORK 1 & 2
Five representative training results obtained from Network 1 & 2 using the same initial guess demonstrate comparable convergence behavior for the three algorithms. A1-A2. Levenberg–Marquardt algorithm. B1-B2. Krylov subspace Levenberg–Marquardt algorithm. C1-C2. Hybrid subspace Levenberg–Marquardt algorithm. The gray dashed line indicates the variance of the added noise, .
B.1 Network 1
Classical LM
A1

Krylov Subspace LM
B1
A2
HSLM
C1
B2
C2
B.2 Network 2
Classical LM
A1

Krylov Subspace LM
B1
A2
HSLM
C1
B2
C2
Iteration
C ADAPTIVE SUBSPACE DIMENSION SELECTION USING DETERMINISTIC ADEQUACY MONITOR

The figure compares the subspace dimensions selected by Krylov Subspace LM and HSLM across iterations for three neural networks of increasing complexity. In the upper row, each panel shows a representative optimization run using the same initial guess for the corresponding network. In the lower row, each panel displays the corresponding projected-gradient energy, , generated by HSLM from the same initial guess, illustrating how failure of the adequacy criterion triggers subspace enrichment during optimization. In contrast to Krylov-subspace LM, which uses a fixed subspace equal to 10% of the parameter dimension, HSLM dynamically adjusts the subspace dimension and generally satisfies the adequacy criterion using a substantially smaller subspace.
D INFLUENCE OF CANDIDATE BASIS SOURCES IN SUBSPACE CONSTRUCTION ON AL-GORITHM PERFORMANCE
To examine how different sources of basis candidates in subspace construction influence the performance of the proposed method, we use the experimental setup described above for Network 3 to compare three difference subspace construction strategies: randomized Hessian probes only, randomized Hessian probes and gradient direction, and HSLM.
Randomized
A1

Randomized & Gradient
B1
A2
HSLM
C1
B2
C2
Five representative training results obtained from Network 3 using the same initial guess demonstrate comparable convergence behavior for the three algorithms. A1-A2. Randomized Hessian/Gauss–Newton matrix–vector only B1-B2. Randomized Hessian/Gauss–Newton matrix–vector and gradient direction. C1-C2. HSLM algorithm. The gray dashed line indicates the variance of the added noise, . The figure compares training and validation errors for Network 3 using five representative initial guesses. The purely randomized Hessian method, whose subspace is constructed only from randomized Hessian probes, initially reduces error but struggles to reach the added noise level, indicating that the sampled curvature directions alone may omit important descent information. Adding the gradient direction produces more reliable convergence behavior toward a local optimal solution, but the reduction in both training and validation error remains slow. Meanwhile, HSLM achieves the strongest overall performance, reaching the lowest training and validation errors more rapidly and consistently across the five representative runs. These results demonstrate that augmenting randomized curvature information with additional structured directions improves the convergence behavior, with the full HSLM construction providing the strongest performance among the three variants considered.
E COMPUTATIONAL EFFICIENCY OF HSLM IN INCREASING PARAMETER DIMENSION AT FIXED TRAINING-SET SIZE
We evaluate the efficiency of the proposed HSLM algorithm by comparing it with the hybrid Krylov-subspace and classical Levenberg–Marquardt algorithms on overparameterized feedforward neural networks. The experimental setup is identical to that described previously, using the same 40,000 training samples. To simulate measurement uncertainty, additive Gaussian noise with a standard deviation equal to 5% of the standard deviation of the target signal is added to the training data. The average number of iterations and the average execution time per iteration over 50 independent trials are summarized in Table 4.
Table 4. Comparison between algorithms for neural-network training
| Classical LM | Krylov Subspace LM | HSLM | ||||
|---|---|---|---|---|---|---|
| Iteration | Time / Iteration (s) | Iteration | Time / Iteration (s) | Iteration | Time / Iteration (s) | |
| Network 1 | 43.9 | 1.044 | 45.3 | 0.941 | 49.8 | 0.464 |
| Network 2 | 38.2 | 3.235 | 37.1 | 3.790 | 37.1 | 1.221 |
| Network 3 | 34.9 | 15.830 | 36.5 | 13.082 | 35.4 | 3.665 |
For all three network architectures, the final training error is approximately equal to the variance of the additive noise, indicating that each algorithm successfully captures the underlying Friedman function and that the remaining error is primarily due to irreducible noise. While all three methods exhibit comparable convergence behavior, the proposed HSLM algorithm scales more effectively as the network size increases. Compared with the classical LM algorithm, HSLM reduces the execution time by factors of approximately 2.3, 2.6, and 4.3 for Networks 1, 2, and 3, respectively. Relative to the Krylov-subspace LM algorithm, HSLM achieves additional speedups of approximately 2.0, 3.1, and 3.6 for Networks 1, 2, and 3, respectively, demonstrating its enhanced computational performance for large overparameterized networks.
F CLOSED-FORM PREDICTED REDUCTION
Lemma 5. Let be defined by (9) and by (6). Then for any ,
Proof. Using orthogonality of and , the local quadratic approximation (9) restricted to this subspace becomes
Since , define . Then
using orthogonality of . Hence
Using the reduced LM system (6), , then
which rearranges to (16). Then,
since (Lemma 1) and .
REFERENCES
[1] N. Ampazis and S. J. Perantonis. Two highly efficient second-order algorithms for training feedforward networks. IEEE Trans. Neural Netw., 13(5):1064–1074, 2002.
[2] L. Armijo. Minimization of functions having lipschitz continuous first partial derivatives. Pacific Journal of Mathematics, 16(1):1–3, 1966.
[3] A. R. Barron. Universal approximation bounds for superpositions of a sigmoidal function. IEEE Transactions on Information Theory, 39(3):930–945, 1993.
[4] E. K. Bjarkason, O. J. Maclaren, J. P. O'Sullivan, and M. J. O'Sullivan. Randomized truncated svd levenberg–marquardt approach to geothermal natural state and history matching. Water Resources Research, 54(3):2376–2404, 2018.
[5] M. Brand. Incremental singular value decomposition of uncertain data with missing values. In European Conference on Computer Vision (ECCV), volume 2350 of Lecture Notes in Computer Science, pages 707–720, 2002.
[6] C. Cartis, J. M. Fowkes, and Z. Shao. A randomised subspace gauss-newton method for nonlinear least-squares. CoRR, abs/2211.05727, 2022.
[7] A. R. Conn, N. I. M. Gould, and P. L. Toint. Trust Region Methods. MOS-SIAM Ser. Optim. SIAM, Philadelphia, 2000.
[8] P. G. Constantine. Active Subspaces: Emerging Ideas for Dimension Reduction in Parameter Studies. SIAM Spotlights. SIAM, Philadelphia, 2015.
[9] P. G. Constantine, C. Kent, and T. Bui-Thanh. Accelerating markov chain monte carlo with active subspaces. SIAM Journal on Scientific Computing, 38(5):A2779–A2805, 2016.
[10] G. Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals and Systems, 2(4):303–314, 1989.
[11] J. E. Dennis, Jr. and R. B. Schnabel. Numerical Methods for Unconstrained Optimization and Nonlinear Equations, volume 16 of Classics in Applied Mathematics. SIAM, Philadelphia, 1996.
[12] J. H. Friedman, E. Grosse, and W. Stuetzle. Multidimensional additive spline approximation. SIAM J. Sci. Statist. Comput., 4(2):291–301, 1983.
[13] M. T. Hagan and M. B. Menhaj. Training feedforward networks with the marquardt algorithm. IEEE Trans. Neural Netw., 5(6):989–993, 1994.
[14] N. Halko, P.-G. Martinsson, and J. A. Tropp. Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions. SIAM Review, 53(2):217–288, 2011.
[15] K. Hornik, M. Stinchcombe, and H. White. Multilayer feedforward networks are universal approximators. Neural Networks, 2(5):359–366, 1989.
[16] X. Huang, X. Liang, Z. Liu, L. Li, Y. Yu, and Y. Li. SPAN: A stochastic projected approximate newton method. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1520–1527, 2020.
[17] C.-T. Kim and J.-J. Lee. Training two-layered feedforward networks with variable projection method. IEEE Transactions on Neural Networks, 19(2):371–375, 2008.
[18] K. Levenberg. A method for the solution of certain non-linear problems in least squares. Quarterly of Applied Mathematics, 2(2):164–168, 1944.
[19] Y. Lin, D. O'Malley, and V. V. Vesselinov. A computationally efficient parallel Levenberg–Marquardt algorithm for highly parameterized inverse model analyses. Water Resour. Res., 52(9):6948–6977, 2016.
[20] K. Madsen, H. B. Nielsen, and O. Tingleff. Methods for Non-Linear Least Squares Problems. Informatics and Mathematical Modelling, Technical University of Denmark, Lyngby, Denmark, 2nd edition, 2004.
[21] D. W. Marquardt. An algorithm for least-squares estimation of nonlinear parameters. J. Soc. Indust. Appl. Math., 11(2):431–441, 1963.
[22] J. Martens. Deep learning via hessian-free optimization. In Proceedings of the 27th International Conference on Machine Learning, ICML'10, pages 735–742. Omnipress, 2010.
[23] J. J. Moré and D. C. Sorensen. Computing a trust region step. SIAM Journal on Scientific and Statistical Computing, 4(3):553–572, 1983.
[24] J. Nocedal and S. J. Wright. Numerical Optimization. Springer Ser. Oper. Res. Financ. Eng. Springer, New York, 2nd edition, 2006.
[25] Z. Shao. On Random Embeddings and Their Application to Optimisation. PhD thesis, University of Oxford, Oxford, UK, 2021.
[26] O. Vinyals and D. Povey. Krylov subspace descent for deep learning. In Proceedings of the Fifteenth International Conference on Artificial Intelligence and Statistics, volume 22 of Proceedings of Machine Learning Research, pages 1261–1268. PMLR, 2012.
[27] C. R. Vogel and J. G. Wade. A modified levenberg–marquardt algorithm for large-scale inverse problems. In K. Bowers and J. Lund, editors, Computation and Control III, volume 15 of Progress in Systems and Control Theory, pages 367–378. Birkhäuser, Boston, MA, 1993.
[28] B. M. Wilamowski and H. Yu. Improved computation for levenberg–marquardt training. IEEE Transactions on Neural Networks, 21(6):930–937, 2010.
[29] Y.-x. Yuan. Subspace methods for large scale nonlinear equations and nonlinear least squares. Optimization and Engineering, 10(2):207–218, 2009.