Text-image Alignment for Diffusion-based Perception
Neehar Kondapaneni, Markus Marks, Manuel Knott, Rogerio Guimaraes, Pietro Perona
TL;DR
This paper introduces Text-Aligned Diffusion Perception (TADP), which uses automated image captions to align text prompts with diffusion-based perception models, significantly improving downstream tasks such as semantic segmentation and monocular depth estimation. By exploring single-domain prompts and cross-domain caption modifiers, the authors demonstrate substantial gains, including state-of-the-art results on ADE20K and NYUv2, and strong cross-domain transfers from VOC to Watercolor2K and Cityscapes to Dark Zurich/Nighttime Driving. Key insights include the superiority of caption-based conditioning over averaged EOS tokens, the importance of target-domain alignment for cross-domain performance, and the value of model personalization via Textual Inversion or DreamBooth. The work showcases the diffusion backbone’s robust generalization and provides practical guidance for prompting strategies, captioners, and personalization to harness diffusion models for discriminative vision tasks across domains.
Abstract
Diffusion models are generative models with impressive text-to-image synthesis capabilities and have spurred a new wave of creative methods for classical machine learning tasks. However, the best way to harness the perceptual knowledge of these generative models for visual tasks is still an open question. Specifically, it is unclear how to use the prompting interface when applying diffusion backbones to vision tasks. We find that automatically generated captions can improve text-image alignment and significantly enhance a model's cross-attention maps, leading to better perceptual performance. Our approach improves upon the current state-of-the-art (SOTA) in diffusion-based semantic segmentation on ADE20K and the current overall SOTA for depth estimation on NYUv2. Furthermore, our method generalizes to the cross-domain setting. We use model personalization and caption modifications to align our model to the target domain and find improvements over unaligned baselines. Our cross-domain object detection model, trained on Pascal VOC, achieves SOTA results on Watercolor2K. Our cross-domain segmentation method, trained on Cityscapes, achieves SOTA results on Dark Zurich-val and Nighttime Driving. Project page: https://www.vision.caltech.edu/tadp/. Code: https://github.com/damaggu/TADP.
