TL;DR
Generative Adversarial Networks (GANs) produce stunningly sharp images in Single Image Super-Resolution (SISR) tasks, but they often "hallucinate" ugly artifacts when encountering real-world data outside their training distribution. DeSRA (Detect and Delete SR Artifacts) is a novel framework that automatically identifies these artifacts by comparing GAN outputs to "safe" MSE-based results, and then "deletes" them by fine-tuning the model with a handful of corrected samples.
The Problem with GAN-based Super-Resolution
In SISR, the goal is to transform a low-resolution (LR) image into a high-resolution (HR) one. Historically, models trained on Mean Squared Error (MSE) are structurally "safe" but produce blurry results because they average out possible textures. Conversely, GAN-based models produce sharp, realistic textures but are prone to creating "artifacts"—unpleasant, fake-looking patterns that do not exist in the original scene.
While previous research has attempted to suppress artifacts during training using synthetic data, these models still frequently fail when applied to complex, real-world data. Because real-world test data lacks a "ground truth" (a perfect HR reference image), it is incredibly difficult to programmatically determine if a sharp texture is a genuine detail or a GAN-generated hallucination.
The DeSRA Framework
To address this, the authors propose a two-step "Detect and Delete" pipeline designed to operate on unseen real-world data.
1. Detection (DeSRA-det)
Since ground truth is unavailable for real-world images, DeSRA uses the MSE-SR result as a structural anchor.
- Relative Local Variance Distance: The core idea is that if the GAN result has a significantly higher local variance than the MSE result in a specific area, it is likely an artifact. The authors developed a normalized indicator ($D$), inspired by SSIM, to measure this difference across various texture complexities.
- Semantic-Aware Adjustment: Not all textures are perceived equally. Human vision is highly sensitive to artifacts on smooth surfaces (like a wall or the sky) but very forgiving of "messy" textures (like tree leaves or hair). DeSRA utilizes SegFormer (a semantic segmentation model) to apply different detection thresholds based on the object type. This ensures the detector doesn't accidentally flag legitimate, complex details as artifacts.
2. Deletion (Fine-tuning)
Once the artifact regions are mapped, the "deletion" process goes beyond a simple patch-over.
- Pseudo-Ground Truth: The system creates a "Pseudo-GT" image by taking the GAN-SR result and replacing only the detected artifact regions with the corresponding (blurry but clean) patches from the MSE-SR result.
- Targeted Fine-tuning: The GAN model is then fine-tuned on a small set (as few as 50 pairs) of these Pseudo-GT images for a short period (approximately 1,000 iterations). This effectively "teaches" the model to stop making those specific types of mistakes on similar real-world data.
Key Insights
- Artifacts are Unstable: The authors observed that adding a tiny, imperceptible amount of Gaussian noise or slightly rescaling the input image could make GAN artifacts disappear or change drastically. This confirms that artifacts are often the result of the model being "confused" by out-of-distribution data.
- The "Safe" Anchor: The insight that MSE-SR results—while blurry—are structurally reliable allows for a reference-based detection system even in the absence of true HR images.
- Perceptual Tolerance: By incorporating semantic segmentation, the paper acknowledges that image "quality" is subjective. A high-variance difference in a "building" class is a bug; in a "foliage" class, it's a feature.
Datasets and Evaluation
Because no standard benchmark exists for artifact detection, the authors created a GAN-SR artifact dataset. They selected 200 representative images with obvious artifacts from three state-of-the-art models (Real-ESRGAN, LDL, and SwinIR) and manually labeled the artifact regions to create ground-truth masks for testing. They also evaluated the framework on established real-world SR datasets and ImageNet-1K.
Key Results
- Superior Detection: DeSRA-det achieved an Intersection over Union (IoU) of 51.1% in detecting artifacts for Real-ESRGAN. For context, standard "no-reference" quality metrics like NIQE only managed 2.9%.
- Effective Removal: After the fine-tuning process, the artifact IoU dropped from 51.1% to 12.9% (a 75.4% removal rate) without introducing new artifacts.
- User Preference: In a user study, 82.2% of participants preferred the DeSRA-improved results over the original GAN-SR outputs. Furthermore, 93% of users agreed that the DeSRA results maintained more detail than the original blurry MSE-SR results.
Limitations and Future Work
While DeSRA represents a massive leap over existing methods, challenges remain:
- Detection Precision: An IoU of 51% leaves room for improvement. Some artifacts are still missed, and some real details are occasionally flagged.
- Scale of Artifacts: The paper focuses primarily on "obvious" and "large-area" artifacts. Detecting subtle, pixel-level hallucinations remains a difficult challenge.
- Dependency on Segmentation: The accuracy of the semantic-aware adjustment is tethered to the performance of the SegFormer. If the segmentation model misidentifies a "wall" as "foliage," the artifact detection will likely fail.
Looking forward, the authors suggest that this "detect and fix" loop could be integrated into an online continual learning system, allowing an SR model to iteratively improve itself in real-time as it processes new streams of data.
Summary updated