[Paper Review] Generative Adversarial Transformers
The paper introduces GANformer, a novel bipartite transformer architecture that enables efficient, long-range attention in image generation by iteratively refining image features and latent variables through top-down and bottom-up interactions. It achieves state-of-the-art results in image quality, diversity, and disentanglement on both synthetic and real-world datasets, with improved data efficiency and faster convergence compared to prior GANs and transformers.
We introduce the GANformer, a novel and efficient type of transformer, and explore it for the task of visual generative modeling. The network employs a bipartite structure that enables long-range interactions across the image, while maintaining computation of linear efficiency, that can readily scale to high-resolution synthesis. It iteratively propagates information from a set of latent variables to the evolving visual features and vice versa, to support the refinement of each in light of the other and encourage the emergence of compositional representations of objects and scenes. In contrast to the classic transformer architecture, it utilizes multiplicative integration that allows flexible region-based modulation, and can thus be seen as a generalization of the successful StyleGAN network. We demonstrate the model's strength and robustness through a careful evaluation over a range of datasets, from simulated multi-object environments to rich real-world indoor and outdoor scenes, showing it achieves state-of-the-art results in terms of image quality and diversity, while enjoying fast learning and better data-efficiency. Further qualitative and quantitative experiments offer us an insight into the model's inner workings, revealing improved interpretability and stronger disentanglement, and illustrating the benefits and efficacy of our approach. An implementation of the model is available at https://github.com/dorarad/gansformer.
Motivation & Objective
- To address the limitations of standard transformers and CNNs in modeling long-range dependencies and compositional scene structures in image generation.
- To integrate top-down and bottom-up attention mechanisms into a generative modeling framework for improved interpretability and data efficiency.
- To develop a scalable transformer-based architecture that maintains linear complexity while enabling global context modeling in high-resolution image synthesis.
- To evaluate the model’s performance on compositional visual generation tasks, particularly multi-object scenes, and demonstrate its superiority in image quality, diversity, and disentanglement.
Proposed method
- The GANformer employs a bipartite attention mechanism that alternately updates image features and latent variables, enabling bidirectional information flow between them.
- It uses multiplicative integration for flexible, region-based modulation, generalizing the style modulation of StyleGAN to multiple latent vectors.
- The architecture applies simplex and duplex attention operations: simplex for unidirectional (latent-to-image) flow, and duplex for bidirectional interaction.
- The model iteratively refines both representations, supporting the emergence of compositional, disentangled representations through iterative refinement.
- It maintains linear computational complexity by avoiding full self-attention over all image tokens, instead relying on a compact set of latent variables as a bottleneck.
- The framework is trained using a GAN objective, with the generator using the bipartite transformer and the discriminator processing real and generated images.
Experimental results
Research questions
- RQ1Can a bipartite transformer architecture with iterative, bidirectional refinement between latents and image features improve image generation quality and diversity?
- RQ2Does the proposed attention mechanism enable better disentanglement of semantic factors such as object identity, position, and size in multi-object scenes?
- RQ3To what extent does the GANformer improve data efficiency and training speed compared to standard GANs and transformers?
- RQ4How does the model’s internal attention mechanism reflect compositional and interpretable representations of scene structure?
Key findings
- The GANformer achieves state-of-the-art Fréchet Inception Distance (FID) scores of 2.887 on the CLEVR dataset, significantly outperforming StyleGAN (6.435) and other baselines.
- On the CLEVR dataset, the GANformer achieves a DCI disentanglement score of 0.768 and modularity of 0.952, indicating strong disentanglement of latent factors from image attributes.
- The model demonstrates superior image diversity, with Chi-Square statistics indicating better coverage of the uniform distribution of semantic attributes in multi-object scenes.
- Ablation studies show that applying attention earlier and across more layers improves performance and accelerates training, confirming the importance of long-range interactions.
- The GANformer requires fewer training steps and fewer data samples to converge to high-quality results, demonstrating improved data efficiency.
- Visualizations of attention maps reveal coherent, localized, and interpretable attention patterns that align with object-level structures, supporting the model’s compositional reasoning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.