RiFeGAN: Rich Feature Generation for Text-to-Image Synthesis From Prior Knowledge

Jun Cheng, Fuxiang Wu, Yanling Tian, Lei Wang, Dapeng Tao

Introduction

Generating high-fidelity images from natural language descriptions is a significant challenge in computer vision. A primary obstacle is the "information gap": human captions are often sparse and abstract, omitting fine-grained details necessary for realistic synthesis. For instance, a prompt like "a yellow bird" lacks information about beak shape or wing patterns. Existing Text-to-Image (T2I) models often struggle with this ambiguity, leading to generic or low-quality outputs. RiFeGAN (Rich Feature Generation) addresses this by leveraging prior knowledge to enrich sparse user prompts with detailed descriptions retrieved from a knowledge base.

Methodology

The RiFeGAN framework bridges the information gap through three core components:

1. Caption Matching with Prior Knowledge

RiFeGAN treats the training dataset as a "Knowledge Base." Given a user prompt, the system employs an attention-based text-matching model (based on the RE2 architecture) to retrieve $N$ compatible captions from the database. These retrieved captions provide the supplementary details missing from the original prompt.

2. Self-Attentional Embedding Mixture (SAEM)

Fusing multiple, potentially divergent captions is non-trivial. The SAEM module utilizes a self-attention mechanism to extract and blend features across the retrieved set. This creates a unified "rich feature" vector that represents a consensus of the descriptions, effectively handling semantic conflicts (e.g., resolving "tan belly" vs. "white belly" into a single representation).

3. Multi-captions Attentional GAN

The generator is a multi-stage GAN architecture designed to process these enriched features.

The multi-stage Attentional GAN architecture used in RiFeGAN.

To ensure the output image aligns with all provided details, the authors introduce a Multi-Caps DAMSM (Deep Attentional Multimodal Similarity Model) loss function, which enforces semantic consistency across the entire set of enriched captions simultaneously.

Experimental Results

The model was evaluated on the CUB200-2011 (birds) and Oxford-Flower-102 datasets. RiFeGAN demonstrated state-of-the-art performance, particularly in "class zero-shot" settings, proving it learns to synthesize new images rather than memorizing training data.

Quantitative Performance

On the CUB200 dataset, RiFeGAN achieved an Inception Score (IS) of 5.23, a marked improvement over the DM-GAN baseline (4.75). Similar gains were observed on Oxford102, where IS improved from 4.03 to 4.53. The model also showed superior R-precision, indicating better alignment between text and pixels.

Qualitative Analysis

Visual comparisons highlight RiFeGAN's ability to capture fine details that single-caption models typically blur or omit.

Comparison of RiFeGAN results against baselines using multiple retrieved captions.

As shown in the figure, the inclusion of multiple captions allows the model to synthesize specific features like "pointy beaks," "wingbars," and complex stamen structures in flowers more accurately than traditional methods.

Discussion and Conclusion

A key insight of this work is the utility of the training set as a "memory" for inference. The results indicate a clear upward trend in image quality as the number of retrieved captions increases, suggesting that the bottleneck in T2I synthesis is often the amount of descriptive information provided rather than model capacity.

While effective, RiFeGAN faces challenges regarding computational complexity and sensitivity to the underlying text embedding model. Future work may involve integrating more sophisticated semantic embeddings and refining the caption retrieval process to minimize the impact of contradictory features.

Summary updated

BibTeX
@inproceedings{cheng2020rifegan,
  author = {Jun Cheng and Fuxiang Wu and Yanling Tian and Lei Wang and Dapeng Tao},
  title = {{RiFeGAN: Rich Feature Generation for Text-to-Image Synthesis From Prior Knowledge}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01092},
}
Figure