TL;DR
Many-for-Many (MfM) is a unified framework that trains a single Diffusion Transformer (DiT) from scratch to handle over 10 different image and video tasks simultaneously. By leveraging data from diverse tasks like inpainting, colorization, and super-resolution, MfM achieves state-of-the-art performance in text-to-video generation through multi-task synergy, outperforming larger specialized models while using significantly less training data.
What Problem Does This Paper Address?
The current landscape of AI video generation is fragmented. Most "foundation" models are trained primarily for Text-to-Video (T2V). If you want to perform Image-to-Video (I2V), video editing, or super-resolution, you typically have to fine-tune that foundation model on a specific, smaller dataset.
This approach has two major drawbacks:
- Data Inefficiency: Training a strong T2V model requires massive amounts of high-quality, captioned video data, which is incredibly expensive to produce. Meanwhile, vast amounts of data for "secondary" tasks (like depth maps or masked videos) go unused.
- Task Isolation: Specialized models don't share "knowledge." A model that is great at inpainting doesn't inherently help a T2V model understand spatial boundaries.
The authors of MfM ask: What if we could train one model on everything at once?
Methods
MfM utilizes a Diffusion Transformer (DiT) architecture trained via Flow Matching. The core innovation is a lightweight conditional adapter that standardizes various inputs into a unified representational space.
- The Universal Adapter: Whether the input is a 2D image, a 3D video, a depth map, or a binary mask, the adapter processes them into a feature map that matches the latent space of the model's VAE. This allows the model to treat "conditions" (like a starting frame or a depth map) as part of the core generation process rather than an afterthought.
- 3D Rotary Position Embeddings (RoPE): To handle videos of varying lengths and resolutions, the authors extended RoPE to three dimensions (time, height, width), allowing the model to better understand relative distances between pixels across frames.
- Depth-Aware Generation: MfM incorporates depth maps as a standard condition. This helps the model perceive 3D space, leading to more realistic motion and fewer "hallucinated" physics errors.
- Progressive Joint Learning: The model is trained from scratch, starting with images and low-resolution videos, gradually scaling up to high-resolution, multi-aspect ratio content using a strategy called NaViT.
Datasets
The authors curated a massive multi-source dataset:
- Training: 160M high-quality image-text pairs and 120M video-text pairs (including 40M high-quality and 80M lower-quality clips). Sources include Panda70M, InternVid, and LAION-5B.
- Evaluation: They used the standard VBench for T2V and I2V.
- MfM-Benchmark: To test the model's versatility, they introduced a new benchmark consisting of 480 samples across 16 distinct tasks (e.g., video colorization, outpainting, and transition generation).
Key Insights and Ideas
- The Synergy Effect: The most striking finding is that training on "manipulation" tasks (like inpainting) actually improves the model's ability to generate videos from scratch (T2V). For example, learning to fill in missing parts of a video (inpainting) teaches the model about spatial boundaries, which translates to better object consistency in T2V.
- Depth is the Secret Sauce: Including depth maps during training significantly reduced motion artifacts. The authors found that removing depth conditions led to a 10% drop in motion scores and a 12% drop in scene consistency.
- Efficiency Matters: The 8B parameter MfM model achieved competitive results against commercial engines and open-source giants (like Wan2.1 or HunyuanVideo) while using only about 10% of the T2V-specific training data typically required.
Key Results
- T2V Performance: On the VBench-T2V leaderboard, MfM (8B) achieved the best average rank (2.86), outperforming Sora, Wan2.1, and Gen-3. It excelled particularly in "Appearance Style" and "Overall Consistency."
- I2V Performance: MfM also took the top spot in Image-to-Video tasks with an average rank of 3.33, showing superior imaging quality and dynamic generation compared to specialized I2V models.
- Video Manipulation: In tasks like video inpainting and colorization, MfM showed massive improvements in FID (a measure of image realism), ranging from 16.4% to 72.9% better than existing specialized baselines.
Limitations and Future Work
While MfM is a powerful generalist, the authors noted a few hurdles:
- Implicit Fusion: Currently, the model processes text (1D) and visual conditions (2D/3D) separately before fusing them in the transformer blocks. The authors suggest that using a Vision-Language Model (VLM) as an encoder could allow for more explicit, "earlier" fusion of concepts.
- Complex Interactions: In very high-motion or complex interaction scenes (like a basketball dunk), the model can still produce physically implausible relationships, such as a ball passing through a net incorrectly.
- Text Rendering: Like many current diffusion models, MfM still struggles to render precise, legible text within generated videos.
Future work will likely focus on integrating more powerful multimodal encoders and scaling the "Many-for-Many" philosophy to even larger parameter counts.
Summary updated