Lune

ICML2024Top-tier venue

Careful with that Scalpel: Improving Gradient Surgery with an EMA

Yu-Guan Hsieh, James Thornton, Eugène Ndiaye, Michal Klein, Marco Cuturi, Pierre Ablin

Abstract

Beyond minimizing a single training loss, many deep learning estimation pipelines rely on an auxiliary objective to quantify and encourage desirable properties of the model (e.g. performance on another dataset, robustness, agreement with a prior). Although the simplest approach to incorporating an auxiliary loss is to sum it with the training loss as a regularizer, recent works have shown that one can improve performance by blending the gradients beyond a simple sum; this is known as gradient surgery. We cast the problem as a constrained minimization problem where the auxiliary objective is minimized among the set of minimizers of the training loss. To solve this bilevel problem, we follow a parameter update direction that combines the training loss gradient and the orthogonal projection of the auxiliary gradient to the training gradient. In a setting where gradients come from mini-batches, we explain how, using a moving average of the training loss gradients, we can carefully maintain this critical orthogonality property. We demonstrate that our method, Bloop, can lead to much better performances on NLP and vision experiments than other gradient surgery methods without EMA.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Conditional Gradient Methods with Standard LMO for Stochastic Simple Bilevel Optimization cites On the Complexity of Finding Stationary Points in Nonconvex Simple Bilevel Optimization
  • Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Models cites Gradient Surgery for Multi-Task Learning
  • Machine Pareidolia: Protecting Facial Image with Emotional Editing cites Gradient Surgery for Multi-Task Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. On the Complexity of Finding Stationary Points in Nonconvex Simple Bilevel OptimizationJincheng Cao, Ruichen Jiang, Erfan Yazdandoost Hamedani, Aryan MokhtariNeurIPS 2025 · 3 citations
  2. Conditional Gradient Methods with Standard LMO for Stochastic Simple Bilevel OptimizationKhanh-Hung Giang-Tran, Soroosh Shafiee, Nam Ho-NguyenNeurIPS 2025 · 3 citations
  3. Machine Pareidolia: Protecting Facial Image with Emotional EditingBinh M. Le, Simon S. WooAAAI 2026

Builds on9

  1. Gradient Surgery for Multi-Task LearningTianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine et al.NeurIPS 2020 · 2,261 citations
  2. Demystifying CLIP DataHu Xu, Saining Xie, Xiaoqing Ellen Tan, Po-Yao Huang et al.ICLR 2024 · 249 citations
  3. Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual ModelsZirui Wang, Yulia Tsvetkov, Orhan Firat, Yuan CaoICLR 2021 · 241 citations
  4. ParaCrawl: Web-Scale Acquisition of Parallel CorporaMarta Bañón, Pinzhen Chen, Barry Haddow, Kenneth Heafield et al.ACL 2020 · 132 citations
  5. Generative Multimodal Models are In-Context LearnersQuan Sun, Yufeng Cui, Xiaosong Zhang, Fan Zhang et al.CVPR 2024 · 71 citations

Related papers

  1. Auxiliary Task Update Decomposition: the Good, the Bad and the neutralLucio M. Dery, Yann N. Dauphin, David GrangierICLR 2021 · 5 citations
  2. Auxiliary Learning by Implicit DifferentiationAviv Navon, Idan Achituve, Haggai Maron, Gal Chechik et al.ICLR 2021 · 72 citations
  3. Just Pick a Sign: Optimizing Deep Multitask Models with Gradient Sign DropoutZhao Chen, Jiquan Ngiam, Yanping Huang, Thang Luong et al.NeurIPS 2020 · 313 citations
  4. Automatic and Harmless Regularization with Constrained and Lexicographic Optimization: A Dynamic Barrier ApproachChengyue Gong, Xingchao Liu, Qiang LiuNeurIPS 2021 · 28 citations
  5. Averaged Method of Multipliers for Bi-Level Optimization without Lower-Level Strong ConvexityRisheng Liu, Yaohua Liu, Wei Yao, Shangzhi Zeng et al.ICML 2023 · 37 citations
Dusk over the sea between two cliffs drawn in fine vertical lines