TL;DR
CoMoGen is a lightweight, highly efficient framework for mask-guided video generation that creates realistic object and human interactions from a single image and a binary mask sequence. By identifying and targeting specific "Motion Layers" within a Multi-Modal Diffusion Transformer (MMDiT), it achieves state-of-the-art control and physical realism with a fraction of the parameter overhead required by traditional ControlNet approaches.
What Problem Does This Paper Address?
While modern video generation models excel at producing visually stunning and temporally smooth videos, giving users precise control over how objects move and interact remains a major hurdle.
Existing controllable video frameworks typically rely on dense control signals (like optical flow or trajectories) that require heavy pre-processing. When they do use sparse signals like binary masks, they often depend on ControlNet-style architectures. These architectures duplicate the entire model backbone to create a trainable copy, adding a massive 100% parameter overhead during inference and training.
Furthermore, modern Multi-Modal Diffusion Transformers (MMDiTs) process spatial and temporal features uniformly across a sequence of identical blocks. This uniform structure makes it incredibly difficult to pinpoint exactly where motion is generated, leading previous methods to inject control signals blindly across the entire network.
Methods
CoMoGen introduces a surgical, parameter-efficient approach to mask-guided video generation through three core components:
- MaskAdapter: Instead of duplicating the backbone, the authors designed a lightweight module consisting of just two convolutional layers and a linear projection. It downsamples the spatiotemporal binary mask sequence into a latent residual signal ($\Delta Z$), representing the directional update needed to bias the generative velocity field toward the desired motion.
- Motion Layers Identification: To figure out where to inject this signal, the authors analyzed the attention alignment between text subject tokens and mask regions across denoising steps. They discovered that motion formation is highly concentrated within a sparse subset of transformer blocks, which they dub Motion Layers (specifically the top 11 layers in their base model).
- Layer-Selective Injection & LoRA: The mask residual is injected only into these identified Motion Layers. Similarly, Low-Rank Adaptation (LoRA) fine-tuning is restricted exclusively to these blocks, while the rest of the base MMDiT model remains completely frozen.
- Cosine-Weighted Latent Injection: The model uses a reverse cosine schedule to modulate the strength of the mask guidance. Guidance is heavily weighted during early denoising steps—where global structure and coarse motion are established—and smoothly fades to zero in the final steps to let the model refine fine visual details without interference.
Datasets
The authors evaluated CoMoGen across two distinct types of interaction dynamics:
- CLEVRER: A synthetic dataset featuring multiple rigid objects undergoing complex collision events. It was used to evaluate object-to-object interactions, force propagation, and counterfactual dynamics.
- BEHAVE: A real-world dataset containing complex human-object interactions captured in real scenes, characterized by non-rigid human motions, contact-rich manipulations, and heavy occlusions.
- InterPose: An in-the-wild dataset used to evaluate the model's generalization capabilities under diverse, unconstrained real-world conditions.
Key Insights and Ideas
- MMDiT Layers Are Not Created Equal: Even though MMDiT architectures consist of uniform transformer blocks, they naturally delegate tasks. Attention analysis revealed a stark separation in attention scores, proving that motion control is localized rather than distributed evenly across the network.
- Skipping the Wrong Layers Breaks Motion: To validate their "Motion Layers" theory, the authors ran layer-skipping experiments. Skipping non-motion layers merely introduced minor local artifacts, whereas skipping the identified Motion Layers completely disrupted temporal coherence and altered the intended motion trajectories.
- Late-Stage Guidance Causes Artifacts: Constantly forcing the mask guidance throughout the entire diffusion process harms the video quality. Fading the guidance out via a cosine schedule ensures the model can focus its final steps on texture and edge refinement.
- Emergent Secondary Interactions: By training the model to understand the physical context of the scene, guiding just one object or person with a mask causes the surrounding, unmasked environment to react realistically (e.g., a controlled ball hitting an uncontrolled box and causing it to roll away).
Key Results
CoMoGen achieves state-of-the-art performance across both synthetic and real-world benchmarks while drastically reducing computational overhead.
- Quantitative Performance: On the CLEVRER dataset, CoMoGen achieved a Fréchet Video Distance (FVD) of 258.52, significantly outperforming baselines like GoFlow (341.01) and InterDyn (358.02). On the challenging BEHAVE dataset, CoMoGen achieved an FVD of 327.63, compared to InterDyn's 720.14 and MagicMotion's 694.41.
- Extreme Parameter Efficiency: While traditional ControlNet baselines require 100% additional parameters at both inference and training, CoMoGen requires only 1.84% extra parameters at inference and 3.17% during training.
- Downstream Applications: The framework successfully powers diverse applications, including text-to-human animation, object manipulation, motion-to-video animation, and style transfer on out-of-distribution characters.
Limitations and Future Work
The authors note a primary limitation when dealing with extreme and prolonged occlusions. If a controlled subject completely disappears behind an obstacle for an extended period and later re-emerges, the video model occasionally struggles to recover the subject's exact visual identity.
Future work will likely focus on incorporating stronger identity-preservation mechanisms to maintain consistency across long-term occlusions.
Summary updated