Skip to main content
QUICK REVIEW

[Paper Review] Image Transformer

Niki Parmar, Ashish Vaswani|arXiv (Cornell University)|Feb 15, 2018
Generative Adversarial Networks and Image SynthesisComputer Science11 references200 citations
TL;DR

This paper introduces the Image Transformer, a generative model that applies the self-attention mechanism from the Transformer architecture to image generation by restricting attention to local neighborhoods, enabling efficient modeling of large images with large receptive fields. It achieves state-of-the-art performance on ImageNet with a negative log-likelihood of 3.77, improving upon the prior SOTA of 3.83.

ABSTRACT

Image generation has been successfully cast as an autoregressive sequence generation or transformation problem. Recent work has shown that self-attention is an effective way of modeling textual sequences. In this work, we generalize a recently proposed model architecture based on self-attention, the Transformer, to a sequence modeling formulation of image generation with a tractable likelihood. By restricting the self-attention mechanism to attend to local neighborhoods we significantly increase the size of images the model can process in practice, despite maintaining significantly larger receptive fields per layer than typical convolutional neural networks. While conceptually simple, our generative models significantly outperform the current state of the art in image generation on ImageNet, improving the best published negative log-likelihood on ImageNet from 3.83 to 3.77. We also present results on image super-resolution with a large magnification ratio, applying an encoder-decoder configuration of our architecture. In a human evaluation study, we find that images generated by our super-resolution model fool human observers three times more often than the previous state of the art.

Motivation & Objective

  • To extend the Transformer architecture, originally designed for sequential data, to image generation with tractable likelihood estimation.
  • To address the computational infeasibility of full self-attention in images by restricting attention to local spatial neighborhoods.
  • To improve image generation quality and scalability by maintaining large effective receptive fields while reducing computation.
  • To demonstrate state-of-the-art performance on image generation and super-resolution tasks using the proposed architecture.

Proposed method

  • The model uses a standard Transformer decoder with multi-head self-attention, but restricts each head to attend only within local spatial neighborhoods in the image.
  • The local attention mechanism enables efficient computation and scalability to larger images, despite the quadratic complexity of self-attention.
  • The model is trained autoregressively, predicting pixels sequentially with a tractable likelihood under the factorized modeling assumption.
  • For super-resolution, an encoder-decoder configuration is used, where the encoder processes low-resolution images and the decoder generates high-resolution outputs.
  • The architecture maintains significantly larger receptive fields per layer than standard convolutional networks, enhancing feature representation.
  • Training is optimized using standard cross-entropy loss with label smoothing and learning rate scheduling.

Experimental results

Research questions

  • RQ1Can the Transformer architecture be effectively adapted to image generation with tractable likelihood estimation?
  • RQ2How does local attention restriction affect model performance and scalability on large images?
  • RQ3Can the Image Transformer outperform existing convolutional and autoregressive models on ImageNet generation?
  • RQ4Does the model generalize well to other image-to-image translation tasks, such as super-resolution?
  • RQ5How does the model compare to prior work in human evaluation for super-resolution quality?

Key findings

  • The Image Transformer achieves a negative log-likelihood of 3.77 on ImageNet, improving upon the prior state of the art of 3.83.
  • The model significantly outperforms previous methods in image generation quality, as measured by likelihood and human evaluation.
  • In super-resolution with large magnification ratios, the model fools human observers three times more often than the previous state of the art.
  • The local attention mechanism enables training on larger images than previously feasible with full self-attention.
  • The model maintains large effective receptive fields per layer, enhancing its ability to model long-range dependencies.
  • Human evaluation confirms that generated super-resolution images are more realistic and less distinguishable from real images than those from prior models.

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.