Graph Neural Networks (GNNs) have become a cornerstone for analyzing structured data, ranging from the syntax trees of source code to the social propagation patterns of news articles. To enhance their performance and generalization, researchers frequently employ data augmentation techniques like Manifold-Mixup. This method creates synthetic training examples by linearly interpolating the embeddings and labels of different graphs. However, a critical bottleneck exists: before Mixup can be applied, a graph must be "pooled"—compressed from individual node features into a single graph-level vector.
This paper investigates how the choice of graph pooling strategy impacts the effectiveness of Manifold-Mixup. By evaluating various pooling methods across natural language processing (NLP) and programming language (PL) tasks, the authors demonstrate that "hybrid" pooling—combining multiple readout functions—significantly outperforms standard single-operator methods in both accuracy and robustness.
Methodology
The core contribution of this work is the systematic evaluation of 11 pooling strategies, including two standard methods and nine novel hybrid configurations. The researchers utilized three fundamental readout functions:
- Sum-pooling: Aggregates node features by simple summation.
- Max-pooling: Captures the most salient features by taking the maximum value across nodes.
- Attention-pooling: Employs a neural network to assign weights to nodes based on their relative importance before aggregation.
These base functions were combined into hybrid operators using three mathematical operations: Matrix Addition ($M_{sum}$), Hadamard (element-wise) Product ($M_{mul}$), and Concatenation followed by a linear layer ($M_{concat}$).
The study identified Type 1 hybrid pooling—which combines Attention-pooling and Max-pooling via matrix addition ($M_{sum}(P_{att}, P_{max})$)—as the most effective strategy. This combination leverages both the "global" context provided by attention and the "salient feature" focus of max-pooling, creating a superior latent space for Manifold-Mixup.
Experimental Setup
The proposed methods were tested on four primary datasets across two domains:
- Natural Language Processing (NLP): Gossipcop and Politifact from the UPFD benchmark, focused on fake news detection via user network analysis.
- Programming Language (PL): JAVA250 and Python800 from Project CodeNet, focused on classifying source code by the problem it solves.
The experiments were conducted across six different GNN architectures, including GCN, GAT, and GIN, to ensure the generalizability of the findings.
Results and Discussion
The empirical results underscore the superiority of hybrid pooling. The Type 1 hybrid operator outperformed the state-of-the-art Graph Multiset Transformer (GMT) pooling by up to 4.38% on NLP tasks and 2.36% on PL tasks.
Beyond raw accuracy, the most significant improvement was observed in model robustness. When test graphs were subjected to random edge dropping (simulating real-world noise), models using hybrid pooling maintained their performance far better than those using standard pooling. Specifically, the Type 6 hybrid (concatenating Attention and Sum pooling) improved robustness by a remarkable 23.23% over GMT in fake news detection tasks.
Furthermore, the hybrid models showed resilience to hyperparameter variations, maintaining stable performance across different Mixup interpolation ratios ($\alpha$), with optimal results typically found between 0.05 and 0.10.
Conclusion
This research highlights that the effectiveness of Manifold-Mixup is highly sensitive to the underlying graph pooling architecture. Hybrid pooling strategies provide a richer latent representation that makes linear interpolation more meaningful, leading to substantial gains in both classification accuracy and environmental robustness. While this study focused on graph-level classification in NLP and PL, future work could explore the application of hybrid pooling to node-level tasks or other domains such as chemical and biological graph data.
Summary updated