Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Models

By Zirui Wang, Yulia Tsvetkov, Orhan Firat, Yuan Cao. 2020

250 citations recorded by the source corpus.

Massively multilingual models subsuming tens or even hundreds of languages pose great challenges to multi-task optimization. While it is a common practice to apply a language-agnostic procedure optimizing a joint multilingual task objective, how to properly characterize and take advantage of its underlying problem structure for improving optimization efficiency remains under-explored. In this paper, we attempt to peek into the black-box of multilingual optimization through the lens of loss function geometry. We find that gradient similarity measured along the optimization trajectory is an important signal, which correlates well with not only language proximity but also the overall model performance. Such observation helps us to identify a critical limitation of existing gradient-based multi-task learning methods, and thus we derive a simple and scalable optimization procedure, named Gradient Vaccine, which encourages more geometrically aligned parameter updates for close tasks. Empirically, our method obtains significant model performance gains on multilingual machine translation and XTREME benchmark tasks for multilingual language models. Our work reveals the importance of properly measuring and utilizing language proximity in multilingual optimization, and has broader implications for multi-task learning beyond multilingual modeling.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Yu Zhang
  3. Zhe Gan
  4. Mohit Bansal
  5. Furu Wei
  6. Graham Neubig
  7. Quoc V. Le
  8. Jinyu Li

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Xiaogang Wang
  4. Ming-Hsuan Yang
  5. Trevor Darrell
  6. Cordelia Schmid
  7. Alan L. Yuille
  8. Jitendra Malik

In Natural Language Processing

  1. Yu Zhang
  2. Ankur Bapna
  3. Ye Jia
  4. Melvin Johnson
  5. Alexis Conneau
  6. Graham Neubig
  7. Colin Cherry
  8. Jianfeng Gao

In Optimization & Training

  1. Tianhe Yu
  2. Zhe Zhao
  3. Christopher Fifty
  4. Rohan Anil
  5. Ehsan Amid
  6. Ankur Bapna
  7. Zi-Yi Dou
  8. Bo Li

Citations in the corpus