MotionCom: Automatic and Motion-Aware Image Composition with LLM and Video Diffusion Prior

Weijing Tao, Xiaofeng Yang, Miaomiao Cui, Guosheng Lin · DOI

Abstract

Traditional image composition techniques focus on visual harmony—aligning lighting and color—but often fail to account for the physical interactions between objects and their environments. We present MotionCom (also referred to as InteractPro), a unified framework that introduces motion-aware composition. By integrating a Large Language Model (LLM) planner with specialized physics simulation and video diffusion modules, MotionCom generates realistic composites where objects naturally deform, sway, or compress in response to their surroundings.

Introduction

Standard image composition typically involves a static "cut-and-paste" approach. While effective for simple overlays, these methods struggle with scenarios requiring structural or dynamic responses. For instance, placing a heavy book on a sandcastle should cause compression, and a flag in a windy field should flutter. Current diffusion models often fail to capture these out-of-distribution physical interactions accurately. MotionCom bridges this gap by treating composition as a dynamic process, ensuring that inserted objects interact realistically with the background scene.

Methodology

The MotionCom framework consists of three primary components designed to handle different aspects of scene interaction:

  1. InteractPlan (The Intelligent Planner): Utilizing GPT-4V, this module acts as a director. It analyzes the user's request and the input images to determine optimal placement. Crucially, it employs Chain-of-Thought (CoT) reasoning to decide whether a scenario requires precise physics simulation or a data-driven diffusion approach.
  2. InteractPhys (The Physics Simulator): For interactions requiring grounded physical responses (e.g., a heavy object crushing a soft one), the framework employs an enhanced Material Point Method (MPM). Unlike standard methods, InteractPhys allows for per-part parameter control, enabling complex scenes where rigid and flexible components coexist. It also utilizes reparameterized physical constants to maintain consistency during optimization.
  3. InteractMotion (The Diffusion Composer): For visually complex, non-contact interactions (e.g., a towel blowing in the wind), the system uses a training-free approach based on Image-to-Video (I2V) diffusion priors. A novel motion-aware inpainting technique animates the foreground object while maintaining a static, seamless background.
The MotionCom framework architecture, featuring InteractPlan, InteractPhys, and InteractMotion modules.

Key Insights

  • Hybrid Intelligence: The framework leverages the strengths of both physics-based simulation (for grounded weight/compression) and generative AI (for complex visual textures like fluids or fabric).
  • LLM-Driven Spatial Planning: Instead of manual bounding boxes, the LLM decomposes the background into logical regions to select the most realistic interaction points.
  • Physics-Consistent Optimization: By analytically deriving material coefficients, the authors prevent common artifacts like "exploding" or jittery behavior in physics-integrated 3D Gaussians.

Experimental Results

MotionCom was evaluated against several state-of-the-art baselines, including Anydoor, Paint-by-Example, and ControlCom, across 30 diverse test groups.

Quantitative Performance

The framework achieved a DINO-fg score of 0.9660, indicating superior preservation of foreground object identity. It also maintained high background fidelity (FID-bg), ensuring the original scene remained intact despite the added motion.

Qualitative and User Study

In a user study with 52 participants, MotionCom was preferred for overall harmony in 65.38% of cases, significantly outperforming the next best competitor (11.54%). Qualitative results demonstrate the model's ability to handle "atypical" interactions, such as objects melting or squishing, which standard diffusion models typically fail to replicate.

Qualitative comparison of InteractPhys against baseline methods for scenarios requiring physical interaction.

Conclusion and Future Work

MotionCom represents a significant step toward physically grounded image composition. While currently limited by the need for 3D reconstruction of objects and some manual material property settings, future iterations aim to automate material inference. By combining LLM reasoning with physics and diffusion priors, MotionCom moves beyond static alignment toward truly interactive and realistic scene synthesis.

Summary updated

BibTeX
@misc{tao2024motioncom,
  author = {Weijing Tao and Xiaofeng Yang and Miaomiao Cui and Guosheng Lin},
  title = {{MotionCom: Automatic and Motion-Aware Image Composition with LLM and Video Diffusion Prior}},
  year = {2024},
  eprint = {2409.10090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.10090},
}
Figure