English

Domain Generalization via Gradient Surgery

Machine Learning 2021-11-04 v2 Computer Vision and Pattern Recognition Image and Video Processing

Abstract

In real-life applications, machine learning models often face scenarios where there is a change in data distribution between training and test domains. When the aim is to make predictions on distributions different from those seen at training, we incur in a domain generalization problem. Methods to address this issue learn a model using data from multiple source domains, and then apply this model to the unseen target domain. Our hypothesis is that when training with multiple domains, conflicting gradients within each mini-batch contain information specific to the individual domains which is irrelevant to the others, including the test domain. If left untouched, such disagreement may degrade generalization performance. In this work, we characterize the conflicting gradients emerging in domain shift scenarios and devise novel gradient agreement strategies based on gradient surgery to alleviate their effect. We validate our approach in image classification tasks with three multi-domain datasets, showing the value of the proposed agreement strategy in enhancing the generalization capability of deep learning models in domain shift scenarios.

Keywords

Cite

@article{arxiv.2108.01621,
  title  = {Domain Generalization via Gradient Surgery},
  author = {Lucas Mansilla and Rodrigo Echeveste and Diego H. Milone and Enzo Ferrante},
  journal= {arXiv preprint arXiv:2108.01621},
  year   = {2021}
}

Comments

Accepted for publication at ICCV 2021

R2 v1 2026-06-24T04:47:55.229Z