When you ask a modern generative model to remove an object from an image, you aren't just asking it to "erase" pixels; you are asking it to imagine what lies behind them. For years, the goal of image inpainting was visual plausibility—filling a hole so that the result looked "real." However, as models have become more powerful, they have developed an "imagination gap." Instead of restoring a clean background, they often hallucinate new, contextually inappropriate objects into the void.
Recent research has shifted focus from unconstrained generation to constrained restoration, developing mechanisms to ensure that the model’s creative capacity is tethered to the existing scene's logic.
The Root of Hallucination
The tendency for models to hallucinate stems from a fundamental misalignment between their training and the task of object removal. As Yikai Wang and Chenjie Cao observe in their work on ASUKA, models trained on random geometric masks (like boxes or strokes) are essentially "forced" to generate complex features to fill high-entropy voids.
When a model sees a large empty space, its internal priors—learned from massive datasets of objects—suggest that a "thing" (a person, a car, a tree) is more likely to exist there than a perfectly flat, empty wall. This results in "semantic hallucinations," where the model interprets the mask as a prompt to create something new rather than a command to clear the space. Kongming Liang notes in OmniEraser that models frequently interpret masked regions as gaps to be filled with content that matches the shape of the mask itself.
Structural and Semantic Guidance
To combat these hallucinations, researchers are moving away from the "black box" inpainting approach toward frameworks that provide explicit structural constraints.
One effective strategy is the use of structural priors. The ASUKA framework utilizes a Masked Auto-Encoder (MAE) to provide a stable structural guide before the generative process begins. By predicting the underlying structure first, the model is less likely to invent new entities that clash with the scene's geometry.
Another approach, introduced in SmartEraser by Longtao Jiang and colleagues, is Masked-Region Guidance. Traditional inpainting hides the area to be removed from the model entirely. SmartEraser instead provides the model with the full image, allowing it to precisely identify the target and use the surrounding context to "see through" the object, rather than guessing what might be there.
Attention Redirection
If hallucinations occur because the model is focusing on the "wrong" features, one solution is to manually steer its attention.
Wenhao Sun and Xue-Mei Dong developed Attentive Eraser, which redirects the self-attention mechanisms within diffusion models. By forcing the model to attend to the background pixels rather than the foreground object during the denoising process, they achieve stable, artifact-free removals without needing to retrain the model. Similarly, RePainter uses a spatial-matting attention strategy combined with reinforcement learning to prioritize background context, effectively silencing the model's urge to hallucinate.
Beyond Pixels: Geometry and Causality
A clean removal often requires more than just filling a hole; it requires removing the "causal artifacts" an object leaves behind, such as shadows and reflections.
Zixin Zhu and Haoxiang Li address this in GeoRemover by operating in 3D space. By first erasing the object from the scene's depth map (its geometry) and then rendering the image, the model naturally accounts for perspective and lighting, preventing the "ghosting" artifacts that often trigger hallucinations in 2D-only models.
For even higher fidelity, DSG-World by Xuexiang Wen leverages "dual-state" videos—two views of the same scene where objects have moved. This allows the system to "see" the actual background from one frame and use it to fill the occluded area in another, bypassing the need for generative imagination entirely.
Evaluating Success Without Ground Truth
As the field moves toward more complex removals, evaluating what constitutes a "good" edit has become a challenge. Traditional metrics like FID often fail to penalize hallucinations if the hallucinated object looks realistic.
To solve this, Aditya Chandrasekar and Prathosh AP introduced ReMOVE, a reference-free metric. By using Vision Transformers to compare the deep features of the inpainted region to the surrounding background, ReMOVE can detect semantic inconsistencies and hallucinations that previous metrics missed, providing a more accurate measure of "seamlessness" in real-world editing tasks.