NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Auto-Lambda: Disentangling Dynamic Task Relationships

Shikun Liu, Stephen James, Andrew Davison, Edward Johns

Abstract

Understanding the structure of multiple related tasks allows for multi-task learning to improve the generalisation ability of one or all of them. However, it usually requires training each pairwise combination of tasks together in order to capture task relationships, at an extremely high computational cost. In this work, we learn task relationships via an automated weighting framework, named Auto-Lambda. Unlike previous methods where task relationships are assumed to be fixed, i.e., task should either be trained together or not trained together, Auto-Lambda explores continuous, dynamic task relationships via task-specific weightings, and can optimise any choice of combination of tasks through the formulation of a meta-loss; where the validation loss automatically influences task weightings throughout training. We apply the proposed framework to both multi-task and auxiliary learning problems in computer vision and robotics, and show that AutoLambda achieves state-of-the-art performance, even when compared to optimisation strategies designed specifically for each problem and data domain. Finally, we observe that Auto-Lambda can discover interesting learning behaviors, leading to new insights in multi-task learning.

Introduction

Multi-Task Learning (MTL) aims to train a single model to perform several related tasks simultaneously, potentially improving both efficiency and accuracy. However, a major challenge in MTL is negative transfer, where gradients from conflicting tasks interfere, resulting in performance worse than training tasks individually.

Traditional solutions involve "task grouping"—searching for compatible task combinations. However, the search space grows exponentially with the number of tasks, making exhaustive search infeasible. Existing automated weighting methods often rely on heuristics, such as task uncertainty, which do not explicitly optimize for the final performance of primary tasks. Auto-$\lambda$ addresses this by automatically discovering dynamic, asymmetric task relationships to maximize performance through a bi-level optimization strategy.

The Auto-$\lambda$ Framework

Auto-$\lambda$ is a gradient-based meta-learning framework that treats task weights ($\lambda$) as learnable parameters. The framework operates via two nested loops:

  1. Inner Loop: Updates network weights to minimize the weighted training loss.
  2. Outer Loop: Updates task weights ($\lambda$) to minimize the validation loss of the primary tasks.
Overview of the Auto-Lambda framework showing how task weights evolve dynamically during training.

To maintain efficiency, the authors employ a finite difference approximation to avoid second-order gradient computation and a single-stage training approach. By "swapping" training data within a single iteration, the model learns weights and network parameters simultaneously. Furthermore, stochastic task sampling allows the framework to scale to a large number of tasks without excessive memory overhead.

Experimental Evaluation

The framework was evaluated across several diverse domains:

  • Dense Prediction: NYUv2 (segmentation, depth, normals) and CityScapes (segmentation, disparity, part segmentation).
  • Multi-domain Classification: A 20-task environment derived from CIFAR-100.
  • Robotic Manipulation: 10 complex tasks in RLBench (e.g., "pick and lift," "stack wine") using RGB and point-cloud inputs.
  • Robustness Check: A "Noise Prediction" task was included to verify if the model could ignore irrelevant auxiliary information.

Results and Insights

Auto-$\lambda$ consistently achieves state-of-the-art performance across benchmarks. On the NYUv2 dataset, it improved relative multi-task performance ($\Delta_{MTL}$) by 8-10% over single-task baselines, outperforming heuristics like Uncertainty Weighting and DWA.

Performance comparison on NYUv2 and CityScapes datasets, demonstrating Auto-Lambda's superiority over existing weighting heuristics.

Key insights from the experiments include:

  • Asymmetric and Dynamic Relationships: Task relationships are often one-way (e.g., segmentation helps part segmentation more than vice versa) and change over time. Auto-$\lambda$ captures these "weighting cross-overs" where task importance shifts during different training phases.
  • Architectural Consistency: Learned relationships remain consistent across different architectures (e.g., standard Split vs. MTAN), suggesting they are fundamental to the data domain.
  • Automatic Noise Filtering: The framework successfully drives the weight of useless tasks (like noise prediction) toward zero.
  • Robotics Success: In RLBench, Auto-$\lambda$ achieved a 30-40% higher success rate on multi-stage tasks compared to single-task learning.

Conclusion

Auto-$\lambda$ provides a robust, automated method for managing task relationships in MTL. While it introduces a ~3x computational overhead per epoch and requires tuning a meta-learning rate, its ability to prevent negative transfer and discover optimal task weightings represents a significant advancement. Future work includes applying this framework to open-ended learning systems where tasks are added continually.

Summary updated

BibTeX
@article{liu2022auto,
  author = {Shikun Liu and Stephen James and Andrew Davison and Edward Johns},
  title = {{Auto-Lambda: Disentangling Dynamic Task Relationships}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=KKeCMim5VN},
}
Figure