atlas

Research map / Optimization / Optimizers

Scalable Meta-Learning via Mixed-Mode Differentiation

ICML 2025 · Optimization › Optimizers · approach: Hypergradient bilevel optimization · 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 MixFlow-MG, a reparameterisation that lets bilevel/meta-gradient computations use forward-over-reverse mixed-mode differentiation instead of default reverse-over-reverse, cutting dynamic memory by up to ~10x and wall-clock time by up to 25% on Chinchilla transformers.

Problem

Gradient-based bilevel optimisation requires gradient-of-a-gradient computations through truncated inner loops, which are memory- and compute-expensive under default reverse-over-reverse autodiff at large model scale.

Approach

Reparameterise the inner update so inner gradients are a separate argument, then use Hessian symmetry (Schwarz's theorem) to rewrite vector-Hessian and vector-mixed-derivative products as Hessian-vector products computed in forward-over-reverse mode, avoiding storage of inner backward activations; also saves inner gradients as checkpoints and uses block rematerialisation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace default autodiff with mixed-mode differentiationBilevel language-modelling setups · Language modelling task sweep, GPU and TPUpeak dynamic HBM: over 10xHelped
Replace default autodiff with mixed-mode differentiationBilevel language-modelling setups · Language modelling task sweep, GPUwall-clock time: 25%Helped
Replace default autodiff with mixed-mode differentiationBilevel language-modelling setups · Language modelling task sweep, TPUwall-clock time: 20%Helped
Add mixed-mode differentiation and block rematerialisationChinchilla transformers · Chinchilla scaling ladder, TPUpeak dynamic HBM ratio: 23-25xHelped
Add mixed-mode differentiation and block rematerialisationChinchilla transformers · Chinchilla scaling ladder, GPUpeak dynamic HBM ratio: 10xHelped
Add saving inner gradients to mixed mode and block rematerialisation (ablation)489M Chinchilla transformer · GPUHBM (G): 174.8 -> 54.8Helped
Add saving inner gradients to mixed mode and block rematerialisation (ablation)489M Chinchilla transformer · TPUTime (s): 5.13 -> 4.12Helped
Add saving inner gradients to mixed mode and block rematerialisation (ablation)44M Chinchilla transformer · GPUTime (s): 1.51 -> 1.19Helped
Add saving inner gradients to mixed mode and block rematerialisation (ablation)44M Chinchilla transformer · TPUHBM (G): 12.7 -> 12.9Hurt
Add block rematerialisation to mixed mode and saved inner gradients (ablation)489M Chinchilla transformer · GPUHBM (G): 289.2 -> 54.8Helped
Add block rematerialisation to mixed mode and saved inner gradients (ablation)489M Chinchilla transformer · TPUHBM (G): 176.8 -> 46.9Helped
Add mixed-mode differentiation to block rematerialisation and saved inner gradients (ablation)489M Chinchilla transformer · GPUHBM (G): 182.4 -> 54.8Helped

Surprising findings

Limitations

Experimental setup

Metrics: peak dynamic HBM ratio step time ratio

Baselines: default reverse-over-reverse autodiff implementation

Builds on: MAML truncated backpropagation through time JAX

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