Learning with Covariance Matrices: Principal Component Analysis Meets Learning with Graphs

Saurabh Sihag, Andrea Cavallo, Elvin Isufi, Gonzalo Mateos, Alejandro RibeiroarXiv 2026

TL;DR

This paper introduces coVariance Neural Networks (VNNs), a novel framework that reinterprets Principal Component Analysis (PCA) through the lens of Graph Signal Processing (GSP). By treating covariance matrices as graphs, VNNs eliminate the need for expensive eigendecompositions, provide guaranteed stability against sample noise, and enable seamless model transfer across datasets of different dimensions without retraining.

What Problem Does This Paper Address?

Covariance matrices are the bedrock of multivariate data analysis, capturing linear dependencies across features in fields ranging from neuroimaging to climate modeling. For decades, PCA has been the go-to technique for reducing data dimensionality by projecting datasets onto the eigenvectors of these covariance matrices.

However, conventional PCA suffers from two major limitations:

  1. Instability under Noise: In practice, we only have access to sample covariance matrices estimated from finite data. If two eigenvalues are close together, minor statistical noise can cause their corresponding eigenvectors to swap or rotate drastically (a phenomenon described by the Davis-Kahan theorem). This makes downstream models highly unstable and hard to reproduce.
  2. Lack of Transferability: PCA is strictly tied to the dimensionality of the input data. If you change the number of features—such as switching from a low-resolution to a high-resolution climate model or brain atlas—the entire eigenspace changes. You must recompute the computationally expensive ($O(m^3)$) eigendecomposition from scratch, making PCA poorly suited for multiscale datasets.

Methods

The authors bridge this gap by treating the covariance matrix as a graph representation (where nodes are features and edges represent pairwise covariances) and individual data samples as graph signals.

  • Graph Filters as PCA Alternatives: The authors prove that the Graph Fourier Transform (GFT) over a covariance matrix is mathematically identical to a PCA transformation. Instead of explicitly computing eigenvectors, they implement spectral filtering using polynomials of the covariance matrix: $$\mathbf{z} = \sum_{k=0}^{K} h_k \hat{\mathbf{C}}_n^k \mathbf{x}$$ This "linear-shift-and-sum" approach acts as a data-driven spectral filter while bypassing the $O(m^3)$ eigendecomposition bottleneck.

  • coVariance Neural Networks (VNNs): By cascading these covariance filters with pointwise non-linear activation functions ($\sigma$), they form VNNs (essentially GNNs where the graph shift operator is a covariance matrix).

  • Advanced Extensions: The paper outlines several tailored variants, including Sparse VNNs (which integrate hard and stochastic thresholding to handle spurious correlations), SpatioTemporal VNNs (for streaming time-series data), and Fair VNNs (which reweight covariance estimators to mitigate demographic data bias).

Datasets

The framework was validated using both synthetic benchmarks and real-world clinical data:

  • Synthetic Regression: Random linear regression problems generated via Python's sklearn.datasets.make_regression to evaluate stability under controlled noise perturbations.
  • Real-World Neuroimaging: Cortical thickness features derived from structural T1-weighted MRI scans of 2,147 healthy individuals across four public repositories: CamCAN, DLBS, IXI, and eNKI. To test multiscale performance, features were curated at three spatial resolutions (100, 200, and 400 parcellations) using Schaefer's brain atlas.

Key Insights and Ideas

  • The Scale-Free Property: Because a covariance filter is parameterized entirely by its filter taps ($h$) and polynomial order ($K$) rather than the feature dimension ($m$), the exact same learned parameters can be deployed on datasets of any size.
  • Demodulation via Non-Linearity: While close eigenvalues cause standard PCA eigenvectors to degrade, the non-linear activation functions within VNN layers act as a "demodulator," preserving discriminability and stabilizing performance even when sample covariance matrices are heavily perturbed.
  • The Transformer Connection: The authors demonstrate a fascinating conceptual link to modern deep learning: the self-attention mechanism in transformers evaluates attention scores using a term ($\mathbf{XMX^\top}$) that can be viewed as a generalized form of a covariance matrix. This positions VNN theory as a potential stepping stone toward a rigorous mathematical understanding of transformers.

Key Results

  • Superior Stability: When the sample covariance matrix was perturbed by reducing the number of training samples, standard PCA-driven linear regression (PCA-LR) and radial basis function (PCA-rbf) models exhibited highly volatile, stochastic performance. In contrast, VNNs maintained remarkably stable Mean Absolute Error (MAE) metrics.
Fig. 1. Potential instability of PCA-driven regression model illustrated through an example. (a) PCA-driven regression model
  • Zero-Shot Multiscale Transfer: A VNN trained strictly on a low-resolution (100-feature) brain atlas to predict chronological age was directly evaluated on 200- and 400-feature versions of the dataset without any retraining. The transferred model achieved a Pearson's correlation coefficient $> 0.97$ relative to the ground truth, demonstrating flawless zero-shot generalization across scales.

Limitations and Future Work

  • Beyond PCA: The current theoretical framework is primarily mapped to PCA equivalents. The authors note that extending GSP principles to other multivariate statistical methods, such as Canonical Correlation Analysis (CCA), remains an open and highly motivated direction.
  • Transformer Bounds: While the paper highlights the structural similarity between covariance filters and self-attention, deriving formal stability and generalization bounds for full transformer architectures using these insights is left to future work.
  • Physical Multiscale Systems: Future empirical studies are needed to test VNNs on complex physical multiscale processes, such as combining satellite, airborne, and ground-level sensor data in oceanographic or atmospheric sciences.

Summary updated

BibTeX
@misc{sihag2026learning,
  author = {Saurabh Sihag and Andrea Cavallo and Elvin Isufi and Gonzalo Mateos and Alejandro Ribeiro},
  title = {{Learning with Covariance Matrices: Principal Component Analysis Meets Learning with Graphs}},
  year = {2026},
  eprint = {2609.10490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.10490},
}
Figure