HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

QT-DoG: Quantization-aware Training for Domain Generalization

Saqib Javed Hieu Le Mathieu Salzmann

QT-DoG: Quantization-aware Training for Domain Generalization

Abstract

Domain Generalization (DG) aims to train models that perform well not only on the training (source) domains but also on novel, unseen target data distributions. A key challenge in DG is preventing overfitting to source domains, which can be mitigated by finding flatter minima in the loss landscape. In this work, we propose Quantization-aware Training for Domain Generalization (QT-DoG) and demonstrate that weight quantization effectively leads to flatter minima in the loss landscape, thereby enhancing domain generalization. Unlike traditional quantization methods focused on model compression, QT-DoG exploits quantization as an implicit regularizer by inducing noise in model weights, guiding the optimization process toward flatter minima that are less sensitive to perturbations and overfitting. We provide both theoretical insights and empirical evidence demonstrating that quantization inherently encourages flatter minima, leading to better generalization across domains. Moreover, with the benefit of reducing the model size through quantization, we demonstrate that an ensemble of multiple quantized models further yields superior accuracy than the state-of-the-art DG approaches with no computational or memory overheads. Our extensive experiments demonstrate that QT-DoG generalizes across various datasets, architectures, and quantization algorithms, and can be combined with other DG methods, establishing its versatility and robustness.

Code Repositories

saqibjaved1/QT-DoG
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
domain-generalization-on-pacs-2EoQ (ResNet-50)
Average Accuracy: 90.7
domain-generalization-on-pacs-2QT-DoG (ResNet-50)
Average Accuracy: 87.89
domain-generalization-on-terraincognitaEOQ (ResNet-50)
Average Accuracy: 53.2
domain-generalization-on-terraincognitaQT-DoG (ResNet-50)
Average Accuracy: 50.8

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