TL;DR
The Core Knowledge Learning (CKL) framework tackles the fragmented challenges of graph classification—such as domain shift and data scarcity—by isolating the task-relevant "core subgraph" from noisy, irrelevant graph structures. By focusing only on this essential sub-structure, CKL achieves state-of-the-art performance in both unsupervised graph domain adaptation and few-shot learning tasks without requiring complex, global domain alignment.
What Problem Does This Paper Address?
Graph classification is vital for applications ranging from social network analysis to bioinformatics, such as predicting whether a molecule is toxic or mutagenic. However, Graph Neural Networks (GNNs) typically struggle when deployed in real-world scenarios due to three major bottlenecks:
- Task Inflexibility (Label Aspect): Models are often hardcoded for specific tasks, making it difficult to transfer knowledge to new prediction targets.
- Domain Shift: A model trained on one dataset (source domain) often performs poorly on another (target domain) due to variations in graph sizes, structures, or edge densities.
- Data Scarcity (Few-Shot Learning): Acquiring labeled graph data (like real-world bioassays) is expensive, leading to small-sample scenarios where models easily overfit.
Existing methods usually treat these problems in isolation. The authors of this paper argue for a holistic approach, driven by a key insight: a large portion of a graph's structure is often irrelevant noise for a specific prediction task. The challenge lies in cleanly separating this task-irrelevant noise from the "core subgraph" that actually drives the GNN's predictions.
Methods
The authors introduce the Core Knowledge Learning (CKL) framework, which shifts the focus from whole-graph representation learning to core-subgraph learning. The pipeline consists of three main phases:
1. Core Subgraph Extraction
CKL uses a GNN encoder to generate node and edge embeddings. To make the non-differentiable process of selecting nodes and edges friendly to gradient descent, the framework applies a Gumbel-softmax relaxation. The extraction module is optimized by minimizing conditional entropy, effectively maximizing the mutual information between the graph's true labels and the isolated subgraph.
2. Graph Domain Adaptation
Instead of performing computationally heavy adversarial domain alignment across entire graphs, CKL leverages the extracted subgraphs. It uses a Weisfeiler-Lehman (WL) subtree kernel to measure the structural similarity between the core subgraphs of the source and target domains. Target graphs are then directly assigned labels based on their closest source domain counterparts, bypassing complex domain-invariant feature alignment.
3. Few-Shot Learning
For data-scarce downstream tasks, CKL implements a bi-level optimization strategy (similar to meta-learning frameworks like MAML). The inner optimization loop fine-tunes how the extracted subgraph correlates with specific labels, while the outer loop optimizes the global model parameters across multiple tasks to ensure rapid adaptation to unseen properties.
Datasets
The framework was validated across two distinct experimental setups:
- Domain Adaptation Benchmarks: 9 graph classification datasets from the TUDataset repository, including Mutagenicity, Tox21_AhR, FRANKENSTEIN, PROTEINS (PROTEINS, DD), COX2 (COX2, COX2_MD), and BZR (BZR, BZR_MD). These were artificially partitioned by edge density to simulate severe domain shifts.
- Few-Shot Learning Benchmarks: Four standard molecular property prediction datasets: Tox21, SIDER, MUV, and ToxCast.
Key Insights and Ideas
- Subgraphs as Domain Invariants: While full graphs can vary wildly across datasets due to noise or collection methods, the underlying functional subgraphs (e.g., the active chemical motifs responsible for toxicity) remain stable.
- Alignment via Simplification: Stripping away task-irrelevant graph structures allows simple structural kernels (like the WL kernel) to outperform complex adversarial neural network architectures at domain transfer.
- Noise Reduction Aids Few-Shot Generalization: Meta-learning on full graphs often fails because the model memorizes noisy, task-irrelevant features. By forcing the meta-learner to operate strictly on the core subgraph, CKL generalizes to new tasks with significantly fewer samples.
Key Results
Graph Domain Adaptation
CKL consistently outperformed state-of-the-art graph domain adaptation methods like DEAL and CoCo. On the PROTEINS and DD domain shift benchmarks, CKL achieved an average classification accuracy of 71.2%, outperforming CoCo (70.5%) and traditional GCNs (61.7%).
Few-Shot Molecular Property Prediction
In small-sample scenarios, CKL demonstrated substantial gains in ROC-AUC scores. Notably, on the highly challenging 1-shot ToxCast task, CKL achieved a 68.1% ROC-AUC, outperforming the strong baseline EGNN, which scored 61.0%. On average across all few-shot tasks, CKL improved performance by 1.62% over the best-performing baseline.
Architectural Flexibility
The authors demonstrated that CKL is highly modular. The underlying GNN backbone can be swapped out (e.g., replacing GIN with GCN or GraphSAGE) or alternative graph kernels can be used, with the framework consistently maintaining robust performance improvements.
Limitations and Future Work
Not discussed in the paper.
Summary updated