Abstract
Generating photo-realistic images from text descriptions remains a significant challenge in cross-modal synthesis. Existing models often struggle with spatial accuracy, inadvertently applying attributes to incorrect regions of an image. This paper introduces the Semantic-Spatial Aware GAN (SSA-GAN), which utilizes a novel Semantic-Spatial Aware Convolutional Network (SSACN) block. By employing a weakly-supervised mask predictor and jointly fine-tuning the text encoder with the generator, SSA-GAN achieves state-of-the-art performance, producing images that precisely align with complex textual prompts.
Introduction
Text-to-image (T2I) generation using Generative Adversarial Networks (GANs) has seen rapid advancement, yet two primary bottlenecks persist. First, standard Conditional Batch Normalization (CBN) applies text-based transformations globally, leading to semantic leakage where attributes (e.g., "red beak") are incorrectly applied to the entire image. Second, most frameworks rely on static, pre-trained text encoders that do not adapt to the visual synthesis task. SSA-GAN addresses these issues by introducing spatial guidance into the normalization process and optimizing the text representation alongside the image generation.
Methodology
One-Stage Generator Architecture
Unlike traditional multi-stage "stacked" GANs that are often unstable, SSA-GAN employs a streamlined one-stage generator. The architecture consists of seven SSACN blocks that progressively refine image features from a $4 \times 4$ resolution up to $256 \times 256$.
Semantic-Spatial Aware Convolutional Network (SSACN)
The core innovation is the SSACN block, which integrates two key components:
- Weakly-supervised Mask Predictor: This module learns to identify text-relevant regions directly from image features without requiring manual mask annotations. It provides spatial guidance for where text information should be applied.
- Semantic-Spatial Condition Batch Normalization (SSCBN): This layer uses the predicted mask to gate text-image fusion, ensuring that affine transformations (scaling and shifting) are localized to the appropriate regions.
Additionally, the bidirectional LSTM text encoder is fine-tuned jointly with the GAN, allowing text features to become more "image-aware" and improving the alignment between linguistic descriptions and synthesized pixels.
Experiments and Results
Datasets and Metrics
The model was evaluated on the CUB (Caltech-UCSD Birds-200-2011) dataset and the COCO (Microsoft Common Objects in Context) dataset. Performance was measured using the Inception Score (IS) for quality and Fréchet Inception Distance (FID) for realism and diversity.
Quantitative Performance
SSA-GAN demonstrated significant improvements over previous state-of-the-art models:
- CUB: Achieved an IS of 5.17, surpassing the previous best of 4.86.
- COCO: Achieved an FID of 19.37, a substantial reduction from the 28.92 reported by DF-GAN.
Qualitative Analysis
Visual comparisons show that SSA-GAN generates clearer backgrounds and more accurate attributes than competing models like DM-GAN and DF-GAN. For instance, when descriptions specify fine-grained details like eye color or beak shape, SSA-GAN consistently places these features correctly within the predicted spatial masks.
Conclusion
SSA-GAN introduces a powerful mechanism for spatial control in text-to-image synthesis. By moving beyond global normalization and adopting joint text-image optimization, the model sets a new benchmark for generating realistic images that faithfully represent complex textual descriptions. Future work may explore the application of this semantic-spatial awareness to interactive image editing and longer-form text prompts.
Summary updated