Recursive Matrix Inversion for Efficient Online Learning

This direction is merged into another direction: incremental matrix inversion. Its last version stays readable and citable here.

Version 1 of 173 papers75 conceptsfrozen 2026-10-04

In many areas of machine learning—from reinforcement learning and active learning to second-order optimization—the core computational challenge is the inversion of a large matrix. Whether it is a covariance matrix in a Gaussian Process, a Fisher information matrix in sensor placement, or a Hessian in a neural network optimizer, the standard cost of inversion is $O(d^3)$, where $d$ is the number of dimensions or features.

In an online setting where data arrives one point at a time, recomputing this inverse from scratch is prohibitively expensive. The research direction across these 71 papers focuses on recursive matrix updates, primarily leveraging the Sherman-Morrison formula and the Woodbury matrix identity to transform global inversion problems into efficient, incremental updates.

The Intuition of Rank-One Updates

The fundamental insight is that when we receive a new data point $x$, the matrix we are interested in (often a sum of outer products like $X^T X$) usually changes by only a "rank-one" modification: the addition of $xx^T$.

The Sherman-Morrison formula provides a way to compute the inverse of this updated matrix using only the previous inverse and the new vector. Mathematically, it turns a cubic-time matrix inversion into a quadratic-time ($O(d^2)$) series of matrix-vector multiplications. As Marta Soare, Radu Ciucanu, and Sihem Amer-Yahia demonstrate in Implementing Linear Bandits in Off-the-Shelf SQLite, this identity is so powerful that it allows complex reinforcement learning algorithms to run efficiently even within the restricted environment of a standard SQL database.

Accelerating Decision-Making and Exploration

This recursive approach is particularly vital for algorithms that must quantify uncertainty to make decisions. In "Contextual Bandits," an agent must maintain an estimate of its confidence in different actions. Cheng Chen and colleagues show in Efficient and Robust High-Dimensional Linear Contextual Bandits that by combining the Woodbury identity with sketching techniques, the cost of updating these confidence bounds can be reduced even further—from quadratic to linear ($O(d)$) relative to the feature dimension.

Similarly, in active learning, the goal is to select the most "informative" next point to label. Ji Ming and Jiawei Han in A Variance Minimization Criterion to Active Learning on Graphs use these identities to greedily select nodes that minimize total model variance. Without recursive updates, evaluating the "informativeness" of every candidate node would require a full matrix inversion for each, making the process impossible for large graphs.

Scaling Second-Order Optimization

Standard deep learning optimizers like Adam or SGD are "first-order," meaning they only look at the gradient's direction. "Second-order" methods look at the curvature (the Hessian), which allows for much faster convergence but requires inverting a massive matrix of size $P \times P$ (where $P$ is the number of parameters).

Recent work has focused on making these methods practical by approximating the curvature as a series of rank-one updates.

Real-Time Inference and Robustness

The ability to update models instantly is also a prerequisite for real-time anomaly detection and robust statistics. Kévin Ducharlet and Jean-Bernard Lasserre in Leveraging the Christoffel function for outlier detection in data streams demonstrate how the Sherman-Morrison formula allows a model to adapt its internal summary of "normal" data in constant time as new points arrive.

This recursive philosophy even extends to classical statistical problems. Vladimir Vovk showed in Competitive On-line Linear Regression that recursive matrix updates are the key to achieving optimal regret bounds in adversarial settings. By avoiding the need to re-process historical data, these methods ensure that the computational cost of learning stays flat even as the dataset grows to millions of samples.

Summary of the Mechanism

The shared "engine" across these papers is a shift in perspective: don't invert the matrix; update the inverse.

  1. Identify the Update: Recognize that the new information (a new sample, a new feature, or a new sensor) can be expressed as a low-rank change to the existing system.
  2. Apply the Identity: Use Sherman-Morrison (for rank-1) or Woodbury (for rank-$k$) to express the new inverse as a function of the old inverse.
  3. Reduce Complexity: This transformation typically drops the exponent of the computational cost by one (e.g., $O(d^3) \to O(d^2)$), enabling algorithms to move from offline batch processing to real-time, online execution.

Papers in this version

Showing 60 of 73 papers.

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_recursive_matrix_inversion_for_efficient_187cd4d2,
  title = {Recursive Matrix Inversion for Efficient Online Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/recursive-matrix-inversion-for-efficient-online-learning/rdr_187cd4d22ea742ed835c9b4aec643854},
  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_recursive_matrix_inversion_for_efficient_187cd4d2_v1,
  title = {Recursive Matrix Inversion for Efficient Online Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/recursive-matrix-inversion-for-efficient-online-learning/rdr_187cd4d22ea742ed835c9b4aec643854/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}