Abstract
Traditional generative models for video and image tasks often follow a specialized paradigm, requiring separate models for text-to-video (T2V), image-to-video (I2V), and various manipulation tasks. This approach is computationally expensive and data-intensive. We present Many-for-Many (MfM), a unified framework based on a Diffusion Transformer (DiT) that simultaneously learns a wide array of generation and manipulation tasks. By standardizing diverse inputs through a lightweight adapter and employing a joint image-video training strategy, MfM achieves state-of-the-art performance while utilizing significantly less specialized training data than traditional foundation models.
Introduction
The current landscape of generative AI is dominated by task-specific models. While foundation models for T2V exist, adapting them for downstream tasks like inpainting or colorization typically requires extensive fine-tuning. Moreover, training high-quality T2V models is hindered by the scarcity of well-captioned video data and the difficulty models face in perceiving 3D spatial structures, often leading to physical inconsistencies in generated content.
MfM addresses these challenges by unifying over 10 different tasks into a single training objective. The core hypothesis is that learning manipulation tasks—such as filling in missing regions or inferring color—provides a rich supervisory signal that enhances the model's fundamental understanding of motion and geometry, thereby improving pure generation performance.
The MfM Framework
The MfM architecture utilizes a Diffusion Transformer (DiT) backbone optimized via Flow Matching. To handle the diverse input modalities required by different tasks, the framework introduces three primary innovations:
1. Unified Adapter
A lightweight convolutional adapter standardizes various 3D conditions, including pixel data, depth maps, and masks. These conditions are processed into a unified feature map and added to the latent video features before entering the DiT blocks. This allows a single architecture to process text prompts alongside diverse visual constraints seamlessly.
2. Depth-Conditioned Learning
To mitigate "spatial blindness," MfM incorporates depth maps as a primary conditioning factor. This explicit 3D information helps the model maintain physical consistency and accurate spatial relationships across frames, solving common issues with "flat" generations.
3. Joint Image-Video Strategy
Training begins with a large-scale image dataset to establish strong semantic foundations. The model then undergoes progressive resolution training on video data, scaling from 128px to 720px. This strategy allows the model to learn complex temporal dynamics efficiently at a lower computational cost.
Experimental Results
MfM was evaluated on the VBench leaderboard and a newly proposed MfM-Benchmark covering 16 distinct tasks.
Performance and Synergy
MfM 8B achieved the top average rank on the VBench T2V (3.04) and I2V (3.33) benchmarks, outperforming established models like Sora and Wan2.1. A key finding was the "synergy effect": models trained on multiple manipulation tasks showed a significant boost in "dynamic degree" (0.819) compared to those trained solely on T2V data (0.402). This suggests that tasks like outpainting and colorization are vital for learning realistic motion.
Data Efficiency
By leveraging "messy" or non-traditional data (e.g., masked or grayscale videos), MfM achieves competitive performance using only 10% of the high-quality, captioned video data typically required by foundation T2V models. In manipulation tasks like video inpainting (VINP), MfM demonstrated FID improvements of up to 72.9% over specialized state-of-the-art models.
Conclusion
The Many-for-Many framework demonstrates that multi-task unification is not only possible but beneficial for generative modeling. By breaking down the silos between generation and manipulation, MfM provides a more data-efficient and spatially aware approach to video synthesis. Future work will focus on improving complex physical interactions and more integrated multimodal fusion to handle increasingly sophisticated prompts.
Summary updated