Data Augmentation Based on Null Model for Graph Classification

Qi Xuan, Zeyu Wang, Jinhuan Wang, Yalu Shan

TL;DR

This paper introduces a novel approach to graph classification by combining null models with data augmentation. By generating synthetic graphs that preserve key structural features of the original data, they significantly improve classification performance across various datasets and models.

What Problem Does This Paper Address?

Graph classification, a crucial task in graph data mining, often suffers from limited datasets and model overfitting. While data augmentation techniques exist, they can lack interpretability and sometimes disrupt essential graph structures. The authors aim to address this by leveraging "null models" – statistical tools used in network science to identify non-trivial features by comparing real networks to randomized counterparts. They hypothesize that these null models can be adapted for data augmentation, generating realistic synthetic graphs that enhance classification without losing critical structural information.

Methods

The core contribution is a novel data augmentation framework for graph classification that integrates null models. The authors propose two categories of augmentation methods:

  • Standard Null Model-Based Augmentation: These methods (0k, 1k, 2k) are based on rewiring edges in a graph while preserving specific structural properties like average degree (0k), degree distribution (1k), or joint degree distribution (2k). A Leaf Node Augmentation (LNA) method is also introduced, focusing on rewiring edges connected to leaf nodes.
  • Approximate Null Model-Based Augmentation (ADA): These methods (ADA-C, ADA-BC, ADA-CC, ADA-EC) are designed to be more flexible by approximating certain graph attributes (clustering coefficient, betweenness centrality, closeness centrality, eigenvector centrality). This approach aims to reduce the constraints of exact feature preservation, potentially allowing for more diverse augmentations.

The generated augmented graphs are then used to retrain the classifier, aiming for improved accuracy. A data filtering step is also employed to select the most effective augmented examples.

Datasets

The proposed methods were evaluated on five publicly available benchmark datasets:

  • BZR: Ligands for the benzodiazepine receptor.
  • COX2: Cyclooxygenase-2 inhibitors.
  • MUTAG: Nitroaromatic compounds.
  • OHSU: Functional brain networks.
  • ENZYMES: Protein macromolecules.

These datasets represent a mix of biological, chemical, and brain network data, with varying numbers of graphs, classes, nodes, and edges.

Key Insights and Ideas

  • Null models as augmentation tools: The paper demonstrates that null models, traditionally used for hypothesis testing, can be effectively repurposed for data augmentation in graph classification.
  • Preserving non-trivial features: The success of the augmentation hinges on preserving key, non-trivial graph features. The standard null models, which strictly adhere to certain distributions, generally outperform approximate methods.
  • Feature importance matters: The effectiveness of augmentation is linked to the importance of the preserved features for classification. For instance, disrupting specific structures (like benzene rings in MUTAG) can harm performance, even if other features are maintained.
  • Standard null models are superior: The research consistently shows that standard null model-based methods (especially 1k and 2k) yield better classification performance than approximate methods. This suggests that precise preservation of structural properties is more beneficial than approximate adherence.

Key Results

  • Significant performance improvement: All proposed augmentation methods (standard and approximate) consistently improved graph classification accuracy across the five datasets and various classification models (SF, Graph2vec, NetLSD, gl2vec, Diffpool).
  • Standard models lead: The standard null model-based augmentation methods (0k, 1k, 2k, LNA) generally achieved higher accuracy gains than the approximate ADA methods.
  • Best performer: The 2k null model-based augmentation, particularly when combined with the gl2vec-RF classifier on the OHSU dataset, showed a remarkable improvement of 16.4%.
  • High augmentation success rate: The augmentation success rate (percentage of cases where augmentation improved accuracy) was very high, often reaching 100% for the 2k model.
  • Time complexity: Standard null model methods (1k, 2k, LNA) were computationally efficient, taking less than 0.1 seconds per graph, while ADA methods were slower due to repeated feature recalculations.

Limitations and Future Work

  • Approximate method limitations: The approximate ADA methods, while offering flexibility, were found to be less effective than standard null models, possibly due to introducing bias.
  • Dataset-specific feature importance: The paper highlights that the importance of specific graph features can vary across datasets, suggesting a need for tailored augmentation strategies.
  • Future directions: The authors propose exploring more important graph features for augmentation and combining their null model approach with other advanced graph data mining methods for broader applications. They also suggest investigating specialized augmentation strategies for different network structures.

Summary updated

BibTeX
@article{xuan2024data,
  author = {Qi Xuan and Zeyu Wang and Jinhuan Wang and Yalu Shan},
  title = {{Data Augmentation Based on Null Model for Graph Classification}},
  journal = {IEEE Trans. Network Science \& Engineering},
  year = {2024},
  doi = {10.1109/tnse.2023.3332499},
}
Figure