Resource-Efficient Motion Control for Video Generation via Dynamic Mask Guidance

Sicong Feng, Jielong Yang, Li PengarXiv 2025 · DOI

Abstract

Generating high-quality, motion-consistent videos from text prompts remains a significant challenge due to high computational demands and the difficulty of maintaining object identity across frames. This paper introduces a resource-efficient framework for text-to-video (T2V) generation that utilizes dynamic binary masks to provide precise geometric constraints. By implementing a mask-aware attention mechanism and a first-frame sharing strategy, the proposed model achieves superior foreground-background separation and temporal consistency. Notably, the system can be trained on as few as five videos and runs effectively on consumer-grade hardware like the NVIDIA RTX 4060Ti.

Introduction

Current text-to-video diffusion models often suffer from a "triple threat": excessive computational costs, the need for massive datasets, and poor alignment between text prompts and generated motion. Specifically, many zero-shot or few-shot methods struggle with imprecise positioning—where subjects "teleport" or distort—and foreground-background blending, where moving objects merge into their environment. This research addresses these issues by providing users with "director-level" control through simple mask guidance.

Proposed Methodology

The framework is built upon Latent Diffusion Models (LDMs) and introduces several key innovations to stabilize motion and identity:

Mask-Aware Attention Layer

The standard U-Net architecture is augmented with a cross-attention branch that incorporates foreground masks directly into the attention calculation. This forces the generative process to concentrate on pixels defined by the mask sequence, ensuring the subject follows the intended trajectory without vanishing or distorting.

First-Frame Shared Sampling

To combat "color drift" and flickering, the model employs a first-frame sharing strategy. Latent features from the initial frame are treated as "shared noise" for all subsequent frames. By referencing the first frame’s features through spatial-temporal self-attention, the model maintains the subject's identity throughout the sequence.

Figure 1: The model enables precise control over various subjects (horses, helicopters, birds) using simple binary masks to define motion trajectories.

Experimental Results

The model was trained on specialized datasets containing only 5–8 videos per motion category. Despite this minimal data requirement, it demonstrated significant improvements over existing baselines.

Quantitative Performance

Using CLIP-based metrics, the model achieved a Consistency score of 97.4 and a Text Alignment score of 33.0. These figures represent a substantial lead over established models such as Tune-A-Video and LAMP.

Qualitative Comparison

Visual evaluations highlight the model's ability to maintain clean separation between moving subjects and static backgrounds. While baseline models often produce "ghosting" artifacts or fail to track complex limb movements, the mask-guided approach remains stable.

Figure 2: Comparison between the proposed method and the LAMP baseline. Our approach maintains better object identity and adheres more strictly to the provided masks.

Conclusion

By leveraging binary masks as geometric anchors, this research provides a highly accessible and efficient solution for controlled video generation. The ability to achieve state-of-the-art consistency on consumer hardware opens new doors for independent creators. Future work will focus on automating mask generation to further streamline the creative workflow.

Summary updated

BibTeX
@misc{feng2025resource,
  author = {Sicong Feng and Jielong Yang and Li Peng},
  title = {{Resource-Efficient Motion Control for Video Generation via Dynamic Mask Guidance}},
  year = {2025},
  eprint = {2503.18386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.18386},
}
Figure