Independent Component Alignment for Multi-Task Learning

Dmitry Senushkin, Nikolay Patakin, Arseny Kuznetsov, Anton Konushin

Abstract

Training a single neural network to perform multiple tasks simultaneously often leads to optimization instabilities where gradients from different tasks conflict or one task dominates the learning process. This paper introduces Aligned-MTL, a novel optimization framework that utilizes the condition number of the gradient matrix to detect and rectify these instabilities. By leveraging Singular Value Decomposition (SVD) to realign task gradients into an orthogonal and balanced state, Aligned-MTL ensures stable convergence while strictly adhering to user-defined task priorities. Experimental results across computer vision and reinforcement learning benchmarks demonstrate that Aligned-MTL outperforms existing state-of-the-art multi-task optimization methods.

Introduction

In Multi-Task Learning (MTL), the goal is to develop a single model capable of executing diverse tasks—such as a self-driving system that performs object detection, depth estimation, and road sign recognition in parallel. While computationally efficient, MTL is notoriously difficult to optimize due to two primary phenomena:

  1. Conflicting Gradients: When Task A and Task B suggest parameter updates in opposing directions, they cause "negative transfer," where the tasks effectively hinder each other's progress.
  2. Dominating Gradients: Tasks with larger loss scales or steeper gradients can exert a disproportionate pull on the model parameters, causing the optimizer to ignore secondary tasks.

Existing solutions often gravitate toward the Pareto front—a set of solutions where no task can improve without degrading another. However, these "Pareto-seeking" methods frequently lose the ability to respect specific task weightings, potentially leading to models that excel at one task while failing at others. Aligned-MTL addresses these issues by providing a mathematically rigorous way to stabilize optimization while maintaining control over task importance.

Methodology

The Condition Number as a Diagnostic

The core innovation of Aligned-MTL is the use of the condition number of the gradient matrix as a metric for optimization health. In numerical analysis, a high condition number indicates that a system is unstable and highly sensitive to small perturbations. In the context of MTL, the authors demonstrate that a high condition number captures both gradient conflict and magnitude imbalance in a single value.

The Aligned-MTL Algorithm

To restore stability, Aligned-MTL performs the following steps at each training iteration:

  • Singular Value Decomposition (SVD): The matrix of task gradients is decomposed into its principal components.
  • Alignment: The method rescales these components so they are orthogonal (eliminating conflict) and have equal magnitude (eliminating dominance). Specifically, it rescales all singular values to match the smallest singular value, ensuring a perfectly conditioned gradient matrix.
  • Weighted Recombination: These "cleaned" gradients are then recombined using the user's original task weights, ensuring the final update direction respects the intended task hierarchy.

Computational Efficiency: Aligned-MTL-UB

Calculating gradients for every parameter across all tasks is computationally expensive. To make the approach viable for large-scale neural networks, the authors introduced Aligned-MTL-UB (Upper Bound). This variant performs the alignment at the shared representation layer (the bottleneck) rather than across all parameters. This significantly reduces the computational overhead while maintaining the benefits of gradient alignment in encoder-decoder architectures.

Experimental Evaluation

The researchers evaluated Aligned-MTL across three diverse domains to test its versatility:

  1. Cityscapes: Urban scene understanding involving semantic segmentation, instance segmentation, and disparity estimation.
  2. NYUv2: Indoor scene understanding featuring semantic segmentation, depth estimation, and surface normal estimation.
  3. MT10 (MetaWorld): A reinforcement learning benchmark where a robotic agent must master 10 distinct manipulation tasks, such as opening windows and pressing buttons.

Key Results

  • Scene Understanding: On the NYUv2 dataset, Aligned-MTL achieved a -8.40% $\Delta m$ (a metric where more negative values indicate better performance relative to single-task baselines). This outperformed major competitors, including CAGrad (-4.18%) and Nash-MTL (-7.56%).
  • Scale Robustness: In the Cityscapes benchmark, where task losses are often imbalanced, Aligned-MTL remained stable and effective, whereas other methods suffered performance degradation due to gradient dominance.
  • Reinforcement Learning: On the MT10 benchmark, Aligned-MTL reached a 97% success rate, significantly surpassing the previous state-of-the-art Nash-MTL (91%) and the standard SAC baseline (49%).

Discussion and Insights

Aligned-MTL provides a unified perspective on MTL optimization by showing that "healthy" training occurs when task gradients are orthogonal and equal in length. Unlike previous methods that look at cosine similarity or magnitude ratios in isolation, the condition number provides a holistic view of optimization stability. Furthermore, because Aligned-MTL is proven to converge to the specific weighted sum requested by the user, it offers superior "steerability" for engineers compared to Pareto-seeking methods.

Limitations and Future Work

The primary drawback of the full Aligned-MTL implementation is the requirement for multiple backward passes (one per task), which increases training time linearly with the number of tasks. While the UB version mitigates this for specific architectures, it does not yet offer the same theoretical guarantees for complex, non-linear parameter-sharing schemes. Future research may focus on more efficient approximations of the gradient matrix alignment to reduce the computational burden further.

Summary updated

BibTeX
@inproceedings{senushkin2023independent,
  author = {Dmitry Senushkin and Nikolay Patakin and Arseny Kuznetsov and Anton Konushin},
  title = {{Independent Component Alignment for Multi-Task Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure