LensErase:一个可擦除任何内容的基础模型
研究论文 · 2026/10/15
我们提出了LensErase,一个通用的基于掩码的Erase Anything基础模型,旨在覆盖广泛的真实世界擦除场景。LensErase支持多样化的物体、视觉文本、水印、相关视觉效果、多物体移除,以及广泛的物体尺度、宽高比和图像分辨率。首先,为了实现如此广泛的覆盖,我们构建了LensErase-100M,一个包含1.0107亿对源-掩码-目标样本的大规模数据集,涵盖多样的擦除场景。其次,我们从文本到图像模型Lens预训练LensErase,将其强大的生成先验适应于基于掩码的擦除。为了高效地整合源图像和擦除掩码,我们提出了Mask-Aware RoPE,一种3D旋转位置编码,直接将掩码信息注入源图像标记,而不引入单独的掩码标记序列。最后,我们通过监督微调和强化学习与契约引导、区域感知奖励来精炼模型,并在推理时应用TraceFusion以保留有效编辑区域外的高保真内容。在六个公共基准和提出的LensErase-Bench上,LensErase在基于参考的客观指标和无参考的VLM评估下均取得了显著改进。我们希望LensErase能够作为擦除相关应用和系统的基础模型。
LensErase作为擦除任务的基础模型,具有广泛的适用性和显著的性能提升,为擦除相关应用提供了强大的基础。
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.