Abstract
Deciphering the associations between network connectivity and nodal attributes is a core problem in network science. However, the dependency structure and high dimensionality of networks pose unique challenges to traditional dependency tests. This paper proposes a new approach to test network dependence via diffusion maps and distance-based correlations. We demonstrate that this method yields a consistent test statistic under mild distributional assumptions and efficiently identifies the most informative graph embedding with respect to diffusion time. The methodology is validated through both simulated and real-world biological data.
Introduction
A fundamental question in network science is whether the "wiring diagram" of a network—its connectivity—is associated with the characteristics or attributes of its nodes (e.g., age, geographic location, or gene expression). Identifying these relationships is critical in fields ranging from sociology to neuroscience. However, testing for independence in this context is statistically difficult for two primary reasons:
- High Dimensionality: Networks are typically represented as massive, sparse adjacency matrices, making them difficult to compare directly to attribute vectors.
- The "i.i.d." Problem: Most classical statistical tests assume data points are independent and identically distributed. In a graph, edges are inherently dependent on one another, violating the theoretical foundations of traditional tests.
Existing model-based approaches often rely on rigid mathematical assumptions (such as Gaussian distributions) and fail when real-world data deviates from these models.
The DMGC Framework
To address these challenges, we introduce DMGC (Diffusion Multiscale Graph Correlation), a non-parametric framework that combines diffusion maps with distance-based correlations to detect complex, non-linear relationships between network topology and node data.
1. Diffusion Map Embedding
Rather than analyzing the raw adjacency matrix, DMGC utilizes Diffusion Maps. This technique treats the network as a manifold where a "random walker" moves between nodes. It embeds nodes into a lower-dimensional Euclidean space based on the probability of transition between them. A critical parameter in this process is diffusion time ($t$), which controls the scale of the analysis—from local neighborhoods to global structures.
2. Multiscale Graph Correlation (MGC)
Once nodes are represented as points in Euclidean space, we apply Multiscale Graph Correlation (MGC). MGC is a state-of-the-art independence test designed to search across all possible local scales to identify the strongest correlation. This allows the framework to capture non-linear patterns, such as circles or spirals, that standard linear correlation tests would miss.
3. The Smoothed Maximum
To avoid the statistical pitfalls of "p-hacking" (selecting the best result from multiple tests), we employ a "smoothed maximum" technique. This automatically identifies the optimal diffusion time ($t$) that best preserves the dependency signal while maintaining the validity of the test.
Experimental Validation
Simulated Networks
We validated DMGC using Stochastic Block Models (SBM) and Random Dot Product Graphs (RDPG), testing 20 different types of relationships, including linear, quadratic, exponential, and "spiral" dependencies. In scenarios where the relationship was non-linear (such as a three-block model), DMGC achieved a testing power of 0.54, significantly outperforming the standard model-based likelihood ratio test (Fosdick-Hoff), which only reached 0.08.
The C. elegans Connectome
We applied DMGC to the C. elegans connectome, a dataset representing 279 non-pharyngeal neurons. The goal was to test the relationship between the physical position of neurons and their synaptic connectivity. DMGC identified a highly significant relationship ($p < 0.002$). Interestingly, the method identified an optimal diffusion time of $t=5$, revealing a non-linear relationship where neurons at the extreme ends (head and tail) exhibit broader connectivity patterns than those in the middle.
Key Insights and Theoretical Contributions
- The Single Index Spectrum: We demonstrate that diffusion maps provide a "single index family" of embeddings. By varying $t$, the embedding transitions from the raw adjacency spectral embedding ($t=1$) to the normalized graph Laplacian ($t=0$).
- Model-Agnostic Robustness: Unlike traditional tests, DMGC does not require prior knowledge of the relationship's "shape." It is capable of identifying dependencies even when the underlying structure is highly complex or non-linear.
- Mathematical Consistency: We provide theoretical proof that as the number of nodes in a network grows, the DMGC test statistic is guaranteed to correctly identify whether a dependency exists.
Conclusion and Future Work
DMGC provides a powerful, mathematically rigorous tool for detecting associations between network structure and node attributes. While the current iteration requires iterating through multiple diffusion times, future work will focus on optimizing computational efficiency. Additionally, while we use a profile likelihood heuristic for dimension selection, further theoretical development is needed to fully automate this choice. Because diffusion maps can be applied to any similarity matrix, this methodology holds potential for general high-dimensional data testing beyond the scope of graph theory.
Summary updated