EraseAnything

A Unified Video Eraser for Objects and Overlays

Deshui Miao1Yun Pei2Xingsen Huang3Haijun Zhang1,*Xin Li4,5,*Ming-Hsuan Yang6

1 Harbin Institute of Technology, Shenzhen2 Sun Yat-sen University, Shenzhen Campus3 Hainan University4 Peng Cheng Laboratory5 Pazhou Lab6 University of California, Merced

* Corresponding authors

01 / 02 Circle of faces

Natural High S4 · 现在就出发4

Circle of faces

0:00

The caption bar gives way to large lettering across the sky. Watch the faces around the edge of the frame.

Source · Tencent Video

Abstract

What should change?

A mask can pick out a person and miss their reflection. An instruction can name a subtitle without saying where it appears. EraseAnything uses either cue to select a target and learns from paired clean video how far the edit should extend.

One diffusion transformer reconstructs the full frame in four updates. Training gives extra weight to changes beyond the object mask and teaches the model to locate overlays from an instruction. Throughout reconstruction, the source video provides a stable reference for the surrounding scene.

Inference trajectory

Four updates to a clean frame.

Watch the sampler state and its clean estimate evolve through four recorded updates. Select any step to hold the frame.

Updated sampler state
Predicted clean frame

Method

Select the target.
Reconstruct the scene.

A mask can miss a shadow. An overlay instruction gives no coordinates. Paired clean video teaches the model which pixels should change and which should stay.

A shared diffusion transformer reads source, selection, and semantic context through four Euler updates.

Learn the complete edit

Differences between the input and paired clean video give extra weight to associated changes such as shadows and reflections.

Localize from an instruction

A training-only occupancy head teaches intermediate features to locate overlays when the input mask is empty.

Keep source evidence stable

Asymmetric attention lets the reconstruction read source and selection features. Training through four updates optimizes the delivered output.

Overlay localization without a mask

Across four frames of one clip, the occupancy head tracks changing subtitles and responds to persistent logos and watermarks. Heatmaps show mean occupancy probabilities over four seeds at the first Euler update.

Cyan marks the annotated regions and red outlines predictions at a 0.5 threshold. Select either panel to enlarge.

Benchmark

EraseKeep-Bench

Every background has matched overlay variants and a clean target. The compositing mask lets us measure recovery under an overlay separately from preservation elsewhere.

1,200
Paired variants
200
Backgrounds
6
Task variants
9
Spoken languages
The 200 mixed-overlay cases include 180 short videos and 20 long videos. Identity controls measure preservation on unchanged inputs.

Results

Results by task.

Explore object removal, four types of screen graphics, mixed overlays, and background preservation.

ROSE · full-sequence PSNR+3.44 dBover ROSE
VOR-Eval · full-sequence PSNR+2.92 dBover EffectErase
EraseKeep-Bench · edit PSNR+3.74 dBover box-guided ProPainter on 200 mixed clips

Citation

BibTeX

@misc{miao2026eraseanything,
  title  = {EraseAnything: A Unified Video Eraser for Objects and Overlays},
  author = {Miao, Deshui and Pei, Yun and Huang, Xingsen and
            Zhang, Haijun and Li, Xin and Yang, Ming-Hsuan},
  year   = {2026}
}

Drag to compare

EraseAnything · Project film