NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

It Cancels: O(r²) Cholesky Updates for Whitened Operators

Anupama Sridhar, Jack Shi, Ravi Raj Deshpande, Jack Li, Michael P Snyder, Alexander Rosenberg JohansenNeurIPS 2026

TL;DR

Many sequential machine learning methods keep track of a "whitened" matrix sandwich ($L^{-1} M L^{-\top}$), and until now, nudging the underlying data by even a single data point forced a costly $O(r^3)$ recomputation from scratch. The authors discover a neat algebraic cancellation that lets us update this entire sandwich directly in $O(r^2)$ time with exact precision. Better yet, this massive speedup lets you train models with much larger, more accurate curvature approximations on the exact same time budget.

What Problem Does This Paper Address?

Imagine you are tracking a moving target—streaming data into a Gaussian Process (GP), optimizing protein designs on the fly, or preconditioning neural network gradients. Behind the scenes, these methods often maintain an $r \times r$ matrix $G$ (representing a kernel, precision, or curvature metric) factored via Cholesky decomposition ($G = LL^\top$), alongside an operator $M$ normalized on both sides by $L$: the "whitened" sandwich $A_w = L^{-1} M L^{-\top}$.

In sequential settings, new data arrives one piece at a time, nudging $G$ and $M$ via simple rank-1 updates ($G^+ = G + zz^\top$). Since the 1970s, we have known how to update $L$ cheaply in $O(r^2)$ time using Givens rotations, and how to drag along one-sided terms like $L^{-1}B$. Because classical signal processing only ever needed to track vectors or states, nobody formulated an update for the double-sided sandwich $L^{-1} M L^{-\top}$. Consequently, modern ML practitioners have been stuck recomputing the entire sandwich from scratch at $O(r^3)$ cost every single step—a bottleneck that eats up to 91% of step time in natural gradient methods.

Methods

Instead of tearing down the matrix sandwich and rebuilding it, the authors show how to transport it directly.

First, they perform the standard $O(r^2)$ Cholesky update on $L$ using a sequence of $r$ orthogonal Givens rotations. Here is the novel twist: they take the existing whitened matrix $A_w$, pad it with a single row and column of zeros, and apply those exact same Givens rotations to both the left and right sides of the padded matrix. Finally, they extract the top-left $r \times r$ block and add a cheap rank-1 correction to account for the update to $M$—getting half of that correction vector for free as a byproduct of the rotation sweep.

Figure 1: Update pipeline. A rank-1 arrival updates L via r Givens rotations (ck, sk), applied double-sidedly to the zero-padded operator; a rank-1 correction completes the update.

The authors also embed this fast $O(r^2)$ primitive into a low-rank natural gradient preconditioner for neural networks, maintaining a low-rank curvature "chart." Most steps cruise along the fast $O(r^2)$ update path, triggering a heavier eigendecomposition refresh only when unexplained gradient curvature spikes past a threshold $\tau$. To handle floating-point drift over long runs, they periodically refactorize from scratch every $N$ steps (keeping amortized cost at $O(r^2)$ when $N \propto r$) and introduce runtime stability guards. They ship implementations across C++, CUDA/Triton, AMD Triton, and Apple MLX/Metal.

Figure 2: Chart update logic. Most steps take the steady-state O(r2) path; refresh is triggered when unexplained curvature energy exceeds τ.

Datasets

The authors evaluate their algorithms on established benchmarks across several domains (introducing no new datasets):

  • UCI Elevators & UCI Protein: Standard tabular regression benchmarks used for streaming sparse GP regression and neural network natural-gradient preconditioning.
  • GB1 Protein Fitness Landscape: A combinatorially complete dataset of ~149,000 protein variants across 4 mutation sites, used for online Bayesian optimization.
  • The Well: An astrophysics simulation benchmark (specifically, transitions from an accretion-disk trajectory) used to test massive-rank asymmetric updates on GPUs.

Key Insights and Ideas

  • "It Cancels": Why didn't anyone do this in the last 50 years? It looks like updating $L^{-1} M L^{-\top}$ requires explicitly inverting factors. The "aha" moment is that the augmented Givens rotations act algebraically like $T^{-1}(\cdot)T^{-\top}$ where $T = L^{-1}L^+$. When wrapped around $L^{-1} M L^{-\top}$, the old $L$ factors cancel out identically from both sides, leaving the exact updated sandwich $(L^+)^{-1} M (L^+)^{-\top}$.
  • Speed Buys Accuracy: Because the update is algebraically exact, it yields the exact same accuracy as $O(r^3)$ refactorization at a fixed rank $r$. The real win is budget reallocation: dropping from $O(r^3)$ to $O(r^2)$ lets you afford a much larger rank $r$ in the same wall-clock time, directly lowering test error.
  • Free Diagnostics for Safety: Multiplication of the Givens cosines gives an exact leverage diagnostic for free during the sweep, allowing the algorithm to detect near-singular updates or risky downdates on the fly and temporarily promote FP32 states to FP64 before numerical explosions happen.

Key Results

Across all tasks, the incremental update matches full $O(r^3)$ refactorization to machine precision (~$10^{-15}$ relative error in float64) and yields identical downstream task accuracy:

  • Natural Gradient Scaling: Preconditioning a 4-layer MLP on UCI Protein at chart rank $r=1024$, baseline refactorization spends 91% of its step time on the core update (1074.5s total). The authors' method spends 33%, finishing in 198.4s—a 5.42× speedup (even with their CPU code running single-threaded against a 10-thread BLAS baseline; single-threaded speedup is 9.18×). Noticeably, their $r=1024$ run finishes faster than the baseline's $r=512$ run (243.8s) while dropping test MSE from 0.148 to 0.145.
  • Massive GPU Scaling: On an NVIDIA B200 GPU running accretion-disk transitions from The Well at $r = 65,536$, median update time plummets from 10,273.6 ms to 90.6 ms (113.4× speedup), and reaches 239.7× on symmetric synthetic updates.
  • End-to-End Pipelines: In streaming GPs and GB1 protein Bayesian optimization—where kernel evaluations dilute the linear algebra bottleneck—end-to-end wall-clock speedups still reach 1.08×–1.95× against 10-thread baselines (and 2.19×–3.09× single-threaded).

(Correction: let's look at the convergence speedup on UCI Elevators below!)

Figure 6: Training loss vs. wall time for transported-subspace natural gradient on UCI Elevators (rank-32 chart, 2-layer MLP).

Limitations and Future Work

  • Pipeline Dilution & Dense Drift: When matrix updates are a tiny fraction of total step time, end-to-end speedups shrink. Furthermore, if the underlying matrix changes densely every step (like in large-minibatch or deep GPs) rather than via low-rank nudges, or if $A_w$ isn't explicitly needed, inverse-free matrix-multiplication methods are a better fit.
  • Hardware & Threading: The CPU C++ extension is currently single-threaded, and at very small ranks on GPUs, kernel launch overhead and limited parallelism dampen speedups.
  • Downdate Sensitivity: Removing data (hyperbolic downdates) can amplify numerical errors in ill-conditioned regimes, requiring the authors' leverage guards and occasional FP64 fallbacks. Extending GPU kernels to compact rank-$k$ updates ($k > 1$) is a natural next step beyond their current CPU rank-$k$ benchmarks.

Summary updated

BibTeX
@inproceedings{sridhar2026it,
  author = {Anupama Sridhar and Jack Shi and Ravi Raj Deshpande and Jack Li and Michael P Snyder and Alexander Rosenberg Johansen},
  title = {{It Cancels: O(r²) Cholesky Updates for Whitened Operators}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DiPStsh1m2},
}
Figure