Abstract
Graph Neural Networks (GNNs) are powerful tools for graph classification but are prone to overfitting, particularly when training data is limited. We introduce GraphCrop, a node-centric data augmentation strategy that generates "noisy" training examples by cropping contiguous subgraphs. Unlike random node or edge dropping, GraphCrop preserves essential local connectivity by using diffusion-based metrics to identify and retain strongly connected neighborhoods around a random seed node. This approach forces GNNs to learn robust, global structural patterns rather than memorizing specific shortcut nodes. Evaluated on ten diverse benchmarks, GraphCrop consistently enhances the performance of various GNN architectures, demonstrating superior regularization and data efficiency.
Introduction
Graph classification is a fundamental task in domains ranging from bioinformatics to social network analysis. While Graph Neural Networks (GNNs) have achieved state-of-the-art results, their high representational power often leads to overfitting on small datasets. In computer vision, data augmentation techniques like cropping and flipping are standard for improving generalization. However, the irregular, non-grid nature of graphs makes "cropping" challenging. Simple random deletions (e.g., DropEdge or UniNode) can destroy the connectivity and structural properties that define a graph's class. GraphCrop addresses this by ensuring that the augmented "crops" remain contiguous and representative of the original graph's label.
Methods
GraphCrop is a parameter-free augmentation technique that can be integrated into the data loading pipeline. The process involves three main stages:
- Seed Selection: A node $v$ is chosen uniformly at random from the graph.
- Connectivity Evaluation: The algorithm calculates the connectivity strength between the seed node and all other nodes using a diffusion matrix (e.g., Personalized PageRank or heat kernels). This captures the global topology better than simple shortest-path distances.
- Cropping: A fraction $\rho$ of the most strongly connected nodes are retained to form a contiguous subgraph.
GraphCrop is computationally efficient, adding virtually zero overhead to the GPU-intensive training process as it can be implemented as a pre-processing step.
Key Insights
The core philosophy of GraphCrop is that sub-structures are often label-invariant. For instance, in a movie collaboration network, the presence of a specific cluster of actors might be enough to identify the genre as "Action," even if some supporting cast members are removed.
By maintaining contiguity, GraphCrop preserves the message-passing pathways essential for GNNs. This forces the model to develop a global understanding of the graph's structure, making it robust to the missing-data noise common in real-world applications.
Results
GraphCrop was tested on ten standard benchmarks, including chemical (NCI1, PROTEINS) and social (IMDB, REDDIT) datasets. Key findings include:
- Performance Gains: GraphCrop improved GIN accuracy by up to 1.7% on chemical datasets and showed even larger gains on social networks.
- Comparison to Baselines: It significantly outperformed random dropping methods like DropEdge and UniNode, achieving 79.5% accuracy on NCI109 versus UniNode's 78.3%.
- Data Efficiency: The method acts as a powerful regularizer, providing the most significant performance boosts when training data is scarce (e.g., using only 60% of labels).
- Latent Space Consistency: t-SNE visualizations confirmed that the latent representations of GraphCrop-augmented subgraphs cluster tightly with their original parent graphs, validating the label-invariance assumption.
Conclusion
GraphCrop offers a simple, computationally efficient way to regularize GNNs. By leveraging the inherent label-invariance of subgraphs and preserving local connectivity through diffusion-based cropping, it enables models to generalize better from limited data. Future work may explore adaptive cropping strategies to identify the most informative sub-structures for specific tasks.
Summary updated