English

Domain Generalization via Pareto Optimal Gradient Matching

Machine Learning 2025-07-22 v1 Artificial Intelligence

Abstract

In this study, we address the gradient-based domain generalization problem, where predictors aim for consistent gradient directions across different domains. Existing methods have two main challenges. First, minimization of gradient empirical distance or gradient inner products (GIP) leads to gradient fluctuations among domains, thereby hindering straightforward learning. Second, the direct application of gradient learning to the joint loss function can incur high computation overheads due to second-order derivative approximation. To tackle these challenges, we propose a new Pareto Optimality Gradient Matching (POGM) method. In contrast to existing methods that add gradient matching as regularization, we leverage gradient trajectories as collected data and apply independent training at the meta-learner. In the meta-update, we maximize GIP while limiting the learned gradient from deviating too far from the empirical risk minimization gradient trajectory. By doing so, the aggregate gradient can incorporate knowledge from all domains without suffering gradient fluctuation towards any particular domain. Experimental evaluations on datasets from DomainBed demonstrate competitive results yielded by POGM against other baselines while achieving computational efficiency.

Keywords

Cite

@article{arxiv.2507.14227,
  title  = {Domain Generalization via Pareto Optimal Gradient Matching},
  author = {Khoi Do and Duong Nguyen and Nam-Khanh Le and Quoc-Viet Pham and Binh-Son Hua and Won-Joo Hwang},
  journal= {arXiv preprint arXiv:2507.14227},
  year   = {2025}
}
R2 v1 2026-07-01T04:08:29.930Z