UniVG: A Generalist Diffusion Model for Unified Image Generation and Editing
Tsu-Jui Fu, Yusu Qian, Chen Chen, Wenze Hu, Zhe Gan, Yinfei Yang
TL;DR
UniVG addresses the fragmentation of diffusion models by proposing a single generalist diffusion model that supports T2I generation, editing, and related tasks with one set of weights. It uses a minimalist MM-DiT-based latent-diffusion backbone and a flow-matching objective, with latent noise, VAE latent, and mask concatenated along the channel dimension, and it enables external control through embedding replacement. The training pipeline is three-stage: foundation T2I pretraining, multi-task expansion, and ID-preserving finetuning on a diverse data mix, yielding strong results across tasks. The model achieves a GenEval score of $0.70$ and outperforms task-specific and unified baselines on several benchmarks, while maintaining inference efficiency by keeping a fixed sequence length.
Abstract
Text-to-Image (T2I) diffusion models have shown impressive results in generating visually compelling images following user prompts. Building on this, various methods further fine-tune the pre-trained T2I model for specific tasks. However, this requires separate model architectures, training designs, and multiple parameter sets to handle different tasks. In this paper, we introduce UniVG, a generalist diffusion model capable of supporting a diverse range of image generation tasks with a single set of weights. UniVG treats multi-modal inputs as unified conditions to enable various downstream applications, ranging from T2I generation, inpainting, instruction-based editing, identity-preserving generation, and layout-guided generation, to depth estimation and referring segmentation. Through comprehensive empirical studies on data mixing and multi-task training, we provide detailed insights into the training processes and decisions that inform our final designs. For example, we show that T2I generation and other tasks, such as instruction-based editing, can coexist without performance trade-offs, while auxiliary tasks like depth estimation and referring segmentation enhance image editing. Notably, our model can even outperform some task-specific models on their respective benchmarks, marking a significant step towards a unified image generation model.
