TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Fishr: Invariant Gradient Variances for Out-of-Distributio...

Fishr: Invariant Gradient Variances for Out-of-Distribution Generalization

Alexandre Rame, Corentin Dancette, Matthieu Cord

2021-09-07Domain GeneralizationOut-of-Distribution Generalization
PaperPDFCode(official)Code(official)

Abstract

Learning robust models that generalize well under changes in the data distribution is critical for real-world applications. To this end, there has been a growing surge of interest to learn simultaneously from multiple training domains - while enforcing different types of invariance across those domains. Yet, all existing approaches fail to show systematic benefits under controlled evaluation protocols. In this paper, we introduce a new regularization - named Fishr - that enforces domain invariance in the space of the gradients of the loss: specifically, the domain-level variances of gradients are matched across training domains. Our approach is based on the close relations between the gradient covariance, the Fisher Information and the Hessian of the loss: in particular, we show that Fishr eventually aligns the domain-level loss landscapes locally around the final weights. Extensive experiments demonstrate the effectiveness of Fishr for out-of-distribution generalization. Notably, Fishr improves the state of the art on the DomainBed benchmark and performs consistently better than Empirical Risk Minimization. Our code is available at https://github.com/alexrame/fishr.

Results

TaskDatasetMetricValueModel
Domain AdaptationPACSAverage Accuracy86.9Fishr(ResNet-50,DomainBed)
Domain AdaptationOffice-HomeAverage Accuracy68.2Fishr (ResNet-50)
Domain AdaptationDomainNetAverage Accuracy41.8Fishr (ResNet-50)
Domain AdaptationVLCSAverage Accuracy78.2Fishr (ResNet-50)
Domain AdaptationTerraIncognitaAverage Accuracy47.4Fishr(ResNet-50)
Domain GeneralizationPACSAverage Accuracy86.9Fishr(ResNet-50,DomainBed)
Domain GeneralizationOffice-HomeAverage Accuracy68.2Fishr (ResNet-50)
Domain GeneralizationDomainNetAverage Accuracy41.8Fishr (ResNet-50)
Domain GeneralizationVLCSAverage Accuracy78.2Fishr (ResNet-50)
Domain GeneralizationTerraIncognitaAverage Accuracy47.4Fishr(ResNet-50)

Related Papers

Simulate, Refocus and Ensemble: An Attention-Refocusing Scheme for Domain Generalization2025-07-17GLAD: Generalizable Tuning for Vision-Language Models2025-07-17MoTM: Towards a Foundation Model for Time Series Imputation based on Continuous Modeling2025-07-17InstructFLIP: Exploring Unified Vision-Language Model for Face Anti-spoofing2025-07-16From Physics to Foundation Models: A Review of AI-Driven Quantitative Remote Sensing Inversion2025-07-11Feed-Forward SceneDINO for Unsupervised Semantic Scene Completion2025-07-08Prompt-Free Conditional Diffusion for Multi-object Image Augmentation2025-07-08Integrated Structural Prompt Learning for Vision-Language Models2025-07-08