Sparse Covariance Neural Networks

Andrea Cavallo, Zhan Gao, Elvin Isufi

TL;DR

This paper introduces Sparse coVariance Neural Networks (S-VNNs), a novel framework that integrates covariance sparsification techniques directly into Covariance Neural Networks (VNNs). By systematically removing spurious correlations from sample covariance matrices, S-VNNs significantly reduce computational and memory overhead while simultaneously improving model stability and downstream task performance. The authors provide strong theoretical guarantees for their approach and demonstrate its efficacy across diverse applications, including neuroimaging and human activity recognition.

What Problem Does This Paper Address?

Covariance-based data processing is foundational in machine learning for identifying principal data directions and feature interdependencies. Recently, Covariance Neural Networks (VNNs) emerged to capture these relationships by treating a covariance matrix as a graph: each data feature is a node, and the covariance values serve as edge weights. VNNs then perform graph convolutions to learn hierarchical representations.

Covariance graph concept where features are nodes and edge weights represent covariance values.

However, standard VNNs suffer from two major bottlenecks:

  1. Spurious Correlations: In real-world scenarios—especially low-data regimes where the number of samples ($t$) is on par with the feature dimensionality ($N$)—empirical sample covariance matrices are noisy and plagued by false correlations.
  2. Computational Overhead: Even if the underlying true covariance matrix is sparse, estimation errors make the sample covariance matrix completely dense. This forces VNNs into a quadratic computational complexity ($O(N^2)$) per layer, rendering them impractical for high-dimensional datasets.

While classical methods like Principal Component Analysis (PCA) also struggle with stability when eigenvalues are close together, VNNs are inherently more stable but remain computationally bogged down by these dense, noisy matrices.

Methods

To tackle these limitations, the authors propose S-VNNs, which introduce two main flavors of sparsification depending on the nature of the underlying data:

1. Deterministic Thresholding (For Sparse True Covariances)

When the underlying phenomenon is known to be sparse (e.g., brain regions activating together), the paper applies two deterministic techniques to the sample covariance matrix:

  • Hard Thresholding: Sets any covariance entry below a sample-dependent threshold ($\tau / \sqrt{t}$) to zero.
  • Soft Thresholding: Subtracts the threshold value from all non-zero coefficients, reducing overall estimation uncertainty.

2. Stochastic Sparsification (For Generic/Dense True Covariances)

When the true covariance matrix is dense or its sparsity structure is unknown, aggressive deterministic thresholding can destroy vital information. Instead, the authors propose a strategy akin to edge dropout:

  • Absolute Covariance Values (ACV): Drops smaller covariance values with higher probability, preserving strong correlations that drive model stability.
  • Ranked Covariance Values (RCV): Ranks covariances by absolute value and drops them based on a user-defined target average probability ($p$), allowing precise control over the network's computational density.

Theoretical Stability

Crucially, the authors back these methods with a finite-sample stability analysis. They prove that the output difference between an S-VNN operating on a sparsified sample covariance matrix and one operating on the ideal true covariance matrix is strictly bounded, often yielding tighter guarantees than nominal VNNs or sparse PCA variants.

Datasets

The authors evaluated S-VNNs on both synthetic benchmarks (SparseCov, LargeCov, SmallCov) and four real-world datasets:

Details of the real-world datasets used for evaluation.
  • MHEALTH & Realdisp: Wearable sensor datasets containing multi-modal recordings (accelerometer, gyroscope) used to classify human physical activities.
  • ADNI1 & ADNI2: Brain MRI datasets from the Alzheimer's Disease Neuroimaging Initiative. The task here is a high-dimensional regression problem: predicting a patient's chronological brain age from cortical thickness measurements.

Key Insights and Ideas

  • Sparsity as a Regularizer: Sparsification isn't just a trick to speed up computation; it acts as an effective regularizer. By cutting out the "noise" of spurious correlations, S-VNNs consistently achieve better downstream accuracy than dense VNNs in low-data regimes.
  • The Compute-Stability Trade-off: The stochastic RCV strategy reveals a clear dial for engineers: lowering $p$ slashes compute time linearly but introduces a slight degradation in stability if large, meaningful covariance values are accidentally dropped.
  • Overcoming the Eigenvalue Gap: Unlike Sparse PCA, whose stability degrades catastrophically when data eigenvalues are close to each other, S-VNNs absorb these variations through the Lipschitz continuity of their graph filters, maintaining robust performance regardless of eigenvalue distribution.

Key Results

S-VNNs consistently outperformed or matched nominal VNNs and standard baselines (like MLPs and Kernel PCA) while offering massive computational savings:

  • Performance Boost: On the ADNI2 dataset, S-VNN variants achieved lower Mean Absolute Error (MAE) for brain age prediction compared to dense VNNs, proving that removing spurious correlations prevents overfitting.
  • Dramatic Speedups: For the larger MHEALTH and Realdisp datasets, forward pass times plummeted. For instance, on Realdisp, the dense VNN took 23.3 seconds, whereas the hard-thresholded S-VNN cut that down to 8.25 seconds—a nearly 3x speedup without sacrificing accuracy.
  • Comparison to Graphical Lasso: While Graphical Lasso (GL) achieved strong accuracy, it was 1 to 3 orders of magnitude slower than S-VNN thresholding methods due to its expensive optimization step, making S-VNNs the clear choice when efficiency matters.

Limitations and Future Work

The authors note that neither thresholding nor stochastic sparsification inherently guarantees that the resulting matrix remains positive semi-definite (PSD). While they suggest "diagonal loading" (adding a small value to the diagonal) as a practical workaround, it is not deeply integrated into the core theory.

For future work, the authors plan to investigate how observing multiple distinct stochastic instances of the sparsified covariance matrix during training might act as an ensemble regularizer to further boost generalization and prevent the "oversmoothing" common in deep graph architectures.

Summary updated

BibTeX
@article{cavallo2026sparse,
  author = {Andrea Cavallo and Zhan Gao and Elvin Isufi},
  title = {{Sparse Covariance Neural Networks}},
  journal = {IEEE Trans. Signal Process.},
  year = {2026},
  doi = {10.1109/tsp.2026.3714283},
}
Figure