Valid two‐sample graph testing via optimal transport Procrustes and multiscale graph correlation with applications in connectomics

Jaewon Chung, Bijan Varjavand, Jesús Arroyo, Anton Alyakin, Joshua Agterberg, Minh Tang, Joshua T Vogelstein, Carey E. PriebeStat 2019

Introduction

In the field of connectomics, a fundamental question is whether two brain networks—such as the left and right hemispheres of a single organism—share the same underlying statistical structure. This is framed as a two-sample graph hypothesis testing problem. If we can reliably determine that two graphs are drawn from the same distribution, we can make inferences about the biological symmetry or functional consistency of neural architectures.

However, comparing graphs is non-trivial. Unlike standard data points, graphs do not come with a natural coordinate system or a fixed node-to-node mapping. This paper addresses these challenges by introducing a robust pipeline that combines Optimal Transport Procrustes (OTP) for alignment and Multiscale Graph Correlation (MGC) for testing.

The Challenge: Non-Identifiability and Alignment

When analyzing graphs under the Random Dot Product Graph (RDPG) model, researchers typically use Adjacency Spectral Embedding (ASE) to map nodes into a latent $d$-dimensional space. While ASE is powerful, it introduces "non-identifiability": the resulting embeddings are only unique up to an orthogonal transformation, such as a rotation or reflection.

To compare two embedded graphs, they must first be aligned. A common heuristic is the "median flip," which attempts to align the signs of the dimensions based on the median of the coordinates. However, as this research demonstrates, such heuristics are often insufficient. If the alignment is slightly off, the subsequent statistical test will detect a difference that isn't actually there, leading to an inflated Type I error rate (false positives). As the number of vertices in a graph increases, the median flip is increasingly likely to misalign the data, rendering the test statistically invalid.

Methodology: OTP and MGC

The authors propose two significant improvements to the standard testing pipeline:

  1. Optimal Transport Procrustes (OTP): Instead of simple heuristics, OTP solves a joint optimization problem. It finds the best orthogonal transformation (Procrustes) and the best permutation of nodes (Optimal Transport) to minimize the distance between the two point sets. This ensures that the embeddings are as close as possible before any testing occurs, resolving the invalidity issues of simpler methods.
  2. Multiscale Graph Correlation (MGC): Traditional tests like Maximum Mean Discrepancy (MMD) or Distance Correlation (DCorr) often look at global properties. MGC, however, adaptively searches across different scales of the data. By examining local neighborhoods of points, MGC can detect complex, non-linear dependencies that global tests might miss, resulting in a more "powerful" test—meaning it has a higher probability of correctly rejecting the null hypothesis when it is false.

Experimental Results

The researchers validated their approach using both synthetic simulations and data derived from the Drosophila melanogaster larval mushroom body.

Validity and Power in Simulation

In scenarios where two graphs were generated from the same distribution, the OTP-based method maintained a stable Type I error rate near the nominal 5% level. In contrast, the error rate for the median flip heuristic increased sharply as the number of vertices grew.

Comparison of Type I error and power across different simulation settings. MGC consistently outperforms DCorr in power, while both maintain validity when properly aligned.

Furthermore, when testing graphs from different distributions (e.g., linear vs. non-linear differences), MGC demonstrated superior power compared to DCorr. It required significantly fewer nodes to reach a high probability of detection, especially in non-linear cases where global correlations are less apparent.

Connectomics Application: The Drosophila Brain

The pipeline was applied to the left and right hemispheres of the larval fruit fly mushroom body. This is a critical test case for biological symmetry. The actual networks consist of 163 neurons in the left hemisphere and 158 in the right.

Results on synthetic Drosophila brain networks. The dashed lines represent the median flip heuristic, which leads to an invalid test (high Type I error in the left column). The solid lines represent the proposed OTP alignment, which remains valid. Red lines (MGC) show higher power than blue lines (DCorr) in detecting differences.

As shown in the figures, the median flip heuristic incorrectly suggested that the two hemispheres were different. By using the valid OTP+MGC pipeline, the researchers found no significant evidence to reject the null hypothesis ($p > 0.05$). This suggests that the left and right hemispheres of the Drosophila mushroom body are indeed distributed similarly, a finding that aligns with biological expectations of symmetry but was previously obscured by flawed statistical heuristics.

Conclusion

This work highlights the critical importance of proper alignment in graph testing. By replacing fragile heuristics with Optimal Transport Procrustes and adopting the multiscale sensitivity of MGC, researchers can perform more reliable and powerful comparisons of complex networks. This framework provides a solid foundation for future studies in connectomics and other fields where network comparison is essential, ensuring that discovered differences are biological realities rather than mathematical artifacts.

Summary updated

BibTeX
@inproceedings{chung2019valid,
  author = {Jaewon Chung and Bijan Varjavand and Jesús Arroyo and Anton Alyakin and Joshua Agterberg and Minh Tang and Joshua T Vogelstein and Carey E. Priebe},
  title = {{Valid two‐sample graph testing via optimal transport Procrustes and multiscale graph correlation with applications in connectomics}},
  booktitle = {Stat},
  year = {2019},
  doi = {10.1002/sta4.429},
}
Figure