[Paper Review] Improving GAN Equilibrium by Raising Spatial Awareness
This paper proposes EqGAN-SA, a method to improve GAN training equilibrium by enhancing the generator's spatial awareness through learned attention alignment with the discriminator. By injecting multi-level spatial heatmaps and aligning them with the discriminator's GradCAM-based attention, the approach reduces information asymmetry, leading to improved image synthesis quality—evidenced by a 2.96 FID on FFHQ (vs. 3.66 baseline) and enabling interactive editing via heatmap manipulation.
The success of Generative Adversarial Networks (GANs) is largely built upon the adversarial training between a generator (G) and a discriminator (D). They are expected to reach a certain equilibrium where D cannot distinguish the generated images from the real ones. However, such an equilibrium is rarely achieved in practical GAN training, instead, D almost always surpasses G. We attribute one of its sources to the information asymmetry between D and G. We observe that D learns its own visual attention when determining whether an image is real or fake, but G has no explicit clue on which regions to focus on for a particular synthesis. To alleviate the issue of D dominating the competition in GANs, we aim to raise the spatial awareness of G. Randomly sampled multi-level heatmaps are encoded into the intermediate layers of G as an inductive bias. Thus G can purposefully improve the synthesis of certain image regions. We further propose to align the spatial awareness of G with the attention map induced from D. Through this way we effectively lessen the information gap between D and G. Extensive results show that our method pushes the two-player game in GANs closer to the equilibrium, leading to a better synthesis performance. As a byproduct, the introduced spatial awareness facilitates interactive editing over the output synthesis. Demo video and code are available at https://genforce.github.io/eqgan-sa/.
Motivation & Objective
- To address the persistent disequilibrium in GAN training where the discriminator consistently outperforms the generator.
- To investigate the root cause of this imbalance, identifying information asymmetry in spatial awareness between generator and discriminator as a key factor.
- To improve synthesis quality by endowing the generator with explicit spatial awareness aligned to the discriminator’s attention.
- To enable interactive image editing by manipulating spatial heatmaps fed into the generator.
Proposed method
- Injecting randomly sampled multi-level spatial heatmaps as inductive bias into intermediate layers of the generator via a spatial encoding layer (SEL).
- Using GradCAM to extract attention maps from the discriminator on generated images during training.
- Aligning the generator’s spatial awareness with the discriminator’s attention maps through a supervision loss to reduce information asymmetry.
- Employing a hierarchical heatmap sampling strategy that matches the coarse-to-fine synthesis process of StyleGAN2.
- Integrating spatial encoding and attention alignment into the generator network without modifying the discriminator architecture.
- Training the generator with both adversarial loss and the spatial alignment loss to improve regional synthesis fidelity.
Experimental results
Research questions
- RQ1Why does the discriminator consistently outperform the generator in GAN training despite model convergence?
- RQ2How does the discriminator’s self-learned visual attention contribute to its dominance in the adversarial game?
- RQ3Can improving the generator’s spatial awareness reduce the information asymmetry between generator and discriminator?
- RQ4To what extent does aligning generator attention with discriminator attention improve GAN equilibrium and synthesis quality?
- RQ5Can spatially aware generators support interactive image editing through heatmap manipulation?
Key findings
- EqGAN-SA reduces the gap between real and generated image scores in the discriminator, pushing the GAN game closer to equilibrium, as shown in the loss curves of Figure 1.
- On the FFHQ dataset at 256×256 resolution, the method improves FID from 3.66 (StyleGAN2 baseline) to 2.96, indicating substantial quality gains.
- The discriminator’s attention maps remain robust and consistent throughout training, even under noise or poor generation, validating their reliability as supervision signals.
- The spatial awareness introduced by heatmaps enables interactive editing: users can modify output synthesis by altering input heatmaps.
- The method improves synthesis quality without increasing model capacity, suggesting that information asymmetry is a key bottleneck in GAN training.
- The spatial encoding operation occasionally causes blurring at heatmap boundaries, indicating a minor trade-off in implementation.
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.