Model releases · Analysis

LensErase studies what an image should contain after an object disappears

Erasing an object also raises questions about shadows, reflections and what should fill the space. LensErase makes those residual cues part of the task.

In this article
LensErase-100M — Source–mask–target examples: 101.07M. Training examples reported for the image-removal collection.

Remove a chair from a photograph and its shadow may still give away where it stood. Cover the shadow too, and the model has to invent more of the floor behind it. LensErase’s team frames removal as a masked editing problem and reports a large collection of paired source images, masks and targets. The task includes decisions about the boundary of the requested change.

What a paired erase example contains

The LensErase researchers report 101.07 million source–mask–target examples in LensErase-100M. The count refers to examples used to express a transformation. It does not by itself specify how many unrelated photographic scenes, object types or difficult visual effects a model encountered. A useful breakdown would separate examples with clean background texture from examples where an erased object overlaps a reflection or casts a shadow. This matters because a method can improve substantially on common masks without making the same progress on the rare, ambiguous cases a user remembers.

The Challenge of Real-World Erasure

Traditional object removal models often fail when faced with diverse targets. A tiny text label or a translucent watermark requires precision in both detail preservation and reconstruction, while large foreground objects demand accurate spatial reasoning and seamless blending. More complex cases involve removing effects like shadows or reflections that extend beyond the user-defined mask—effects that are not always visible but still influence the scene’s appearance. These challenges grow when multiple objects must be removed simultaneously, or when the target is part of a layered composition such as a poster with overlapping elements. Existing models either struggle with fine strokes in text, leave visual artifacts, or fail to recognize and remove associated effects. The difficulty lies not only in detecting what to erase but in reconstructing plausible content that fits naturally within the scene’s geometry and semantics.

Designing for Scale, Diversity, and Realism

This scale is two to three orders of magnitude larger than prior object-removal datasets, which typically contain only thousands to tens of thousands of examples. The data was systematically designed to cover a broad range of real-world scenarios: objects from tiny icons to large foreground items; text, watermarks, and logos; multiple targets in one image; and various aspect ratios and resolutions. For instance, general object removal pairs were created by adding an object to a real-world image and then reversing the process—using the original clean image as the target.

To handle complex visual effects like shadows or reflections, the model does not rely on explicit training for each effect type. Instead, it uses the intact source image as a condition during inference—preserving information about how the target and its effects were originally present. At runtime, TraceFusion analyzes the mask and the differences between input and output to determine which parts of the image are effectively supported by the edit. This allows generated content to be blended smoothly with the preserved background, avoiding unnatural transitions or over-smoothing.

The model’s architecture is built on a foundation of text-to-image generation, specifically adapted from a strong generative prior. Rather than treating the erase mask as a separate sequence of tokens, the researchers introduced Mask-Aware RoPE—a 3D rotary positional encoding that directly embeds mask information into the image token representation. This allows the model to process both the source image and the erasure instruction in a unified way without requiring additional token sequences or complex masking operations.

Training proceeds through two stages: first, pretraining on the massive LensErase-100M dataset to build broad visual understanding; then, supervised fine-tuning (SFT) with 140K high-quality examples. The SFT data undergoes automated screening using GPT-5.6 Sol to verify that the mask is valid, the edit correctly removes the target, and surrounding content remains intact. Large-mask examples are excluded from this stage because they were generated synthetically and serve primarily to expand coverage during pretraining.

To evaluate performance beyond standard benchmarks, the team developed LensErase-Bench—a set of 500 curated removal cases without paired reference images. Instead of comparing outputs to a known “correct” version, each result is assessed by a vision-language model against the original source image and the user-defined mask. This approach better reflects real-world use, where users may not have access to a clean target or a perfectly captured reference. The benchmark includes diverse scenarios: posters with layered designs, watermarks on documents, text in natural scenes, and multi-object removals. Images are normalized to fit within specific dimensions while preserving aspect ratio, ensuring consistent evaluation conditions.

The design emphasizes realism over idealization. By grounding training in actual image compositions and using professional-grade poster data, the model learns not just how to erase, but what a plausible scene should look like after an object is removed. This focus on context-aware reconstruction enables more reliable performance across varied applications—from cleaning up photos to editing digital designs—without relying on artificial or synthesized references.

The Mask-Aware Conditioning Pipeline

LensErase introduces a method to directly embed erase mask information into the image token sequence during model processing without adding a separate mask token stream. This is achieved through Mask-Aware RoPE (Rotary Positional Encoding), which modifies the positional encoding of source-image tokens based on the spatial layout of the erase mask. Instead of treating the mask as an independent signal, the system adjusts the rotational components of each image token’s position vector according to whether that pixel lies within or outside the erasure region. This allows the model to condition its internal representation on where removal should occur while preserving the original image structure. The encoding is applied during pretraining and fine-tuning phases, ensuring consistent behavior across different input configurations. By integrating mask information directly into the positional dynamics of the image tokens, the model learns to suppress or reconfigure content in specific regions without introducing artifacts or distortions from separate token sequences.

Experimental Evaluation on LensErase-Bench

The performance of LensErase was evaluated using a new benchmark called LensErase-Bench, consisting of 500 carefully curated removal cases. Unlike prior benchmarks that rely on paired reference images generated through synthesis or real-world capture, this dataset evaluates outputs without ground-truth targets, relying instead on a vision-language model (VLM) to assess quality based on the source image and selection mask. The evaluation is conducted across four core dimensions: removal completeness, inpainting plausibility, preservation of non-target content, and visual cleanliness. A case is considered successful only if all four aspects meet quality thresholds—specifically, full removal of the target object along with plausible context completion, accurate retention of background elements, and absence of artifacts or hallucinated content. The High-Fidelity Removal Rate (HiFi Removal) measures the percentage of such cases that achieve complete removal while satisfying these criteria.

How Context Stays Stable After Erase

For instance, when removing a small text element from a poster, the surrounding layout remains stable, and no unintended content is added or shifted. Similarly, in scenarios with large mask areas, such as removing an entire object from a scene, the model preserves background details while avoiding blurring or incorrect filling. However, some edge cases—such as highly textured backgrounds or overlapping objects—still present challenges where minor artifacts may appear, indicating limitations in handling extreme complexity. The model does not achieve perfect results across all conditions, but its performance is notably more reliable than earlier erasure models when judged against real-world expectations for content integrity and aesthetic coherence. The success of LensErase lies not in eliminating all variation, but in producing consistent, plausible outcomes that align with human perception of realistic image editing.

What Distinguishes the Mask-Aware RoPE from Alternative Conditioning Strategies

The core innovation of LensErase lies in how it integrates mask information into the image processing pipeline without relying on separate token sequences or explicit masking layers. Mask-Aware RoPE achieves this by embedding positional encoding that responds to both spatial layout and object presence, allowing the model to interpret where removal should occur through contextual cues rather than rigid boundaries. This differs from Channel Concat, which fuses mask and image data in a fixed channel dimension, and Token Concat, which appends mask tokens directly to image tokens—both of which risk disrupting the semantic flow or introducing artifacts due to token-level misalignment. In practice, these differences manifest during inference: Mask-Aware RoPE preserves structural consistency across edges and shadows because it treats mask signals as part of the spatial prior, while Channel Concat often leads to abrupt transitions at object boundaries, and Token Concat can cause hallucinations in regions where the model misinterprets the presence or absence of content.

The Boundary of Evidence in Contract-Guided Erasure Validity

The effectiveness of LensErase’s contract-based reinforcement learning hinges on its ability to define clear, source-grounded expectations for what should be removed and preserved. The system constructs an erase contract using GPT-5.6 Sol to analyze the source image and mask, specifying removal targets, associated effects, and protected objects. In cases involving ambiguous object boundaries—such as partially visible objects in cluttered scenes—or when effects like smoke or motion blur are present without clear structural anchors, the model’s performance begins to degrade because the contract fails to capture dynamic or transient features. Moreover, the use of deterministic clean references for Poster and Watermark tasks introduces a bias toward scenarios where removal outcomes are visually unambiguous, leaving open questions about how well the system handles probabilistic or context-dependent visual phenomena. A critical test that has not yet been conducted is whether the contract can adapt when the source image contains occlusions or overlapping elements, which would challenge its ability to maintain consistency across different view angles or lighting conditions.

The Open Question of Generalization Beyond Curated Scenarios

Despite strong performance on benchmark datasets and curated tasks, a central open question remains: how well does LensErase generalize to novel erase scenarios not explicitly included in the training data? Similarly, the absence of real-world noise, camera artifacts, or low-light conditions in the training data raises concerns about robustness under uncontrolled environmental factors. Without empirical validation across a broader range of environmental and photographic conditions, it remains unclear whether LensErase can reliably perform erasure tasks in real-world settings where user intent is nuanced and visual cues are inconsistent. This gap underscores the need for further testing that moves beyond idealized datasets to include unpredictable, unstructured inputs.

The Hidden Challenge of Ambiguous Erasures

A critical gap remains: we don’t know whether those examples include clean backgrounds or complex visual interactions like reflections, shadows, or overlapping textures. For instance, consider a scenario where a person stands near a window, and their silhouette casts a shadow on the floor. Without knowing how many such cases were included in the training data, we cannot assess whether improvements in performance are broadly representative or merely optimized for common, low-stakes edits.

To explore this, imagine an unrun editorial thought experiment involving two test conditions applied to identical real-world images. In Condition A, a user uploads a photo of a coffee cup resting on a wooden table with a faint reflection in the table’s surface. In Condition B, the same image is processed with a mask that includes a partial reflection of the cup in the table’s surface—making it harder for the model to distinguish between what was originally there and what is now missing. Both conditions are evaluated by an independent visual analyst who assesses output fidelity, including whether the reflection remains plausible or appears distorted.

Two distinct outcomes are possible under these constraints. Second, if the model fails in Condition B—showing broken reflections or unnatural edges—the failure points to a lack of exposure to complex visual interactions during pre-training. This would mean that while the model excels in common scenarios, it struggles with rare but memorable cases that users often report as “unreal” after erasure.

These outcomes are not mutually exclusive and do not require any claim about real-world performance or internal architecture. The absence of explicit breakdowns by visual complexity means we cannot confirm whether such ambiguous scenarios were adequately represented.

This limitation matters because users remember not just what was erased, but how it felt after removal. A model that removes a chair from a room and leaves the floor perfectly flat may seem reliable—but if the user remembers the chair’s shadow or reflection still lingering, they will perceive the result as incomplete. The training data’s composition thus directly influences perceived realism.

Alpha-Supervised Watermark Synthesis: A Mechanism for Grounded Erasure Validation

The evidence on alpha-supervised watermark synthesis reveals a critical design choice in how LensErase learns to verify successful erasure—specifically, how it establishes known ground truth without relying on image-difference-based mask recovery. In traditional erase models, the absence of an object is inferred by comparing before and after images, often requiring complex alignment or masking to recover the original object boundaries. This approach is error-prone when objects are partially visible, blended into backgrounds, or rendered with visual effects like reflections or shadows.

Instead, LensErase uses a synthetic pipeline where watermarks—rendered overlays of text, logos, or patterns—are composited directly onto clean images. These composite pairs serve as paired erase examples: the source image contains the watermark, and the target is the same image with that watermark removed. Crucially, the watermark’s presence is known a priori, not inferred from differences between images. This eliminates ambiguity in what constitutes a successful removal: if the watermark vanishes from the output, it is considered correct; if it remains or appears distorted, it fails. The method provides a stable, externally verifiable reference point for training and evaluation.

This approach fundamentally shifts the nature of supervision. Rather than relying on an inferred mask (which may be inaccurate due to occlusion or blending), the model learns from explicitly constructed source-target pairs where the target is known in advance.

A hypothetical contrast illustrates this distinction: consider a watermark that appears as a faint gradient overlay on a photograph of a city skyline. In an image-difference-based system, the model might misidentify the edges due to lighting variations or blending with the background. In alpha-supervised synthesis, however, the watermark is rendered with precise spatial and intensity parameters, so its removal can be evaluated against a clean baseline. The model learns that even if the gradient appears slightly blurred in the output, as long as no trace remains within the expected region, it qualifies as successful.

This synthetic validation has both strengths and limitations. On one hand, it ensures consistency: every watermark removal is grounded in a known visual structure. On the other, it may create overfitting to specific rendering styles—what if the watermark was rendered with anti-aliasing or motion blur that mimics natural textures? The model might learn to remove such effects not because they are visually plausible, but because they were present in the training data.

Moreover, this method does not generalize to real-world scenarios where watermarks are embedded via digital manipulation (e.g., copy-paste from a document) or appear as semi-transparent layers with variable opacity. In those cases, the synthetic rendering may not capture the full complexity of how such marks interact with lighting and depth. For instance, a watermark on a printed document might cast a shadow that blends into the paper texture—something not fully modeled in the rendered overlays.

A deeper implication emerges: alpha-supervised synthesis enables contract-guided erasure to function effectively. Because each removal task comes with a known, defined target (the watermark), the model can evaluate whether it preserves surrounding content and avoids introducing artifacts. This is especially important when the watermark has associated effects—like reflections or subtle distortions—that must also vanish. Without such ground truth, the model would have no way to know whether those effects were truly removed.

In sum, alpha-supervised watermark synthesis provides a robust, transparent mechanism for training erasure models on known removal goals. It avoids reliance on ambiguous image differences and instead builds trust in the correctness of outcomes through explicit design. Yet its effectiveness depends on how well the synthetic renderings mirror real-world embedding conditions—limiting its ability to handle ambiguity or context-dependent visual blending.