HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

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

Efthymiadis Nikos ; Tolias Giorgos ; Chum Ondřej

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

Abstract

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

Code Repositories

nikosefth/crafting-shifts
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-to-sketch-recognition-on-minidomainnetCrafting-Shifts(ResNet18)
Accuracy: 57.51
image-to-sketch-recognition-on-pacsCrafting-Shifts(AlexNet)
Accuracy: 68.5
image-to-sketch-recognition-on-pacsCrafting-Shifts(ResNet18)
Accuracy: 74.13
photo-to-rest-generalization-on-minidomainnetCrafting-Shifts(ResNet18)
Accuracy: 57.35
photo-to-rest-generalization-on-pacsCrafting-Shifts(ResNet18)
Accuracy: 65.85
photo-to-rest-generalization-on-pacsCrafting-Shifts(AlexNet)
Accuracy: 60.97
single-source-domain-generalization-on-digitsCrafting-Shifts(LeNet)
Accuracy: 82.61
single-source-domain-generalization-on-pacsCrafting-Shifts(ResNet18)
Accuracy: 70.37

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Crafting Distribution Shifts for Validation and Training in Single Source Domain Generalization | Papers | HyperAI