A Pathwise Algorithm for Covariance Selection

V. Krishnamurthy, Alexandre d’AspremontarXiv 2009 · DOI

TL;DR

This paper introduces an efficient "pathwise" algorithm for covariance selection—the task of estimating a sparse inverse covariance matrix. Instead of solving the problem for a single penalty parameter, the authors use a predictor-corrector framework to trace the entire "regularization path," significantly outperforming existing methods like GLASSO in speed while maintaining high accuracy.

What Problem Does This Paper Address?

In multivariate statistics, understanding the relationships between variables is crucial. If we assume data follows a Gaussian distribution, the zeros in the inverse covariance matrix (the precision matrix) represent conditional independence between variables. This makes the precision matrix a map of the underlying graphical model.

However, estimating this matrix from limited data is hard. To get a "sparse" model (one with many zeros), researchers use a penalty parameter ($\rho$) to trade off between the likelihood of the data and the number of non-zero entries. The challenge is that there is no "correct" value for $\rho$. Usually, scientists have to solve the problem dozens of times for different values of $\rho$ to find the best fit, which is computationally expensive as the number of variables ($n$) grows.

Methods

The authors propose a Predictor-Corrector algorithm (dubbed "Covpath") to compute the entire path of solutions as $\rho$ changes.

  1. Convex Relaxation: They start with the standard convex relaxation of the covariance selection problem, replacing the non-convex "cardinality" penalty with an $\ell_1$-norm penalty.
  2. The Predictor Step: When the penalty $\rho$ is slightly adjusted, the algorithm computes a "tangent direction" by solving a linear system. They use the Conjugate Gradient (CG) method here, cleverly exploiting matrix structures (Kronecker products) to reduce the computational cost from $O(n^4)$ to $O(n^3)$.
  3. The Corrector Step: Since the predictor step is just an estimate, the "corrector" uses Block Coordinate Descent (BCD) to refine the solution. A key innovation here is that each coordinate update can be solved in closed-form by finding the roots of a cubic equation, making the inner loops extremely fast.
  4. Scaling & Warm Start: The authors also describe a simpler version where they simply scale the previous solution to use as a starting point for the next $\rho$, which proves surprisingly robust in practice.
  5. Online Version: They extend the logic to an "online" setting, where the model can be updated efficiently if the sample covariance matrix changes slightly (e.g., when new data arrives).

Datasets

The algorithm was evaluated on several real-world and synthetic datasets:

  • Senator Votes: Covariance of voting records.
  • Science Topics: A topic model with 50 topics.
  • FX Data: Foreign exchange rates for 20 currencies.
  • UCI Benchmarks: SPECTF (heart imaging), LIBRAS (hand movement), and HillValley.
  • Synthetic Data: Randomly generated sparse matrices with Gaussian coefficients (up to $n=300$).

Key Insights and Ideas

  • Path-Following is Cheaper: The "aha moment" is that moving from one solution to a nearby one (as $\rho$ changes) is much faster than solving the problem from scratch. The cost of tracing the whole path is often comparable to solving just a few standalone instances.
  • Exploiting Structure: By recognizing that the Jacobian matrix in the predictor step involves Kronecker products, the authors avoided the "curse of dimensionality" that usually plagues $n^2 \times n^2$ systems.
  • The Cubic Trick: Solving a cubic equation for coordinate updates is a highly efficient way to handle the non-linearities of the log-determinant objective.
  • Sparsity vs. Penalty: The results show that the fraction of non-zero coefficients in the inverse covariance matrix is roughly linear with respect to the log of the penalty parameter $\rho$.

Key Results

The "Covpath" algorithm showed dramatic speedups over the then-state-of-the-art GLASSO and other first-order methods (ASPG, SINCO):

  • Speed: On the "HillValley" dataset ($n=100$), Covpath finished in 0.068 seconds, while GLASSO failed to converge.
  • Scalability: For a $300 \times 300$ random matrix, Covpath computed a 50-point regularization path in 0.83 seconds. In comparison, GLASSO took 519 seconds—a nearly 600x speedup.
  • Robustness: The algorithm remained stable even at the "sparse end" of the path, where the number of conjugate gradient iterations actually decreases as the matrix becomes sparser.

Limitations and Future Work

  • Complexity Bounds: While the algorithm is fast in practice and converges locally linearly, the authors note there is no explicit theoretical bound on the total number of iterations required for the entire path.
  • Matrix Updates: The Block Coordinate Descent step requires Sherman-Woodbury-Morrison (SWM) updates. If the algorithm needs to switch between many columns frequently, these updates can become a bottleneck.
  • Variable Selection: The authors suggest that future work could involve optimizing the probability of selecting which variables to update (using Nesterov-style randomized strategies) to further reduce the cost of switching columns.

Summary updated

Abstract

Covariance selection seeks to estimate a covariance matrix by maximum likelihood while restricting the number of nonzero inverse covariance matrix coefficients. A single penalty parameter usually controls the tradeoff between log likelihood and sparsity in the inverse matrix. We describe an efficient algorithm for computing a full regularization path of solutions to this problem.
BibTeX
@misc{krishnamurthy2009pathwise,
  author = {V. Krishnamurthy and Alexandre d’Aspremont},
  title = {{A Pathwise Algorithm for Covariance Selection}},
  year = {2009},
  eprint = {0908.0143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0908.0143},
}
Figure