ArtiFix: Localizing and Repairing Artifacts in AI-Generated Videos

Henry Kam, Jenna Kang, Niall L. Williams, Sai Qian Zhang, Qi SunarXiv 2026

TL;DR

AI video generators can render stunning, lifelike scenes—right up until a juggler's ball morphs into his face or a third thumb sprouts mid-frame. Instead of tossing the clip and rolling the dice on a full, expensive regeneration, ArtiFix automatically pinpoints the broken region and surgically repairs only those pixels, leaving the rest of your video completely untouched.

ArtiFix localizes and repairs AI video artifacts while keeping the rest of the clip intact, avoiding the semantic drift of full regeneration.

What Problem Does This Paper Address?

Anyone who has played with modern AI video tools knows the heartbreak of a ruined take: 95% of the frame looks cinematic, while 5% violates the laws of anatomy or physics (in fact, the median artifact covers just 4.4% of a frame).

Until now, your options were frustrating. Regenerating the whole video burns full compute and inevitably alters things you liked—changing the actor's face or ruining the composition. Generation-time fixes require access to the original model, prompt, and random seed. Meanwhile, standard video inpainting (redrawing a masked area) requires a human to manually paint masks frame-by-frame, and often either copies corrupted pixels from nearby frames or forgets what the masked-out object is supposed to look like. Creators needed a "post-production" pipeline that takes only the finished video, finds the glitch automatically, and fixes it without collateral damage.

Methods

ArtiFix breaks the problem into an automatic two-stage pipeline, supercharged by clever efficiency and training tricks:

  1. Compact Video Localizer: Fixing a glitch requires masking more than just the visibly broken pixels—if an object teleports or morphs, you have to redraw the whole affected object and its path. The authors used a massive, slow "teacher" pipeline (Qwen2.5-VL-72B + SAM3) to generate object-level repair masks, then distilled that knowledge into a tiny 45M-parameter video localizer (built on a frozen SAM2.1 image encoder with space-time attention and learned query vectors). Because it asks the exact same implicit question on every clip ("what needs redrawing?"), it skips text generation entirely.
  2. Appearance-Preserving Inpainting: Using VACE-14B (a video diffusion transformer), ArtiFix zeroes out the masked region so the model isn't tempted to copy the glitch. To prevent the model from forgetting what the object looks like, it feeds in a single-frame reference cut-out of the object on a white background. Outside the mask, original pixels are copied verbatim.
  3. Region-Sparse Denoising: Why run a massive diffusion transformer over the whole video when 90% of it is frozen? Utilizing flow-matching properties, ArtiFix restricts active computation to tokens inside the mask, a thin border band, and a sparse global grid—feeding exact, pre-known noisy states to untouched tokens without calling the model.
  4. Same-Context Preference Tuning: Diffusion outputs vary wildly by random seed. The authors generate multiple repair candidates per clip, rank them using Video Jev (a video realism evaluator), and fine-tune the inpainter via Diffusion-DPO (Direct Preference Optimization) using LoRA. Pairs that drift too far in CLIP similarity are dropped so the model learns to fix rather than rewrite.

Datasets

  • BrokenVideos: Used for training the localizer, preference tuning (400 clips), and the main held-out benchmark (103 test clips across 12 generators, featuring human-annotated artifact pixel masks).
  • DeeptraceReward: Real, artifact-free videos mixed into localizer training (making up 25% of samples) so the model learns not to hallucinate repairs on clean footage.
  • 580-Clip Example Pool: A newly assembled, unannotated evaluation pool (520 clips generated from 130 artifact-prone prompts across Wan and CogVideoX models, plus 60 extra BrokenVideos clips) used for large-scale automated testing.

Key Insights and Ideas

  • Automated metrics are terrible judges across different methods—but great within the same mask: Whole-video realism judges (like VLMs or Video Jev) love full video regenerations because the output looks clean, completely ignoring that the juggler turned into a different person. Conversely, preservation metrics (like LPIPS or DINOv2) give a perfect score if you change nothing and leave the extra fingers in! However, when comparing two candidates for the exact same local mask, the unedited surroundings are identical—meaning realism scores suddenly become a clean, reliable signal for DPO tuning.
  • Masking the object vs. masking the glitch: Simply masking distorted pixels leaves surrounding context that causes inpainters to re-draw the defect. Expanding the mask to the whole object while supplying a clean single-frame cutout solves the tug-of-war between artifact removal and identity preservation.

Key Results

  • Blistering Localization Speed: The 45M localizer processes a 5-second clip in 1.2 seconds on one H200 GPU—over 100× faster and 1,600× smaller than its 72B teacher pipeline (140s on two GPUs). It covers 97% of annotated artifact pixels and leaves 88% of clean real videos untouched.
  • Compute Savings: Region-sparse denoising cuts inpainting runtime from 125s down to 77s per clip (processing 60% of tokens on average, and just 42% for masks under 15% of the frame).
  • Human Perceptual Win: Across 1,100 trials with 11 observers (5-point scale), ArtiFix ranked highest in both artifact fixing (3.63) and video preservation (4.36), significantly beating open inpainting and regeneration baselines (e.g., Wan2.2 scored 2.37 fixing / 1.48 preservation). Against the closed commercial Gemini Omni 1.1 Flash (2.95 fixing / 3.40 preservation), ArtiFix achieved significantly better preservation ($p = .012$) and higher average removal ratings.

Limitations and Future Work

  • Resolution and Length: ArtiFix currently processes a single 49-frame window at $832 \times 480$ resolution, and fast, complex motion remains challenging for the inpainter.
  • Edge Cases: If the single-frame reference cutout still contains part of the artifact, the defect can bleed back in. Additionally, large masks reduce the speedups of sparse denoising, and the localizer triggers false-positive edits on 12% of clean real videos.
  • Study Size: Because human trials are intensive and Gemini Omni's content filters rejected several clips, the perceptual study was bounded to 10 randomly drawn clips across 11 observers.
  • Next Steps: The authors highlight scaling repairs across longer videos and integrating their lightweight localizer and sparse denoising directly inside the video generation loop.

Summary updated

BibTeX
@misc{kam2026artifix,
  author = {Henry Kam and Jenna Kang and Niall L. Williams and Sai Qian Zhang and Qi Sun},
  title = {{ArtiFix: Localizing and Repairing Artifacts in AI-Generated Videos}},
  year = {2026},
  eprint = {2611.40165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40165},
}
Figure