Skip to main content
QUICK REVIEW

[Paper Review] Unleashing Text-to-Image Diffusion Models for Visual Perception

Wenliang Zhao, Yongming Rao|arXiv (Cornell University)|Mar 3, 2023
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

This paper proposes VPD, a framework that repurposes pre-trained text-to-image diffusion models for visual perception tasks by leveraging their rich vision-language knowledge. Instead of using the full diffusion denoising pipeline, VPD uses the denoising UNet as a backbone, prompts it with text, refines text features via an adapter, and utilizes cross-attention maps for explicit guidance—achieving state-of-the-art results on semantic segmentation, referring image segmentation (73.3% oIoU), and depth estimation (0.254 RMSE).

ABSTRACT

Diffusion models (DMs) have become the new trend of generative models and have demonstrated a powerful ability of conditional synthesis. Among those, text-to-image diffusion models pre-trained on large-scale image-text pairs are highly controllable by customizable prompts. Unlike the unconditional generative models that focus on low-level attributes and details, text-to-image diffusion models contain more high-level knowledge thanks to the vision-language pre-training. In this paper, we propose VPD (Visual Perception with a pre-trained Diffusion model), a new framework that exploits the semantic information of a pre-trained text-to-image diffusion model in visual perception tasks. Instead of using the pre-trained denoising autoencoder in a diffusion-based pipeline, we simply use it as a backbone and aim to study how to take full advantage of the learned knowledge. Specifically, we prompt the denoising decoder with proper textual inputs and refine the text features with an adapter, leading to a better alignment to the pre-trained stage and making the visual contents interact with the text prompts. We also propose to utilize the cross-attention maps between the visual features and the text features to provide explicit guidance. Compared with other pre-training methods, we show that vision-language pre-trained diffusion models can be faster adapted to downstream visual perception tasks using the proposed VPD. Extensive experiments on semantic segmentation, referring image segmentation and depth estimation demonstrates the effectiveness of our method. Notably, VPD attains 0.254 RMSE on NYUv2 depth estimation and 73.3% oIoU on RefCOCO-val referring image segmentation, establishing new records on these two benchmarks. Code is available at https://github.com/wl-zhao/VPD

Motivation & Objective

  • To investigate whether large-scale text-to-image diffusion models, pre-trained on image-text pairs, can be leveraged for downstream visual perception tasks.
  • To address the challenge of transferring knowledge from diffusion models—designed for image generation—to perception tasks that require semantic understanding.
  • To overcome architectural and pipeline incompatibilities between diffusion models and conventional visual perception frameworks.
  • To improve visual-language alignment in perception tasks by explicitly guiding the model with textual prompts and cross-attention maps.
  • To demonstrate that vision-language pre-trained diffusion models can enable faster and more effective adaptation to perception tasks than traditional pre-training methods.

Proposed method

  • Repurposes the denoising UNet of a pre-trained text-to-image diffusion model (e.g., Stable Diffusion) as a feature backbone for natural images, bypassing the full diffusion process.
  • Introduces a textual prompt engineering strategy to guide the denoising process, using natural language descriptions of the input image to elicit semantic-rich features.
  • Employs a learnable adapter module to refine the text embeddings, improving alignment with the visual features extracted from the UNet.
  • Utilizes cross-attention maps between visual and text features as explicit guidance signals for downstream tasks.
  • Combines features from multiple layers of the UNet decoder and fuses cross-attention maps from both upsampling and downsampling blocks for enhanced representation.
  • Presents a single-step denoising inference setup that directly consumes input images and produces semantic features for perception heads.

Experimental results

Research questions

  • RQ1Can pre-trained text-to-image diffusion models, which are optimized for image generation, be effectively repurposed for visual perception tasks like semantic segmentation and depth estimation?
  • RQ2How can the high-level semantic knowledge encoded in vision-language pre-trained diffusion models be extracted and aligned with visual inputs for perception tasks?
  • RQ3What role do cross-attention maps between text prompts and visual features play in improving performance on perception benchmarks?
  • RQ4Does the performance of the proposed framework scale with the pre-training depth of the underlying diffusion model?
  • RQ5Can the proposed method achieve faster convergence and better accuracy compared to conventional visual pre-training paradigms?

Key findings

  • VPD achieves a new state-of-the-art result of 73.3% oIoU on the RefCOCO+val referring image segmentation benchmark.
  • VPD sets a new SOTA of 0.254 RMSE on NYUv2 for depth estimation, significantly outperforming prior methods.
  • The method demonstrates faster convergence and superior performance compared to other pre-training baselines on semantic segmentation (ADE20K).
  • Performance improves with longer pre-training iterations of the underlying diffusion model, with mIoU@8K increasing by over 4 points from SD-1-1 to SD-1-5.
  • Cross-attention maps from both upsampling and downsampling blocks contribute positively, and their average yields the best performance.
  • The success of VPD is attributed to the vision-language knowledge in the diffusion model rather than the model’s capacity alone, as shown by the scaling trend with pre-training depth.

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.