The Nuts and Bolts of Adopting Transformer in GANs
Not on the map. Why?
Abstract (arXiv)
Transformer becomes prevalent in computer vision, especially for high-level vision tasks. However, adopting Transformer in the generative adversarial network (GAN) framework is still an open yet challenging problem. In this paper, we conduct a comprehensive empirical study to investigate the properties of Transformer in GAN for high-fidelity image synthesis. Our analysis highlights and reaffirms the importance of feature locality in image generation, although the merits of the locality are well known in the classification task. Perhaps more interestingly, we find the residual connections in self-attention layers harmful for learning Transformer-based discriminators and conditional generators. We carefully examine the influence and propose effective ways to mitigate the negative impacts. Our study leads to a new alternative design of Transformers in GAN, a convolutional neural network (CNN)-free generator termed as STrans-G, which achieves competitive results in both unconditional and conditional image generations. The Transformer-based discriminator, STrans-D, also significantly reduces its gap against the CNN-based discriminators.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 60 of its 72 references that are in the map. First posted on arXiv 25 Oct 2021.
Builds on
60 of 72 references.
References · 60
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 6,013
- 2016Layer Normalizationcited by 5,669
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2014Deep Learning Face Attributes in the Wildcited by 3,693
- 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,588
38 more
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,988
- 2016Improved Techniques for Training GANscited by 2,970
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
- 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,626
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,054
- 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 2,010
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,887
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2019Semantic Image Synthesis with Spatially-Adaptive Normalizationcited by 1,299
- 2016Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Networkcited by 1,204
- 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,198
- 2020Training Generative Adversarial Networks with Limited Datacited by 1,186
- 2021Alias-Free Generative Adversarial Networkscited by 1,184
- 2020Pre-Trained Image Processing Transformercited by 893
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2018Self-Attention Generative Adversarial Networkscited by 809
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2017Wasserstein GANcited by 639
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2020End-to-End Human Pose and Mesh Reconstruction with Transformerscited by 418
- 2020Differentiable Augmentation for Data-Efficient GAN Trainingcited by 363
- 2016A Learned Representation For Artistic Stylecited by 341
- 2021DeepViT: Towards Deeper Vision Transformercited by 289
- 2018cGANs with Projection Discriminatorcited by 254
- 2020DeepFakes and Beyond: A Survey of Face Manipulation and Fake Detectioncited by 233
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2020Artificial Fingerprinting for Generative Models: Rooting Deepfake Attribution in Training Datacited by 201
- 2020Adversarial Generation of Continuous Imagescited by 135
- 2020A U-Net Based Discriminator for Generative Adversarial Networkscited by 128
- 2021ViTGAN: Training GANs with Vision Transformerscited by 110
- 2018How to Start Training: The Effect of Initialization and Architecturecited by 109
- 2020Image Generators with Conditionally-Independent Pixel Synthesiscited by 106
- 2020Improved Consistency Regularization for GANscited by 69
- 2020Positional Encoding as Spatial Inductive Bias in GANscited by 69
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 1.
2 papers.