InTraGen: Trajectory-controlled Video Generation for Object Interactions

Zuhao Liu, Aleksandar Yanev, Ahmad Mahmood, Ivan Nikolov, Saman Motamed, Wei-Shi Zheng, Xi Wang, Luc Van Gool, Danda Pani PaudelarXiv 2024 · DOI

Generating a video from a simple text prompt like "a red car hits a blue car" presents a significant challenge for modern generative AI. Current models often suffer from temporal reasoning deficiency, where the sequence of events is ignored—for instance, showing a collision in the very first frame—or object identities are swapped during close interactions.

Researchers from INSAIT and ETH Zurich have introduced InTraGen, a framework designed to provide "interaction-level control" over video generation. By utilizing precise trajectories and unique object identifiers, InTraGen enables the synthesis of realistic, physics-based interactions that surpass the capabilities of standard text-to-video (T2V) models.

Figure 1: InTraGen generates complex video sequences (right) based on user-provided trajectory conditions (left), maintaining object identity through collisions and chain reactions.

Addressing the Identity Crisis in Video Generation

Existing T2V models struggle with two primary limitations:

  1. Text Ambiguity: Natural language is a low-bandwidth signal for motion. Describing the exact arc of a bouncing ball or the timing of a falling domino is nearly impossible with text alone.
  2. Identity Preservation: When objects overlap or interact closely, models frequently lose track of which is which, often merging them into a single entity or swapping their visual characteristics.

While previous attempts used sparse optical flow to guide motion, they typically ignored static objects and struggled to distinguish between multiple similar items. InTraGen solves this by treating trajectories not just as paths, but as a multi-modal signal that anchors object identity throughout the temporal sequence.

Methodology: Multi-modal Interaction Encoding

The core innovation of InTraGen is its Multi-modal Interaction Encoding pipeline, which integrates directly into a Diffusion Transformer (DiT) backbone. This pipeline consists of two primary components:

  • Sparse Pose Encoding: This captures dynamic information using a color-wheel encoding to represent the direction and speed of an object's movement at every frame.
  • Object ID Encoding: Each object in the trajectory is assigned a unique, constant color ID. This acts as a persistent "anchor," ensuring that an object remains consistent even when it stops moving or is partially obscured by another object.
Figure 2: The InTraGen architecture integrates a Trajectory Control Model with a Diffusion Transformer (DiT). The Interaction Encoder fuses Sparse Pose and Object ID data to guide the denoising process.

These signals are processed by independent encoders and merged via a fusion network. The resulting interaction condition is injected into the DiT blocks, guiding the model to respect both the spatial path and the unique identity of every object in the scene.

The Video Interaction (ViN) Dataset and MTEM Metric

To evaluate the model's performance on complex interactions, the researchers introduced the Video Interaction (ViN) Dataset. This benchmark contains 50,000 high-quality rendered videos across four categories: Pool (complex collisions), Domino (chain reactions), Football (player-ball-goalie interactions), and MOVi-Extended (long-term temporal patterns). The model was also validated on real-world data from Panda-70M and SoccerNet to ensure generalizability.

To quantify success, the authors developed the Matching Trajectory Evaluation Metric (MTEM). This metric uses the Hungarian matching algorithm to compare the user’s input trajectory against the actual paths of objects extracted from the generated video, providing a rigorous measure of trajectory adherence.

Key Results and Insights

InTraGen significantly outperforms baseline models (such as Open-Sora-Plan) and other trajectory-based frameworks across several dimensions:

  • Trajectory Accuracy: On the MTEM metric, InTraGen achieved a score of 9.40%, a substantial improvement over the baseline's 22.17%.
  • Visual Fidelity: The model showed marked improvements in PSNR (26.35 vs 24.42) and LPIPS (12.61 vs 21.39), indicating sharper and more realistic frame generation.
  • Physics Consistency: Qualitative comparisons against commercial models like LUMA and SEINE revealed that while those models often fail to maintain the structure of complex scenes like falling dominoes, InTraGen follows the physics-based trajectory with high precision.

Conclusion and Future Work

InTraGen demonstrates that trajectories serve as a more reliable temporal scaffold than text alone. By treating static objects with the same importance as dynamic ones and utilizing "Identity Anchors," the model avoids common pitfalls in video synthesis. Future work aims to address limitations in extremely crowded scenes and integrate 3D scene understanding to further enhance realism during complex occlusions.

Summary updated

Abstract

Advances in video generation have significantly improved the realism and quality of created scenes. This has fueled interest in developing intuitive tools that let users leverage video generation as world simulators. Text-to-video (T2V) generation is one such approach, enabling video creation from text descriptions only. Yet, due to the inherent ambiguity in texts and the limited temporal information offered by text prompts, researchers have explored additional control signals like trajectory-guided systems, for more accurate T2V generation. Nonetheless, methods to evaluate whether T2V models can generate realistic interactions between multiple objects are lacking. We introduce InTraGen, a pipeline for improved trajectory-based generation of object interaction scenarios. We propose 4 new datasets and a novel trajectory quality metric to evaluate the performance of the proposed InTraGen. To achieve object interaction, we introduce a multi-modal interaction encoding pipeline with an object ID injection mechanism that enriches object-environment interactions. Our results demonstrate improvements in both visual fidelity and quantitative performance. Code and datasets are available at https://github.com/insait-institute/InTraGen
BibTeX
@misc{liu2024intragen,
  author = {Zuhao Liu and Aleksandar Yanev and Ahmad Mahmood and Ivan Nikolov and Saman Motamed and Wei-Shi Zheng and Xi Wang and Luc Van Gool and Danda Pani Paudel},
  title = {{InTraGen: Trajectory-controlled Video Generation for Object Interactions}},
  year = {2024},
  eprint = {2411.16804},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.16804},
}
Figure