Flatness and Gradient Alignment Are Both Necessary: Spectral-Aware Gradient-Aligned Exploration for Multi-Distribution Learning
Not on the map. Why?
Abstract (arXiv)
Sharpness-aware and gradient-alignment methods have been shown to improve generalization, however each family of methods targets a single geometric property of the loss landscape, while ignoring the other. In this paper, we show that this omission is structurally unavoidable and that both flatness and gradient alignment should be considered in multi-distribution learning settings. Specifically, we derive an excess-risk decomposition that yields two additive leading-order terms: (i) an alignment term, controlled by the trace of barH-1Sigmag and (ii) a curvature term, controlled by barH, where barH is the average Hessian and Sigmag is the covariance of the gradient across distributions. Notably, barH appears inverted in one and non-inverted in the other. We further show, via a counterexample, that neither quantity bounds the other in general, so no algorithm targeting only one term can guarantee low excess risk. Motivated by this decomposition, we propose SAGE (Spectral-Aware Gradient-Aligned Exploration) that targets both terms. The curvature component replaces SAM's gradient-scaled perturbation with the polar factor of each layer's gradient matrix, computed via Newton-Schulz iteration, so that the ascent step probes all directions with similar magnitude. On the other hand, the alignment component injects isotropic noise at the descent step, the magnitude of which scales with cross-distribution gradient disagreement. Experiments on five domain-generalization and two multi-task learning benchmarks show that the proposed method establishes a new state-of-the-art on DomainBed and acts as a general-purpose improvement to base MTL solvers, remaining competitive with, or even surpassing, state-of-the-art methods.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 59 of its 72 references that are in the map. First posted on arXiv 8 May 2026.
Builds on
59 of 72 references.
References · 59
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2015Domain-Adversarial Training of Neural Networkscited by 3,044
- 2019Invariant Risk Minimizationcited by 1,854
- 2015SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentationcited by 1,487
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,331
- 2020Gradient Surgery for Multi-Task Learningcited by 1,256
- 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
38 more
- 2017Deep Hashing Network for Unsupervised Domain Adaptationcited by 1,188
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
- 2020In Search of Lost Domain Generalizationcited by 1,054
- 2017Deeper, Broader and Artier Domain Generalizationcited by 986
- 2017A Survey on Multi-Task Learningcited by 840
- 2018Multi-Task Learning as Multi-Objective Optimizationcited by 821
- 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 766
- 2021Domain Generalization: A Surveycited by 764
- 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
- 2018Recognition in Terra Incognitacited by 658
- 2018End-to-End Multi-Task Learning with Attentioncited by 534
- 2019Fantastic Generalization Measures and Where to Find Themcited by 513
- 2017Sharp Minima Can Generalize For Deep Netscited by 466
- 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 434
- 2018Shampoo: Preconditioned Stochastic Tensor Optimizationcited by 426
- 2020Self-Challenging Improves Cross-Domain Generalizationcited by 426
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
- 2021Gradient Matching for Domain Generalizationcited by 258
- 2022Multi-Task Learning as a Bargaining Gamecited by 215
- 2020Just Pick a Sign: Optimizing Deep Multitask Models with Gradient Sign Dropoutcited by 201
- 2024Old Optimizer, New Norm: An Anthologycited by 193
- 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
- 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
- 2018Domain Generalization via Conditional Invariant Representationcited by 146
- 2023Sharpness-Aware Gradient Matching for Domain Generalizationcited by 102
- 2021Reasonable Effectiveness of Random Weighting: A Litmus Test for Multi-Task Learningcited by 101
- 2021Invariant Information Bottleneck for Domain Generalizationcited by 86
- 2017Towards Understanding Generalization of Deep Learning: Perspective of Loss Landscapescited by 84
- 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
- 2023FAMO: Fast Adaptive Multitask Optimizationcited by 78
- 2023Independent Component Alignment for Multi-Task Learningcited by 70
- 2019Large Scale Structure of Neural Network Loss Landscapescited by 68
- 2014Consistency and fluctuations for stochastic gradient Langevin dynamicscited by 65
- 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 65
- 2021Domain Generalization via Gradient Surgerycited by 60
- 2023Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalizationcited by 57
- 2023Enhancing Sharpness-Aware Optimization Through Variance Suppressioncited by 37
50 most cited of 59 All 59 (JSON)
Built on by
Not cited yet.