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/Crafting Distribution Shifts for Validation and Training i...

Crafting Distribution Shifts for Validation and Training in Single Source Domain Generalization

Nikos Efthymiadis, Giorgos Tolias, Ondřej Chum

2024-09-29Photo to Rest GeneralizationImage to sketch recognitionDomain GeneralizationSingle-Source Domain Generalization
PaperPDFCode(official)

Abstract

Single-source domain generalization attempts to learn a model on a source domain and deploy it to unseen target domains. Limiting access only to source domain data imposes two key challenges - how to train a model that can generalize and how to verify that it does. The standard practice of validation on the training distribution does not accurately reflect the model's generalization ability, while validation on the test distribution is a malpractice to avoid. In this work, we construct an independent validation set by transforming source domain images with a comprehensive list of augmentations, covering a broad spectrum of potential distribution shifts in target domains. We demonstrate a high correlation between validation and test performance for multiple methods and across various datasets. The proposed validation achieves a relative accuracy improvement over the standard validation equal to 15.4% or 1.6% when used for method selection or learning rate tuning, respectively. Furthermore, we introduce a novel family of methods that increase the shape bias through enhanced edge maps. To benefit from the augmentations during training and preserve the independence of the validation set, a k-fold validation process is designed to separate the augmentation types used in training and validation. The method that achieves the best performance on the augmented validation is selected from the proposed family. It achieves state-of-the-art performance on various standard benchmarks. Code at: https://github.com/NikosEfth/crafting-shifts

Results

TaskDatasetMetricValueModel
SketchMiniDomainNetAccuracy57.51Crafting-Shifts(ResNet18)
SketchPACSAccuracy74.13Crafting-Shifts(ResNet18)
SketchPACSAccuracy68.5Crafting-Shifts(AlexNet)
Domain AdaptationPACSAccuracy70.37Crafting-Shifts(ResNet18)
Domain AdaptationDigits-fiveAccuracy82.61Crafting-Shifts(LeNet)
Domain AdaptationPACSAccuracy65.85Crafting-Shifts(ResNet18)
Domain AdaptationPACSAccuracy60.97Crafting-Shifts(AlexNet)
Domain AdaptationMiniDomainNetAccuracy57.35Crafting-Shifts(ResNet18)
Domain GeneralizationPACSAccuracy70.37Crafting-Shifts(ResNet18)
Domain GeneralizationDigits-fiveAccuracy82.61Crafting-Shifts(LeNet)
Domain GeneralizationPACSAccuracy65.85Crafting-Shifts(ResNet18)
Domain GeneralizationPACSAccuracy60.97Crafting-Shifts(AlexNet)
Domain GeneralizationMiniDomainNetAccuracy57.35Crafting-Shifts(ResNet18)
Sketch RecognitionMiniDomainNetAccuracy57.51Crafting-Shifts(ResNet18)
Sketch RecognitionPACSAccuracy74.13Crafting-Shifts(ResNet18)
Sketch RecognitionPACSAccuracy68.5Crafting-Shifts(AlexNet)
Single-Source Domain GeneralizationPACSAccuracy70.37Crafting-Shifts(ResNet18)
Single-Source Domain GeneralizationDigits-fiveAccuracy82.61Crafting-Shifts(LeNet)
Single-Source Domain GeneralizationPACSAccuracy65.85Crafting-Shifts(ResNet18)
Single-Source Domain GeneralizationPACSAccuracy60.97Crafting-Shifts(AlexNet)
Single-Source Domain GeneralizationMiniDomainNetAccuracy57.35Crafting-Shifts(ResNet18)

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