Per-example Gradients: a New Frontier for Understanding and Improving Optimizers
Vincent Roulet, Atish Agarwala
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Reducing Per-Sample Harm in Stochastic Optimization 引用了 Differentially Private Optimization on Large Model at Small Cost
- Differentially Private Optimization on Large Model at Small Cost 引用了 Scalable and Efficient Training of Large Convolutional Neural Networks with Differential Privacy
引用它的顶会 Paper1
它引用的 Paper15
- Differentially Private Optimization on Large Model at Small CostZhiqi Bu, Yu-Xiang Wang, Sheng Zha, George KarypisICML 2023 · 85 次引用
- Fast Finite Width Neural Tangent KernelRoman Novak, Jascha Sohl-Dickstein, Samuel S. SchoenholzICML 2022 · 72 次引用
- Scalable and Efficient Training of Large Convolutional Neural Networks with Differential PrivacyZhiqi Bu, Jialin Mao, Shiyun XuNeurIPS 2022 · 70 次引用
- Understanding Why Neural Networks Generalize Well Through GSNR of ParametersJinlong Liu, Yunzhi Bai, Guoqing Jiang, Ting Chen 等ICLR 2020 · 60 次引用
- Gradient Descent on Neural Networks Typically Occurs at the Edge of StabilityJeremy Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter 等ICLR 2021 · 22 次引用
相关 Paper
- Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang 等NeurIPS 2022 · 111 次引用
- ASGO: Adaptive Structured Gradient OptimizationKang An, Yuxing Liu, Rui Pan, Yi Ren 等NeurIPS 2025 · 58 次引用
- AGD: an Auto-switchable Optimizer using Stepwise Gradient Difference for Preconditioning MatrixYun Yue, Zhiling Ye, Jiadi Jiang, Yongchao Liu 等NeurIPS 2023 · 6 次引用
- CRONOS: Enhancing Deep Learning with Scalable GPU Accelerated Convex Neural NetworksMiria Feng, Zachary Frangella, Mert PilanciNeurIPS 2024 · 6 次引用
- On The Concurrence of Layer-wise Preconditioning Methods and Provable Feature LearningThomas T. C. K. Zhang, Behrad Moniri, Ansh Nagwekar, Faraz Rahman 等ICML 2025
