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.
Addressing the Identity Crisis in Video Generation
Existing T2V models struggle with two primary limitations:
- 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.
- 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.
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