[Paper Review] Cycle Text-To-Image GAN with BERT
This paper proposes a Cycle Text-to-Image GAN that integrates BERT embeddings and a cyclic training mechanism to improve image generation from text descriptions. By jointly training text-to-image and image-to-text generation, and using contextualized BERT word representations, the model achieves superior image quality and diversity, outperforming the AttnGAN baseline in both Inception Score (5.92 vs. 3.92 at 100 epochs) and human evaluation (MOS 3.9 vs. 3.6).
We explore novel approaches to the task of image generation from their respective captions, building on state-of-the-art GAN architectures. Particularly, we baseline our models with the Attention-based GANs that learn attention mappings from words to image features. To better capture the features of the descriptions, we then built a novel cyclic design that learns an inverse function to maps the image back to original caption. Additionally, we incorporated recently developed BERT pretrained word embeddings as our initial text featurizer and observe a noticeable improvement in qualitative and quantitative performance compared to the Attention GAN baseline.
Motivation & Objective
- To improve text-to-image generation by addressing domain gap and lack of diversity in GAN-based models.
- To enhance image-text alignment by incorporating a cyclic architecture that learns image-to-text reconstruction.
- To leverage contextualized word embeddings from BERT to improve semantic representation of text descriptions.
- To evaluate the impact of BERT and cyclic training on image quality, diversity, and correspondence to captions.
- To compare the proposed model against the AttnGAN baseline using quantitative and qualitative metrics.
Proposed method
- Adopts a Cycle GAN architecture that jointly trains a text-to-image generator and an image-to-text discriminator to enforce consistency.
- Introduces a cyclic loss that reconstructs the original caption from the generated image, improving alignment between text and image features.
- Replaces the standard word embedding layer in AttnGAN with BERT-based contextualized embeddings for richer semantic representation.
- Uses a stacked GAN framework with two stages: Stage I generates low-resolution image features, and Stage II refines them with attention mechanisms.
- Applies multiplicative attention over word-level features in the generator to focus on relevant words during image synthesis.
- Employs Inception Score and Mean Opinion Score (MOS) for quantitative and human evaluation of image quality and diversity.
Experimental results
Research questions
- RQ1Does incorporating BERT embeddings improve the quality and diversity of text-to-image generation compared to non-contextualized embeddings?
- RQ2Can a cyclic training mechanism that includes image-to-text reconstruction enhance image-text alignment and generation performance?
- RQ3How does the combination of BERT and cyclic training affect convergence speed and final model performance?
- RQ4To what extent does the proposed model outperform the AttnGAN baseline in both quantitative metrics and human evaluation?
- RQ5What is the relative contribution of BERT embeddings versus the cyclic architecture to the overall performance gain?
Key findings
- The CycleGAN with BERT embeddings achieved an Inception Score of 5.92 at 100 epochs, significantly outperforming the AttnGAN baseline (3.92) at the same epoch.
- At 50 epochs, the CycleGAN with BERT reached an Inception Score of 5.48, compared to 2.78 for AttnGAN, indicating faster and more effective training.
- Human evaluation showed a Mean Opinion Score (MOS) of 3.9 for the CycleGAN with BERT, compared to 3.6 for AttnGAN, indicating perceptually better image quality.
- Visual inspection revealed that the CycleGAN with BERT produced sharper, more realistic images with better color accuracy and finer details, such as beak structure.
- The model demonstrated improved image-text correspondence, as evidenced by the higher MOS and better reconstruction of semantic attributes in generated images.
- The Inception Score continued to increase and stabilize over 100 epochs, suggesting the model benefits from longer training and has not yet converged.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.