Skip to main content
QUICK REVIEW

[Paper Review] Graph Structure and Feature Extrapolation for Out-of-Distribution Generalization

Xiner Li, Shurui Gui|arXiv (Cornell University)|Jun 13, 2023
Machine Learning and Data ClassificationComputer Science3 citations
TL;DR

This paper proposes a novel data augmentation framework for out-of-distribution (OOD) generalization in graph machine learning by performing non-Euclidean linear extrapolation in both graph structure and node feature spaces. By splicing entire graphs and extracting label-aware subgraphs for structural extrapolation, and by extrapolating on selected non-causal features via variance-based selection, the method generates causally valid OOD samples, achieving substantial and consistent performance gains across multiple OOD graph benchmarks, including up to 32.54% AUC improvement on GOODCBAS-color.

ABSTRACT

Out-of-distribution (OOD) generalization deals with the prevalent learning scenario where test distribution shifts from training distribution. With rising application demands and inherent complexity, graph OOD problems call for specialized solutions. While data-centric methods exhibit performance enhancements on many generic machine learning tasks, there is a notable absence of data augmentation methods tailored for graph OOD generalization. In this work, we propose to achieve graph OOD generalization with the novel design of non-Euclidean-space linear extrapolation. The proposed augmentation strategy extrapolates both structure and feature spaces to generate OOD graph data. Our design tailors OOD samples for specific shifts without corrupting underlying causal mechanisms. Theoretical analysis and empirical results evidence the effectiveness of our method in solving target shifts, showing substantial and constant improvements across various graph OOD tasks.

Motivation & Objective

  • Address the lack of data augmentation methods tailored for out-of-distribution (OOD) generalization in graph machine learning.
  • Overcome the limitation of interpolation-based data augmentation, which cannot reach OOD regions and fails to generalize under distribution shifts.
  • Develop a data-centric approach that generates causally valid, OOD-simulating graph samples through structural and feature space extrapolation.
  • Inject environment-specific information into training to guide models toward generalization under known shift types, such as size, base, or scaffold shifts.
  • Demonstrate that extrapolation—unlike interpolation—can effectively expand the training distribution to include OOD regions, improving robustness.

Proposed method

  • Propose G-Splice, a graph splicing technique that combines entire graphs to generate larger, structurally diverse OOD samples without adding nodes, enabling global structural extrapolation.
  • Introduce subgraph extraction via label-environment-aware pair learning to generate smaller graphs, enabling extrapolation to OOD sizes below training distribution.
  • Design FeatX, a feature-space extrapolation method that selects non-causal features using variance score vectors and applies linear extrapolation to generate OOD feature distributions.
  • Use invariance masks and variance scores to identify non-causal features, ensuring that extrapolated features do not corrupt underlying causal mechanisms.
  • Combine structural and feature extrapolation into a unified framework that can be used alongside existing invariant risk minimization (IRM) or regularization techniques.
  • Theoretically justify that the generated samples are causally valid and tailored for specific shift types, such as size or scaffold shifts.

Experimental results

Research questions

  • RQ1Can linear extrapolation in graph structure and feature spaces generate OOD samples that are both causally valid and effective for OOD generalization?
  • RQ2How does structural extrapolation via graph splicing and subgraph extraction improve generalization under size-based distribution shifts?
  • RQ3To what extent does feature extrapolation on non-causal features enhance OOD performance compared to interpolation-based augmentation?
  • RQ4Can environment-aware design of extrapolation procedures improve model robustness under known shift types such as base or scaffold shifts?
  • RQ5Does the combination of structural and feature extrapolation yield consistent improvements across diverse graph OOD benchmarks?

Key findings

  • G-Splice and FeatX consistently outperform baseline methods across all OOD benchmarks, with the highest gains observed in feature shift settings, such as 32.54% AUC on GOODCBAS-color.
  • Extrapolation on selected non-causal features (FeatX) yields significantly better performance than interpolation, with a 17.10% AUC on GOODWebKB-university under OOD perturbation, compared to 15.59% with interpolation.
  • The ablation study confirms that feature selection using variance scores improves performance by 10–15% on real-world datasets like GOODWebKB, while the effect is less pronounced on synthetic datasets with manually added colors.
  • The combination of ${G}_{\text{inv}}+f\cdot{G}_{\text{env}}$ achieves the best performance on base/scaffold shifts, demonstrating the effectiveness of injecting new environments through extrapolation.
  • Loss and metric curves show that models trained with G-Splice and FeatX converge faster and achieve lower loss with higher metric scores than baselines, indicating improved learning dynamics.
  • Theoretical analysis confirms that the extrapolated samples lie outside the training distribution $P^{\text{train}}(\bm{X})$ for variant features, transforming OOD regions into ID for generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.