Introduction
Symmetric Positive Definite (SPD) matrices are fundamental in various scientific domains, serving as representations for covariance in neuroimaging (fMRI) or connectivity in urban traffic networks. However, modeling these matrices presents significant challenges because they reside on a curved Riemannian manifold rather than a flat Euclidean space.
Traditional approaches to SPD matrix modeling often suffer from two primary limitations. First, they are typically discriminative, focusing on predicting a conditional mean ($E(X|y)$) rather than learning the full underlying probability distribution ($p(X)$). This limits their ability to capture uncertainty or generate novel, realistic samples. Second, standard deep learning frameworks, including vanilla Denoising Diffusion Probabilistic Models (DDPMs), assume Euclidean data. Applying these models directly to SPD matrices often results in "noisy" intermediate states that violate symmetry or positive definiteness, leading to mathematically invalid outputs.
Methodology
The authors introduce SPD-DDPM, a framework that adapts diffusion models to the SPD manifold by utilizing an affine-invariant metric.
Manifold-Aware Arithmetic
To ensure the diffusion process remains within the SPD space, the authors redefine core arithmetic operations. Standard addition and scalar multiplication are replaced with Riemannian-consistent operations:
- SPD Addition ($\oplus$): $X_1 \oplus X_2 = X_1^{1/2} X_2 X_1^{1/2}$
- SPD Scalar Multiplication ($\odot$): $r \odot X = X^r$
These operations guarantee that any transformation applied during the forward or backward diffusion steps preserves the SPD property of the matrices.
The SPD U-Net Architecture
A key contribution is the design of a specialized SPD U-Net. Unlike earlier, shallower SPD-specific networks, this architecture is deeper and incorporates several advanced features:
- Double Convolutions: Repeated layers of convolution and activation to enhance the model's representational capacity.
- Conditional Integration: A mechanism to incorporate time steps ($t$) and external predictors ($y$) via embedding layers, enabling conditional matrix generation.
Experiments and Results
The model was evaluated on both synthetic and real-world datasets.
Unconditional Generation
Using a toy dataset of 15,000 simulated SPD matrices, SPD-DDPM demonstrated superior performance in unconditional generation. It achieved a mean distance to the true distribution of 23.17, significantly outperforming a standard Euclidean DDPM, which failed with a distance of 813.75.
Conditional Estimation: NYC Taxi Data
The model was also tested on a real-world dataset of 8,700 weighted adjacency matrices representing passenger flows between NYC boroughs. SPD-DDPM outperformed Frechet Regression, the previous state-of-the-art, across multiple metrics:
- Affine-invariant metric: SPD-DDPM (0.6123) vs. Frechet Regression (8.0099).
- Frobenius metric: SPD-DDPM (6.4684) vs. Frechet Regression (6.6448).
Qualitative Analysis
Visual comparisons highlight the fidelity of the generated samples. While standard DDPM produces unstructured and noisy outputs, SPD-DDPM generates matrices that are visually indistinguishable from the test samples.
Conclusion
SPD-DDPM successfully bridges the gap between diffusion models and Riemannian geometry. By redefining diffusion operations to respect the SPD manifold and introducing a deep U-Net architecture, the authors enable high-fidelity generation and estimation of complex matrix-valued data. Future work may address the computational overhead of multi-step inference and the scalability of the architecture to higher-dimensional matrices.
Summary updated