Fixing the Last Mile: Failure-Aware Image Restoration with Region-Specific Guidance
Organizations: INSAIT, Sofia University “St. Kliment Ohridski” · The University of Hong Kong · Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences · Shenzhen University of Advanced Technology
Abstract
Recent advances in image restoration have greatly improved global image fidelity, producing visually plausible results across most regions of an image. Nevertheless, even high-quality restorations often exhibit localized failures, including artifacts in semantically important regions such as faces and text, structural inconsistencies, and texture mismatches. Although these errors typically affect only a small portion of the image, they often dominate the overall perceptual quality of the result. In this work, we propose Failure-Aware Image Restoration (FAIR) to address the "last-mile" problem in image restoration. Rather than applying one uniform generative prior over the whole image, we condition a single-pass restoration model on both where local failures are likely to occur and what corrective guidance each region requires. This region-bound conditioning enables fine-grained and controllable restoration that improves semantic accuracy and stylistic consistency in critical regions while maintaining faithful, high-quality restoration elsewhere. Our method complements existing restoration pipelines by shifting the emphasis from global fidelity to local perceptual acceptability. Extensive experiments show that the proposed approach resolves common failure cases and improves perceptual quality, bridging the gap between technical accuracy and practical usability.
Figures & tables
| Non-reference | Reference-based | Ours | |||||||
| Metric | SeeSR | SUPIR | HYPIR | Instruct Restore | CODSR | ReFIR + SeeSR | ReFIR + SUPIR | AdaRefSR | FAIR |
| PSNR | 20.87 | 20.10 | 20.62 | 20.93 | 20.85 | 20.89 | 19.97 | 21.23 | 20.91 |
| SSIM | 0.548 | 0.513 | 0.556 | 0.531 | 0.540 | 0.545 | 0.505 | 0.561 | 0.558 |
| LPIPS out | 0.300 | 0.340 | 0.272 | 0.356 | 0.278 | 0.301 | 0.389 | 0.277 | 0.243 |
| FID | 85.48 | 106.15 | 84.12 | 106.42 | 84.45 | 85.99 | 113.87 | 81.93 | 63.28 |
| DISTS | 0.1676 | 0.1732 | 0.1511 | 0.2070 | 0.1697 | 0.1676 | 0.1979 | 0.1621 | 0.1387 |
| Variant | LPIPS | FID | MUSIQ | CLIPIQA |
| (a) Stage-1 non-ref restoration only | 0.326 | 80.38 | 65.02 | 0.578 |
| (b) End-to-end (no curriculum) | 0.274 | 64.94 | 70.72 | 0.636 |
| (c) Frozen stage-1 LQ LoRA + new Ref LoRA | 0.285 | 68.57 | 70.45 | 0.626 |
| (d) Joint LQ + ref finetuning Image LoRA (LQ & Ref share) | 0.274 | 64.63 | 71.44 | 0.658 |
| (e) Full FAIR : (d) + reweighting | 0.270 | 63.22 | 71.50 | 0.674 |
| Dimension | Ours | HYPIR |
| Overall quality | 79.5% (73.4–84.5) | 40.0% |
| Target correction | 77.5% (71.2–82.7) | 44.0% |
| Non-target preservation | 78.5% (72.3–83.6) | 45.0% |
| Setting | FID | LPIPS in | LPIPS out | MUSIQ | DINO sim. | Content matches |
| Stage-1 restoration (Table 2 (a)) | 80.38 | – | – | 65.02 | – | – |
| Generic “Restore” | 71.79 | 0.0353 | 0.2512 | 71.04 | – | – |
| Fully LQ-driven guidance | 67.97 | 0.0351 | 0.2486 | 71.21 | – | – |
| Annotation-assisted guidance (Table 1 ) | 63.28 | 0.0319 | 0.2429 | 71.47 | 0.650 | 107/120 |
| from another failure category | 68.06 | 0.0349 | 0.2488 | 71.41 | 0.020 | 86/120 |
| replaced by an unrelated crop | 68.37 | 0.0351 | 0.2490 | 71.45 | 0.030 | 92/120 |
| Metric | SeeSR | SUPIR | HYPIR | Instruct Restore | CODSR | ReFIR + SeeSR | ReFIR + SUPIR | AdaRefSR | FAIR |
| CER | 0.837 | 1.367 | 0.278 | 0.913 | 1.137 | 0.892 | 0.978 | 0.777 | 0.260 |
| Character recall | 30.4% | 52.4% | 75.0% | 42.3% | 35.5% | 39.8% | 18.2% | 37.2% | 81.4% |
| ArcFace similarity | 0.404 | 0.313 | 0.418 | 0.339 | 0.411 | 0.380 | 0.306 | 0.440 | 0.605 |
| Content matches | – | – | 93/120 | – | – | – | – | 89/120 | 107/120 |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Auxiliary Input | Region Control & Alignment | Steps |
| Semantic-guided diffusion restoration | |||
| PASD ( Yang et al., 2024 ) | Detector + caption | Implicit (cross-attn) | 20 |
| SeeSR ( Wu et al., 2024b ) | Text prompt | Implicit (cross-attn) | 50 |
| SUPIR ( Yu et al., 2024 ) | Text prompt | Implicit (cross-attn) | 50 |
| CoSeR ( Sun et al., 2024 ) | Cognitive embedding | Implicit (cross-attn) | 50 |
| InstructRestore ( Liu et al., 2025 ) | Instruction | Instruction-level (implicit) | 20 |
| Symbol | Name | Source | Representation at input | Primarily serves |
| degraded input | degradation of | VAE latent, image branch | all tiers | |
| clean target | LSDIR, Unsplash, or FFHQ image | supervision only | all tiers | |
| region control | localization phrase, box, outline, or mask; for prompt-only dropout | spatial condition | all tiers | |
| restoration guidance | text instruction, retrieved reference, or contour | or | selected by | |
| textual instruction | text instruction | text-stream tokens | text guidance | |
| visual guidance | reference or contour | VAE tokens, image branch | visual guidance |
| Statistic | Count |
| Stage I candidate regions | 169,257 |
| Final training regions (post-filter) | 66,989 |
| Failure type distribution | |
| Pattern / Texture | 63.9% |
| Object Structure | 21.0% |
| OCR / ID | 10.1% |
| Stage | Model parameters | Recorded peak GPU memory | Time per image |
| Failure detection | 8.77B (Qwen3-VL-8B) | 20.5 GB | 0.76 s |
| Region segmentation | 0.86B (SAM3) | – | 0.07 s |
| Retrieval and verification | 0.45B (DINOv3 and CLIP) | 21.5 GB | 0.25 s |
| FAIR restoration | 17B (DiT and text encoder) | 41 GB | 3.16 s |
| Non-reference | Reference-based | Ours | ||||||||
| Metric | SeeSR | SUPIR | HYPIR | Instruct Restore | CODSR | Nano Banana | ReFIR + SeeSR | ReFIR + SUPIR | AdaRefSR | FAIR |
| MUSIQ | 66.01 | 56.22 | 64.72 | 65.06 | 69.93 | 45.99 | 66.07 | 55.70 | 59.65 | 69.62 |
| CLIPIQA | 0.633 | 0.433 | 0.601 | 0.686 | 0.653 | 0.402 | 0.628 | 0.428 | 0.514 | 0.671 |
| Q-Align | 3.803 | 3.535 | 3.883 | 3.706 | 4.171 | 3.339 | 3.815 | 3.445 | 3.727 | 4.068 |
| DINO-Sim-Ref | – | – | – | – | – | – | 0.363 | 0.364 | 0.363 | 0.369 |
| CLIP-Sim-Ref | – | – | – | – | – | – | 0.531 | 0.533 | 0.534 | 0.542 |
| Non-reference | Reference-based | Ours | |||||||
| Metric | SeeSR | SUPIR | HYPIR | Instruct Restore | CODSR | ReFIR + SeeSR | ReFIR + SUPIR | AdaRefSR | FAIR |
| PSNR | 21.72 | 20.77 | 21.10 | 21.24 | 21.42 | 21.85 | 21.04 | 22.04 | 21.80 |
| SSIM | 0.570 | 0.528 | 0.565 | 0.558 | 0.547 | 0.569 | 0.539 | 0.581 | 0.591 |
| LPIPS | 0.349 | 0.394 | 0.335 | 0.430 | 0.333 | 0.341 | 0.394 | 0.298 | 0.262 |
| FID | 64.64 | 85.50 | 76.93 | 121.71 | 62.20 | 61.22 | 77.55 | 48.85 | 38.90 |
| MUSIQ | 72.09 | 69.94 | 69.66 | 69.53 | 72.92 | 72.42 | 70.06 | 70.21 | 71.37 |
| Tier | ReFIR+SeeSR | HYPIR | CODSR | AdaRefSR | FAIR |
| LPIPS in | |||||
| OCR / ID | 0.0190 | 0.0188 | 0.0203 | 0.0172 | 0.0103 |
| Object Structure | 0.0331 | 0.0303 | 0.0317 | 0.0302 | 0.0264 |
| Pattern / Texture | 0.0611 | 0.0573 | 0.0624 | 0.0586 | 0.0534 |
| Subjective Feeling | 0.0430 | 0.0403 | 0.0443 | 0.0411 | 0.0377 |
| LPIPS out | |||||
| Metric | SeeSR | SUPIR | HYPIR | Instruct Restore | CODSR | FAIR (LQ only) | FAIR |
| PSNR | 20.87 | 20.10 | 20.62 | 20.93 | 20.85 | 20.80 | 20.91 |
| SSIM | 0.548 | 0.513 | 0.556 | 0.531 | 0.540 | 0.551 | 0.558 |
| LPIPS out | 0.300 | 0.340 | 0.272 | 0.356 | 0.278 | 0.251 | 0.243 |
| FID | 85.48 | 106.15 | 84.12 | 106.42 | 84.45 | 71.79 | 63.28 |
| DISTS | 0.1676 | 0.1732 | 0.1511 | 0.2070 | 0.1697 | 0.1495 | 0.1387 |
| LPIPS in | 0.0406 | 0.0451 | 0.0367 | 0.0466 | 0.0397 | 0.0353 | 0.0319 |
| Tier | with | without | |
| OCR / ID | 0.0103 | 0.0173 ( ) | |
| Object Structure | 0.0264 | 0.0291 ( ) | |
| Pattern / Texture | 0.0534 | 0.0553 ( ) | |
| Subjective Feeling | 0.0377 | 0.0383 ( ) |
| Inference cap | LPIPS in | LPIPS out | PSNR out | DINO sim. | CLIP sim. | MUSIQ | CLIP-IQA |
| 512 px | 0.0235 | 0.1671 | 22.39 | 0.606 | 0.650 | 69.9 | 0.688 |
| 1024 px | 0.0237 | 0.1629 | 22.64 | 0.622 | 0.643 | 71.8 | 0.735 |
| Input PSNR | Method | PSNR | LPIPS | DISTS | FID | LPIPS in / LPIPS out |
| 31.0 dB | HYPIR | 23.22 | 0.166 | 0.105 | 44.1 | 0.0201 / 0.151 |
| AdaRefSR | 24.13 | 0.156 | 0.093 | 27.4 | 0.0180 / 0.140 | |
| FAIR | 24.85 | 0.110 | 0.070 | 23.6 | 0.0127 / 0.100 | |
| 27.0 dB | HYPIR | 22.99 | 0.170 | 0.104 | 43.7 | 0.0201 / 0.154 |
| AdaRefSR | 23.75 | 0.183 | 0.103 | 34.4 | 0.0212 / 0.164 | |
| FAIR | 24.10 | 0.140 | 0.083 | 28.8 | 0.0163 / 0.126 |
| PSNR | SSIM | LPIPS out | DISTS | LPIPS in | MUSIQ | |
| HYPIR FLUX.2-klein-9B | 17.28 | 0.478 | 0.322 | 0.162 | 0.0482 | 70.83 |
| FAIR | 20.93 | 0.559 | 0.242 | 0.139 | 0.0330 | 71.37 |
| Baseline | Overall quality | Target correction | Non-target preservation |
| InstructRestore | 99.4% (96.5–99.9) | 99.4% (96.5–99.9) | 99.4% (96.5–99.9) |
| SeeSR | 95.2% (90.7–97.5) | 96.3% (92.1–98.3) | 95.1% (90.6–97.5) |
| AdaRefSR | 94.6% (90.0–97.1) | 93.2% (88.3–96.2) | 93.4% (88.5–96.3) |
| ReFIR+SUPIR | 93.4% (88.6–96.3) | 91.6% (86.4–94.9) | 92.1% (87.0–95.3) |
| ReFIR+SeeSR | 91.1% (85.8–94.5) | 91.1% (85.8–94.5) | 91.1% (85.8–94.5) |
| CODSR | 89.6% (84.2–93.3) | 92.8% (87.9–95.8) | 91.8% (86.7–95.1) |
| PSNR | SSIM | LPIPS out | FID | LPIPS in | |
| LQ-only (ours) | 20.91 | 0.5582 | 0.2429 | 63.28 | 0.0319 |
| GT-assisted oracle | 20.91 | 0.5584 | 0.2432 | 63.22 | 0.0320 |
| MUSIQ | CLIP-IQA | Q-Align | DINO-Sim-Ref | CLIP-Sim-Ref | |
| LQ-only (ours) | 71.47 | 0.6728 | 4.514 | 0.4677 | 0.5981 |
| GT-assisted oracle | 71.50 | 0.6736 | 4.517 | 0.4682 | 0.5976 |
| Condition models | PSNR | SSIM | LPIPS out | FID | LPIPS in | MUSIQ | CLIP-IQA | Q-Align |
| Qwen3-VL-8B + SAM3 (default) | 20.91 | 0.5582 | 0.2429 | 63.28 | 0.0319 | 71.47 | 0.6728 | 4.514 |
| Qwen3-VL-4B + SAM3 | 20.91 | 0.5581 | 0.2431 | 63.26 | 0.0319 | 71.49 | 0.6728 | 4.514 |
| Qwen3-VL-8B + SAM2.1-Tiny | 20.92 | 0.5590 | 0.2422 | 62.11 | 0.0313 | 71.48 | 0.6726 | 4.518 |
| Metric | Default | Shuffled | Metric | Default | Shuffled |
| PSNR | 20.91 | 20.80 ( ) | LPIPS out | 0.2432 | 0.2490 ( ) |
| SSIM | 0.5584 | 0.5533 ( ) | FID | 63.22 | 68.67 ( ) |
| MUSIQ | 71.50 | 71.57 ( ) | LPIPS in | 0.0320 | 0.0353 ( ) |
| CLIP-IQA | 0.6736 | 0.6749 ( ) | DINO-Sim-Ref | 0.4682 | 0.4513 ( ) |
| Q-Align | 4.5168 | 4.5040 ( ) | CLIP-Sim-Ref | 0.5976 | 0.5884 ( ) |
| Visual guidance | PSNR | FID | LPIPS | LPIPS in | LPIPS out | DISTS | MUSIQ | DINO sim. | CLIP sim. | Content matches |
| Table 1 reference | 20.91 | 63.28 | 0.2703 | 0.0319 | 0.2429 | 0.1387 | 71.47 | 0.650 | 0.680 | 107/120 |
| Another failure category | 20.82 | 68.06 | 0.2788 | 0.0349 | 0.2488 | 0.1455 | 71.41 | 0.020 | 0.266 | 86/120 |
| Unrelated crop | 20.82 | 68.37 | 0.2791 | 0.0351 | 0.2490 | 0.1462 | 71.45 | 0.030 | 0.351 | 92/120 |
| Omitted | 20.84 | 67.76 | 0.2782 | 0.0350 | 0.2484 | 0.1458 | 71.16 | – | – | 93/120 |
| Metric | With | Without |
| LPIPS in | 0.0316 | 0.0319 |
| PSNR out (dB) | 21.20 | 21.18 |
| MUSIQ | 71.54 | 71.50 |
| DINO sim. to | 0.659 | 0.655 |
| CLIP sim. to | 0.684 | 0.683 |
| LPIPS out | 0.2431 | 0.2430 |
| Metric | Mean Std. | Metric | Mean Std. |
| PSNR | (0.04%) | Q-Align | (0.12%) |
| SSIM | (0.03%) | MUSIQ | (0.05%) |
| LPIPS out | (0.10%) | CLIP-IQA | (0.31%) |
| FID | (0.52%) | DINO-Sim-Ref | (0.16%) |
| LPIPS in | (0.15%) | CLIP-Sim-Ref | (0.12%) |
Image Restoration
Image restoration uses computational methods to recover useful visual content from noisy, blurred, low-resolution, or otherwise degraded images.
See all 418 papers