Current image editing models excel at following semantic instructions, but they frequently stumble when asked to obey the basic laws of physics. For example, a model might seamlessly place a straw into a glass of water but forget to render the refraction, leaving the straw perfectly straight.
This paper introduces PhysicEdit, a novel framework that treats image editing not as a static mapping between two images, but as a continuous physical state transition. Powered by a newly curated 38,000-video dataset (PhysicTran38K), PhysicEdit teaches models the "laws of change," setting a new state-of-the-art for open-source physics-aware image editing.
The Problem: Editing as a Discrete Mapping
Most state-of-the-art image editing models treat their task as a discrete mapping: given Image A and a text instruction, produce Image B. The authors argue this paradigm is fundamentally flawed for physics-heavy tasks. Because these models are trained almost exclusively on static image pairs, they only observe the "boundary conditions" (the start and end states). They completely miss the "transition dynamics"—the actual physical processes that govern how an object moves, melts, or refracts light.
As a result, even powerful proprietary models like GPT-4o often hallucinate physically impossible artifacts. Instead of simulating material deformation to "melt" an object, they might simply blur it.
The PhysicEdit Framework
To bridge the gap between static images and dynamic physics, the authors propose PhysicEdit, an end-to-end framework equipped with a "textual-visual dual-thinking" mechanism. This approach decouples the logic of physics from the rendering of pixels:
- Physically-Grounded Reasoning (Textual): Using a frozen Qwen2.5-VL model, PhysicEdit first generates a structured reasoning trace. It explicitly identifies which physical laws apply to the prompt (e.g., "refraction at the water-air interface") and maps out how the scene should logically evolve.
- Implicit Visual Thinking (Visual): Because text cannot adequately describe every pixel-level change, the model employs learnable "transition queries." These queries are trained to distill physical priors from video data into a latent space, providing direct visual guidance to the diffusion process.
- Timestep-Aware Dynamic Modulation: To smoothly execute the edit, the diffusion backbone uses a clever modulation trick. At high noise levels (early in generation), the model prioritizes structural guidance via DINOv2 features to ensure the physical shape is correct. At low noise levels (late in generation), it shifts to texture guidance via VAE features to refine fine-grained details like surface reflections. This avoids the artifacts caused by hard-switching between structural and textural guidance.
PhysicTran38K: Video as a Physics Teacher
The core insight of this work is that video is a natural source of supervision for physics. By training on the trajectories found in videos, the model learns the "missing evolution" between source and target images.
To facilitate this, the authors built PhysicTran38K, a large-scale dataset comprising 38,000 high-quality video-instruction pairs. The dataset spans 5 primary physical domains (Mechanical, Thermal, Material, Optical, Biological), 16 sub-domains, and 46 distinct transition types (e.g., germination, melting, refraction). It was constructed using a rigorous pipeline that included video generation via Wan2.2, geometric stability filtering via ViPE, and principle-driven verification by GPT-5-mini to ensure strict adherence to physical laws.
Key Results
PhysicEdit establishes a new benchmark for open-source image editing, demonstrating significant improvements across multiple rigorous evaluations:
- Physical Realism (PICABench): Achieved an overall score of 64.86, outperforming the previous best open-source model (Qwen-Image-Edit) by 5.9%.
- Knowledge-Grounded Editing (KRISBench): Improved by 10.1% over the baseline, even surpassing proprietary models like Gemini-2.0 and Doubao in specific categories.
- Complex Reasoning (RISE-Bench): More than doubled the "Temporal" score of its backbone model (jumping from 4.7 to 21.2), showcasing a vastly improved grasp of how scenes change over time.
- Human Preference: In head-to-head human evaluations, PhysicEdit secured a 60% win rate across 300 comparisons against other top-tier models.
Limitations and Future Work
While PhysicEdit represents a major leap forward, the authors note a few areas for ongoing research. First, there is a delicate balance between maintaining structural integrity (via DINOv2) and allowing for large, non-rigid deformations like melting. Occasionally, the structural priors are too rigid, which can hinder highly fluid transitions.
Additionally, the authors suggest exploring "multi-physics" scenarios where multiple physical laws interact simultaneously (e.g., an object that is both burning and falling). Finally, as with any high-fidelity editing tool, they acknowledge the need for safeguards against the potential misuse of highly realistic, physics-compliant image manipulations.
Summary updated