Abstract
Text-to-image generation aims at generating realistic images which are semantically consistent with the given text. Previous works mainly adopt the multi-stage architecture by stacking generator-discriminator pairs to engage multiple adversarial training, where the text semantics used to provide generation guidance remain static across all stages. This work argues that text features at each stage should be adaptively re-composed conditioned on the status of the historical stage (i.e., historical stage's text and image features) to provide diversified and accurate semantic guidance during the coarse-to-fine generation process. We thereby propose a novel Dynamical Semantic Evolution GAN (DSE-GAN) to re-compose each stage's text features under a novel single adversarial multi-stage architecture. Specifically, we design (1) Dynamic Semantic Evolution (DSE) module, which first aggregates historical image features to summarize the generative feedback, and then dynamically selects words required to be re-composed at each stage as well as re-composed them by dynamically enhancing or suppressing different granularity subspace's semantics. (2) Single Adversarial Multi-stage Architecture (SAMA), which extends the previous structure by eliminating complicated multiple adversarial training requirements and therefore allows more stages of text-image interactions, and finally facilitates the DSE module. We conduct comprehensive experiments and show that DSE-GAN achieves 7.48% and 37.8% relative FID improvement on two widely used benchmarks, i.e., CUB-200 and MSCOCO, respectively.
Introduction
State-of-the-art text-to-image (T2I) models typically employ a multi-stage refinement process, evolving a low-resolution "coarse" image into a high-resolution "fine" image. However, a significant limitation in existing frameworks is the use of static text features. In traditional models, the word embeddings provided at the start of the process remain unchanged throughout every stage of generation.
This paper argues that static guidance is counter-intuitive. In a coarse-to-fine rendering process, the semantic focus should evolve alongside the visual resolution. For instance, when generating an image of a bird, the model should initially focus on global concepts like "bird" or "branch." As the resolution increases, the guidance should shift toward fine-grained details like "pointy bill" or "red feathers." DSE-GAN addresses this by allowing text features to "evolve" based on generative feedback, avoiding the common pitfalls of repeated rendering and lack of detail.
Methodology
DSE-GAN introduces two primary architectural innovations: the Dynamic Semantic Evolution (DSE) module and the Single Adversarial Multi-stage Architecture (SAMA).
1. Dynamic Semantic Evolution (DSE) Module
The DSE module acts as the adaptive engine of the network, re-composing text features through three distinct operations:
- Feature Aggregation: The module summarizes the current state of the generated image into representative vectors, providing "generative feedback" to the text encoder.
- Dynamic Element Routing: Using a gating function, the model identifies which specific words in the prompt need to be re-composed at the current stage. This ensures that only relevant semantic information is prioritized at each level of detail.
- Dynamic Subspace Routing: Selected word features are divided into multiple semantic "subspaces" representing different granularities. The model then enhances or suppresses these subspaces to provide stage-aware guidance. For example, it might activate the "texture" subspace of a word only during the final high-resolution stages.
2. Single Adversarial Multi-stage Architecture (SAMA)
Traditional multi-stage GANs require a separate discriminator for every resolution, which is computationally expensive and difficult to stabilize. SAMA simplifies this by utilizing:
- One-Way Discriminator: A single discriminator evaluates the final output, eliminating the need for multiple adversarial training loops.
- Grid Transformer Blocks: Sub-generators utilize transformers instead of standard CNNs to better capture long-range dependencies and global context.
- Weighted Hierarchical Integration: The final image is a weighted sum of outputs from all stages, allowing each sub-generator to focus on adding specific details rather than generating an entire image from scratch.
Experimental Results
The model was evaluated on two standard benchmarks: CUB-200-2011 (fine-grained bird species) and MSCOCO (complex everyday scenes). DSE-GAN set new state-of-the-art records at the time of publication:
- MSCOCO: Achieved an FID of 15.30, a dramatic 37.8% relative improvement over previous benchmarks.
- CUB-200: Achieved an FID of 13.23, a 7.48% relative improvement over the previous state-of-the-art.
Qualitative results demonstrate that DSE-GAN produces significantly more realistic textures and maintains better object coherence in complex scenes compared to static-text models. By allowing the model to "forget" or "re-emphasize" parts of the prompt as the image matures, it avoids the artifacts and semantic drift common in previous architectures.
Conclusion
DSE-GAN demonstrates that treating text as a dynamic input is essential for high-fidelity text-to-image synthesis. By adaptively re-composing semantic guidance and simplifying the adversarial architecture, DSE-GAN achieves substantial improvements in both image quality and semantic consistency. Future work may involve applying these dynamic routing mechanisms to other generative frameworks, such as diffusion models.
Summary updated