✗ Mechanism failed 2026

Adequacy-monitored hybrid subspace LM optimizer

Implementation & benchmark of arXiv:2608.25524 — Adaptive Hybrid Subspace Levenberg Marquardt Algorithm with Adequacy Monitor for Large Scale Least Squares Problems

Usefulness8/10
Difficulty6/10
Novelty7/10

Source paper: Adaptive Hybrid Subspace Levenberg Marquardt Algorithm with Adequacy Monitor for Large Scale Least Squares Problems arXiv:2608.25524 ⓘ · analyzed Aug 29, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Replace a full neural-network Gauss–Newton solve with a damped solve in an adaptively constructed low-dimensional parameter subspace. The subspace contains the current gradient, recent accepted updates, Krylov curvature directions, and randomized Jacobian-curvature probes, and is enlarged whenever its projected gradient fails to capture enough descent information.

Formulas

$$F(\theta)=\frac{1}{2}\|r(\theta)\|_2^2,\qquad g=J(\theta)^T r(\theta),\qquad H=J(\theta)^T J(\theta).$$
$$(U^T H U+\lambda I_k)z=-U^Tg,\qquad p=Uz.$$
$$\eta(U)=\frac{\|UU^Tg\|_2}{\|g\|_2},\qquad \text{enrich }U\text{ while }\eta(U)<\tau.$$$$
$$q_{j+1}=\operatorname{orth}(Hq_j),\qquad w_j=\operatorname{orth}(H\xi_j),\quad \xi_j\sim\mathcal N(0,I_d).$$

Mathematical statement

For a least-squares objective F(theta)=1/2||r(theta)||_2^2, theta is the parameter vector, r(theta) is the residual vector, J(theta)=dr/dtheta is its Jacobian, g=J^T r is the gradient, and H=J^T J is the Gauss–Newton curvature approximation. Let U in R^{d x k} have orthonormal columns spanning the current subspace, with parameter dimension d and subspace dimension k much smaller than d. The projected LM step solves (U^T H U + lambda I_k)z=-U^T g and returns p=Uz, where lambda>0 is the damping parameter and I_k is the k-dimensional identity. The adequacy monitor is eta=||UU^T g||_2/||g||_2; it measures the fraction of gradient norm represented in the subspace. If eta is below a threshold tau, enrich U with additional directions until eta>=tau or a maximum dimension k_max is reached. Hybrid directions can be formed from q_1=g/||g||, normalized recent accepted steps, Krylov vectors q_{j+1}=orth(Hq_j), and randomized curvature vectors v_j=orth(H z_j) for Gaussian z_j. The key transferable property is that the small projected system preserves descent information while avoiding an O(d^3) full solve.

Implementation notes

1. Integration point: implement this as a PyTorch optimizer for a feedforward network or a small transformer block on a squared-error objective. Operate on a minibatch and use autograd Jacobian-vector products (JVPs) and vector-Jacobian products (VJPs), never materializing the full Jacobian. Flatten parameters into theta only conceptually; store each subspace vector as a parameter-shaped PyTree. 2. Pseudocode: compute residual r and gradient g; initialize a candidate list with g/||g||, the last m accepted updates, and optionally random Gaussian parameter vectors. For each candidate v, compute Hv=J^T(Jv) using one JVP followed by one VJP, then orthogonalize all candidates with modified Gram–Schmidt to obtain U. Compute eta=||U(U^Tg)||/||g||. If eta<tau, append Krylov vectors Hq for q equal to the current gradient or the latest basis vector, plus s randomized Hv vectors, reorthogonalize, and recompute eta. Form B=U^THU by applying H to every column of U, solve (B+lambda I)z=-U^Tg by Cholesky or eigendecomposition, and set p=Uz. Apply a line search or fixed accepted step policy, then retain the accepted p in the memory queue. 3. Computed from the mathematics: projected curvature B, LM step z, and adequacy eta. Estimated empirically: H through minibatch JVP/VJP products, with optional damping or diagonal stabilization if B is numerically indefinite. 4. First experiment: train a 2-layer 256-unit MLP on UCI or synthetic nonlinear regression with batch size 512. Compare AdamW, full-batch Gauss–Newton/LM, and a fixed-dimension Krylov LM at equal numbers of forward/backward or JVP/VJP calls. Use k=8 initially, tau=0.8, m=2 memory vectors, two Krylov vectors, and two random probes, with k_max=32. Success means faster loss reduction per wall-clock second or per curvature product, no increase in failed steps, and comparable final MSE; log eta, subspace dimension, damping, and the fraction of iterations requiring enrichment.

Verification

Mechanism failed

Stage 1 · Toy mechanism gate: Failed ✗

Stage 2 · Mechanism transferred to benchmark: Not tested

Stage 2 · Practical benchmark result: Not run

Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works

Stage 1 — Mechanism check agent confidence 9/10

Built a PyTorch hybrid subspace LM optimizer using JVP/VJP Gauss–Newton products, gradient/history/Krylov/randomized directions, projected LM solves, line search, and adequacy logging. The math checks passed: HVP matched explicit JᵀJ to 6.4e-16 relative error, symmetry error was 4.4e-16, and explicitly including the gradient made eta=1, disabling enrichment. Although LM reached loss 0.019713 versus Adam’s 0.090839 in 35 iterations, it required 23.55 seconds and 347 HVPs versus Adam’s 1.90 seconds, with loss at two seconds 0.381205 versus Adam’s 0.090839; therefore the promised practical speedup was not observed.

Agent confidence
9/10
Baseline
Adam: final loss 0.090839, 35 steps, 1.90 s; loss at 2 s 0.090839
Idea
Hybrid subspace LM: final loss 0.019713, 35 steps, 23.55 s, 347 counted HVPs; loss at 2 s 0.381205; mean eta 1.0, mean subspace dimension 5.91, enrichment iterations 0, accepted fraction 1.0

Limitations: Only one small synthetic full-batch regression and one fixed seed were tested. No full neural-network LM baseline, minibatch noise study, FLOP-normalized implementation, multiple seeds, or larger-scale memory/runtime evaluation was performed; the adequacy mechanism was not meaningfully exercised because the prescribed gradient direction is always in the subspace.

How to run: python3 run_experiment.py

Verdict computed by deterministic test code from paired-seed statistics — not by the language model.

Artifacts

Implementation overview ⬇ Download all as ZIP 3 files · code, reports and structured results