Lune

ICLR2023Top-tier venue

PGrad: Learning Principal Gradients For Domain Generalization

Zhe Wang, Jake Grigsby, Yanjun Qi

Abstract

Machine learning models fail to perform when facing out-of-distribution (OOD) domains, a challenging task known as domain generalization (DG). In this work, we develop a novel DG training strategy, we call PGrad , to learn a robust gradient direction, improving models' generalization ability on unseen domains. The proposed gradient aggregates the principal directions of a sampled roll-out optimization trajectory that measures the training dynamics across all training domains. PGrad 's gradient design forces the DG training to ignore domaindependent noise signals and updates all training domains with a robust direction covering main components of parameter dynamics. We further improve PGrad via bijection-based computational refinement and directional plus length-based calibrations. Our theoretical proof connects PGrad to the spectral analysis of Hessian in training neural networks. Experiments on DomainBed and WILDS benchmarks demonstrate that our approach effectively enables robust DG optimization and leads to smoothly decreased loss curves. Empirically, PGrad achieves competitive results across seven datasets, demonstrating its efficacy across both synthetic and real-world distributional shifts. Code is available at https://github.com/QData/PGrad .

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.

6 top-tier papers have 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

  • Out-of-Distribution Generalization via Risk Extrapolation (REx) cites In Search of Lost Domain Generalization
  • Negatives-Dominant Contrastive Learning for Generalization in Imbalanced Domains cites Out-of-Distribution Generalization via Risk Extrapolation (REx)
  • Negatives-Dominant Contrastive Learning for Generalization in Imbalanced Domains cites In Search of Lost Domain Generalization
  • START: A Generalized State Space Model with Saliency-Driven Token-Aware Transformation cites Moment Matching for Multi-Source Domain Adaptation
  • PURA: Parameter Update-Recovery Test-Time Adaption for RGB-T Tracking cites Fast-Slow Test-Time Adaptation for Online Vision-and-Language Navigation
  • WILDS: A Benchmark of in-the-Wild Distribution Shifts cites Moment Matching for Multi-Source Domain Adaptation
  • In Search of Lost Domain Generalization cites Episodic Training for Domain Generalization
  • In Search of Lost Domain Generalization cites Moment Matching for Multi-Source Domain Adaptation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Fast-Slow Test-Time Adaptation for Online Vision-and-Language NavigationJunyu Gao, Xuan Yao, Changsheng XuICML 2024 · 22 citations
  2. A Dynamic Learning Method towards Realistic Compositional Zero-Shot LearningXiaoming Hu, Zilei WangAAAI 2024 · 10 citations
  3. START: A Generalized State Space Model with Saliency-Driven Token-Aware TransformationJintao Guo, Lei Qi, Yinghuan Shi, Yang GaoNeurIPS 2024 · 6 citations
  4. Negatives-Dominant Contrastive Learning for Generalization in Imbalanced DomainsMeng Cao, Jiexi Liu, Songcan ChenICML 2026
  5. PURA: Parameter Update-Recovery Test-Time Adaption for RGB-T TrackingZekai Shao, Yufan Hu, Bin Fan, Hongmin LiuCVPR 2025

Builds on16

  1. Moment Matching for Multi-Source Domain AdaptationXingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang et al.ICCV 2019 · 2,239 citations
  2. WILDS: A Benchmark of in-the-Wild Distribution ShiftsPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie et al.ICML 2021 · 1,773 citations
  3. In Search of Lost Domain GeneralizationIshaan Gulrajani, David Lopez-PazICLR 2021 · 1,416 citations
  4. Out-of-Distribution Generalization via Risk Extrapolation (REx)David Krueger, Ethan Caballero, Jörn-Henrik Jacobsen, Amy Zhang et al.ICML 2021 · 1,163 citations
  5. Episodic Training for Domain GeneralizationDa Li, Jianshu Zhang, Yongxin Yang, Cong Liu et al.ICCV 2019 · 488 citations

Related papers

  1. Set Valued Predictions For Robust Domain GeneralizationRon Tsibulsky, Daniel Nevo, Uri ShalitICML 2025
  2. Flatness-Aware Minimization for Domain GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Yancheng Dong et al.ICCV 2023 · 37 citations
  3. DART: Diversify-Aggregate-Repeat Training Improves Generalization of Neural NetworksSamyak Jain, Sravanti Addepalli, Pawan Kumar Sahu, Priyam Dey et al.CVPR 2023
  4. SWAD: Domain Generalization by Seeking Flat MinimaJunbum Cha, Sanghyuk Chun, Kyungjae Lee, Han-Cheol Cho et al.NeurIPS 2021 · 630 citations
  5. Gradient Matching for Domain GeneralizationYuge Shi, Jeffrey Seely, Philip H. S. Torr, Siddharth Narayanaswamy et al.ICLR 2022 · 358 citations
Dusk over the sea between two cliffs drawn in fine vertical lines