Robust Graph Structure Learning via Multiple Statistical Tests

Yaohua Wang, Fangyi Zhang, Ming Lin, Senzhang Wang, Xiuyu Sun, Rong Jin

TL;DR

Graph neural networks require reliable graph structures, but building graphs from noisy image features often results in false connections. This paper introduces a novel approach that treats edge creation as a series of statistical tests, leveraging shared neighbors to robustly determine edge weights. Implemented efficiently as a novel neural module called $\mathcal{B}$-Attention, this method significantly reduces graph noise and achieves state-of-the-art results on image clustering and re-identification tasks.

Introduction & Problem Statement

Graph Convolutional Networks (GCNs) are powerful tools for learning representations, but they rely heavily on having a good underlying graph structure. In many computer vision tasks—like organizing a massive folder of unlabelled photos or tracking a person across different security cameras—there is no explicit graph provided.

To solve this, researchers typically build a "k-nearest neighbors" graph by connecting images based on the similarity of their high-dimensional feature vectors (e.g., using cosine similarity). However, deep learning features are inherently noisy. A single similarity check between two images is highly vulnerable to this noise, often leading to "feature pollution"—connecting two completely different objects because they share a similar background. The authors found that in standard methods, nearly one-third of total graph weights are assigned to these noisy, incorrect edges.

Methodology: Multiple Statistical Tests and $\mathcal{B}$-Attention

Instead of trying to invent a new, complex similarity metric, the authors reframe the problem using classical statistics.

  • Multiple Statistical Tests (Sim-M): If you want to know if Node A and Node B belong to the same category, don't just compare A to B (a single statistical test). Instead, look at their shared candidate neighbors. Compare Node A to Neighbor C, and Node B to Neighbor C. By doing this across many shared neighbors, you effectively run multiple statistical tests. The authors use Chernoff Bounds to mathematically prove that as the number of shared neighbors increases, the probability of creating a noisy edge drops exponentially.
  • $\mathcal{Q}$-Attention (Quartet of Attention): To make this mathematical concept practical and fast for neural networks, the authors translate it into an elegant matrix form. They introduce $\mathcal{Q}$-Attention, which utilizes the fourth-order statistics of the features (essentially multiplying the adjacency matrix by itself) to simulate these multiple tests.
  • $\mathcal{B}$-Attention (Band of Attention): They fuse this new $\mathcal{Q}$-Attention with standard Self-Attention (which they dub "Duet of Attention," as it relies on second-order pairwise statistics) to create the final $\mathcal{B}$-Attention module. This module can be easily plugged into standard GCNs or Transformers.
Architecture of B-Attention combining Self-Attention and Q-Attention

Key Insights

  • Edge creation is a hypothesis test: By viewing the feature vector of each node as an independent sample from an unknown distribution, deciding to draw an edge is essentially a statistical test of whether two nodes share the same distribution.
  • Neighbors are free samples: In static datasets without data augmentation, you can't easily draw "new" samples of an image to reduce variance. The authors brilliantly realize that an image's local neighbors can act as proxy samples to verify a connection.
  • Beyond pairwise attention: Standard self-attention mechanisms only look at pairwise (second-order) interactions. By utilizing fourth-order statistics, $\mathcal{B}$-Attention captures the relationship between two nodes through the lens of a third node, making the attention map far more robust to isolated feature noise.

Key Results

The proposed method was evaluated on large-scale clustering and Re-Identification (ReID) benchmarks, including MS-Celeb-1M, MSMT17, and VeRi-776.

  • High Robustness to Noise: In controlled experiments on MS-Celeb, as the neighborhood size ($k$) increased (injecting more noise into the graph), the baseline similarity metric's accuracy plummeted. The proposed multiple-test metric maintained a highly stable Area Under the Curve (AUC), proving its theoretical robustness. This robustness is clearly visible when comparing performance across varying Edge Noise Rates (ENR).
Performance comparison across varying Edge Noise Rates (ENR)
  • Superior Feature Quality: On MS-Celeb Part 1, a GCN equipped with $\mathcal{B}$-Attention achieved a 95.97 mAP, significantly outperforming standard GCNs (90.15 mAP) and standard Transformers (93.86 mAP).
  • State-of-the-Art Clustering & ReID: The learned graph structures pushed SOTA boundaries on downstream tasks. For instance, on MSMT17 ReID, the method achieved 78.28 mAP and 86.64 Rank-1 accuracy, beating out standard attention-based baselines.

Limitations and Future Work

  • The Majority Assumption: The mathematical guarantees rely on the assumption that within a node's local neighborhood, more than half of the nodes belong to the same category ($\alpha > 1/2$). If the neighborhood size ($k$) is set too large, this assumption breaks, and the algorithm's performance degrades because it is aggregating too many truly irrelevant tests.
  • Extreme Noise: While highly robust, the authors note that $\mathcal{B}$-Attention still shows some performance degradation at very high Edge Noise Rates (e.g., ENR of 0.64), indicating room for improvement in how the attention mechanism handles extreme feature pollution.
  • Computational Overhead: Calculating fourth-order statistics on massive graphs is memory-intensive, requiring the authors to use sub-graph sampling during training. Future work could explore more memory-efficient approximations of $\mathcal{Q}$-Attention.

Summary updated

BibTeX
@inproceedings{wang2022robust,
  author = {Yaohua Wang and Fangyi Zhang and Ming Lin and Senzhang Wang and Xiuyu Sun and Rong Jin},
  title = {{Robust Graph Structure Learning via Multiple Statistical Tests}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=3vqebaOEHp},
}
Figure