atlas

Research map / Optimization / Optimizers

Careful with that Scalpel: Improving Gradient Surgery with an EMA

ICML 2024 · Optimization › Optimizers · approach: Surrogate losses and robust solvers · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Bloop, a gradient surgery method that follows the main-loss gradient plus the auxiliary gradient projected orthogonally to an EMA of main-loss gradients, approximating simple bilevel optimization in stochastic settings.

Problem

Optimizing a main training loss while controlling an auxiliary objective (e.g., robustness, performance on another dataset, weight norm); naive regularized (mixed) training conflicts with gradient directions and the simple bilevel formulation is hard to solve stochastically for neural networks.

Approach

Project the mini-batch auxiliary gradient orthogonally onto an exponential moving average of main-loss gradients (rather than the noisy current batch gradient), so the update preserves first-order main-loss descent and approximates the bilevel solution; the EMA is what makes the orthogonality hold stochastically.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use an EMA of the main-loss gradient in the projectionBloop · MNIST smooth-network trainingtraining Pareto frontHelped
Use an EMA of the main-loss gradient in the projectionBloop · ImageNet with L2 regularizationtest Pareto frontHelped
Use an EMA of the main-loss gradient in the projectionBloop · Cifar10MnistPareto frontHelped
Use an EMA of the main-loss gradient in the projectionBloop · c4 and RCV-1 language modelingevaluation loss Pareto frontHelped
Use an EMA of the main-loss gradient in the projectionBloop · Paracrawl and WMT translationevaluation loss Pareto frontHelped
Remove the EMA from the projection (ablation)Bloop · Transformer pre-trainingmain and auxiliary lossesHurt
Set the EMA parameter to ρ=0.001 (ablation)Bloop · Transformer pre-trainingmain and auxiliary lossesHurt
Set the EMA parameter to ρ=0.9 (ablation)Bloop · Transformer pre-trainingPareto-front behaviorHurt
Replace Bloop with PCGrad or Dynamic Barrier without EMABloop · Experiments across the paperPareto frontHurt
Use Bloop instead of the other gradient-surgery methodsImageNet and CIFAR-10 classification with separate heads · ImageNet/CIFAR-10Pareto frontNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MNIST ImageNet CIFAR-10 Cifar10Mnist (constructed) c4 RCV-1 Paracrawl WMT 2009-2019 WMT 2020

Benchmarks: MNIST ImageNet Cifar10Mnist c4 and RCV-1 language modeling Paracrawl/WMT translation

Metrics: training loss test loss Pareto front of main vs auxiliary loss

Baselines: Mixed (regularized) training Dynamic Barrier PCGrad

Builds on: Adam PCGrad Dynamic Barrier A-GEM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy