LensErase: A Foundation Model for Erase Anything

Yunuo Chen, Xiuyu Wu, Qinhong Yang, Jinjing Zhao, Yanchen Dong, Sirui Zhang, Dong Chen, Fangyun Wei and 6 others

Shanghai Jiao Tong University · Nankai University · USTC · University of Sydney · Peking University · Microsoft

Published October 13, 2026 · on the feed October 15, 2026 · ▲ 45 · arXiv 2610.18072

LLM training & RLModel architectureImage generation & editing Partial arXiv ↗Hugging Face ↗

The abstract

We introduce LensErase, a general-purpose mask-based Erase Anything foundation model designed to cover a broad spectrum of real-world erase scenarios. LensErase supports diverse objects, visual text, watermarks, associated visual effects, multiple-object removal, and a wide range of object scales, aspect ratios, and image resolutions. First, to enable such broad coverage, we construct LensErase-100M, a large-scale dataset containing 101.07 million paired source-mask-target examples spanning diverse erase scenarios. Second, we pretrain LensErase from the text-to-image model Lens, adapting its strong generative prior to mask-based erasing. To efficiently incorporate the source image and erase mask, we propose Mask-Aware RoPE, a 3D rotary positional encoding that directly injects mask information into the source-image tokens without introducing a separate mask token sequence. Finally, we refine the model through supervised fine-tuning and reinforcement learning with contract-guided, region-aware rewards, and apply TraceFusion at inference to preserve high-fidelity content outside the effective edit region. Across six public benchmarks and the proposed LensErase-Bench, LensErase achieves substantial improvements under both reference-based objective metrics and reference-free VLM evaluation. We hope LensErase can serve as a foundational model for erase-related applications and systems.

The Brief

2:34

A short podcast summary of the paper. Written and voiced by AI.

Transcript

LensErase. A Foundation Model for Erase Anything. By Yunuo Chen and thirteen others, from Shanghai Jiao Tong University, Nankai University, and four other institutions. Published on the thirteenth of October. Its code repository is public but slight: two source files.

Erasing something from an image covers far more ground than removing one object. Real-world erase requests involve visual text, watermarks, the visual effects associated with an object, several objects at once, and every range of object scale, aspect ratio and image resolution. A model meant to handle all of that needs coverage that a narrow erase tool does not have.

LensErase is offered as a general-purpose, mask-based foundation model for Erase Anything, designed to span that whole spectrum of scenarios. It is built in three moves: a very large dataset, pretraining from an existing generative model, and a refinement stage.

The dataset is LensErase-100M, containing one hundred and one point zero seven million paired examples of source, mask and target, spread across diverse erase scenarios. Each example shows the model what to remove and what the result should look like, and the scale is what lets one model see all of those scenarios. The model is pretrained from the text-to-image model Lens, adapting its strong generative prior to the job of mask-based erasing.

To bring in the source image and the erase mask efficiently, the authors propose Mask-Aware RoPE, a three-dimensional rotary positional encoding that injects mask information directly into the source-image tokens, with no separate sequence of mask tokens. The mask rides along with the image tokens rather than adding a second stream for the model to attend to. The model is then refined with supervised fine-tuning and with reinforcement learning, using rewards that are contract-guided and region-aware. At inference, a step called TraceFusion preserves high-fidelity content outside the region actually being edited.

Evaluation spans six public benchmarks plus a new one, LensErase-Bench. Across them, LensErase achieves substantial improvements, both on objective metrics that compare against a reference and on reference-free evaluation by a vision-language model. Using both kinds of measure matters for erasing, where a good result has to look natural and also stay faithful to the original image outside the mask.

The authors hope LensErase can serve as a foundational model for erase-related applications and systems. Breadth is the organising principle throughout: a dataset sized to the variety of the task, a prior borrowed from a strong generator, and safeguards that keep untouched pixels untouched.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.