Source-linked AI summary

A Meta-Learning Approach for Graph Representation Learning in Multi-Task Settings

Davide Buffelli, Fabio Vandin

arXiv:2012.06755v1cs.LGcs.AI

TL;DR

The paper tackles the difficulty of producing graph node embeddings that transfer across multiple tasks without sacrificing single-task performance. It introduces SAME, a meta-learning strategy that learns parameters quickly adaptable to individual tasks rather than solving all tasks concurrently. The resulting embeddings achieve comparable or higher performance than classical models across single-task and multi-task settings.

  • Problem

    Task-specific end-to-end GNN training produces specialized node embeddings, leaving embeddings that support multiple tasks at comparable single-task performance as an open problem.

    Source: §1 · p. 2
  • Method

    SAME learns a parameter setting that adapts quickly to each task individually through a few gradient-descent steps instead of solving multiple tasks concurrently.

    Source: §1 · p. 2, §4 · p. 3, §4.3 · p. 4
  • Results

    SAME embeddings achieve comparable or higher performance than classical models across single-task and multi-task settings, with at least 10% higher performance in an unseen-task test and less than 3% worst-case average drop across tasks.

    Source: §5 · pp. 5–7
  • Takeaways & Limitations

    The method produces higher-quality node embeddings for graph representation learning in both multi-task and single-task settings and is intended to apply across model and task domains.

    Source: §1 · p. 2, §6 · p. 7

    The presentation limits the formal derivation to one gradient-descent step for clarity, although other optimization strategies could be used.

    Source: §4 · p. 3

Abstract

from arXiv · show

Graph Neural Networks (GNNs) are a framework for graph representation learning, where a model learns to generate low dimensional node embeddings that encapsulate structural and feature-related information. GNNs are usually trained in an end-to-end fashion, leading to highly specialized node embeddings. However, generating node embeddings that can be used to perform multiple tasks (with performance comparable to single-task models) is an open problem. We propose a novel meta-learning strategy capable of producing multi-task node embeddings. Our method avoids the difficulties arising when learning to perform multiple tasks concurrently by, instead, learning to quickly (i.e. with a few steps of gradient descent) adapt to multiple tasks singularly. We show that the embeddings produced by our method can be used to perform multiple tasks with comparable or higher performance than classically trained models. Our method is model-agnostic and task-agnostic, thus applicable to a wide variety of multi-task domains.

1 Introduction

The paper addresses the low transferability of task-specific node embeddings, which creates a need for shared parameters in resource-constrained multi-task settings. It proposes a meta-learning strategy that produces embeddings usable across graph tasks, with comparable or higher performance than single-task models.

  • Low transferability of node embeddings requires task-specific encoders and decoders, motivating parameter sharing for resource-constrained multi-task applications.Source: §1 · p. 2
  • Classical multi-head training can lose performance relative to single-task models because it optimizes concurrent task performance.Source: §1 · p. 2
  • The proposed meta-learning strategy instead learns parameters that adapt quickly to each task individually after a few gradient steps.Source: §1 · p. 2
  • SAME produces a single set of node embeddings that supports the three common graph tasks with comparable or higher performance than single-task models, even with a linear classifier.Source: §1 · p. 2

2 Related Work

Related work spans graph neural networks, multi-task learning, and meta-learning. Prior graph MTL studies use multi-head architectures or GNNs to support task interaction, but the paper identifies no single model for the three most common graph tasks.

  • Graph neural network research includes foundational architectures such as ChebNet [7], GCN [20], GAT, and GIN.Source: §2 · p. 2
  • Graph MTL work has focused on multi-head architectures for applications, while no single model had been proposed for graph classification, node classification, and link prediction together.Source: §2 · p. 2
  • Other studies use GNNs to facilitate communication between tasks or estimate the test error of an MTL model.Source: §2 · p. 2
  • Meta-learning research includes few-shot learning, GNN-based few-shot methods, and applications involving adversarial attacks and active learning.Source: §2 · p. 2

3 Preliminaries

The preliminaries describe message-passing GNNs, whose final node embeddings support end-to-end task prediction, and MAML, which learns parameters that adapt rapidly through nested optimization. ANIL reduces adaptation to later layers by exploiting feature reuse.

  • A message-passing GNN aggregates neighboring node representations and updates each node through a permutation-invariant aggregation function and a neural-network update.Source: §3.1 · pp. 2–3
  • After L message-passing layers, the final node embeddings are used for the task and the network is trained end-to-end.Source: §3.1 · p. 3
  • MAML uses nested optimization: an inner loop adapts parameters on an episode’s support set, while an outer loop updates the initialization for rapid adaptation.Source: §3.2 · p. 3
  • ANIL exploits feature reuse by adapting mainly the last layers while keeping early layers nearly unchanged, reducing computation without sacrificing performance.Source: §3.2 · p. 3

4 Our Method

SAME uses meta-learning episodes that adapt to graph tasks one at a time, aiming to learn reusable node representations rather than parameters that solve all tasks concurrently. Its iSAME and eSAME variants differ in whether the backbone is adapted, while support-target episode design promotes single-task generalization.

Meta-Learning Strategy

  • SAME learns parameters that can quickly adapt to multiple graph tasks separately, avoiding the need to solve those tasks concurrently.The outer loop updates parameters for fast single-task adaptation across tasks.Source: §4 · p. 3, §4.3 · p. 4

Motivation and Scope

  • The approach is motivated by task interference in multi-task learning and targets node embeddings that generalize across episodes and tasks.The paper presents this as a model-agnostic and task-agnostic strategy for multi-task representation learning.Source: §4 · p. 3

Episode Design

  • Support and target sets mimic training and validation sets, so the meta-objective optimizes validation performance after task-specific adaptation.This episode construction is intended to encourage generalization.Source: §4 · p. 3, §4.1 · p. 4

Model Architecture Design

  • The method uses an encoder-decoder with a three-layer GCN backbone and three task-specific heads for graph classification, node classification, and link prediction.The decoder heads are not used concurrently during adaptation.Source: §4.2 · p. 4, §4.1 · p. 4

Meta-Training Design

  • iSAME adapts all model parameters, whereas eSAME adapts only task-specific heads, explicitly separating reusable backbone features from task adaptation.iSAME relies on MAML's implicit feature reuse; eSAME makes this reuse strategy explicit.Source: Figure 2 · p. 4, §4.3 · p. 5

5 Experiments

Experiments evaluate whether iSAME and eSAME produce reusable node embeddings across single-task, multi-task, and unseen-task settings. Across these tests, the embeddings generally match or exceed classical models, with smaller multi-task performance drops and at least 10% higher unseen-task performance.

Experimental setup

  • Experiments use TUDataset datasets, 10-fold cross-validation, and the same architecture across training strategies.Accuracy is used for node classification and graph classification unless otherwise stated.Source: §5 · p. 5

Q1: Single-task quality

  • Up to 12% higher performance is achieved by linear classifiers on proposed embeddings than by classical end-to-end models in the single-task setting.The linear classifier is never outperformed by more than 2%.Source: §5 · p. 5

Q2: Multi-task quality

  • Linear classifiers on proposed embeddings are better than end-to-end models in 50% of multi-task cases and never lag by more than 3%.The fine-tuning baseline almost always underperforms both single-task models and the proposed methods.Source: §5 · pp. 5–6, Table 2 · p. 6

Q3: Unseen-task transfer

  • At least 10% higher performance is achieved on unseen tasks with embeddings from iSAME and eSAME than with classically trained embeddings.This trend is reported on ENZYMES and observed analogously on other datasets.Source: §5 · p. 6, Figure 3 · p. 6

Q4: Multi-task robustness

  • The proposed embeddings have a worst-case average performance drop of less than 3%, versus 29% for end-to-end multi-task models.The comparison uses the average per-task drop relative to single-task baselines, Δm.Source: §5 · p. 7, Table 3 · p. 7

iSAME and eSAME

  • iSAME and eSAME achieve comparable performance, suggesting that implicit adaptation can preserve the representation benefits while reducing computational burden.The comparison motivates ANIL-like strategies as a way to lower computation without losing desired properties.Source: §5 · p. 7

6 Conclusions

The paper proposes meta-learning for multi-task graph representation learning by optimizing parameters that quickly adapt to individual tasks. Applied to GNNs, the method produces higher-quality node embeddings in both multi-task and single-task settings.

Conclusion

  • The method optimizes parameters for fast, few-step adaptation to high single-task performance across multiple tasks.This avoids directly optimizing parameters to solve multiple tasks concurrently.Source: §6 · p. 7
  • Applied to graph representation learning, the method yields higher-quality node embeddings in both multi-task and single-task settings.The authors identify connections among meta-learning, representation learning, and multi-task learning as directions for future research.Source: §6 · p. 7

A Comparison with Traditional Training Apporaches

Classical multi-task training optimizes a shared model to perform all tasks concurrently, while traditional meta-learning adapts on support data and evaluates concurrent task performance on target data. SAME instead targets fast single-task adaptation.

SAME

  • SAME differs by adapting to tasks singularly and optimizing parameters for fast single-task generalization rather than concurrent multi-task solution performance.This design is intended to bypass the difficulty of learning parameters that directly solve multiple tasks.Source: A Comparison with Traditional Training… · p. 10

Classical training

Traditional meta-learning

  • Traditional meta-learning uses support sets to adapt parameters and target sets to optimize concurrent performance across all tasks.Its inner- and outer-loop losses remain the same as in classical multi-task training.Source: A Comparison with Traditional Training… · p. 10

B Episode Design Algorithm

Episode construction divides graph batches by task and creates support-target episodes in which adaptation and evaluation occur one task at a time. The outer loop then optimizes representations for fast single-task generalization.

Episode creation

  • Episodes divide a batch of graphs into graph-classification, node-classification, and link-prediction subsets.Loss-balancing weights are also supplied when constructing each multi-task episode.Source: B Episode Design Algorithm · pp. 10–11

Episode design

  • Each episode performs only one task per graph, allowing inner-loop adaptation and testing on task-specific support and target sets.The outer loop updates parameters toward representations that enable fast adaptation.Source: B Episode Design Algorithm · p. 10
  • Support and target sets mirror training and validation splits, making the meta-objective equivalent to optimizing generalization.This design treats each task-specific episode like single-task supervised learning with validation.Source: B Episode Design Algorithm · p. 11

C Model Architecture

The model uses a shared three-layer GCN encoder with residual connections and three task-specific decoder heads for node classification, graph classification, and link prediction.

C Model Architecture

D Additional Experimental Details

The experiments use shared graph datasets, standardized train-validation-test splits, common hyperparameter searches, and distinct training procedures for baselines and meta-learning models.

D Additional Experimental Details

E Full Results for Q3

The full Q3 results evaluate unseen-task performance from multi-task embeddings and report higher performance for meta-learning methods than for classical end-to-end training.

E Full Results for Q3

  • Table 4 reports neural-network performance on a task not included in the multi-task model’s training tasks.Its notation “x,y ->z” identifies training tasks x and y and evaluation task z.Source: E Full Results for Q3 · p. 12, Table 4 · p. 13
  • Up to 35% higher performance is achieved by meta-learning embeddings on tasks unseen during multi-task training.The evaluation uses accuracy for node and graph classification and ROC AUC for link prediction.Source: E Full Results for Q3 · pp. 12–13, Table 4 · p. 13
  • The results indicate that meta-learning procedures extract more informative node embeddings than classical end-to-end training.Source: E Full Results for Q3 · p. 13
Loading 2012.06755v1…