This NeurIPS 2020 paper by Baek et al. tackles a fundamental limitation of modern graph learning: how do we handle a world that never stops changing? In Knowledge Graphs (KGs) and biological networks, new entities emerge constantly, often with only a handful of connections. This paper introduces a framework to not just "place" these new nodes into an existing graph, but to predict how they interact with each other.
The Challenge of Emerging Entities
Most Graph Neural Networks (GNNs) operate under a "closed-world" assumption: they assume all nodes are known during training. However, real-world graphs like Freebase or drug-interaction databases are highly dynamic. For instance, around 200 new entities emerge on Freebase every day.
There are two main hurdles when dealing with these emerging entities:
- The Transductive Gap: Existing "inductive" models can predict how a new node relates to an old node (seen-to-unseen). However, they struggle to predict how two new nodes relate to each other (unseen-to-unseen) because neither has a stable, pre-trained embedding.
- The Few-Shot/Long-Tail Problem: New nodes typically have very few edges. Standard embedding techniques require many associative triplets to produce a reliable representation, making them suboptimal for the "long-tail" of a graph where most nodes have low connectivity.
Graph Extrapolation Networks (GEN)
To address these challenges, the authors propose Graph Extrapolation Networks (GEN), a meta-learning framework designed for "Out-of-Graph" link prediction. Unlike previous methods, GEN performs transductive inference to predict relationships among newly emerged entities, even when they have only a few initial connections.
The core innovation is using a meta-learning strategy to "simulate" the appearance of new nodes during training:
- Meta-Learning Framework: During training, the model randomly hides a set of "seen" nodes and treats them as "unseen." It then learns to reconstruct the missing links using only a few "support" edges. This allows the model to generalize to truly unseen nodes at test time.
- Inductive vs. Transductive Layers:
- The Inductive GEN layer generates an initial embedding for an unseen node based on its connections to the existing (seen) graph.
- The Transductive GEN layer then updates these embeddings by considering the relationships between the unseen nodes themselves. This allows knowledge to propagate across the "new" part of the graph.
- Stochastic Embedding: Because few-shot predictions are inherently uncertain, GEN uses a stochastic layer (similar to a Variational Autoencoder) to model the distribution of possible embeddings, helping the model account for uncertainty rather than producing a single deterministic vector.
- Transfer Learning for Long-Tails: The authors use a curriculum-based approach, starting training with "many-shot" examples and gradually moving to "few-shot" cases to help the model transfer knowledge from dense parts of the graph to sparse ones.
Datasets and Evaluation
The authors evaluated GEN on two distinct domains:
- Knowledge Graph Completion: They used modified versions of FB15k-237, NELL-995, and WN18RR, restructured to ensure that test-time triplets contained at least one entity not seen during training.
- Drug-Drug Interaction (DDI): They used DeepDDI and BIOSNAP-sub. Here, the goal is to predict how a newly developed drug might interact with both existing drugs and other experimental drugs.
Key Results and Insights
GEN significantly outperformed traditional baselines (like TransE and R-GCN) and existing inductive models (like LAN).
- Superior Accuracy: On FB15k-237 (3-shot), GEN achieved a Mean Reciprocal Rank (MRR) of 0.382, nearly tripling the performance of standard GNNs that were retrained from scratch with the new nodes (0.140).
- Unseen-to-Unseen Success: The "Transductive" version of GEN (T-GEN) consistently beat the "Inductive" version (I-GEN), proving that modeling the relationships between new nodes is critical for overall graph health.
- Efficiency: GEN can embed new nodes in a fraction of the time it takes to retrain a model, making it viable for real-time systems where graphs evolve hourly.
Why it works: By treating parts of the current graph as "future" data, GEN meta-trains a model to become an expert at extrapolation. Furthermore, recognizing that new nodes often arrive in clusters (and their mutual relationships matter) bridges the transductive gap that isolates new nodes in standard inductive models.
Limitations and Future Work
- Feature Dependency: The model relies heavily on the quality of initial relation and entity features. If the graph lacks rich initial attributes, extrapolation becomes much harder.
- Computational Overhead: Meta-learning is notoriously expensive during the training phase. Scaling this to graphs with billions of nodes remains a challenge.
- Beyond Few-Shot: While the model excels at 1- to 5-shot scenarios, as more data becomes available for a node, a standard retraining approach might eventually overtake the meta-learned extrapolation. Integrating these two regimes is a promising future direction.
Summary updated