mlsanityData to 14 Oct 2026

Flatness and Gradient Alignment Are Both Necessary: Spectral-Aware Gradient-Aligned Exploration for Multi-Distribution Learning

arXiv 2605.07914 ↗First posted 8 May 2026cs.LG cs.CVcited by 0

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

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
  4. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  5. 2019Invariant Risk Minimizationcited by 1,854
  6. 2015SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentationcited by 1,487
  7. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
  8. 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
  9. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  10. 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,331
  11. 2020Gradient Surgery for Multi-Task Learningcited by 1,256
  12. 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
38 more
  1. 2017Deep Hashing Network for Unsupervised Domain Adaptationcited by 1,188
  2. 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
  3. 2020In Search of Lost Domain Generalizationcited by 1,054
  4. 2017Deeper, Broader and Artier Domain Generalizationcited by 986
  5. 2017A Survey on Multi-Task Learningcited by 840
  6. 2018Multi-Task Learning as Multi-Objective Optimizationcited by 821
  7. 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 766
  8. 2021Domain Generalization: A Surveycited by 764
  9. 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
  10. 2018Recognition in Terra Incognitacited by 658
  11. 2018End-to-End Multi-Task Learning with Attentioncited by 534
  12. 2019Fantastic Generalization Measures and Where to Find Themcited by 513
  13. 2017Sharp Minima Can Generalize For Deep Netscited by 466
  14. 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
  15. 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 434
  16. 2018Shampoo: Preconditioned Stochastic Tensor Optimizationcited by 426
  17. 2020Self-Challenging Improves Cross-Domain Generalizationcited by 426
  18. 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
  19. 2021Gradient Matching for Domain Generalizationcited by 258
  20. 2022Multi-Task Learning as a Bargaining Gamecited by 215
  21. 2020Just Pick a Sign: Optimizing Deep Multitask Models with Gradient Sign Dropoutcited by 201
  22. 2024Old Optimizer, New Norm: An Anthologycited by 193
  23. 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
  24. 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
  25. 2018Domain Generalization via Conditional Invariant Representationcited by 146
  26. 2023Sharpness-Aware Gradient Matching for Domain Generalizationcited by 102
  27. 2021Reasonable Effectiveness of Random Weighting: A Litmus Test for Multi-Task Learningcited by 101
  28. 2021Invariant Information Bottleneck for Domain Generalizationcited by 86
  29. 2017Towards Understanding Generalization of Deep Learning: Perspective of Loss Landscapescited by 84
  30. 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
  31. 2023FAMO: Fast Adaptive Multitask Optimizationcited by 78
  32. 2023Independent Component Alignment for Multi-Task Learningcited by 70
  33. 2019Large Scale Structure of Neural Network Loss Landscapescited by 68
  34. 2014Consistency and fluctuations for stochastic gradient Langevin dynamicscited by 65
  35. 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 65
  36. 2021Domain Generalization via Gradient Surgerycited by 60
  37. 2023Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalizationcited by 57
  38. 2023Enhancing Sharpness-Aware Optimization Through Variance Suppressioncited by 37

50 most cited of 59 All 59 (JSON)

Built on by

Not cited yet.