Introduction
Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data. However, most GNNs are typically trained end-to-end for a single specific objective, resulting in "highly specialized" embeddings. While effective for their primary task, these representations often fail to generalize to other downstream tasks. For example, embeddings optimized for node classification (NC) show significant performance degradation when applied to link prediction (LP) or graph classification (GC).
The Challenge of Multi-Task Learning in Graphs
Traditional Multi-Task Learning (MTL) attempts to mitigate this by training a single model on multiple tasks simultaneously. However, this often results in "negative interference," where conflicting gradients from different tasks lead to a model that performs worse than its single-task counterparts. Figure 1 illustrates the performance drop observed when transferring specialized embeddings across tasks on the ENZYMES dataset.
Methodology: The SAME Framework
The authors introduce SAME (Single-Task Adaptation for Multi-Task Embeddings), a meta-learning framework designed to produce versatile node embeddings. Inspired by Model-Agnostic Meta-Learning (MAML), SAME seeks a parameter configuration that can be easily adapted to any single task with minimal gradient updates, rather than trying to solve all tasks at once.
Architecture and Training
SAME uses an encoder-decoder architecture where a GCN backbone generates embeddings and task-specific heads decode them. The training process involves two nested loops:
- Inner Loop (Adaptation): The model adapts to a specific task using a support set.
- Outer Loop (Meta-Update): The initial parameters are updated to minimize meta-loss across all tasks in an episode, evaluated on a target set.
The authors introduce two variants: iSAME (implicit), where all parameters are adapted, and eSAME (explicit), where only the task-specific heads are adapted in the inner loop. eSAME forces the GCN backbone to learn features that are inherently reusable across all tasks.
Experimental Evaluation
The framework was evaluated using four datasets from the TUDataset library: ENZYMES, PROTEINS, DHFR, and COX2. These datasets provide labels for node classification, graph classification, and link prediction.
Key Results
- Superior Generalization: SAME models consistently outperformed classical MTL models. While classical models saw performance drops of up to 29% compared to single-task baselines, SAME models typically remained within 3% of the baseline.
- High-Quality Embeddings: A simple linear classifier applied to SAME embeddings matched the performance of complex, end-to-end trained GNNs, indicating high linear separability.
- Information Extraction: SAME successfully extracts information that classical models miss. In zero-shot scenarios (tasks not seen during training), SAME embeddings yielded at least 10% higher performance than classical MTL counterparts.
Conclusion
By framing multi-task graph learning as a meta-learning problem, SAME avoids the gradient "tug-of-war" typical of traditional MTL. The episodic training acts as a powerful regularizer, producing robust embeddings that are highly effective for a wide range of downstream graph tasks.
Summary updated