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.
- Mohammad Mozaffari and Sikan Li introduced MKOR: Momentum-Enabled Kronecker-Factor-Based Optimizer Using Rank-1 Updates, which uses the Sherman-Morrison identity to update the inverse curvature matrix directly, slashing the cost of training large models like BERT.
- Lin Zhang and Shaohuai Shi developed Eva: A General Vectorized Approximation Framework for Second-order Optimization, which represents curvature as a rank-one update plus a damping term. This allows the inverse to be computed analytically, turning a cubic-time bottleneck into linear-time vector operations.
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.
- 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.
- 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.
- 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.