Skip to main content
QUICK REVIEW

[Paper Review] A Closer Look at Loss Weighting in Multi-Task Learning

Baijiong Lin, Feiyang Ye|arXiv (Cornell University)|Nov 20, 2021
Domain Adaptation and Few-Shot LearningComputer Science42 references15 citations
TL;DR

This paper proposes Random Loss Weighting (RLW), a simple yet effective multi-task learning strategy that samples loss weights randomly from a distribution, achieving performance on par with state-of-the-art methods. RLW improves generalization by increasing the likelihood of escaping local minima, requiring only one additional line of code in existing implementations.

ABSTRACT

Multi-Task Learning (MTL) has achieved great success in various fields, however, how to balance different tasks to avoid negative effects is still a key problem. To achieve the task balancing, there exist many works to balance task losses or gradients. In this paper, we unify eight representative task balancing methods from the perspective of loss weighting and provide a consistent experimental comparison. Moreover, we surprisingly find that training a MTL model with random weights sampled from a distribution can achieve comparable performance over state-of-the-art baselines. Based on this finding, we propose a simple yet effective weighting strategy called Random Loss Weighting (RLW), which can be implemented in only one additional line of code over existing works. Theoretically, we analyze the convergence of RLW and reveal that RLW has a higher probability to escape local minima than existing models with fixed task weights, resulting in a better generalization ability. Empirically, we extensively evaluate the proposed RLW method on six image datasets and four multilingual tasks from the XTREME benchmark to show the effectiveness of the proposed RLW strategy when compared with state-of-the-art strategies.

Motivation & Objective

  • To address the challenge of balancing multiple tasks in multi-task learning (MTL) to prevent negative transfer.
  • To unify and compare eight representative task balancing methods through a loss weighting lens.
  • To investigate whether random loss weighting can achieve competitive performance compared to learned or fixed weighting strategies.
  • To theoretically and empirically validate the generalization benefits of random loss weighting.

Proposed method

  • The authors unify eight existing task balancing methods under a common framework of loss weighting for systematic comparison.
  • They propose Random Loss Weighting (RLW), where loss weights are sampled uniformly from a predefined distribution during training.
  • RLW is implemented with a single additional line of code in existing MTL frameworks, making it highly practical.
  • Theoretical analysis shows RLW has a higher probability of escaping local minima than models with fixed weights.
  • The method is evaluated on six image datasets and four multilingual tasks from the XTREME benchmark.

Experimental results

Research questions

  • RQ1Can random sampling of loss weights achieve performance comparable to state-of-the-art fixed or learned weighting strategies in multi-task learning?
  • RQ2How does random loss weighting affect the model's ability to escape poor local minima?
  • RQ3What is the theoretical justification for the improved generalization observed with random loss weighting?
  • RQ4Does RLW maintain strong performance across diverse vision and NLP benchmarks?

Key findings

  • Random Loss Weighting (RLW) achieves performance comparable to state-of-the-art baselines on six image datasets and four multilingual tasks from the XTREME benchmark.
  • Theoretical analysis reveals that RLW increases the probability of escaping local minima compared to models with fixed task weights.
  • RLW demonstrates better generalization ability due to the stochastic nature of weight sampling, which enhances exploration during training.
  • The method requires only one additional line of code to implement, making it highly practical and easy to adopt in existing MTL frameworks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.