Krylov Block-Cubic Optimizer
Implementation & benchmark of arXiv:2608.22129 — Blockwise Stabilized Adaptive Cubic Regularization with Subsolvers via Recurrence
Source paper: Blockwise Stabilized Adaptive Cubic Regularization with Subsolvers via Recurrence arXiv:2608.22129 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace Adam or damped Newton updates with independent cubic-regularized Newton steps for parameter blocks, using Hessian-vector products and a small Lanczos subspace instead of explicitly forming Hessians. Adapt the cubic coefficient per block and accept only steps that produce monotone decrease in the measured training loss.
Formulas
Mathematical statement
Under the paper's Lipschitz-Hessian assumption, there is an L_H >= 0 such that ||nabla^2 f(x)-nabla^2 f(y)|| <= L_H ||x-y||. Consequently, the cubic model upper-bounds the objective locally: f(theta+s) <= f(theta)+g^T s+(1/2)s^T Hs+(L_H/6)||s||^3, where theta is the current parameter vector, g=nabla f(theta), H=nabla^2 f(theta), and s is an update. For parameter block b, use g_b, Hessian operator H_b, and an adaptive coefficient sigma_b>0 to define m_b(s)=g_b^T s+(1/2)s^T H_b s+(sigma_b/6)||s||^3. Approximate the minimizer in the Lanczos Krylov space K_k(H_b,g_b)=span{g_b,H_bg_b,...,H_b^{k-1}g_b}. If Q_k has orthonormal Lanczos columns and T_k=Q_k^T H_b Q_k is the resulting tridiagonal matrix, solve the k-dimensional problem in z and return s_b=Q_k z. The cubic term regularizes both positive and negative curvature. A monotone actual-loss guard rejects steps for which f(theta+s_b)>f(theta). The model-to-objective ratio rho_b=[f(theta)-f(theta+s_b)]/[-m_b(s_b)] can control sigma_b, increasing it after poor agreement and decreasing it after reliable descent.
Implementation notes
Integrate this at the optimizer-update point, operating on one parameter tensor or a small group of tensors at a time. For each block b, compute its gradient g_b and provide an automatic-differentiation Hessian-vector-product routine v -> H_b v; never materialize H_b. Build a k-step Lanczos basis with q_1=g_b/(||g_b||+epsilon). At iteration j, compute w=H_b q_j, set alpha_j=q_j^T w, subtract alpha_j q_j and the previous beta_j q_{j-1}, reorthogonalize if necessary, and set beta_{j+1}=||w||. Stop after k iterations or when beta_{j+1} is negligible. Store Q_k and the tridiagonal T_k. Solve the small cubic problem using the stationarity parameter lambda: for a trial lambda >= 0, solve (T_k+lambda I)z=-Q_k^T g_b and seek lambda=(sigma_b/2)||z|| by safeguarded bisection or Newton iteration. Form s_b=Q_k z and reshape it to the block tensor. Evaluate the actual loss after the proposed update. Accept only if the loss decreases; compute rho_b=[f(theta)-f(theta+s_b)]/[-m_b(s_b)], multiply sigma_b by 2 after rejection or rho_b<0.1, and halve sigma_b after rho_b>0.75, with fixed minimum and maximum bounds. For stochastic training, use a fixed validation mini-batch for the guard or periodically use full-batch checks to avoid noise-driven rejection. The paper supplies the cubic model and Krylov construction; k, block size, sigma bounds, and guard frequency are empirical choices. First test a small full-batch 2-4 layer MLP on synthetic or MNIST regression against AdamW and L-BFGS at matched wall-clock and HVP budgets. Measure loss versus time, number of HVPs, accepted-step ratio, and final error. A successful result is faster descent to a fixed loss, monotone guarded training, or better final accuracy when the Hessian contains substantial negative or anisotropic curvature.
Verification
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 CPU MVP of the Krylov block-cubic optimizer using Hessian-vector products, reorthogonalized Lanczos bases, reduced cubic subproblem solves, adaptive sigma, and an actual-loss monotonicity guard. The exact quadratic sanity check succeeded with stationarity residual 1.796e-10 and Lanczos orthogonality error 1.906e-15. On the fixed synthetic MLP regression task, cubic optimization reached loss 0.024539 versus Adam's 0.009479 in similar wall time, with only 18/35 steps accepted, so the promised optimization win was not observed.
- Agent confidence
- 9/10
- Baseline
- Adam, 80 steps: final/best MSE 0.009479, wall time 2.762 s, no HVPs
- Idea
- Krylov cubic, 35 steps: final/best MSE 0.024539, wall time 2.938 s, 18/35 accepted, 70 HVPs
Limitations: Only one small synthetic full-batch regression task, one fixed seed, one full parameter block, and k=6 Lanczos were tested. No MNIST, stochastic training, block partitioning, wall-clock/FLOP-normalized sweeps, or comparison with L-BFGS/Newton-CG was performed.
How to run: python3 experiment.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Artifacts
- experiment.py 6.5 KB View Raw
- report.md 1.2 KB View