Lune

ICML2026Top-tier venue

Per-example Gradients: a New Frontier for Understanding and Improving Optimizers

Vincent Roulet, Atish Agarwala

Abstract

When computing gradients, deep learning training algorithms typically treat the mini-batch as a fundamental unit --- only returning batch-averaged gradients. Computing non-linear statistics of the mini-batch gradient distribution has traditionally been viewed as prohibitively expensive or requiring complex, custom implementations. We challenge this view by demonstrating that sequence-level architectures offer a natural testbed for prototyping algorithms based on per-example gradients. We show that staged programming languages like JAX enable generic manipulations of mini-batch gradient computations. We then build on Dangel et. al. (2019) to derive implementations of specific per-example or per-token operations with negligible computational or memory overhead. Finally, we leverage our findings to re-examine two nonlinear optimization operations. First, we analyze signSGD, showing that the optimal placement of the sign operation is critical to success and can be predicted via a simple signal-to-noise ratio argument. Second, we investigate per-example variations of the Adam preconditioner and find that, contrary to conventional wisdom, optimization is best served when the preconditioner is dominated by the mean squared of the gradient distribution rather than its variance. Overall our work shows that accessible per-example gradient information unlocks new avenues for algorithm analysis and design.

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.

1 top-tier paper has 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

  • Reducing Per-Sample Harm in Stochastic Optimization cites Differentially Private Optimization on Large Model at Small Cost
  • Differentially Private Optimization on Large Model at Small Cost cites Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacy
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Reducing Per-Sample Harm in Stochastic OptimizationApostolos AvranasICML 2026

Builds on15

  1. Differentially Private Optimization on Large Model at Small CostZhiqi Bu, Yu-Xiang Wang, Sheng Zha, George KarypisICML 2023 · 85 citations
  2. Fast Finite Width Neural Tangent KernelRoman Novak, Jascha Sohl-Dickstein, Samuel S. SchoenholzICML 2022 · 72 citations
  3. Scalable and Efficient Training of Large Convolutional Neural Networks with Differential PrivacyZhiqi Bu, Jialin Mao, Shiyun XuNeurIPS 2022 · 70 citations
  4. Understanding Why Neural Networks Generalize Well Through GSNR of ParametersJinlong Liu, Yunzhi Bai, Guoqing Jiang, Ting Chen et al.ICLR 2020 · 60 citations
  5. Gradient Descent on Neural Networks Typically Occurs at the Edge of StabilityJeremy Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter et al.ICLR 2021 · 22 citations

Related papers

  1. Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang et al.NeurIPS 2022 · 111 citations
  2. ASGO: Adaptive Structured Gradient OptimizationKang An, Yuxing Liu, Rui Pan, Yi Ren et al.NeurIPS 2025 · 58 citations
  3. AGD: an Auto-switchable Optimizer using Stepwise Gradient Difference for Preconditioning MatrixYun Yue, Zhiling Ye, Jiadi Jiang, Yongchao Liu et al.NeurIPS 2023 · 6 citations
  4. CRONOS: Enhancing Deep Learning with Scalable GPU Accelerated Convex Neural NetworksMiria Feng, Zachary Frangella, Mert PilanciNeurIPS 2024 · 6 citations
  5. On The Concurrence of Layer-wise Preconditioning Methods and Provable Feature LearningThomas T. C. K. Zhang, Behrad Moniri, Ansh Nagwekar, Faraz Rahman et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines