---
title: 'Mask2IV: Interaction-Centric Video Generation'
url: https://www.emergentmind.com/topics/mask2iv
type: topic
---

# Mask2IV: Interaction-Centric Video Generation

Mask2IV is a framework for interaction-centric video generation that emphasizes explicit, fine-grained control of actor–object interactions—such as human hands or robotic manipulators manipulating specified objects—without requiring per-frame mask annotations at inference. Unlike fully text-driven or naively mask-conditioned approaches, Mask2IV decouples motion planning from appearance synthesis via a two-stage pipeline: first predicting the motion trajectories of actors and objects as dense mask sequences from high-level cues, and then synthesizing temporally coherent, physically plausible videos conditioned on those trajectories. This design supports versatile user control, fosters policy learning and affordance reasoning in embodied AI, and rigorously addresses the challenges of generating videos with precise, controllable contact dynamics [2510.03135].

## 1. Motivation and Problem Formulation

Interaction-centric video generation aims to synthesize short video clips where an articulated actor (e.g., a hand or robot) interacts with an object in a physically meaningful and temporally coherent manner. Such data is essential for downstream embodied intelligence tasks, including robot learning (e.g., imitation from demonstration), manipulation policy optimization (e.g., pick-and-place training), and affordance reasoning (e.g., determining graspable regions). Despite advances in large-scale diffusion models for text-to-video or image-to-video, these methods often fail to accurately render fine-grained actor–object contacts.

Previous approaches are commonly categorized as (a) text-conditioned generation (e.g., DynamiCrafter), which offers broad diversity of outputs but little control over which object is manipulated or the specifics of the actor’s trajectory, and (b) mask-conditioned generation (e.g., InterDyn, CosHand), which delivers explicit spatial supervision but requires impractical, dense frame-wise annotations from users. Mask2IV is designed to eliminate the dependency on such manual mask inputs at test time while retaining explicit, flexible control over the interaction process [2510.03135].

## 2. Pipeline Architecture

Mask2IV employs a two-stage, decoupled pipeline for interaction-centric video synthesis:

**Stage I (Interaction Trajectory Generation):**  
Inputs consist of an initial RGB image $I$, a user-annotated object mask $M$, and a control cue $C$ (either a text action prompt $T$ for humans or a spatial mask $P$ for robotic targets). The output is a temporally dense sequence of actor-and-object masks $S = \{\hat{M}_t\}_{t=1}^N$, with each $\hat{M}_t\in\{0,1\}^{H\times W\times 3}$ giving per-pixel assignments.

**Stage II (Trajectory-conditioned Video Generation):**  
The same initial image $I$ and trajectory $S$ condition a video generator, yielding $V\in\mathbb{R}^{N\times H\times W\times 3}$ consistent with the predicted mask dynamics.

This decomposition simplifies the modeling of complex interactions, enabling fine-grained control and tractable training.

| Stage       | Input(s)                        | Output                                  |
|-------------|---------------------------------|-----------------------------------------|
| Trajectory  | $I$, $M$, $C$ ($T$ or $P$)      | Mask trajectory $S=\{\hat{M}_t\}_{t=1}^N$ |
| Video       | $I$, predicted $S$              | Video $V\in\mathbb{R}^{N\times H\times W\times 3}$ |

## 3. Mask Trajectory Prediction Module

The trajectory generator is built atop a pretrained image-to-video latent diffusion model. The process is as follows:

- The initial frame $I\in\mathbb{R}^{H\times W\times 3}$ is encoded via a VAE encoder $\mathcal{E}$ to latent $f_i\in\mathbb{R}^{h\times w\times 4}$.
- The object mask $M\in\{0,1\}^{H\times W}$ is color-encoded and mapped to $f_m$.
- The control cue $C$ is either a text prompt $T$ (encoded using CLIP and injected via cross-attention) or a target-position mask $P$ (encoded to $f_p$ and applied to the final timestep).
- The inputs $\{f_i, f_m\}$ are concatenated, expanded across timesteps, and combined with noise latents $z\sim\mathcal{N}(0,I)$ for the diffusion process.
- The UNet-based backbone uses frozen temporal attention layers to preserve motion priors, while other parameters are fine-tuned.

Mathematically, the predicted mask at timestep $t$ is given by
\[
\hat{M}_t = f_\theta(\hat{M}_{1:t-1}, C),
\]
with losses computed as standard denoising diffusion objectives on the mask latents:
\[
\mathcal{L}_{\text{traj}} = \mathbb{E}_{z_0, \epsilon, t} \left\| \epsilon - \epsilon_\theta(z_t, C, t) \right\|_2^2.
\]
No additional cross-entropy or explicit temporal consistency is required.

## 4. Video Generation and Robustness Strategies

The second stage employs a DynamiCrafter-style diffusion network $f_\psi$ conditioned on the predicted mask trajectory. Key features include:

- **Mask Conditioning:** The trajectory $S$ is encoded by the VAE; its latent $f_s$ is concatenated with the tiled image latent $f_i$ and the noise $z$ at each diffusion timestep.
- **Random Dilation/Erosion:** With probability $p=0.2$, masks are randomly morphed, enhancing robustness to spatial variations and segmentation imperfections.
- **Contact Loss:** To enforce accurate rendering at contact regions, a contact mask $m_c$ is computed using binary dilation. The denoising loss is re-weighted with a factor $\lambda=5$ at contact pixels, as
\[
\mathcal{L}_{\text{cond}} = \mathbb{E}_{z,S,\epsilon,t} \left\| w\odot \left(\epsilon - \epsilon_\psi(z, f_s, f_i, t)\right) \right\|_2^2
\]
with $w=(1-m_c)+\lambda m_c$.

## 5. User Interface and Control Modalities

Mask2IV enables several forms of user control:

- **Object Specification:** The user sketches a single binary mask $M$ on $I$ to select the manipulated object.
- **Action Description:** For human–object interaction, users provide a brief, natural-language prompt (e.g., “a hand picking up a mug”), encoded via CLIP.
- **Spatial Cues:** For robotic scenarios, users supply a target-position mask $P$ to designate the final object pose.

Changing $M$, $T$, or $P$ at inference recomputes the trajectory and synthesized video without further annotation, supporting rapid, flexible manipulation scenario prototyping.

## 6. Datasets and Evaluation Protocols

Two benchmarks are curated:

- **Human-Object Interaction (HOI4D):** 19,000 egocentric hand-object clips with actions such as grasping or lifting, paired with verbal descriptions.
- **Robotic Manipulation (BridgeData V2):** 30,000 robot sessions in diverse tabletop settings, with masks extracted via GroundingDINO and SAM2. Object annotation relies on temporal change in IoU; target positions are specified by spatial masks.

Generation quality is assessed via Fréchet Video Distance (FVD), LPIPS, PSNR, and SSIM. Semantic alignment is evaluated with text–video and video–video embedding cosine similarities (T2V-Sim, V2V-Sim), utilizing EgoVLP and ViCLIP for the respective domains.

| Method                | FVD ↓      | LPIPS ↓   | PSNR ↑    | SSIM ↑   | V2V‐Sim ↑ | T2V‐Sim ↑   |
|-----------------------|-----------|-----------|----------|---------|-----------|-----------|
| DynamiCrafter         | 554.5/860.5 | 0.516/0.375 | 13.48/14.21 | 0.553/0.571 | 0.473/0.867 | 0.146/0.215   |
| DynamiCrafter‐ft      | 168.7/197.8 | 0.206/0.166 | 20.49/19.80 | 0.721/0.775 | 0.814/0.957 | 0.199/0.223   |
| CosHand               | 162.9/174.8 | 0.209/0.123 | 20.67/21.81 | 0.725/0.809 | 0.837/0.969 | 0.191/0.220   |
| InterDyn              | 172.4/207.8 | 0.207/0.145 | 20.71/21.16 | 0.730/0.802 | 0.794/0.955 | 0.172/0.219   |
| Mask2IV               | **149.7/155.7** | **0.178/0.111** | **21.48/22.30** | **0.741/0.815** | **0.847/0.971** | **0.200/0.220** |

Mask2IV delivers state-of-the-art scores in all reported metrics across both HOI and robotic benchmarks [2510.03135].

## 7. Ablation and Implementation Details

Component-wise ablation reveals incremental improvements at each stage, notably with direct latent concatenation, object mask trajectories, random dilation/erosion, and contact-region weighting. For instance, on HOI4D, FVD improves from 157.4 (ControlNet adapter) to 104.6 (full Mask2IV pipeline with contact loss).

Training is performed with two NVIDIA A100 (80 GB) GPUs, 16-frame videos at $320\times512$ resolution, AdamW optimizer with learning rate $10^{-5}$, batch size 8, and 50-step DDIM sampler at inference. Training time is approximately 24 hours per benchmark.

## 8. Strengths, Limitations, and Prospects

Mask2IV’s primary strengths are its explicit, annotation-free control over both actor and object trajectories, decoupled pipeline facilitating both flexibility and interpretability, and versatile cue modalities (text or spatial), enabling a wide range of task configurations. Limitations include dependency on the quality of mask segmentation during dataset curation, susceptibility to errors under large camera motion or occlusions, and a lack of real-time inference capability.

Potential future work includes joint end-to-end training of both pipeline stages to tighten mask–video consistency, integration of 3D geometry or physical priors, and extension to multi-actor or long-horizon scenarios. This suggests Mask2IV positions itself as a foundational solution for grounding embodied intelligence pipelines with fine-grained, controllable, and semantically meaningful interaction video data [2510.03135].

Source: https://www.emergentmind.com/topics/mask2iv