Unverified 2026

Sequential Sketched Gauss-Newton

Implementation & benchmark of arXiv:2607.25272 — Sequential Preconditioned Conjugate Gradient Method for Linear Statistical Models

Usefulness6/10
Difficulty5/10
Novelty6/10

Source paper: Sequential Preconditioned Conjugate Gradient Method for Linear Statistical Models arXiv:2607.25272 ⓘ · analyzed Aug 31, 2026

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

Idea description

Replace a costly full-data conjugate-gradient solve for a neural-network linearized least-squares step with a sequence of progressively larger sketched solves. Each solve starts from the previous solution, so early iterations cheaply identify the useful update direction and only the final few iterations use the full training batch.

Formulas

$$\hat{\beta}=\arg\min_{u\in\mathbb{R}^{d}}\frac{1}{2}\|Y-Xu\|_{2}^{2}=(X^{\top}X)^{-1}X^{\top}Y.$$
$$\delta_k=\arg\min_{\delta}\frac12\|S_k(r-J\delta)\|_2^2,\qquad A_k=J^\top S_k^\top S_kJ,\qquad b_k=J^\top S_k^\top S_kr.$$
$$q=b-A_k\delta,\quad z=M_k^{-1}q,\quad \alpha=\frac{q^\top z}{p^\top A_kp},\quad \delta\leftarrow\delta+\alpha p,\quad q\leftarrow q-\alpha A_kp.$$
$$p\leftarrow z_{\mathrm{new}}+\frac{q_{\mathrm{new}}^\top z_{\mathrm{new}}}{q^\top z}\,p,\qquad m_1<m_2<\cdots<m_K,\qquad \delta_k\leftarrow\delta_{k-1}\ \text{for the next level}.$$

Mathematical statement

The paper formulates OLS as \(\hat\beta=\arg\min_u \frac12\|Y-Xu\|_2^2=(X^\top X)^{-1}X^\top Y\), where \(X\in\mathbb R^{N\times d}\) is a full-column-rank design matrix, \(Y\in\mathbb R^N\) is the target vector, and \(\beta\) is the unknown parameter. Adapt this to a neural-network linearization: for parameters \(\theta\), let \(J\in\mathbb R^{N\times p}\) be the Jacobian of model outputs with respect to an adapter or parameter block, let \(r\in\mathbb R^N\) be the current residual, and solve \(\min_\delta \frac12\|r-J\delta\|_2^2\). For sketch matrices \(S_k\in\mathbb R^{m_k\times N}\), solve the sequence \(\delta_k=\arg\min_\delta \frac12\|S_k(r-J\delta)\|_2^2\), with \(m_1<m_2<\cdots<m_K\), warm-starting the PCG solve for level \(k\) at \(\delta_{k-1}\). The sketched normal system is \(A_k\delta=b_k\), with \(A_k=J^\top S_k^\top S_kJ\) and \(b_k=J^\top S_k^\top S_kr\). Preconditioned conjugate gradient uses residual \(q_k=b_k-A_k\delta\), preconditioned residual \(z_k=M_k^{-1}q_k\), search direction \(p\), and updates \(\delta\leftarrow\delta+\alpha p\), where \(\alpha=(q^\top z)/(p^\top A_kp)\), followed by \(q\leftarrow q-\alpha A_kp\), \(z\leftarrow M_k^{-1}q\), and \(p\leftarrow z+(q_{\mathrm{new}}^\top z_{\mathrm{new}})/(q^\top z)\,p\). The final refinement uses \(S_K=I_N\) or a large independent sketch. The useful property is that an approximate solution from a smaller row sample is much closer to the full solution than zero initialization, reducing expensive full-system iterations.

Implementation notes

Integrate this into a neural Gauss-Newton or Levenberg-Marquardt optimizer for a parameter-efficient adapter, last layer, or low-rank LoRA block. At the beginning of an optimizer step, freeze the base network, compute current predictions and residuals \(r\), and represent Jacobian-vector and transposed-Jacobian-vector products using autodiff rather than materializing \(J\). Choose row-sketch sizes such as \(m_k\in\{0.05N,0.15N,0.4N,N\}\), using either uniformly sampled examples without replacement or a CountSketch. At each level, define the operator \(A_kv=J^\top S_k^\top S_k(Jv)\); run 3-20 PCG iterations from the previous level's \(\delta\), with diagonal preconditioner \(M_k=\operatorname{diag}(A_k)+\lambda I\). Stop early when the sketched residual norm falls below a relative tolerance, then pass the resulting \(\delta_k\) to the next level. On the final level evaluate full-data residuals and run a small fixed number of refinement iterations, optionally using damping \(A_K+\lambda I\). The exact mathematical quantities are the sketched least-squares objective, warm-start recursion, and PCG update; empirically estimate diagonal preconditioners from Hutchinson probes or accumulated squared Jacobian-vector products. First test on a frozen ResNet-18 or small Transformer with a trainable linear head and compare against full-batch CG and Adam at equal wall-clock time. Measure loss decrease per Jacobian-vector product, total examples processed, final validation accuracy, and whether the sequential method reaches the same validation loss with fewer full-data passes. A useful success signal is at least 1.5x lower wall-clock cost or 2x fewer full-batch Jacobian products at matched accuracy.

Verification

This idea has not been verified yet.

Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.

Artifacts

Artifacts unavailable.