TL;DR
Composable Diffusion (CoDi) is a novel generative model capable of processing and generating any combination of modalities—text, image, video, and audio—simultaneously. By aligning modalities in both the input and output spaces, CoDi achieves synchronized, high-quality joint generation (like video with matching audio) without requiring exhaustive training on every possible combination of data.
The Challenge: Beyond Specialist Models
Most current generative AI models are "specialists" restricted to specific pairs like text-to-image or text-to-video. While these models can be chained serially (e.g., generating video then audio), this process is slow and often leads to "drift," where temporal synchronization between modalities is lost.
Achieving true "any-to-any" generation faces two major hurdles:
- Combinatorial Explosion: The number of input-output combinations grows exponentially with each new modality, making exhaustive training computationally infeasible.
- Data Scarcity: High-quality datasets for rare combinations, such as audio-to-video, are extremely limited compared to text-image pairs.
Methodology: Composable Diffusion
CoDi addresses these challenges through a two-stage strategy designed to manage multimodal complexity efficiently.
1. Composable Conditioning (Input Alignment)
Instead of training separate encoders for every modality pair, CoDi employs "Bridging Alignment." Using text as a ubiquitous anchor modality, the model aligns video, image, and audio encoders into a shared feature space (based on CLIP). This allows any combination of inputs to be projected into a unified embedding, which can then be interpolated for multi-conditioned inference.
2. Joint Multimodal Generation (Output Alignment)
To ensure high-quality synthesis, CoDi utilizes independent Latent Diffusion Models (LDMs) for each modality, linked by "Latent Alignment." * Cross-Attention: Cross-attention layers are added to each diffuser to facilitate communication. * Environment Encoders: An environment encoder ($V$) projects the latent variables of different LDMs into a shared space at each diffusion step $t$. This synchronization ensures that temporal events, like a visual splash and its corresponding sound, are perfectly aligned.
Training and Evaluation
CoDi was trained on a massive scale using diverse datasets, including LAION-400M for image-text, AudioSet and AudioCaps for audio, and WebVid-10M for video. The authors also introduced a newly curated Freesound 500K dataset to bolster audio training.
Key Results and Insights
- Linear Training for Exponential Tasks: By aligning to a shared bridge space, CoDi models an exponential number of tasks with only a linear number of training objectives.
- Superior Coherence: Using a new metric, SIM, the authors demonstrated that CoDi's joint generation produces significantly higher coherence between modalities than independent generation methods.
- Zero-Shot Versatility: The model successfully handles complex, unseen combinations, such as generating synchronized video and audio from a single text prompt or combining text and audio to generate an image.
Conclusion
CoDi represents a significant step toward a "Swiss Army Knife" for generative AI. While it faces challenges related to computational intensity and data bias, its modular architecture provides a scalable path for incorporating additional modalities like 3D shapes or tactile sensors in the future.
Summary updated