When Neural Networks Fail to Generalize? A Model Sensitivity Perspective

Domain generalization (DG) aims to train a model to perform well in unseen domains under different distributions. This paper considers a more realistic yet more challenging scenario, namely Single Domain Generalization (Single-DG), where only a single source domain is available for training. To tackle this challenge, we first try to understand when neural networks fail to generalize? We empirically ascertain a property of a model that correlates strongly with its generalization that we coin as "model sensitivity". Based on our analysis, we propose a novel strategy of Spectral Adversarial Data Augmentation (SADA) to generate augmented images targeted at the highly sensitive frequencies. Models trained with these hard-to-learn samples can effectively suppress the sensitivity in the frequency space, which leads to improved generalization performance. Extensive experiments on multiple public datasets demonstrate the superiority of our approach, which surpasses the state-of-the-art single-DG methods by up to 2.55%. The source code is available at https://github.com/DIAL-RPI/Spectral-Adversarial-Data-Augmentation.

Reference

J. Zhang, H. Chao, A. Dhurandhar, P.-Y. Chen, A. Tajer, Y. Xu, P. Yan, " When Neural Networks Fail to Generalize? A Model Sensitivity Perspective ,"

AAAI Conference on Artificial Intelligence (AAAI-2023), 37(9), 11219-11227.

Bibtex

@article{Zhang2023aaai,
title={When Neural Networks Fail to Generalize? A Model Sensitivity Perspective},
volume={37},
url={https://ojs.aaai.org/index.php/AAAI/article/view/26328},
DOI={10.1609/aaai.v37i9.26328}, 
number={9},
journal={Proceedings of the AAAI Conference on Artificial Intelligence}, 
author={Zhang, Jiajin and Chao, Hanqing and Dhurandhar, Amit and Chen, Pin-Yu and Tajer, Ali and Xu, Yangyang and Yan, Pingkun}, 
year={2023}, 
month={Jun.},
pages={11219-11227} 
}