TL;DR
Current video generation models excel at visual quality but fail at complex, non-rigid physical deformations like melting, stretching, or squeezing. DeforM solves this by using a Visual Large Language Model (VLM) to reason about and track physics-critical regions over time, creating spatial-temporal masks that anchor the generative model's attention. This approach significantly improves both the physical realism and dynamic fidelity of generated videos without sacrificing visual quality.
What Problem Does This Paper Address?
While rigid-body motions (like a ball bouncing or falling) can be modeled with simple trajectories, non-rigid deformation dynamics (melting cheese, squeezing a sponge, fracturing a toy) involve high-dimensional transformations. Standard video diffusion and flow-matching models suffer from a "semantic-spatial gap": when given a prompt like "melting," their attention is diluted across the entire frame rather than concentrated on the specific object. This leads to physically implausible artifacts, such as liquid appearing out of thin air or objects failing to deform properly.
Methods
The authors introduce DeforM, a reasoning-guided image-to-video framework consisting of three main components:
- DeforM-Reason: A cognitive module that uses a VLM (Qwen2.5-VL-7B) to identify the target object from the text prompt and initial image. An open-vocabulary detector (LLMDet) locates the object in the first frame, and the VLM extrapolates its trajectory and deformation over time to generate a binary spatial-temporal mask.
- DeforM-Free: A training-free inference strategy that multiplies the cross-attention queries within the masked region by a focus scale ($\alpha > 1$). This forces the model to anchor its attention to the physics-critical area during inference.
- DeforM-Injection: A powerful training-based method. It uses a 3D convolutional Dense Mask Modulator to project the spatial-temporal mask into high-dimensional features, injecting them into both cross-attention (for semantic alignment) and self-attention blocks (for spatial-temporal consistency). It is optimized using a composite loss that prioritizes reconstruction error within the masked regions.
Datasets
The authors curated a specialized subset of the WISA-80K dataset, filtering it down to approximately 6,322 high-quality deformation dynamics samples covering melting, squeezing, fracturing, stretching, and slicing. They implemented a VLM-assisted data cleaning pipeline to filter out samples with visual impairments, subtle/negligible dynamics, or label noise. Evaluation was conducted on a separate test set of 320 samples for visual quality (using VBench metrics) and 160 samples for physical consistency.
Key Insights and Ideas
- The Attention Dilution Problem: Visualizing cross-attention maps revealed that base models fail at deformation because their attention for action keywords (like "melting") is scattered across the entire frame. Anchoring this attention to the object boundaries is the key to physical plausibility.
- Semantic vs. Structural Control: Cross-attention modulation (DeforM-Cross) primarily helps with semantic adherence and physical commonsense, while self-attention modulation (DeforM-Self) is crucial for maintaining temporal smoothness and local structural consistency. Synchronizing both yields the best results.
- Training-Free vs. Training-Based: Simple attention scaling (DeforM-Free) works surprisingly well if the base model already possesses latent knowledge of the physics, but explicit feature injection (DeforM-Injection) is necessary to synthesize complex, high-fidelity deformations that the base model struggles to generate natively.
Key Results
DeforM-Injection was built on top of Wan2.2-TI2V-5B and compared against state-of-the-art (SOTA) baselines including CogVideoX1.5-I2V, Hunyuan-I2V, and MAGI-1.
- Visual Quality: DeforM achieved the highest overall quality score (73.17) and a massive boost in Dynamic Degree (54.74 vs. Hunyuan's 27.74), proving it generates actual motion rather than nearly static scenes.
- Physical Consistency: Evaluated by Qwen3-VL-32B across Physical Commonsense (PC), Semantic Adherence (SA), and Local Deformation Fidelity (LDF), DeforM scored 4.40 overall, significantly outperforming the vanilla Wan2.2 baseline (3.49) and the closest competitor, Wan2.2-14B (3.95).
Limitations and Future Work
- Mask Dependency: DeforM relies heavily on the localization and temporal planning accuracy of the DeforM-Reason module. In highly complex or cluttered scenes, it may generate suboptimal spatial-temporal masks.
- Base Model Constraints: Because the framework uses LoRA fine-tuning on a frozen foundation model, its ultimate generation quality and scene diversity are still bounded by the inherent capabilities of the underlying base video generator.
Summary updated