Diffusion Models for Multi-Task Generative Modeling

Changyou Chen, Han Ding, Bunyamin Sisman, Yi Xu, Ouye Xie, Benjamin Z. Yao, Son Dinh Tran, Belinda Zeng

TL;DR

MT-Diffusion is a new framework that moves diffusion models beyond single-modality generation by training them on multiple tasks and data types simultaneously. By projecting heterogeneous data—like images, labels, and semantic masks—into a shared "diffusion space," the model learns to generate and relate different modalities within a single, principled mathematical framework.

What Problem Does This Paper Address?

While diffusion models have become the gold standard for high-fidelity generation, they are typically "siloed." You have one model for images, another for text, and perhaps a third for audio. However, real-world data is inherently multi-modal.

The authors identify two major gaps:

  1. Lack of Joint Modeling: There isn't a principled way to enable joint modeling and generation of multi-modal data (e.g., generating an image and its label at the same time) within the standard diffusion framework.
  2. Untapped Multi-Task Synergy: In fields like NLP, models like BERT proved that training on multiple tasks (like masked token prediction) creates more generalized and powerful representations. Diffusion models haven't fully leveraged this "multi-task" advantage to improve generative performance.

Methods

The core innovation is the MT-Diffusion (Multi-Task Diffusion) architecture and its underlying theory.

MT-Diffusion Architecture Overview
  • Shared Diffusion Space: To handle different data types (e.g., a discrete label vs. a continuous image), the authors use modality-specific encoders to map everything into a common latent space.
  • Forward Aggregation: In the forward (noising) process, information from multiple modalities is aggregated. Instead of just adding noise to a single data point, the model defines a transition distribution that incorporates weighted information from all tasks.
Detailed Encoder and Backbone Structure
  • Reverse Denoising with Task Heads: The reverse process uses a shared U-Net backbone to handle the heavy lifting of denoising. To get back to specific data types, they attach "modality-specific decoder heads" to the backbone.
  • Multi-Task ELBO: The authors derive a new Evidence Lower Bound (ELBO) that generalizes the standard diffusion loss. This allows the model to optimize for multiple tasks (like image generation and classification) simultaneously using a single, unified loss function.

Datasets

The researchers validated their framework across several diverse settings:

  • ImageNet-64 & ImageNet-128: Used for large-scale generative modeling, masked-image training, and joint image-label generation.
  • Cityscapes: Used for image translation tasks (converting semantic segmentation masks to realistic street scenes).
  • night2day: A dataset for translating images between different times of day.
  • LAION: Used for fine-tuning experiments with Stable Diffusion v2 to demonstrate joint image-representation generation.

Key Insights and Ideas

  • The "Generative BERT" Moment: One of the most compelling applications is Masked-Image Training. By treating the recovery of masked image patches as a secondary task alongside pure generation, the model learns global structures more efficiently. It’s not just "inpainting"; it's using the mask as a signal to learn better generative features.
  • Positive Transfer: The paper demonstrates that multi-tasking isn't just a convenience—it's a performance booster. For example, jointly modeling images and labels actually improves classification accuracy compared to pure supervised training.
  • Principled Integration: Unlike "guided" diffusion (which often feels like a hacky addition to a pre-trained model), MT-Diffusion integrates multiple modalities into the very fabric of the forward and reverse equations.

Key Results

  • Efficiency Gains: On ImageNet-64, the MT-Diffusion-X variant achieved an FID of 9.85, significantly outperforming the standard ADM (Ablated Diffusion Model) baseline, which sat at 23.22 at the same number of training iterations (1M).
  • Superior Restoration: In masked image recovery, MT-Diffusion achieved an LPIPS score of 0.035 (lower is better), dwarfing the performance of SDEdit (0.400), proving it maintains much better consistency in unmasked regions.
  • Classification Boost: The joint image-label model achieved higher per-pixel and per-class accuracy on Cityscapes compared to specialized models like CycleGAN and pix2pix.
  • Qualitative Excellence: The model successfully generated high-quality, semantically consistent images from text by fine-tuning Stable Diffusion with its multi-task framework, often producing more coherent results than the baseline.

Limitations and Future Work

  • Modality Scaling: While the framework is "principled," most experiments focused on two modalities at a time. Scaling this to three or more (e.g., image + text + audio) remains a challenge for future exploration.
  • Hyperparameter Sensitivity: The model introduces new weights to balance different tasks. Finding the "sweet spot" for these weights currently requires manual tuning.
  • Architecture Evolution: The authors primarily used U-Nets, but they suggest that moving to Transformer-based backbones (like DiT) could further unlock the potential of multi-task diffusion, especially for high-resolution data.

Summary updated

BibTeX
@inproceedings{chen2024diffusion,
  author = {Changyou Chen and Han Ding and Bunyamin Sisman and Yi Xu and Ouye Xie and Benjamin Z. Yao and Son Dinh Tran and Belinda Zeng},
  title = {{Diffusion Models for Multi-Task Generative Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=cbv0sBIZh9},
}
Figure