MATRIX: Mask Track Alignment for Interaction-aware Video Generation

Siyoon Jin, Seongchan Kim, Jae Ho Lee, Dahyun Chung, Hyunwook Choi, Jisu Nam, Jiyoung Kim, Seungryong Kim

TL;DR

MATRIX is a new framework designed to fix a major headache in AI video generation: "who does what to whom." By identifying specific "interaction-dominant layers" within Video Diffusion Transformers (DiTs) and aligning their internal attention with object mask tracks, researchers have significantly improved how models handle complex subject-object interactions while reducing hallucinations and identity drift.

The Problem: Interaction Failures in Video Generation

While state-of-the-art video models like Sora or CogVideoX can generate stunning landscapes, they often stumble when asked to depict complex interactions. If you prompt a model with "a woman in a red blouse closes a black laptop," you might encounter two main types of errors:

  • Semantic Grounding Failure: The model generates the wrong object or action (e.g., the woman closes a book instead of a laptop).
  • Semantic Propagation Failure: The model fails to maintain object consistency over time (e.g., the laptop disappears halfway through the video, or a second woman suddenly appears).

The authors argue that current models lack a systematic way to bind text (nouns and verbs) to specific pixels and maintain that binding across time. They set out to answer a fundamental question: How do these models internally represent interactions, and how can we make those representations stronger?

The MATRIX Framework

The researchers first conducted a "layer-wise analysis" of 3D full attention in Diffusion Transformers. They discovered that semantic grounding (linking words to regions) and propagation (tracking those regions) aren't spread evenly across the network; rather, they concentrate in a small subset of interaction-dominant layers.

Based on this insight, they developed the MATRIX (Mask Track Alignment) framework to explicitly supervise these critical layers.

The MATRIX framework aligns attention maps with instance mask tracks, correcting the baseline model's failure to track objects like the "green lid bottle" across frames.

The framework relies on two core alignment strategies:

  1. Semantic Grounding Alignment (SGA): This loss function forces the model's video-to-text attention to align noun tokens with specific object masks, and verb tokens with the union of the interacting objects.
  2. Semantic Propagation Alignment (SPA): This ensures that video-to-video attention remains consistent, effectively "locking" the model's focus on an object as it moves across frames.

Instead of retraining massive models from scratch, the team uses LoRA (Low-Rank Adaptation) to fine-tune only the identified interaction-dominant layers. They also introduce a "causal decoder" that maps abstract attention maps back to pixel-space masks for supervision during training.

Datasets and Evaluation

To train and test this framework, the authors introduced new resources:

  • MATRIX-11K: A curated dataset of 11,000 videos featuring interaction-rich captions and precise, multi-instance "mask tracks" (frame-by-frame outlines of every object involved).
  • InterGenEval: A rigorous evaluation protocol that uses a structured QA approach (via GPT-4o/5) to check 10 specific conditions for every interaction, verifying the state of the objects before, during, and after the action.

Key Insights

  • The "Aha!" Layers: The most striking finding is that you don't need to fix the whole model. In a 42-layer model like CogVideoX-5B, specific layers (like 7, 11, and 12) do the heavy lifting for interactions. Targeting these layers prevents "diluting" the model's general creative abilities.
  • Attention as a Proxy: Internal attention maps are highly reliable predictors of video quality. If the attention map for "bottle" is blurry or drifts to the background, the generated bottle will likely hallucinate or glitch.
  • Verbs are Unions: A key conceptual breakthrough was grounding verbs not to a single point, but to the union of the subject and object masks. This teaches the model that an "interaction" is a spatial relationship between two entities.

Results

  • Superior Interaction Fidelity: On the InterGenEval benchmark, MATRIX achieved an Interaction Fidelity (IF) score of 0.593, significantly outperforming the CogVideoX-5B baseline (0.449) and other open-source models.
  • Human Preference: In side-by-side blind tests, human raters preferred MATRIX results over the baseline with a win rate exceeding 90% across categories like interaction accuracy and semantic grounding.
  • Reduced Hallucination: The model showed a marked improvement in "Human Anatomy" scores, meaning fewer extra limbs or distorted bodies during complex movements like hugging or shaking hands.

Limitations and Future Work

While highly effective, the current framework is capped at five distinct object tracks per scene, which may limit its use in highly crowded environments. Additionally, the authors noted that when an object mask is very small (only a few pixels), the grounding signal becomes weak, leading to potential "drift."

Future directions include integrating other modalities like optical flow to help with motion smoothness, and depth maps to help the model better understand 3D proximity during contact-rich interactions.

Summary updated

BibTeX
@inproceedings{jin2026matrix,
  author = {Siyoon Jin and Seongchan Kim and Jae Ho Lee and Dahyun Chung and Hyunwook Choi and Jisu Nam and Jiyoung Kim and Seungryong Kim},
  title = {{MATRIX: Mask Track Alignment for Interaction-aware Video Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=lhVrFEssk5},
}
Figure