Graph Neural Networks (GNNs) have become the standard for learning on graph data, yet they often struggle when labeled data is scarce. While self-supervised learning (SSL) offers a solution by creating "pre-text" tasks from unlabeled data, integrating these as auxiliary tasks is challenging. Poorly aligned auxiliary tasks can lead to "negative transfer," where primary task performance actually decreases. This paper introduces SELAR (SELf-supervised Auxiliary LeaRning), a meta-learning framework designed to automatically select and weight auxiliary tasks to boost GNN performance while avoiding negative transfer.
Methods
The SELAR framework consists of three main components designed to optimize the synergy between primary and auxiliary learning objectives:
- Meta-Learning for Task Balancing: Instead of manual tuning, SELAR uses a bi-level optimization approach to learn a weighting function. It automatically balances primary and auxiliary losses by evaluating task contributions on a validation set, suppressing harmful tasks and promoting beneficial ones.
- Meta-Path Prediction: This novel self-supervised task is specifically designed for heterogeneous graphs. The model predicts whether nodes are connected by specific semantic "meta-paths" (e.g., User → Movie → Actor → Movie → User), forcing the GNN to capture deep relational context.
- Hint Network (HintNet): To make complex auxiliary tasks more solvable, HintNet acts as a teacher that provides "hints" based on global graph information, guiding the primary learner through challenging pretext objectives.
Experimental Results
The researchers evaluated SELAR across four public benchmark datasets, including link prediction on music (Last-FM) and book (Book-Crossing) knowledge graphs, and node classification on citation (ACM) and movie (IMDB) networks. The framework was tested across five different GNN architectures: GCN, GAT, GIN, SGC, and GTN.
Key Performance Gains
SELAR consistently outperformed vanilla training and standard multi-task learning (MTL) baselines. For example, on the Last-FM dataset, SELAR improved the performance of the GIN model from 0.8199 to 0.8361. In node classification on IMDB, the combination of SELAR and HintNet boosted the F1-score of a GAT model by 4.46% over the vanilla version.
Insights on Task Weighting
Analysis of the learned weighting function reveals that it behaves similarly to Focal Loss. It automatically learns to ignore "easy" samples the model has already mastered, focusing instead on "hard" samples that provide the most useful gradients for the primary task. This mechanism is central to preventing negative transfer, as the meta-learning loop successfully identifies and suppresses conflicting task gradients.
Conclusion
SELAR demonstrates that meta-learning can effectively automate the integration of self-supervised auxiliary tasks for GNNs. By using meta-paths as semantic anchors and employing a Hint Network for complex tasks, the framework achieves significant generalization gains. While bi-level optimization increases computational cost due to second-order gradients, the resulting performance stability and performance boosts make it a valuable approach for learning on complex heterogeneous graphs.
Summary updated