Unifying Contrastive and Generative Objectives for Visual Understanding and Text-to-Image Generation
Chao Li, Tianhong Li, Sai V Nuthalapati, Hong-You Chen, Satya Narayan Shukla, Jianpeng Cheng, Yonghuan Yang, Jun Xiao, Xiangjun Fan, Aashu Singh, Dina Katabi, Shlok K Mishra
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Diffusion & Image Generation › Diffusion Model Manipulation · Type: new method · Keywords: text-image contrastive learning, text-to-image generation, masking warmup, unified framework, visual understanding
Areas: Multimodal › Multimodal Creation and Editing › Image Generation; Generative Models (Diffusion & Flows) › Pixel-Space Diffusion › Unified Multimodal Models
Summary
DREAM unifies text-image contrastive learning and text-to-image generation in a single model using a masking warmup schedule, enabling efficient decoding and improved performance on downstream tasks.
Explained to a 5-year-old
The paper wants a computer that can both understand pictures and draw pictures from words. To learn, the computer looks at pictures in two ways: sometimes it sees almost everything, sometimes it sees only a little. Usually these two ways fight each other, but the authors let the model switch between them slowly. This lets one part of the model do both understanding and drawing at the same time. At the end, the model can stop drawing early and still make a good picture.
Explained to a 5-year-old, longer
The goal is to make a computer that can both understand pictures and create pictures from words. To learn, the computer needs to see pictures in two different ways. In one way, it looks at almost the whole picture to understand what it shows. In the other way, it looks at a picture that has been covered up a lot, like a puzzle with many missing pieces. These two ways are opposite: one wants the picture to be clear, the other wants it to be hidden. Usually, a computer cannot do both at the same time because they need different things. The authors found a trick: they slowly change how much of the picture is hidden during training. At the start, the picture is mostly shown, and later it becomes more hidden. This way, the computer learns both ways at once. Because of this, a single part of the computer can understand pictures and also help draw new ones. When it is drawing a new picture, it can check how good the picture is early, even before it finishes. This makes the drawing faster and often better than before.
For a technical reader
The paper presents a unified model that simultaneously learns to align text and images (contrastive learning) and to generate images from text (text-to-image generation). The key challenge is that contrastive learning needs most image tokens visible, while generative modeling needs many tokens masked, which are conflicting requirements. The authors solve this by introducing a masking warmup schedule that gradually shifts the masking ratio, allowing both low and high masking to coexist during training. This enables a single encoder to serve both objectives and, at inference, the text encoder can evaluate partially generated images and select the best generation path early, using as little as 12.5 % of the image. Experiments show consistent improvements over separate baselines on tasks such as ImageNet linear probing, 5-shot transfer, ADE20K segmentation, NYU depth estimation, and CC12M FID, while preserving CLIP scores.
Problem
Combining contrastive alignment and generative modeling in a single model is difficult because they require opposite masking regimes: contrastive learning needs mostly visible tokens, while generative modeling needs heavily masked tokens.
Method
The approach employs a masking warmup schedule that gradually shifts the masking distribution, allowing both low and high masking ratios during training, which enables a shared encoder to serve both contrastive and generative objectives.
Results
The approach achieves +1.1% improvement on ImageNet linear-probing, +4.1% on 5-shot transfer, +1.9% on ADE20K segmentation, +6.25% on NYU depth estimation, and reduces CC12M FID by 6.2% while maintaining CLIP Score.
Contributions
It introduces a unified framework that jointly optimizes contrastive and generative objectives via a masking warmup schedule, enabling a single encoder to serve both tasks and allowing early stopping decoding with partial images, and demonstrates synergistic gains over separate baselines on multiple downstream tasks.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction