Efficient Task Grouping Through Sample-Wise Optimisation Landscape Analysis

Anshul Thakur, Yichen Huang, Soheila Molaei, Yujiang Wang, David A. Clifton · DOI

TL;DR

This paper introduces a novel, computationally efficient method for grouping tasks in multi-task learning (MTL) and meta-learning. By analyzing the "optimization landscape" of individual data samples, the authors can infer task similarities without costly model training, leading to faster and more effective task grouping.

What Problem Does This Paper Address?

Multi-task learning (MTL) and gradient-based meta-learning aim to train a single model for multiple tasks simultaneously, which can improve efficiency and performance, especially with limited data. However, a major challenge is "negative transfer," where combining certain tasks can actually degrade performance on individual tasks. This often happens when the optimization landscapes of tasks conflict. While techniques exist to mitigate negative transfer for pre-defined groups of tasks, the problem of identifying which tasks should be grouped together in the first place remains computationally expensive. Existing methods often require training multiple models or performing extensive evaluations, making them impractical for a large number of tasks. This paper tackles the NP-hard problem of efficiently finding optimal task groupings to avoid negative transfer and maximize the benefits of joint training.

Methods

The core innovation lies in the sample-wise optimization landscape analysis. Instead of training full models to assess task interactions, the authors analyze how individual data samples affect the model's parameters. They hypothesize that a single gradient update on a sample can lead to a "sample-wise local optimum." The key idea is that the density and proximity of these sample-wise local optima across different tasks can reveal how well those tasks can be jointly optimized.

  1. Inferring Task Similarities (SCA Scores): The framework computes "Sample-wise Convergence-based Affinity" (SCA) scores. These scores quantify the average distance between task-specific sample-wise optima. A smaller distance implies higher affinity and better potential for joint training. This is a significant departure from prior work that required training models to estimate these affinities.
  2. Graph-based Clustering: The inferred task affinities are then used to construct a graph where tasks are nodes and affinities are edge weights. This graph is fed into Graph Attention Networks (GATs). GATs are powerful because they can learn node representations that capture not just direct pairwise relationships but also higher-order interactions among tasks and their neighbors.
  3. Task Grouping: The learned node embeddings from the GAT are then clustered (using Gaussian Mixture Models) to form the final task groups. This approach effectively transforms the NP-hard task grouping problem into a more tractable graph clustering problem.

Datasets

The authors evaluated their framework on a diverse set of datasets across several categories:

  • Face Attribute Prediction: CelebA dataset.
  • Molecular Property Prediction: QM9 dataset (predicting 11 quantum chemical properties).
  • Patient Care Tasks: MIMIC-III dataset (predicting in-hospital mortality, decompensation, and identifying phenotypes).
  • Diagnosis using ECG Signals: MIMIC-III waveform dataset.
  • Image Classification: CIFAR-10, SVHN, STL-10, Colorectal Histology, and Malaria datasets.

Key Insights and Ideas

  • Optimization Landscape as a Proxy for Similarity: The paper demonstrates that the geometry of the optimization landscape, specifically the proximity of sample-wise local optima, can serve as a powerful and computationally cheap indicator of task compatibility for joint training.
  • Eliminating Costly Model Training for Affinity Estimation: The most significant insight is that task affinities can be estimated without performing full model training, drastically reducing computational overhead compared to prior methods like TAG and HOA.
  • GATs for Higher-Order Task Interactions: Using GATs allows the framework to move beyond simple pairwise task similarities and capture more complex, higher-order relationships between tasks, leading to more robust groupings.
  • Sample Size Efficiency: The SCA scores are shown to be robust even with a small number of samples (e.g., 100 per task), further enhancing computational efficiency.

Key Results

  • Computational Efficiency: The proposed framework achieved a five-fold speed enhancement compared to previous state-of-the-art task grouping methods. The time to identify task groupings was significantly reduced.
  • Comparable Performance: Despite the speedup, the framework consistently demonstrated comparable or even superior performance to existing methods (TAG, HOA, Random Grouping) across various datasets and tasks, measured by metrics like Mean Absolute Error (MAE) and Area Under the ROC curve (AUROC).
  • Multi-tasking Improvements: In multi-task learning scenarios, the proposed framework showed significant relative improvements (e.g., 45% and 23.1% compared to MTL and Nash MTL baselines on CelebA).
  • Meta-learning Applicability: The framework was successfully extended to meta-learning setups, showing comparable or better performance than baselines while requiring less computation.

Limitations and Future Work

  • Semantic Similarity vs. Optimization Ease: The authors acknowledge that SCA-based task affinities might not always directly correlate with semantic similarity between tasks. They indicate that these affinities primarily reflect the ease of joint optimization, which can be influenced by model architecture and complexity.
  • Memory Complexity for Large Models: Computing pairwise distances among sample-wise optima can be memory-intensive for very large models. However, they show that only a few samples are needed to capture these trends.
  • Future Work:
    • Investigating how task affinities might change with different model architectures.
  • Developing methods to select "coresets" or "inducing points" to compute SCA scores more efficiently and capture a holistic view of task relationships.

Summary updated

BibTeX
@article{thakur2025efficient,
  author = {Anshul Thakur and Yichen Huang and Soheila Molaei and Yujiang Wang and David A. Clifton},
  title = {{Efficient Task Grouping Through Sample-Wise Optimisation Landscape Analysis}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell. 2025},
  year = {2025},
  doi = {10.1109/tpami.2025.3588685},
}
Figure