A singular Woodbury and pseudo-determinant matrix identities and application to Gaussian process regression

Siavash Ameli, Shawn C. Shadden · DOI

TL;DR

This paper introduces a "singular" version of the famous Woodbury matrix identity and the matrix determinant lemma to handle cases where matrices are rank-deficient. These new identities provide a mathematically rigorous and computationally efficient way to handle Gaussian Process regression when using uninformative priors, effectively redefining the precision matrix using the Bott-Duffin inverse.

What Problem Does This Paper Address?

In linear algebra and statistics, the Woodbury matrix identity and the matrix determinant lemma are essential tools. they allow researchers to compute the inverse and determinant of a matrix after a low-rank update without re-doing the heavy lifting of a full matrix inversion.

However, these classic formulas have a major "blind spot": they require certain internal matrices to be invertible. In Gaussian Process (GP) regression—a popular machine learning method for probabilistic prediction—we often encounter a "singular" limit. This happens when we use a linear mixed model with an "improper uniform prior" (meaning we assume we know nothing about the fixed effects). In this scenario, the standard Woodbury formulas break down because the precision of our prior knowledge effectively becomes zero (a singular matrix).

Previously, researchers handled this using specific limits or projections. This paper aims to provide a unified, rigorous framework using generalized inverses to bridge this gap.

Methods

The authors move beyond standard matrix inverses to the realm of generalized inverses. Specifically, they utilize:

  • Moore-Penrose Pseudo-inverses ($A^\dagger$): A generalization of the inverse for non-square or singular matrices.
  • Bott-Duffin Inverses: A constrained inverse used to define the precision matrix on a specific subspace.
  • Outer Inverses: They prove that their proposed "Singular Woodbury" matrix is a generalized $\{2\}$-inverse of the original matrix.

The paper derives new identities for pseudo-determinants (the product of non-zero eigenvalues). Since the matrices involved in these singular cases are rank-deficient, their standard determinant is always zero—which is useless for calculating likelihoods. The authors' pseudo-determinant identities allow for the evaluation of likelihood functions even in these singular limits.

Datasets

To validate their theoretical findings and test computational efficiency, the authors used:

  • MIT-BIH Arrhythmia Database: An electrocardiogram (ECG) signal dataset from PhysioBank. They used this to generate a realistic, large-scale covariance matrix (a Toeplitz matrix) to benchmark their algorithms.
  • Synthetic Basis Functions: They generated design matrices ($X$) by discretizing trigonometric functions to simulate different ratios of basis functions to data points.

Key Insights and Ideas

  • Precision as Bott-Duffin: One of the most elegant "aha" moments is the realization that the precision matrix of a GP with a linear trend is exactly the Bott-Duffin inverse of its covariance matrix. This isn't just a mathematical convenience; it preserves vital statistical properties like conditional independence.
  • Subspace Likelihoods: The paper demonstrates that the likelihood function of a GP with an uninformative prior is actually a normal distribution defined on the subspace orthogonal to the trend ($X^\perp$).
  • The $p/n$ Threshold: The authors show that the "best" way to compute a log-determinant depends on the ratio of the number of basis functions ($p$) to the number of data points ($n$). There is a clear crossover point where their new identities become faster than the standard "legacy" approach.

Key Results

  • New Identities: The authors successfully derived and proved singular versions of the Woodbury identity and the determinant lemma.
  • Computational Speedup: Through numerical analysis (comparing three algorithms: LD1, LD2, and LD3), they found that if the design matrix $X$ is orthonormalized in advance, their new methods (LD2 and LD3) are significantly faster than the standard approach when the number of basis functions is large relative to the data.
  • Software Implementation: The researchers released their algorithms in a high-performance Python package called detkit, making these "singular" tools accessible to the wider scientific community.

Limitations and Future Work

  • Conditionality: The computational advantages are not universal; they depend on specific conditions like the orthonormality of $X$ and the $p/n$ ratio. In some "standard" cases, the legacy method remains faster.
  • Matrix Classes: Some of the determinant identities assume the matrix is "Equal-Principal" (EP), which, while common in statistics (e.g., symmetric matrices), is a constraint.
  • Future Directions: The authors suggest these identities could be applied to even more complex models, such as those involving Drazin inverses or applications in spatial statistics where rank deficiency is a frequent hurdle.

Summary updated

BibTeX
@article{ameli2023singular,
  author = {Siavash Ameli and Shawn C. Shadden},
  title = {{A singular Woodbury and pseudo-determinant matrix identities and application to Gaussian process regression}},
  journal = {Appl. Math. Comput.},
  year = {2023},
  doi = {10.1016/j.amc.2023.128032},
}
Figure