TL;DR
VideoRepair is a training-free, model-agnostic framework that automatically fixes misalignments between text prompts and generated videos. By detecting specific errors and refining only the problematic regions while preserving correctly generated content, it achieves significant alignment improvements with 5-10x less computational overhead than previous refinement methods.
What Problem Does This Paper Address?
While text-to-video (T2V) diffusion models have reached incredible levels of photorealism, they still frequently "hallucinate" or ignore parts of a prompt. Common failures include generating the wrong number of objects (numeracy), swapping attributes (e.g., a blue car instead of a red one), or failing to capture complex spatial relationships.
Existing solutions generally fall into two camps: Prompt Optimization, which iteratively tweaks the text (slow and lacks visual feedback), or External Generators, which use separate models to "patch" the video (often leading to visual inconsistencies). The authors of VideoRepair argue that even a "bad" video usually has "good" parts. The challenge is identifying exactly what is wrong and fixing only those specific areas without destroying the high-quality parts of the video that already work.
Methods
VideoRepair introduces a three-stage "self-correcting" pipeline that can be plugged into any diffusion-based T2V model:
- Misalignment Detection: Instead of a simple "pass/fail" check, the system uses a Large Language Model (LLM) to generate a series of fine-grained spatio-temporal questions based on the prompt (e.g., "Are there two people making pizza?"). A Multimodal LLM (MLLM) then answers these questions to pinpoint exactly which entities or attributes are missing or incorrect.
- Refinement Planning: The system identifies "faithful" entities to preserve. It uses a pointing prompt (e.g., "Point to the bear") and a segmentation model to create a binary mask that separates the "good" regions from the "bad" ones. It also generates a new, targeted "refinement prompt" specifically for the areas that need fixing.
- Localized Refinement: This is the core technical innovation. The model re-initializes noise only in the misaligned regions. To ensure the new content blends perfectly with the preserved content, VideoRepair runs two parallel diffusion paths—one for the preserved region and one for the refined region—and fuses them through a joint optimization process at each denoising step.
Datasets
The authors evaluated VideoRepair across four state-of-the-art T2V backbones (T2V-turbo, VideoCrafter2, CogVideoX-5B, and Wan2.1) using two primary benchmarks:
- EvalCrafter: A comprehensive benchmark where prompts are categorized by attributes like count, color, and action.
- T2V-CompBench: A benchmark specifically designed for compositional logic, focusing on spatial relationships, numeracy, and attribute binding.
Key Insights and Ideas
- "Preserve the Correct, Repair the Wrong": The fundamental insight is that localized regeneration is more efficient and consistent than global regeneration. By keeping the "good" pixels, the model maintains the original video's identity and motion dynamics.
- MLLM as a Surgical Tool: By using MLLMs to answer specific questions rather than just providing a global score, the framework gains "interpretability." You can see exactly why the model decided a region needed repair.
- Joint Optimization for Harmony: Simple "copy-paste" inpainting often leaves visible seams. By optimizing the boundary between preserved and refined regions during the diffusion process, VideoRepair achieves perceptually seamless results.
- Iterative Potential: The framework can be applied multiple times. If the first pass doesn't fix everything, the detection stage will catch the remaining errors for a second round of refinement.
Key Results
VideoRepair consistently outperformed existing refinement baselines (like OPT2I and SLD) across all tested models:
- Alignment Gains: It achieved relative alignment improvements of +6.22% for VideoCrafter2 and up to +9.32% for the Wan2.1 backbone.
- Efficiency: As shown in Figure 5, VideoRepair is significantly faster than competitors. While methods like OPT2I can take hundreds of seconds per video due to iterative prompt searching, VideoRepair typically completes its refinement in about 52 seconds, a 5-10x speedup.
- Quality Preservation: Unlike some methods that improve alignment at the cost of visual "glitches," VideoRepair maintained high scores for visual fidelity, motion smoothness, and temporal consistency.
Limitations and Future Work
The authors identify a few key areas for improvement:
- Evaluator Bottleneck: The system is only as good as the MLLM doing the detection. If the MLLM fails to see an error (a "QA hallucination"), VideoRepair won't fix it.
- Subjective Prompts: The framework relies on objective, verifiable criteria (counts, colors). It struggles with subjective or ambiguous prompts like "a beautiful sunset."
- Fine-grained Details: Current MLLMs are not yet reliable enough to detect errors in complex text rendering (spelling) or subtle facial identities.
Future work aims to incorporate confidence-based gating to ignore unreliable MLLM feedback and temporal mask smoothing to further reduce "mask drift" in highly dynamic scenes.
Summary updated