GeoMix: Towards Geometry-Aware Data Augmentation

Wentao Zhao, Qitian Wu, Chenxiao Yang, Junchi Yan · DOI · OpenReview

Abstract: Mixup has shown considerable success in mitigating the challenges posed by limited labeled data in image classification. By synthesizing samples through the interpolation of features and labels, Mixup effectively addresses the issue of data scarcity. However, it has rarely been explored in graph learning tasks due to the irregularity and connectivity of graph data. Specifically, in node classification tasks, Mixup presents a challenge in creating connections for synthetic data. In this paper, we propose Geometric Mixup (GeoMix), a simple and interpretable Mixup approach leveraging in-place graph editing. It effectively utilizes geometry information to interpolate features and labels with those from the nearby neighborhood, generating synthetic nodes and establishing connections for them. We conduct theoretical analysis to elucidate the rationale behind employing geometry information for node Mixup, emphasizing the significance of locality enhancement—a critical aspect of our method's design. Extensive experiments demonstrate that our lightweight Geometric Mixup achieves state-of-the-art results on a wide variety of standard datasets with limited labeled data. Furthermore, it significantly improves the generalization capability of underlying GNNs across various challenging out-of-distribution generalization tasks.

Introduction

Data augmentation is a cornerstone of modern machine learning, with techniques like Mixup proving highly effective for image classification. Mixup synthesizes new training samples by linearly interpolating pairs of features and their corresponding labels. However, extending this success to Graph Neural Networks (GNNs) is non-trivial. Unlike images, graph data is defined by irregular connectivity. Creating a "mixed" node raises a fundamental question: how should it be connected to the rest of the graph?

Existing graph Mixup methods often resort to complex edge predictors or perform mixing only in hidden layers, sacrificing the simplicity and interpretability of the original approach. This paper introduces Geometric Mixup (GeoMix), a lightweight and interpretable framework that leverages the graph's inherent geometry to perform in-place data augmentation.

Methodology: Geometric Mixup

GeoMix addresses the connectivity challenge by interpolating nodes with their local neighbors rather than random pairs. This "in-place" editing ensures that synthetic nodes inherit the connectivity of the original graph structure.

The GeoMix framework: Input graph undergoes pseudo-label prediction followed by iterative geometric mixup to produce mixed features and labels for downstream GNN training.

The framework consists of two primary stages:

  1. Pseudo-Label Prediction: Since labels are often scarce in semi-supervised settings, a GNN module first predicts labels for unlabeled nodes. These pseudo-labels serve as the targets for the subsequent mixing process.
  2. Geometric Mixup: Features and labels are blended across the graph's topology. The authors propose three variants:
  3. GeoMix-I (Iterative): Smooths features by blending a node with the weighted average of its neighbors.
  4. GeoMix-II (Residual): Blends a node’s original features with its neighbors' current features, providing "locality enhancement" critical for heterophilic graphs.
  5. GeoMix-III (Adaptive): Employs an attention mechanism to allow mixing beyond immediate neighbors, adapting to noisy structures.

Experiments and Results

GeoMix was evaluated on a diverse set of benchmarks, including citation networks (Cora, CiteSeer, PubMed), heterophilic graphs (Squirrel, Chameleon), and out-of-distribution (OOD) tasks.

Performance and Generalization

GeoMix consistently achieves state-of-the-art results. A key strength is its robustness in OOD scenarios. For instance, on the Twitch-RU social network dataset, GeoMix-II improved accuracy by over 17% compared to standard GCN training. The method also excels in specialized domains like High Energy Physics (HEP) pileup mitigation.

Accuracy results on the PU30 to PU10 out-of-distribution task, demonstrating the performance gains of GeoMix (rightmost bars) over various baselines.

Key Insights

  • Structural Preservation: Mixing based on geometry preserves the structural signal of the graph, whereas random mixing introduces excessive noise into the GNN's receptive field.
  • Theoretical Foundation: The authors demonstrate that GeoMix variants are mathematically equivalent to gradient descent steps on specific regularization functions, linking augmentation to graph signal processing.
  • Efficiency: GeoMix operates in linear time relative to the number of nodes and edges, making it significantly more scalable than methods requiring auxiliary edge-prediction networks.

Discussion and Conclusion

GeoMix provides a simple yet powerful way to adapt Mixup to the graph domain. By grounding the interpolation process in the graph's geometry, it enhances locality and improves the generalization of underlying GNNs. While the method relies on the quality of initial pseudo-labels, the regularization benefits typically outweigh the risks of label noise. Future work may explore extending GeoMix to graph-level classification and link prediction tasks.

Code available at: https://github.com/WtaoZhao/geomix

Summary updated

BibTeX
@misc{zhao2024geomix,
  author = {Wentao Zhao and Qitian Wu and Chenxiao Yang and Junchi Yan},
  title = {{GeoMix: Towards Geometry-Aware Data Augmentation}},
  year = {2024},
  eprint = {2407.10681},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.10681},
}
Figure