Abstract
Graph pre-training has emerged as a powerful paradigm for learning robust representations, yet the integration of multiple pre-training tasks remains challenging due to task incompatibility. Traditional methods focus on importance weighing, which often fails to mitigate the noise introduced by conflicting tasks. This paper introduces the Weigh And Select (WAS) framework, a novel multi-teacher knowledge distillation approach that decouples task importance from task compatibility. By utilizing a Siamese-style architecture with a Gumbel-Softmax selection mechanism, WAS enables instance-level filtering of incompatible tasks. Empirical evaluations across 16 benchmark datasets demonstrate that WAS consistently outperforms state-of-the-art multi-task integration methods and exhibits superior scalability as the task pool expands.
1. Introduction
The proliferation of self-supervised learning (SSL) tasks in the graph domain—ranging from node masking to edge prediction—has provided numerous avenues for pre-training Graph Neural Networks (GNNs). However, the "No Free Lunch" theorem applies: no single task is universally optimal across all datasets. While multi-task learning aims to aggregate knowledge from various sources, existing approaches primarily rely on scalar importance weighing. This strategy overlooks the fundamental issue of task compatibility; even a low-weighted task can introduce detrimental noise if its objective conflicts with the primary goal for a specific data instance.
2. The WAS Framework
The proposed Weigh And Select (WAS) framework addresses these limitations by treating multi-task integration as a "multi-teacher" distillation problem during the fine-tuning stage. Unlike previous methods that assign global weights to tasks, WAS calculates unique weights and selection masks for every individual node or graph.
2.1 Multi-Teacher Knowledge Distillation
WAS operates by first training several specialized "teacher" models, each focused on a different classical pre-training task (e.g., AttrMask, ContextPred, GraphCL). During the integration phase, a student model is trained to match the integrated distribution of these teachers' outputs.
2.2 Decoupled Siamese Networks
To prevent the selection and weighing processes from collapsing into a single operation, WAS employs a decoupled Siamese-style architecture:
- The Weighter: Learns the relative importance of each teacher's output for a specific instance.
- The Selector: Decides which teachers to "quit" using a Gumbel-Softmax sampling trick to keep the discrete selection process differentiable.
- Decoupling Mechanism: The selector's parameters are updated via momentum updating (following the weighter's parameters at a distance) and passed through an additional MLP projection head. This ensures the selection is informed by importance but remains a distinct decision.
3. Experimental Evaluation
The authors evaluated WAS on a massive suite of 16 public graph datasets, including 8 graph-level molecular property prediction tasks (e.g., BACE, BBBP, HIV) and 8 node-level citation and co-purchase networks (e.g., Cora, Citeseer, ogbn-arxiv).
3.1 Performance and Robustness
WAS achieved the best performance across almost all 16 datasets. In molecular property prediction, it reached an average rank of 1.0 compared to seven baseline teachers and other multi-task methods like AutoSSL and ParetoGNN.
A critical finding is WAS's robustness to task pool expansion. In experiments on the ClinTox and SIDER datasets, as the number of pre-training tasks increased from 1 to 7, WAS showed a consistent upward trend in ROC-AUC. In contrast, competing methods like AGSSL often plateaued or declined as the probability of task conflict increased.
4. Key Insights
- Importance vs. Compatibility: A task might be highly relevant (important) but still conflict with the primary objective or other tasks (incompatible). WAS shows that importance-based selection alone can sometimes perform worse than random selection.
- The "Dynamic Quit" Mechanism: By allowing the model to completely zero out a teacher's influence for a specific instance, WAS avoids the "noise floor" created by simply assigning low weights to incompatible tasks.
- Efficiency: Despite the multi-teacher setup, WAS adds minimal parameter overhead. Teachers can be trained in parallel and their representations are frozen during the distillation phase, ensuring computational efficiency.
5. Conclusion and Future Work
WAS provides a scalable and robust solution for integrating diverse graph pre-training tasks by decoupling the decision of how much a task matters from whether it should be included. While the framework is empirically successful across 12 classical tasks, future work could explore its behavior with even larger task pools or its application during the initial pre-training phase itself. Additionally, further theoretical investigation into why specific task combinations conflict at the graph topology level remains a promising direction.
Summary updated