Abstract
Generating high-fidelity images from complex textual descriptions remains a significant challenge in computer vision. While multi-stage Generative Adversarial Networks (GANs) have improved image resolution, they often suffer from a "semantic gap" where fine-grained details are lost or the global context drifts during the refinement process. This paper introduces FF-GAN (Fine-grained text-image Fusion GAN), a novel architecture designed to bridge this gap through two primary mechanisms: a Fine-grained text-image Fusion Block (FF-Block) and a Global Semantic Refinement (GSR) module. By utilizing affine transformations for local feature weighting and sentence-level attention for global consistency, FF-GAN achieves state-of-the-art performance on the CUB-200 and MS COCO datasets.
Introduction
Text-to-image (T2I) synthesis has evolved from generating simple low-resolution thumbnails to producing complex, high-resolution scenes. Most modern frameworks adopt a multi-stage approach, progressively refining a coarse initial sketch into a detailed final image. However, this refinement process often encounters two critical hurdles: ineffective fusion of cross-modal features and semantic drift. Standard methods typically rely on simple feature concatenation or basic attention mechanisms, which often fail to capture the nuanced relationships between specific words (e.g., "white superciliary") and their corresponding visual regions. Furthermore, as the model focuses on local textures during refinement, it can lose sight of the global sentence context, leading to images that are visually sharp but semantically inaccurate.
Methodology
The FF-Block: Fine-grained Text-Image Fusion
To address the limitations of standard feature fusion, the authors propose the FF-Block. Unlike traditional concatenation, which treats text and image features as static layers, the FF-Block employs an attention mechanism to map specific words to relevant image regions.
Once these correspondences are established, the block applies an affine transformation. This involves calculating a scaling matrix ($W$) and a shifting matrix ($b$) derived directly from the text features. This mathematical approach allows the model to precisely modulate visual sub-regions—effectively "re-weighting" the importance of certain pixels based on the prompt. By scaling and shifting the feature maps, the model can highlight specific attributes (like the color of a bird's crown) or suppress irrelevant background noise more effectively than simple additive methods.
Global Semantic Refinement (GSR)
While the FF-Block handles local details, the GSR module ensures the model maintains a holistic understanding of the description. During the refinement stages (64x64 $\rightarrow$ 128x128 $\rightarrow$ 256x256), the GSR module utilizes sentence-level attention. This acts as a "global anchor," ensuring that as the generator adds fine-grained textures, the overall composition remains faithful to the original sentence. This dual-pronged approach balances the hierarchy of image generation, managing both the "local" (e.g., beak texture) and the "global" (e.g., a bird perched in a tree).
Experimental Results
Datasets and Metrics
The model was rigorously evaluated on two benchmarks: CUB-200, which contains 200 bird species with highly specific plumage descriptions, and MS COCO, a complex dataset featuring multiple objects in diverse environments. Performance was measured using R-precision (to assess semantic alignment) and Fréchet Inception Distance (FID) (to assess image realism and diversity).
Quantitative Performance
FF-GAN demonstrated significant improvements over previous state-of-the-art models such as Attn-GAN and DM-GAN:
- Semantic Alignment (R-precision): On the CUB dataset, FF-GAN achieved an R-precision of 80.49%, a substantial increase over DM-GAN's 72.31%. On the more complex MS COCO dataset, it reached 91.28%.
- Image Realism (FID): FF-GAN achieved an FID of 15.13 on CUB and 29.44 on COCO. Lower FID scores indicate that the generated images are closer to the distribution of real images, suggesting higher visual quality and diversity.
Qualitative Analysis
Visual comparisons highlight FF-GAN's ability to capture subtle details that other models often neglect. For instance, in bird generation, the model successfully renders specific features like the "white superciliary" (the stripe above the eye). In MS COCO scenes, the model shows a superior ability to maintain the distinct identities of multiple objects within a single frame, avoiding the "blending" or "smearing" common in less sophisticated fusion architectures.
Conclusion and Future Work
FF-GAN represents a significant step forward in high-fidelity text-to-image synthesis. By replacing clunky concatenation with fine-grained affine transformations and reinforcing global context through GSR, the model effectively bridges the semantic gap.
Despite these gains, the authors note that the architecture is computationally intensive. Due to GPU memory constraints, the current refinement process is limited to 256x256 resolution. Future research will focus on optimizing the computational efficiency of these cross-modal fusion blocks to enable the generation of even higher-resolution images without sacrificing the fine-grained semantic control that FF-GAN provides.
Summary updated