Improving GAN Training via Feature Space Shrinkage

Haozhe Liu, Wentian Zhang, Bing Li, Haoqian Wu, Nanjun He +4 more
3/2/2023
8 citations
cs.CVcs.AI

Official code: WentianZhang-ML/AdaptiveMix (39 stars, Python, last commit 2023-04-20).

Abstract

Due to the outstanding capability for data generation, Generative Adversarial Networks (GANs) have attracted considerable attention in unsupervised learning. However, training GANs is difficult, since the training distribution is dynamic for the discriminator, leading to unstable image representation.

Show full abstract

In this paper, we address the problem of training GANs from a novel perspective, \emph{i.e.,} robust image classification. Motivated by studies on robust image representation, we propose a simple yet effective module, namely AdaptiveMix, for GANs, which shrinks the regions of training data in the image representation space of the discriminator. Considering it is intractable to directly bound feature space, we propose to construct hard samples and narrow down the feature distance between hard and easy samples. The hard samples are constructed by mixing a pair of training images. We evaluate the effectiveness of our AdaptiveMix with widely-used and state-of-the-art GAN architectures. The evaluation results demonstrate that our AdaptiveMix can facilitate the training of GANs and effectively improve the image quality of generated samples. We also show that our AdaptiveMix can be further applied to image classification and Out-Of-Distribution (OOD) detection tasks, by equipping it with state-of-the-art methods. Extensive experiments on seven publicly available datasets show that our method effectively boosts the performance of baselines. The code is publicly available at https://github.com/WentianZhang-ML/AdaptiveMix.

View on arXivView PDF

Code Implementations(1)

This is an official pytorch implementation of 'AdaptiveMix: Robust Feature Representation via Shrinking Feature Space' (accepted by CVPR2023).

391Python, CudaMar 1, 20233 years ago

Similar Papers

Cite this paper

@article{liu2023improving,
  title  = {Improving GAN Training via Feature Space Shrinkage},
  author = {Haozhe Liu and Wentian Zhang and Bing Li and Haoqian Wu and Nanjun He and Yawen Huang and Yuexiang Li and Bernard Ghanem and Yefeng Zheng},
  year   = {2023},
  eprint = {2303.01559},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.01559v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.01559.svg)](https://codeofpaper.com/paper/2303.01559)

Discussion