NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph Mixup with Soft Alignments

Hongyi Ling, Zhimeng Jiang, Meng Liu, Shuiwang Ji, Na Zou

Introduction

Data augmentation techniques like "Mixup" have revolutionized training in computer vision by creating convex combinations of image pairs and their labels. This encourages models to learn smoother decision boundaries and improves robustness. However, extending Mixup to graph-structured data is non-trivial. Unlike images with fixed pixel grids, graphs are irregular: they vary in size, and there is no canonical ordering of nodes. Simply interpolating adjacency matrices of two graphs with random node indexing often results in structural noise that destroys meaningful local patterns, or motifs, which are crucial for Graph Neural Network (GNN) performance.

The S-Mixup Framework

To overcome these challenges, the S-Mixup approach introduces a Soft Alignment mechanism. The goal is to align the nodes of two input graphs, $\mathcal{G}_1$ and $\mathcal{G}_2$, before performing interpolation.

The S-Mixup pipeline: input graphs are aligned using a soft assignment matrix before convex interpolation.

The process consists of several key stages:

  1. Soft Alignment: A Graph Matching Network (GMN) computes a soft assignment matrix $M$. Each entry $M_{i,j}$ quantifies the structural and feature-based similarity between node $i$ in $\mathcal{G}_1$ and node $j$ in $\mathcal{G}_2$.
  2. Graph Transformation: Using the matrix $M$, the second graph $\mathcal{G}_2$ is mapped into the node space of $\mathcal{G}_1$. This results in an aligned graph $\mathcal{G}'_2$ that shares the same number of nodes and indexing scheme as $\mathcal{G}_1$.
  3. Convex Interpolation: With the graphs aligned, standard Mixup is applied to the adjacency matrices, node features, and labels.
  4. Training: The alignment network is trained using a triplet loss to ensure that graphs with similar semantic meanings are aligned effectively.

Structural Preservation and Motifs

A primary advantage of S-Mixup is its ability to preserve structural motifs during the mixing process. Traditional random mixup often breaks local structures because it aligns nodes arbitrarily. In contrast, S-Mixup's soft alignment ensures that similar sub-structures (e.g., cycles or cliques) are mixed together.

Comparison of original graphs, random mixup, and S-Mixup showing motif preservation.

As illustrated in the comparison, random mixup tends to produce a "noisy" graph where the original motifs are unrecognizable. S-Mixup maintains the integrity of these motifs, providing more meaningful training samples for the GNN. This is theoretically supported by analysis showing that S-Mixup minimizes the Graph Edit Distance (GED) between the augmented sample and the original pair.

Experimental Results

The authors evaluated S-Mixup on a variety of benchmarks, including TUDatasets (social and chemical graphs) and the OGB molecular dataset.

  • Performance Gains: S-Mixup consistently improves classification accuracy across multiple GNN architectures like GCN and GIN. For instance, on REDDIT-BINARY, S-Mixup improved GCN accuracy from 84.85% to 89.30%.
  • Regularization and Stability: Learning curves indicate that S-Mixup provides superior regularization, leading to lower test loss and preventing overfitting more effectively than competing methods.
  • Robustness to Label Noise: S-Mixup demonstrates significant resilience in scenarios with noisy labels. In experiments where 60% of labels were corrupted, S-Mixup maintained higher performance levels compared to vanilla training.

Conclusion

S-Mixup brings the benefits of image-style data augmentation to the graph domain by solving the node correspondence problem through soft alignment. By preserving structural motifs, it creates high-quality augmented data that enhances GNN generalization and robustness. While the $O(n^2)$ complexity of the assignment matrix may limit its application to extremely large graphs, it remains a powerful tool for standard graph classification tasks.

Summary updated

BibTeX
@inproceedings{ling2023graph,
  author = {Hongyi Ling and Zhimeng Jiang and Meng Liu and Shuiwang Ji and Na Zou},
  title = {{Graph Mixup with Soft Alignments}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=zS6QCVwPUs},
}
Figure