AI Navigate

Cost Trade-offs in Matrix Inversion Updates for Streaming Outlier Detection

arXiv cs.LG / 3/18/2026

💬 OpinionIdeas & Deep AnalysisModels & Research

Key Points

  • The note compares three matrix inversion update methods—Direct Inversion (DI), Iterative Sherman-Morrison (ISM), and Woodbury Matrix Identity (WMI)—for updating the inverse after rank-k updates in online outlier scoring using the Christoffel function.
  • It derives theoretical computational costs for each method and validates them with CPU-based Python simulations in a streaming outlier detection setting.
  • It proposes a simple rule: ISM is optimal for rank-1 updates, WMI is best when updates are small relative to the matrix size, and DI is preferable in other cases.
  • It argues that these results apply generally to any problem involving matrix inversion updates, contributing to more efficient online outlier detection techniques.

Abstract

Outlier detection identifies data points that deviate significantly from expected patterns, revealing anomalies that may require special attention. Incorporating online learning further improves accuracy by continuously updating the model to reflect the most recent data. When employing the Christoffel function as an outlier score, online learning requires updating the inverse of a matrix following a rank-k update, given the initial inverse. Surprisingly, there is no consensus on the optimal method for this task. This technical note aims to compare three different updating methods: Direct Inversion (DI), Iterative Sherman-Morrison (ISM), and Woodbury Matrix Identity (WMI), to identify the most suitable approach for different scenarios. We first derive the theoretical computational costs of each method and then validate these findings through comprehensive Python simulations run on a CPU. These results allow us to propose a simple, quantitative, and easy-to-remember rule that can be stated qualitatively as follows: ISM is optimal for rank-1 updates, WMI excels for small updates relative to matrix size, and DI is preferable otherwise. This technical note produces a general result for any problem involving a matrix inversion update. In particular, it contributes to the ongoing development of efficient online outlier detection techniques.