Disentangling Content and Motion for Text-Based Neural Video Manipulation

Levent Karacan, Tolga Kerimoglu, Ismail Inan, Tolga Birdal, Erkut Erdem, Aykut Erdem

Abstract

Text-based video manipulation requires the ability to modify specific semantic attributes of a scene while preserving temporal consistency and identity. Current frame-by-frame editing methods often suffer from flickering and texture artifacts because they fail to separate static content from dynamic motion. We present DiCoMoGAN, a framework that explicitly disentangles these factors using a representation network (RepNet) and a translation network (TraNet). By modeling motion as a continuous flow through Latent Ordinary Differential Equations (ODEs) and employing Multi-Feature Modulation (MFMOD), DiCoMoGAN achieves superior temporal stability and semantic accuracy compared to state-of-the-art baselines.

Introduction

While text-to-image synthesis has reached high levels of maturity, video manipulation remains a significant challenge. The primary difficulty lies in maintaining temporal logic: a person's identity, the background, and the lighting should remain constant while they move, even as specific attributes (like clothing) are modified via natural language instructions.

Existing models often struggle with "texture crawling" or identity loss because they do not distinguish between what is in the scene (content) and how it moves (motion). DiCoMoGAN addresses this by isolating text-relevant features, text-irrelevant features, and dynamic motion trajectories, allowing for precise semantic edits that respect the original video's physical reality.

DiCoMoGAN demonstrates the ability to transform a video sequence based on a text prompt while maintaining the subject's pose and identity.

Methodology

The DiCoMoGAN architecture is divided into two primary components: RepNet for feature extraction and TraNet for video generation.

RepNet: Disentangled Representation

RepNet utilizes a $\beta$-VAE architecture to map video frames into a structured latent space. It performs a three-way disentanglement of the latent code:

  1. Text-Relevant Features: Attributes likely to be changed by the prompt (e.g., garment type or color).
  2. Text-Irrelevant Features: Static attributes that must be preserved (e.g., facial identity, background).
  3. Dynamic Features: The motion trajectory of the subject.

To ensure smooth motion, the authors employ Latent Ordinary Differential Equations (ODEs). Unlike discrete frame-based models, the ODE treats motion as a continuous flow, enabling the model to interpolate between frames and maintain high temporal consistency.

TraNet: Translation and Modulation

TraNet serves as the generative engine. Its core innovation is the Multi-Feature Modulation (MFMOD) layer. This specialized normalization layer takes the disentangled content from RepNet and the target text description (encoded via CLIP) to determine optimal blending weights. This ensures that the text-based changes are applied locally to the target object without bleeding into the rest of the scene.

The DiCoMoGAN architecture featuring RepNet for disentangled representation and TraNet for modulated video generation.

Datasets and Evaluation

The model was evaluated on two datasets:

  • 3D Shapes: A synthetic benchmark for testing the independence of factors like color and scale.
  • Fashion Videos: A new dataset introduced by the authors containing ~3,200 clips of individuals in various garments with detailed textual descriptions.

Results

DiCoMoGAN significantly outperforms frame-based baselines such as SISGAN and ManiGAN in both stability and accuracy:

  • Temporal Consistency: On the Fashion dataset, DiCoMoGAN achieved a Fréchet Video Distance (FVD) of 53.75, a massive improvement over ManiGAN’s 392.59. Lower FVD scores indicate more realistic and fluid video sequences.
  • Semantic Accuracy: Using the MP_CLIP metric, which measures the alignment between the edited video and the text prompt, DiCoMoGAN consistently followed instructions more faithfully than previous methods.
  • Visual Fidelity: Qualitative analysis shows that DiCoMoGAN preserves fine details and identity, whereas competing models often produce blurred results or artifacts during complex motion.

Conclusion

By explicitly disentangling motion from content and leveraging Latent ODEs for temporal modeling, DiCoMoGAN provides a robust framework for text-based video editing. While currently focused on single-object manipulation, the architecture sets a new standard for temporal stability in generative video tasks. Future work will explore expanding this approach to multi-object scenes and finer-grained identity preservation.

Summary updated

BibTeX
@inproceedings{karacan2022disentangling,
  author = {Levent Karacan and Tolga Kerimoglu and Ismail Inan and Tolga Birdal and Erkut Erdem and Aykut Erdem},
  title = {{Disentangling Content and Motion for Text-Based Neural Video Manipulation}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=6IGw6sgo1X},
}
Figure