Boosting Multitask Learning on Graphs through Higher-Order Task Affinities

Dongyue Li, Haotian Ju, Aneesh Sharma, Hongyang R. Zhang · OpenReview

Abstract

Predicting node labels on a given graph is a widely studied problem with many applications, including community detection and molecular graph prediction. This paper considers predicting multiple node labeling functions on graphs simultaneously and revisits this problem from a multitask learning (MTL) perspective. For a concrete example, consider overlapping community detection: each community membership is a binary node classification task. Due to complex overlapping patterns, we find that negative transfer is prevalent when we apply naive multitask learning to multiple community detection, as task relationships are highly nonlinear across different node labeling. To address the challenge, we develop an algorithm to cluster tasks into groups based on a higher-order task affinity measure. We then fit a multitask model on each task group, resulting in a boosting procedure on top of the baseline model. We estimate the higher-order task affinity measure between two tasks as the prediction loss of one task in the presence of another task and a random subset of other tasks. Then, we use spectral clustering on the affinity score matrix to identify task grouping. We design several speedup techniques to compute the higher-order affinity scores efficiently and show that they can predict negative transfers more accurately than pairwise task affinities. We validate our procedure using various community detection and molecular graph prediction data sets, showing favorable results compared with existing methods. Lastly, we provide a theoretical analysis to show that under a planted block model of tasks on graphs, our affinity scores can provably separate tasks into groups.

The Challenge of Negative Transfer in Graph MTL

In multitask learning (MTL), the ideal outcome is positive transfer, where knowledge shared across related tasks improves the performance of a single joint model. This is particularly relevant for graph-based problems like overlapping community detection or molecular property prediction. However, in practice, researchers often encounter negative transfer: a phenomenon where training tasks together degrades performance compared to training them individually.

Negative transfer occurs when tasks interfere with each other due to structural differences in the graph or data heterogeneity. While previous approaches have attempted to mitigate this by analyzing pairwise task relationships (how Task A affects Task B), these methods often fail to capture the complex, non-linear interactions that arise when multiple tasks are trained simultaneously. This paper addresses these limitations by introducing a method to calculate "higher-order task affinities."

Methodology: A Four-Step Boosting Procedure

The authors propose a "boosting" procedure designed to identify and group synergistic tasks. This approach moves beyond simple pairwise analysis to consider how tasks behave within larger groups.

Overview of the four-step boosting procedure for task grouping.

As illustrated in the pipeline above, the method consists of four primary stages:

  1. Sampling Task Subsets: To avoid the computational explosion of training every possible task combination, the algorithm samples random subsets of tasks of a fixed size (e.g., 5 or 10 tasks).
  2. Computing MTL Performances: A Graph Neural Network (GNN) is trained for each sampled subset, and the prediction loss for every task within that subset is recorded.
  3. Measuring Task Affinity Scores: The "higher-order task affinity score" is calculated by averaging the performance of a task whenever it appears alongside another specific task across different sampled groups. This creates a $T \times T$ affinity matrix.
  4. Grouping Tasks by Clustering: Spectral clustering is applied to the affinity matrix to partition tasks into distinct groups. Finally, a dedicated MTL model is trained for each identified group.

This sampling-based approach is highly efficient, requiring only $O(T)$ model trainings compared to the $O(T^2)$ required by exhaustive pairwise searches.

Experimental Evaluation

The researchers evaluated the boosting procedure across two distinct domains:

  • Overlapping Community Detection: Utilizing social network datasets from SNAP (Amazon, YouTube, DBLP, and LiveJournal), the study focused on the 100 largest communities in each network.
  • Molecular Graph Prediction: The method was tested on multi-task regression and classification benchmarks, including QM9, Alchemy, and OGB-molpcba.

Key Results

  • Performance Gains: The proposed method outperformed naive MTL by an average of 3.98% and surpassed other state-of-the-art task-grouping baselines by 2.18% in community detection. In molecular prediction, it achieved a 4.6% relative improvement over prior methods.
  • Efficiency: The sampling method achieved a high F1-score (>80%) in predicting negative transfer while being approximately 3.7x faster than traditional pairwise gradient-based methods.
  • Robustness: Ablation studies confirmed that the method remains stable across various subset sizes and sample counts, making it viable for real-world applications with limited hyperparameter tuning budgets.

Key Insights and Discussion

The Non-Monotone Nature of Task Synergy

A critical discovery of this research is that task relationships are often non-monotone. While adding one "helpful" task to a group might improve performance, adding a second helpful task can sometimes cause performance to dip. This complexity underscores why higher-order affinity measures are superior to simple pairwise analysis.

Structural Roots of Interference

By visualizing Personalized PageRank (PPR) vectors, the authors demonstrated that tasks exhibiting high negative transfer often have vastly different "diffusion patterns" on the graph. This suggests that GNNs struggle to learn a single representation that satisfies tasks that perceive the graph's underlying structure in fundamentally different ways.

Model Capacity vs. Data Heterogeneity

The study found that simply increasing the size of the GNN (adding more parameters) does not resolve negative transfer. The interference is a result of data heterogeneity and structural conflict, not a lack of model capacity.

Conclusion and Future Directions

This paper provides a robust framework for mitigating negative transfer in graph-based MTL through higher-order task grouping. While the current method requires the number of clusters ($b$) to be set as a hyperparameter, future work may integrate techniques like "correlation clustering" to determine the optimal number of groups automatically. Additionally, exploring how this method performs on heterogeneous task types (e.g., combining node classification with link prediction) remains a promising area for further study.

Summary updated

BibTeX
@inproceedings{li2023boosting,
  author = {Dongyue Li and Haotian Ju and Aneesh Sharma and Hongyang R. Zhang},
  title = {{Boosting Multitask Learning on Graphs through Higher-Order Task Affinities}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  url = {https://openreview.net/forum?id=rabcRC15UI},
}
Figure