[Paper Review] RGI: robust GAN-inversion for mask-free image inpainting and unsupervised pixel-wise anomaly detection
RGI provides a robust GAN-inversion framework that jointly restores clean images and identifies corrupted regions without a pre-known mask, with theoretical guarantees and a relaxed variant (R-RGI) that also tunes the generator to close the GAN-to-true-image manifold gap.
Generative adversarial networks (GANs), trained on a large-scale image dataset, can be a good approximator of the natural image manifold. GAN-inversion, using a pre-trained generator as a deep generative prior, is a promising tool for image restoration under corruptions. However, the performance of GAN-inversion can be limited by a lack of robustness to unknown gross corruptions, i.e., the restored image might easily deviate from the ground truth. In this paper, we propose a Robust GAN-inversion (RGI) method with a provable robustness guarantee to achieve image restoration under unknown extit{gross} corruptions, where a small fraction of pixels are completely corrupted. Under mild assumptions, we show that the restored image and the identified corrupted region mask converge asymptotically to the ground truth. Moreover, we extend RGI to Relaxed-RGI (R-RGI) for generator fine-tuning to mitigate the gap between the GAN learned manifold and the true image manifold while avoiding trivial overfitting to the corrupted input image, which further improves the image restoration and corrupted region mask identification performance. The proposed RGI/R-RGI method unifies two important applications with state-of-the-art (SOTA) performance: (i) mask-free semantic inpainting, where the corruptions are unknown missing regions, the restored background can be used to restore the missing content; (ii) unsupervised pixel-wise anomaly detection, where the corruptions are unknown anomalous regions, the retrieved mask can be used as the anomalous region's segmentation mask.
Motivation & Objective
- Motivate robustness gaps in standard GAN-inversion under unknown gross corruptions.
- Propose RGI to recover clean images and identify corrupted regions without prior masks.
- Provide theoretical guarantees for asymptotic convergence of the restored image and mask.
- Extend to R-RGI to fine-tune the generator and reduce GAN approximation gap.
- Demonstrate state-of-the-art performance on mask-free inpainting and pixel-wise anomaly detection.
Proposed method
- Formulate joint optimization over latent code z and a sparse mask M with L_rec((1−M)⊙x, (1−M)⊙G(z)) plus λ||M||_1.
- Prove asymptotic convergence: ẑ(λ) → z* as λ ↓ 0 (Theorem 1).
- Prove asymptotic mask convergence: M̂(λ) → M* as λ ↓ 0 (Theorem 2).
- Introduce Relaxed-RGI (R-RGI) by also optimizing generator parameters θ to reduce the GAN-manifold gap (Equation 4).
- Discuss connections to robust statistics and robust ML (M-estimators, Winsorizing) and relate to prior GAN-inversion approaches.
- Demonstrate mask-free semantic inpainting and unsupervised pixel-wise anomaly detection within a unified framework.
Experimental results
Research questions
- RQ1Can RGI restore a clean image and identify the corrupted region without a pre-configured mask?
- RQ2Do the recovered image and mask converge to the ground-truth under mild assumptions and appropriate λ?
- RQ3Does relaxing with R-RGI further improve restoration quality by mitigating the GAN approximation gap?
- RQ4Can the method unify mask-free semantic inpainting and pixel-wise anomaly detection with state-of-the-art performance?
- RQ5What are the theoretical guarantees linking the optimized mask to true corrupted regions under unknown corruptions?
Key findings
- RGI achieves robustness to unknown gross corruptions, with asymptotic convergence of the restored image to the ground-truth background as λ→0.
- The identified mask converges to the true corrupted region mask in the limit of small λ, enabling exact mask recovery under mild conditions.
- R-RGI further improves restoration by fine-tuning the generator, closing the gap between learned and true image manifolds and boosting performance.
- On mask-free semantic inpainting, RGI matches or surpasses masked baselines without needing a pre-configured mask; R-RGI approaches the performance of mask-tuned methods.
- In unsupervised pixel-wise anomaly detection, RGI and especially R-RGI yield strong Dice scores and competitive/leading AUROC relative to SOTA baselines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.