Skip to content

Local Background Fitting for Reference-Based Localization of Generative Image Edits

Hailong Wang, Wuzheng Tan, Bing Han, Zixin Zhang, Jian Weng, Ru Meng

cs.CV

Abstract

Generative image editing can alter textures and colors outside the intended edit region. These changes make it difficult to localize an edit even when the original image is available. We propose ReferenceContrast, which uses the archived reference to estimate the background component of the observed differences. After aligning the image pair and reducing the blur mismatch between the images, the method fits reference-derived responses for reconstruction, smoothing, and residual displacement over a neighborhood around each location. A shared two-pass readout uses the remaining differences together with the original image-pair features to refine the edit mask. Across 600 test sources, ReferenceContrast achieved the highest intersection over union (IoU) among the evaluated methods on unperturbed full editor outputs in each of three domains, averaging 89.27% at a threshold of 0.5. With frozen calibrated thresholds, it achieved 95.26% IoU on the original CoCoGlide pairs and 87.82% on MagicBrush. Under local reference warping and query blur followed by JPEG compression, it improved full-output IoU over the matched same-input control by 2.90 and 2.74 percentage points, respectively, using the frozen calibrated thresholds. The corresponding gains on 120 independent sources were 2.93 and 3.34 points.

Create a lesson

Metadata

Categories
cs.CV, cs.CR
Comments
12 pages, 6 figures, 6 tables