Skip to main content
QUICK REVIEW

[Paper Review] Exploring Vision Transformers as Diffusion Learners

He Cao, Jianan Wang|arXiv (Cornell University)|Dec 28, 2022
Generative Adversarial Networks and Image SynthesisComputer Science7 citations
TL;DR

This paper proposes ASCEND, a vision Transformer-based diffusion backbone with an asymmetric encoder-decoder architecture, significantly improving performance on image generation tasks. By replacing U-Net with a strong Swin Transformer encoder and lightweight convolutional decoder, ASCEND achieves competitive results on CIFAR-10, CelebA, LSUN, and CUB-Bird, and is the first to train a single-stage text-to-image diffusion model beyond 64×64 resolution, setting a new benchmark for end-to-end high-resolution generation.

ABSTRACT

Score-based diffusion models have captured widespread attention and funded fast progress of recent vision generative tasks. In this paper, we focus on diffusion model backbone which has been much neglected before. We systematically explore vision Transformers as diffusion learners for various generative tasks. With our improvements the performance of vanilla ViT-based backbone (IU-ViT) is boosted to be on par with traditional U-Net-based methods. We further provide a hypothesis on the implication of disentangling the generative backbone as an encoder-decoder structure and show proof-of-concept experiments verifying the effectiveness of a stronger encoder for generative tasks with ASymmetriC ENcoder Decoder (ASCEND). Our improvements achieve competitive results on CIFAR-10, CelebA, LSUN, CUB Bird and large-resolution text-to-image tasks. To the best of our knowledge, we are the first to successfully train a single diffusion model on text-to-image task beyond 64x64 resolution. We hope this will motivate people to rethink the modeling choices and the training pipelines for diffusion-based generative models.

Motivation & Objective

  • To systematically evaluate vision Transformers as diffusion model backbones, especially in comparison to U-Net.
  • To close the performance gap between vanilla ViT and U-Net in low-resolution image generation by improving the U-ViT architecture (resulting in IU-ViT).
  • To propose and validate an asymmetric encoder-decoder architecture (ASCEND) for scalable, high-resolution, and multi-modal diffusion generation.
  • To challenge the status quo of multi-stage training pipelines by demonstrating end-to-end, single-stage high-resolution text-to-image generation using a vision Transformer backbone.
  • To motivate the research community to reconsider backbone design and training paradigms in diffusion-based generative modeling.

Proposed method

  • Propose IU-ViT, an improved version of U-ViT with enhanced skip connections and residual down/up-sampling, replacing patch merging/expanding.
  • Design ASCEND, an asymmetric encoder-decoder backbone using a Swin Transformer encoder and a convolutional decoder for hierarchical feature reconstruction.
  • Use residual downsampling and upsampling instead of patch merging/expanding to improve feature hierarchy and gradient flow.
  • Integrate a pre-trained T5-XXL encoder for text conditioning in text-to-image generation tasks.
  • Train diffusion models end-to-end on large-scale datasets like LAION-Aesthetics for 128×128 and 256×256 resolution image generation.
  • Conduct ablation studies on CIFAR-10 to validate architectural choices, including skip connections, downsampling methods, and encoder/decoder configurations.

Experimental results

Research questions

  • RQ1Can vision Transformers be effectively used as diffusion model backbones, and how do they compare to U-Net in low- and high-resolution generation?
  • RQ2What architectural improvements are necessary to make a vanilla ViT-based backbone competitive with U-Net in diffusion modeling?
  • RQ3Does an asymmetric encoder-decoder structure improve performance and scalability in diffusion-based image generation?
  • RQ4Can a single-stage, end-to-end diffusion model with a vision Transformer backbone generate high-quality images at resolutions beyond 64×64?
  • RQ5How does the choice of encoder architecture (e.g., Swin Transformer) impact performance in high-resolution and text-to-image generation?

Key findings

  • ASCEND achieves a Fréchet Inception Distance (FID) of 2.98 on CIFAR-10, matching the performance of well-tuned U-Net backbones.
  • Replacing patch merging/expanding with residual down/up-sampling in ASCEND reduces FID from 12.81 to 2.98, demonstrating significant architectural gains.
  • Reducing skip connections in ASCEND increases FID by 3.54 points, confirming their importance for feature reconstruction.
  • ASCEND generates high-quality 128×128 text-to-image samples with a 590M-parameter model, marking the first successful single-stage training beyond 64×64 resolution.
  • ASCEND outperforms IU-ViT and U-Net in high-resolution generation, showing faster convergence and better sample quality at later training stages.
  • The ablation study confirms that using SwinBlocks in the encoder and a convolutional decoder yields superior results compared to symmetric or alternative configurations.

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.