Skip to main content
QUICK REVIEW

[Paper Review] Text-to-Image Generation with Attention Based Recurrent Neural Networks

Tehseen Zia, Shahan Arif|arXiv (Cornell University)|Jan 18, 2020
Video Analysis and SummarizationComputer Science24 references6 citations
TL;DR

This paper proposes an attention-based autoregressive image generation model that generates high-quality images from text captions using an encoder-decoder framework with word-to-pixel attention and pixel-to-pixel autoregressive prediction. The model achieves state-of-the-art performance on MS-COCO and MNIST-with-captions datasets, outperforming prior methods in structural similarity and recall metrics by leveraging end-to-end training without external object detectors.

ABSTRACT

Conditional image modeling based on textual descriptions is a relatively new domain in unsupervised learning. Previous approaches use a latent variable model and generative adversarial networks. While the formers are approximated by using variational auto-encoders and rely on the intractable inference that can hamper their performance, the latter is unstable to train due to Nash equilibrium based objective function. We develop a tractable and stable caption-based image generation model. The model uses an attention-based encoder to learn word-to-pixel dependencies. A conditional autoregressive based decoder is used for learning pixel-to-pixel dependencies and generating images. Experimentations are performed on Microsoft COCO, and MNIST-with-captions datasets and performance is evaluated by using the Structural Similarity Index. Results show that the proposed model performs better than contemporary approaches and generate better quality images. Keywords: Generative image modeling, autoregressive image modeling, caption-based image generation, neural attention, recurrent neural networks.

Motivation & Objective

  • To develop a tractable and stable caption-based image generation model that avoids the instability of GANs and intractable inference of VAEs.
  • To eliminate dependency on third-party object detectors or segmentation models by learning latent word-to-pixel alignments end-to-end.
  • To improve image generation quality by modeling both language semantics and pixel-level dependencies in a unified autoregressive framework.
  • To demonstrate superior performance on benchmark datasets using structural similarity and recall metrics.

Proposed method

  • Uses an attention-based encoder to learn alignments between words in the caption and corresponding image regions.
  • Employs a conditional autoregressive decoder to generate pixels sequentially, conditioned on previously generated pixels.
  • Introduces a dual-path learning mechanism: word-to-pixel attention for semantic guidance and pixel-to-pixel autoregression for spatial coherence.
  • Trains the model end-to-end using maximum likelihood estimation on pixel sequences.
  • Leverages the RNN architecture to model long-range dependencies in both language and image spaces.
  • Applies a structured loss function based on pixel-level reconstruction to improve generation fidelity.

Experimental results

Research questions

  • RQ1Can an end-to-end attention-based autoregressive model generate high-quality images from text captions without relying on external object detectors?
  • RQ2How does attention-based word-to-pixel alignment improve image generation quality compared to models using fixed or precomputed image structures?
  • RQ3Does autoregressive modeling with attention provide better stability and performance than GAN-based or VAE-based approaches in text-to-image generation?
  • RQ4To what extent does the model generalize to unseen text descriptions during inference?

Key findings

  • On the MS-COCO dataset, the proposed alignPixelRNN model achieved a Structural Similarity Index (SSI) of 0.166 ± 0.12, outperforming all baseline models including alignDRAW (0.156 ± 0.11).
  • The model achieved a recall@50 of 80.5 on MS-COCO, significantly higher than the next best baseline (alignDRAW at 68.5).
  • On the MNIST-with-captions dataset, the model achieved a recall@50 of 88, with an SSI of 0.356 ± 0.35, indicating strong performance on simpler, structured data.
  • Visual samples show that the model generates sharper and more coherent images than baseline alignDRAW, which generates images in a single pass and refines iteratively.
  • The model's performance is stable and generalizes well, as evidenced by consistent training and validation loss curves with minimal overfitting.
  • The attention mechanism enables the model to learn abstract concept-level alignments without requiring explicit object detection, enabling true end-to-end learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.