EPIC: Graph Augmentation with Edit Path Interpolation via Learnable Cost

Jaeseung Heo, Seungbeom Lee, Sungsoo Ahn, Dongwoo Kim

Abstract

Data augmentation plays a critical role in improving model performance across various domains, but it becomes challenging with graph data due to their complex and irregular structure. To address this issue, we propose EPIC (Edit Path Interpolation via learnable Cost), a novel interpolation-based method for augmenting graph datasets. To interpolate between two graphs lying in an irregular domain, EPIC leverages the concept of graph edit distance, constructing an edit path that represents the transformation process between two graphs via edit operations. Moreover, our method introduces a context-sensitive cost model that accounts for the importance of specific edit operations formulated through a learning framework. This allows for a more nuanced transformation process, where the edit distance is not merely count-based but reflects meaningful graph attributes. With randomly sampled graphs from the edit path, we enrich the training set to enhance the generalization capability of classification models. Experimental evaluations across several benchmark datasets demonstrate that our approach outperforms existing augmentation techniques in many tasks.

Introduction

In deep learning, data augmentation is a standard technique to improve model generalization. While methods like flipping images or adding noise to audio are straightforward for Euclidean data, graphs present a unique challenge. Their irregular structure, where data does not live on a fixed grid, makes simple interpolation techniques like Mixup—which averages two data points—difficult to apply directly to graph structures.

Existing graph augmentation methods often rely on heuristics like randomly dropping nodes or edges, which can inadvertently destroy critical structural patterns. More advanced interpolation methods that map graphs into continuous vector spaces often lose the discrete, topological essence of the graph. EPIC addresses this by interpolating between two graphs while staying within the graph domain, respecting the semantic importance of structural components.

Methodology

The core of EPIC is the Graph Edit Distance (GED), defined as the minimum cost to transform one graph into another through a sequence of edits: insertions, deletions, or substitutions.

The EPIC framework pipeline, from cost calculation to triplet loss training.

Learnable Cost Model

Unlike traditional GED, which treats all edits as equal, EPIC recognizes that certain structural changes are more semantically significant than others. For instance, in molecular graphs, changing a functional group is more impactful than adding a carbon atom. EPIC uses a Graph Neural Network (GNN) to generate node embeddings and a Multi-Layer Perceptron (MLP) to learn a context-sensitive cost for every edit operation.

Differentiable Optimization and Training

Calculating GED is NP-complete. To make the framework trainable via backpropagation, EPIC employs the Sinkhorn-Knopp algorithm to provide a differentiable approximation of the optimal edit assignment during training. The cost model is optimized using a triplet loss, which ensures that graphs with the same label have a lower edit distance than those with different labels.

Edit Path Interpolation

EPIC constructs an "edit path"—a sequence of intermediate graphs representing the step-by-step transformation from a source graph to a target graph. Augmented training data is generated by randomly sampling graphs from this path.

Example of a graph edit path and label interpolation.

A key innovation is the Label Assignment strategy. Instead of simple linear weights, labels for intermediate graphs are weighted based on the cumulative learned cost of the edits performed to reach that state. If a few "expensive" (semantically heavy) changes have been made, the label shifts more aggressively toward the target graph, ensuring the augmented samples reflect the underlying structural distribution.

Experimental Results

The authors evaluated EPIC across 11 benchmarks, including bioinformatics (TUDataset) and molecular property prediction (MoleculeNet).

  • State-of-the-Art Performance: EPIC consistently outperformed baselines like DropEdge, G-Mixup, and SubMix. On the TUDataset, it achieved the highest average rank (1.1 with a GIN backbone) across all tasks.
  • Molecular Accuracy: On the BACE dataset (MoleculeNet), EPIC improved ROC-AUC from 77.01% (vanilla) to 81.00%.
  • Robustness to Noise: In experiments where 60% of the training labels were intentionally corrupted, EPIC maintained significantly higher accuracy than other methods, suggesting that the edit-path interpolation helps the model learn the true underlying structural distribution despite the noise.

Conclusion

EPIC introduces a semantic dimension to graph interpolation by learning the costs of structural edits. By moving beyond purely structural counts to context-aware transformations, EPIC generates high-quality augmented data that preserves meaningful features. While computational complexity remains a challenge for very large graphs, EPIC represents a significant step forward in robust graph data augmentation. Future work may explore explicit learnable edge-cost models and scaling strategies for massive networks.

Summary updated

BibTeX
@inproceedings{heo2024epic,
  author = {Jaeseung Heo and Seungbeom Lee and Sungsoo Ahn and Dongwoo Kim},
  title = {{EPIC: Graph Augmentation with Edit Path Interpolation via Learnable Cost}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=34pg0ZhXmE},
}
Figure