Numerical Stability for Incremental and Recursive Updates

This direction is merged into another direction: floating-point error accumulation (incremental approximation drift). Its last version stays readable and citable here.

Version 1 of 136 papers44 conceptsfrozen 2026-10-04

In modern machine learning and signal processing, we often face a choice: recompute a solution from scratch as new data arrives, or "update" the existing solution. The former is computationally expensive—often $O(N^3)$ for matrix operations—while the latter promises efficiency, often reducing costs to $O(N^2)$ or even $O(N)$.

However, this efficiency comes with a hidden tax: numerical drift. When we update a model recursively, small floating-point errors do not remain small. They accumulate, snowballing over thousands of iterations until the "efficient" solution no longer resembles the truth.

The Anatomy of Numerical Drift

The core problem stems from the nature of finite-precision arithmetic. In a "static" solver, you perform a calculation once and accept a small rounding error. In a recursive system, that error becomes the input for the next step.

As Salman Asif and Justin Romberg demonstrate in Dynamic Updating for ell1 Minimization, even elegant methods like rank-1 modifications can suffer over time. This is particularly dangerous in systems with "decay" or "forgetting" factors. For instance, Benjamin Longxiang Wang and Sebastian Schelter point out that in recommendation systems, using the inverse of a decay rate (which is $>1$) to remove old data can cause errors to grow exponentially, eventually corrupting the entire model state.

The Fragility of Matrix Identities

Many incremental algorithms rely on the Sherman-Morrison-Woodbury (SMW) formula, a mathematical shortcut for updating the inverse of a matrix after a low-rank change. While mathematically perfect on paper, it is notoriously fragile in practice.

Linkai Ma and Petros Drineas highlight in A Note on the Stability of the Sherman-Morrison-Woodbury Formula that when we use approximate inverses—common in high-performance computing—the SMW formula can propagate these approximations into significant instabilities. Similarly, Clément Benesse and colleagues found that using Schur complements for iterative data valuation leads to ill-conditioned covariance matrices, where the mathematical "drift" eventually renders the valuation inaccurate.

Strategies for Long-Term Robustness

To combat this, researchers have developed three primary "stabilizers" for recursive algorithms:

1. Factorization over Inversion

Instead of updating a full matrix or its inverse directly, it is often more stable to update its factors (like the Cholesky or $LDL^T$ decomposition). Thorsten Suttorp, Christian Igel, and Nikolaus Hansen showed in Efficient covariance matrix update for variable metric evolution strategies that updating matrix factors directly ensures the search distribution remains positive definite even over millions of iterations, avoiding the drift that plagues raw algebraic updates.

2. Error-Bounded Restarts

If drift is inevitable, the goal becomes knowing when to give up and recompute from scratch. The TIMERS framework, developed by Ziwei Zhang and Peng Cui, uses matrix perturbation theory to monitor the maximum tolerated error. By triggering a full Singular Value Decomposition (SVD) restart only when the accumulated drift exceeds a theoretical bound, they maintain high accuracy while skipping up to 50% of redundant computations.

3. Periodic Rescaling and Resets

In reinforcement learning, Jürgen Schmidhuber and Marco A. Wiering addressed numerical instability in $Q(\lambda)$-learning by introducing "lazy" updates and periodic rescaling. This prevents global accumulators from exceeding machine precision. Similarly, Aaron Courville and Yoshua Bengio suggest that in Gaussian Mixture Models, periodic full re-computations are necessary to "clear the air" of small numerical errors accumulated during sequential matrix updates.

Why It Works

The success of these methods lies in recognizing that numerical stability is a dynamic property. By treating error accumulation as a measurable "drift" rather than an invisible ghost, researchers can design algorithms that are both fast and faithful. Whether through smarter factorization, as in the work of Yuehua Feng, or through constant-memory attention blocks like those proposed by Leo Feng, the goal is to break the feedback loop where yesterday's rounding error becomes today's divergence.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_numerical_stability_for_incremental_and__09142b22,
  title = {Numerical Stability for Incremental and Recursive Updates},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/numerical-stability-for-incremental-and-recursive-updates/rdr_09142b226f15403d8e3975e27efda70f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_numerical_stability_for_incremental_and__09142b22_v1,
  title = {Numerical Stability for Incremental and Recursive Updates},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/numerical-stability-for-incremental-and-recursive-updates/rdr_09142b226f15403d8e3975e27efda70f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}