Adma-GAN: Attribute-Driven Memory Augmented GANs for Text-to-Image Generation

Xintian Wu, Hanbin Zhao, Liangli Zheng, Shouhong Ding, Xi Li · DOI

TL;DR

This paper introduces Adma-GAN, a novel approach to text-to-image generation that enhances image realism and semantic consistency by incorporating explicit attribute information alongside text descriptions. By leveraging an "attribute memory" and a sophisticated cross-modal alignment strategy, Adma-GAN significantly improves upon existing methods, particularly in capturing fine-grained details.

What Problem Does This Paper Address?

Generating realistic and semantically coherent images from text descriptions is a challenging task in AI. Current methods often rely solely on a single sentence to guide image generation. However, a single sentence can be insufficient to capture all the crucial details and attributes that define an image. This limitation can lead to generated images that lack accuracy or miss important visual characteristics. The paper aims to bridge this gap by enriching the text representation with explicit attribute information, thereby providing a more comprehensive understanding for the image generation process.

Methods

The core innovation of Adma-GAN lies in its "attribute memory" and a novel training framework.

  • Attribute Memory: Instead of just using sentence embeddings, the authors construct an "attribute memory" that stores embeddings of various attribute descriptions relevant to the dataset. This memory acts as an auxiliary conditioning signal for the generator.
  • Memory Update Mechanisms: To ensure the attribute memory is dynamic and effective, two update mechanisms are proposed:
  • Sample-aware: Updates are based on individual image samples.
  • Sample-joint: This more advanced mechanism uses Graph Convolutional Networks (GCNs) to model the global co-occurrence patterns and relationships between attributes across the entire dataset, leading to a more robust memory.
  • Attribute-Sentence-Joint Conditional Generator: The generator is conditioned on both the sentence embedding and the attribute embedding extracted from the memory.
  • Cross-Modal Alignment: To ensure consistency between the generated image, the input sentence, and the attributes, a contrastive learning approach is employed. This aligns feature embeddings from different modalities (image, sentence, attribute) in a common space.

Datasets

The proposed method is evaluated on two widely-used datasets:

  • Caltech-UCSD Birds 200 (CUB): A dataset focused on bird species, featuring detailed attribute descriptions for each image.
  • MS COCO: A more general dataset with diverse objects and scenes, where attributes refer to instance object descriptions.

The paper does not introduce new datasets but leverages existing ones to demonstrate the effectiveness of its approach.

Key Insights and Ideas

  • Attributes are Crucial: The paper strongly emphasizes that explicit attribute information is vital for accurate and detailed text-to-image generation, going beyond what a single sentence can convey.
  • Dynamic Attribute Memory: A static attribute memory is less effective than a dynamically updated one. The "sample-joint" mechanism, by considering global attribute correlations, proves superior to the "sample-aware" approach.
  • Joint Conditioning is Powerful: Conditioning the generator on both sentence and attribute embeddings simultaneously leads to significantly better results than relying on either alone.
  • Contrastive Learning for Alignment: Using contrastive learning to align image, sentence, and attribute representations is key to achieving semantic consistency across modalities.

Key Results

Adma-GAN demonstrates substantial improvements over existing state-of-the-art methods:

  • CUB Dataset: Achieved a significant reduction in Fréchet Inception Distance (FID) from 14.81 (DF-GAN baseline) to 8.57.
  • COCO Dataset: Achieved a reduction in FID from 21.42 (DF-GAN baseline) to 12.39.
  • Qualitative Results: The generated images are visually more realistic and semantically consistent, with better details and fewer irregular body shapes compared to baselines.
  • Ablation Studies: The attribute memory, especially the sample-joint update mechanism and attribute initialization, plays a critical role in performance gains. Cross-modal alignment further boosts results.

Limitations and Future Work

  • Attribute Retrieval for Sentence-Only Input: While the method can infer attributes from a sentence for sentence-only generation, the performance is slightly lower than when explicit attributes are provided. Future work could focus on improving this attribute retrieval process.
  • COCO-IS Metric: The paper notes that COCO-IS might not be an ideal metric for multi-object datasets, suggesting the need for better evaluation metrics for such scenarios.
  • Multi-Object Attribute Generation: While the method shows promise on COCO, further exploration into generating complex scenes with multiple interacting objects and their attributes could be a future direction.

Summary updated

BibTeX
@inproceedings{wu2022adma,
  author = {Xintian Wu and Hanbin Zhao and Liangli Zheng and Shouhong Ding and Xi Li},
  title = {{Adma-GAN: Attribute-Driven Memory Augmented GANs for Text-to-Image Generation}},
  booktitle = {ACM Multimedia},
  year = {2022},
  doi = {10.1145/3503161.3547821},
}
Figure