Abstract
We introduce layered controllable video generation, where we, without any supervision, decompose the initial frame of a video into foreground and background layers, with which the user can control the video generation process by simply manipulating the foreground mask. The key challenges are the unsupervised foreground-background separation, which is ambiguous, and ability to anticipate user manipulations with access to only raw video sequences. We address these challenges by proposing a two-stage learning procedure. In the first stage, with the rich set of losses and dynamic foreground size prior, we learn how to separate the frame into foreground and background layers and, conditioned on these layers, how to generate the next frame using VQ-VAE generator. In the second stage, we fine-tune this network to anticipate edits to the mask, by fitting (parameterized) control to the mask from future frame. We demonstrate the effectiveness of this learning and the more granular control mechanism, while illustrating state-of-the-art performance on two benchmark datasets.
Introduction
While deep generative models like GANs and VAEs have achieved remarkable success in creating realistic imagery, providing granular control over video generation remains a significant hurdle. Most existing controllable models either rely on global semantic labels (e.g., "tennis") or require dense, expensive manual annotations like human pose keypoints.
This research addresses the challenge of achieving frame-level control using only raw, unlabeled video data. The core difficulty lies in two areas: performing unsupervised foreground-background separation without explicit object labels, and training a model to react to manual "drag-and-drop" user edits when the training data only contains natural, smooth motions.
Methodology
The proposed framework utilizes a two-stage learning procedure built upon a Vector Quantized Variational Autoencoder (VQ-VAE) architecture. The system is designed to treat the foreground mask as an intuitive, spatial proxy for control.
Stage I: Discovery and Prediction
In the first stage, the model learns to decompose a frame into a foreground mask and a background layer without supervision. A Mask Network ($\mathcal{M}$) identifies the moving object, while a Generator Network ($\mathcal{G}$) encodes the layers separately before merging them in the latent space. To ensure effective separation, the authors employ a specific set of losses:
- Background Loss: Enforces background consistency across frames.
- Dynamic Sparsity Prior: Encourages the mask to be as small as possible while still covering moving pixels, preventing the model from trivial solutions like labeling the entire frame as foreground.
- Binarization Loss: Forces the mask to be sharp (0 or 1) to provide clear boundaries.
Stage II: Fine-tuning for Controllability
To bridge the gap between predicting natural motion and responding to active user control, the model undergoes a second stage of fine-tuning. Since real user interaction data is unavailable during training, the authors simulate it by calculating the mathematical transformation (e.g., translation, rotation) that maps a mask from frame $t$ to frame $t+1$ in a real video sequence. The generator is then trained to produce the next frame based on this "pseudo-user" control signal $\theta$.
Experimental Results
The model was evaluated on two standard benchmarks: the BAIR Robot Pushing Dataset (44,000 clips) and a Tennis Dataset (900 clips).
Quantitative Performance
The proposed method significantly outperformed baselines like CADDY in both control precision and visual quality. On the BAIR dataset, the method achieved a 5x improvement in Rooted Mean Square Error of Displacement (RMSED), indicating that the generated objects followed user control signals much more accurately. Furthermore, the model showed superior performance in Fréchet Inception Distance (FID) and Fréchet Video Distance (FVD), reflecting higher image quality and temporal coherence.
Qualitative Insights
- Hallucination: The model demonstrates an ability to "complete" objects. For instance, if a user moves a robot arm, the model can generate parts of the arm that were previously occluded or out of frame.
- Compositionality: Because the model treats the foreground and background as separate layers, users can overlay multiple controlled masks to generate videos with multiple agents, even if the model was trained on single-agent scenes.
Conclusion and Future Work
This work presents a robust method for unsupervised, layered video generation. By using the mask as the controller, it provides an intuitive interface for steering video content. Current limitations include a reliance on relatively static backgrounds and a focus on single-agent training. Future work may explore handling more complex, dynamic backgrounds and capturing non-rigid deformations (like a character bending) that go beyond simple affine mask transformations.
Summary updated