AGMixup: Adaptive Graph Mixup for Semi-supervised Node Classification

Weigang Lu, Ziyu Guan, Wei Zhao, Yaming Yang, Yibing Zhan, Yiheng Lu, Dapeng Tao · DOI

Abstract

Data augmentation via Mixup has proven highly effective in computer vision, yet its application to graph data remains challenging due to the interconnected nature of nodes. We present AGMixup, a novel framework that transitions from traditional node-centric interpolation to a subgraph-centric approach. By adaptively calculating mixing ratios based on contextual similarity and model uncertainty, AGMixup preserves local topological structures and generates high-quality synthetic samples. Empirical evaluations across seven benchmarks demonstrate that AGMixup consistently improves GNN generalization, particularly in label-scarce scenarios.

Introduction

In the image domain, Mixup is a standard technique where pairs of training samples are linearly interpolated to encourage the model to behave linearly in-between. However, applying Mixup to Graph Neural Networks (GNNs) is non-trivial. Graphs are not collections of isolated points; they are defined by their connectivity. Existing node-centric methods often blend features of two nodes in isolation, leading to two primary issues:

  1. Topological Damage: Blending individual nodes can disrupt the graph's natural structure, often causing "over-smoothing" where nodes become indistinguishable.
  2. Static Mixing Ratios: Using a randomly sampled mixing ratio ($\lambda$) ignores the semantic distance between nodes and the model's current state of uncertainty, potentially creating unrealistic "Frankenstein" data.

Methodology

AGMixup addresses these limitations through two core innovations: subgraph-centric interpolation and an adaptive mixing mechanism.

Subgraph-Centric Mixup

Instead of treating nodes as isolated entities, AGMixup extracts an $r$-hop ego-graph for each node. When mixing two subgraphs, a "virtual node" is created with interpolated features. Crucially, this virtual node inherits the edges of both original central nodes, thereby preserving the local structural context—the graph equivalent of image pixels.

Comparison of AGMixup with existing graph mixup strategies.

Adaptive $\lambda$ Mechanism

Rather than relying on a static, random $\lambda$, AGMixup dynamically adjusts the mixing ratio using two modules:

  • Contextual Similarity-aware Initialization: The ratio is initialized based on the similarity of subgraph embeddings. Highly similar subgraphs allow for aggressive mixing ($\lambda \approx 0.5$), while dissimilar ones are kept more distinct.
  • Uncertainty-aware Adjustment: The model uses prediction entropy to bias the synthetic sample toward the more "uncertain" node, forcing the model to learn from difficult or underrepresented regions.

Experimental Results

The authors evaluated AGMixup on seven benchmarks, ranging from citation networks (Cora, Pubmed) to large-scale OGB datasets (ogbn-products).

Performance and Generalization

AGMixup achieved an average accuracy improvement of 2.7% to 3.0% across various GNN backbones (GCN, GAT, JKNet, GraphSAGE). On the Cora dataset, it reached 83.61% accuracy, significantly outperforming the 80.51% GCN baseline. The method also showed a reduced generalization gap, indicating better resistance to overfitting.

Meaningful Interpolations

A critical metric is the "miss rate"—the frequency with which a model's prediction for a mixed sample matches neither parent label. AGMixup drastically reduces these misses, suggesting that its synthetic samples are semantically meaningful interpolations.

Prediction error (Miss %) on the Cora dataset across different $\lambda$ values.

Scalability and Label Scarcity

The framework successfully scales to the ogbn-products dataset (2.4M nodes) using a shrink ratio ($\epsilon$) to control computational overhead. Furthermore, AGMixup excels in label-scarce environments (e.g., 1–5 labels per class), where it consistently outperforms other augmentation techniques like DropEdge.

Conclusion

AGMixup represents a significant step forward in graph data augmentation by treating subgraphs as the fundamental unit of interpolation. By combining structural preservation with adaptive mixing ratios, it provides a robust solution for improving GNN performance in semi-supervised settings. Future work will explore extending this adaptive subgraph approach to link prediction and graph-level classification tasks.

Summary updated

BibTeX
@inproceedings{lu2025agmixup,
  author = {Weigang Lu and Ziyu Guan and Wei Zhao and Yaming Yang and Yibing Zhan and Yiheng Lu and Dapeng Tao},
  title = {{AGMixup: Adaptive Graph Mixup for Semi-supervised Node Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i18.34107},
}
Figure