mlsanityData to 14 Oct 2026

Understanding Hessian Alignment for Domain Generalization

arXiv 2308.11778 ↗First posted 22 Aug 2023cs.LG cs.CV stat.MLcited by 15

Not on the map. Why?

Abstract (arXiv)

Out-of-distribution (OOD) generalization is a critical ability for deep learning models in many real-world scenarios including healthcare and autonomous vehicles. Recently, different techniques have been proposed to improve OOD generalization. Among these methods, gradient-based regularizers have shown promising performance compared with other competitors. Despite this success, our understanding of the role of Hessian and gradient alignment in domain generalization is still limited. To address this shortcoming, we analyze the role of the classifier's head Hessian matrix and gradient in domain generalization using recent OOD theory of transferability. Theoretically, we show that spectral norm between the classifier's head Hessian matrices across domains is an upper bound of the transfer measure, a notion of distance between target and source domains. Furthermore, we analyze all the attributes that get aligned when we encourage similarity between Hessians and gradients. Our analysis explains the success of many regularizers like CORAL, IRM, V-REx, Fish, IGA, and Fishr as they regularize part of the classifier's head Hessian and/or gradient. Finally, we propose two simple yet effective methods to match the classifier's head Hessians and gradients in an efficient way, based on the Hessian Gradient Product (HGP) and Hutchinson's method (Hutchinson), and without directly calculating Hessians. We validate the OOD generalization ability of proposed methods in different scenarios, including transferability, severe correlation shift, label shift and diversity shift. Our results show that Hessian alignment methods achieve promising performance on various OOD benchmarks. The code is available at urlhttps://github.com/huawei-noah/Federated-Learning/tree/main/HessianAlignment.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 26 of its 42 references that are in the map. First posted on arXiv 22 Aug 2023.

Builds on

26 of 42 references.

References · 26

  1. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  2. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  3. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  4. 2019Invariant Risk Minimizationcited by 1,854
  5. 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,331
  6. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
  7. 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
  8. 2017Deep Hashing Network for Unsupervised Domain Adaptationcited by 1,188
  9. 2020In Search of Lost Domain Generalizationcited by 1,054
  10. 2017Deeper, Broader and Artier Domain Generalizationcited by 986
  11. 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 766
  12. 2017Learning to Generalize: Meta-Learning for Domain Generalizationcited by 763
14 more
  1. 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
  2. 2013Domain Generalization via Invariant Feature Representationcited by 623
  3. 2014Deep Domain Confusion: Maximizing for Domain Invariancecited by 600
  4. 2020Self-Challenging Improves Cross-Domain Generalizationcited by 426
  5. 2021Gradient Matching for Domain Generalizationcited by 258
  6. 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
  7. 2017Domain Generalization by Marginal Transfer Learningcited by 180
  8. 2020Learning explanations that are hard to varycited by 132
  9. 2020Heterogeneous Domain Generalization via Domain Mixupcited by 103
  10. 2021Domain Generalization via Gradient Surgerycited by 60
  11. 2020When is invariance useful in an Out-of-Distribution Generalization problem ?cited by 52
  12. 2021SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalizationcited by 50
  13. 2021Quantifying and Improving Transferability in Domain Generalizationcited by 35
  14. 2020A Modern Analysis of Hutchinson's Trace Estimatorcited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 4; 2025: 7; 2026: 3.

15 papers.

Sort:

By area:

  1. 2023Cross Domain Generative Augmentation: Domain Generalization with Latent Diffusion Modelscited by 8
  2. 2024CRoFT: Robust Fine-Tuning with Concurrent Optimization for OOD Generalization and Open-Set OOD Detectioncited by 6
  3. 2025Balanced Direction from Multifarious Choices: Arithmetic Meta-Learning for Domain Generalizationcited by 5
  4. 2024SETA: Semantic-Aware Token Augmentation for Domain Generalizationcited by 3
  5. 2025COPA: Comparing the incomparable in multi-objective model evaluationcited by 3
  6. 2025Moment Alignment: Unifying Gradient and Hessian Matching for Domain Generalizationcited by 2
  7. 2025Harmonizing and Merging Source Models for CLIP-based Domain Generalizationcited by 2
  8. 2025LangDAug: Langevin Data Augmentation for Multi-Source Domain Generalization in Medical Image Segmentationcited by 1
  9. 2025SCISSOR: Mitigating Semantic Bias through Cluster-Aware Siamese Networks for Robust Classificationcited by 1
  10. 2025Delta Energy: Optimizing Energy Change During Vision-Language Alignment Improves both OOD Detection and OOD Generalizationcited by 1
  11. 2026One-Step Generalization Ratio Guided Optimization for Domain Generalizationcited by 1
  12. 2024FedGTST: Boosting Global Transferability of Federated Models via Statistics Tuningcited by 0
3 more
  1. 2024Curvature in the Looking-Glass: Optimal Methods to Exploit Curvature of Expectation in the Loss Landscapecited by 0
  2. 2026DSP-Reg: Domain-Sensitive Parameter Regularization for Robust Domain Generalizationcited by 0
  3. 2026Exploring Dualistic Meta-Learning to Enhance Domain Generalization in Open Set Scenarioscited by 0