Learning to Propagate for Graph Meta-Learning

Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, Chengqi Zhang

Overview

The Gated Propagation Network (GPN) improves few-shot learning by explicitly leveraging the hierarchical relationships between classes (e.g., a "Husky" is a type of "Dog"). By propagating information across a class graph using attention and gating mechanisms, GPN creates more robust class representations, significantly outperforming standard meta-learning methods that treat classes as independent entities.

What Problem Does This Paper Address?

Few-shot learning (FSL) is the "holy grail" of making machine learning more human-like: training a model to recognize a new category using only one or a handful of examples. Most current meta-learning approaches try to solve this by learning a shared "initialization" or a "metric space" across many different tasks.

However, these methods often ignore a valuable, "free" source of information: the structured relationships between classes. In the real world, we know that a "radio telescope" is more similar to an "astronomical telescope" than it is to a "guillotine." While humans use this taxonomic knowledge to make sense of new objects, standard FSL models usually start from scratch for every new task. The authors address this gap by asking: How can we use a graph of class relationships to help a model learn faster and more accurately?

Graph-based class relationships and propagation steps

Methods

The authors introduce the Gated Propagation Network (GPN), which builds upon the popular Prototypical Network architecture. In a standard Prototypical Network, a class is represented by a "prototype"—the mean vector of the few available training samples. GPN enhances this by allowing prototypes to "talk" to each other across a graph.

Multi-head propagation and gating mechanism

Key components include:

  • Attention-Based Propagation: For any given class, GPN looks at its neighbors in the graph (parents and children). It uses a multi-head attention mechanism to decide which neighbors are most relevant and aggregates their prototypes into a "message."
  • Gating Mechanism: To prevent the model from becoming "confused" by irrelevant neighbors, a gate decides how much of the neighbor's message to accept versus keeping the original prototype. This prevents "over-smoothing," where all class representations start looking identical.
  • Life-long Memory Pool: GPN maintains a memory of prototypes it has seen in previous training tasks. This allows the model to relate a current few-shot class to a broader context of previously learned categories, even if those categories aren't in the current task.
  • Maximum Spanning Tree (MST): To keep the computation efficient, the model doesn't propagate across the entire massive graph. Instead, it builds an MST to find the most informative "highways" for message passing.
  • Curriculum Learning: The model is trained using a strategy that starts with easier, "many-shot" tasks and gradually transitions to difficult "few-shot" tasks.

Datasets

The researchers evaluated GPN on two new benchmarks derived from tieredImageNet, specifically designed to test how graph distance affects learning:

  1. tieredImageNet-Close: Test classes are "close" to training classes in the WordNet hierarchy (1–4 hops).
  2. tieredImageNet-Far: Test classes are "far" from training classes (5–10 hops).

These datasets are crucial because they simulate different real-world scenarios—from fine-grained classification of similar species to broad classification of unrelated objects.

Key Insights and Ideas

  • Graph Knowledge is "Cheap" but Powerful: Hierarchies like WordNet already exist. GPN shows that incorporating this external knowledge provides a much stronger prior than trying to learn everything from pixels alone.
  • Reducing Intra-Class Variance: One of the biggest hurdles in FSL is that a single "bad" example can ruin a class prototype. By pulling in information from related classes, GPN "stabilizes" the prototype, making it less sensitive to outliers in the tiny training set.
  • The Importance of Selective Listening: The gating mechanism is the "secret sauce." Without it, the graph structure might force a "Cat" prototype to look too much like a "Dog" prototype just because they share a "Mammal" parent. The gate ensures that propagation only happens when it actually helps distinguish the classes.

Key Results

GPN consistently outperformed state-of-the-art baselines like Prototypical Networks and Graph Neural Networks (GNNs) across various settings:

  • Accuracy Boost: On the tieredImageNet-Close 5-way 1-shot task, GPN achieved 50.54% accuracy, a significant jump over the standard Prototypical Network's 42.87%.
  • Generalization: GPN showed strong performance even on the "Far" dataset, proving that the propagation mechanism is robust even when the test categories are conceptually distant from the training data.
  • Qualitative Success: Visualizations demonstrate that GPN successfully clusters prototypes of the same class from different tasks into much tighter, more consistent regions of the feature space compared to non-propagated models.

Limitations and Future Work

While GPN is powerful, it relies on the existence of a high-quality category graph. If the graph is noisy or incorrect, the model's performance could suffer. Additionally, while the MST helps, the computational overhead of maintaining a memory pool and performing multi-step propagation is higher than simpler metric-learning approaches.

The authors suggest that this "learning to propagate" framework isn't limited to images; it could potentially be generalized to other domains where structured relationships exist, such as drug discovery (molecular graphs) or recommendation systems.

Summary updated

BibTeX
@inproceedings{liu2019learning,
  author = {Lu Liu and Tianyi Zhou and Guodong Long and Jing Jiang and Chengqi Zhang},
  title = {{Learning to Propagate for Graph Meta-Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure