Beyond Detection: Multi-Scale Hidden-Code for Natural Image Deepfake Recovery and Factual Retrieval
Organizations: IIS, Academia Sinica, Taiwan, ROC
Abstract
Recent advances in image authenticity have primarily focused on deepfake detection and localization, leaving recovery of tampered contents for factual retrieval relatively underexplored. We propose a unified hidden-code recovery framework that enables both retrieval and restoration from post-hoc and in-generation watermarking paradigms. Our method encodes semantic and perceptual information into a compact hidden-code representation, refined through multi-scale vector quantization, and enhances contextual reasoning via conditional Transformer modules. To enable systematic evaluation for natural images, we construct ImageNet-S, a benchmark that provides paired image-label factual retrieval tasks. Extensive experiments on ImageNet-S demonstrate that our method exhibits promising retrieval and reconstruction performance while remaining fully compatible with diverse watermarking pipelines. This framework establishes a foundation for general-purpose image recovery beyond detection and localization.
Figures & tables
| ImageNet | Same samples | Different samples | CLIP score ( ) | ||||
| Methods \ Metric | Top-1 label ( ) | Top-5 label ( ) | Top-1 image ( ) | Top-5 image ( ) | Top-1 label ( ) | Top-5 label ( ) | |
| HiNet [ 11 ] | 0.2393 | 0.3511 | 0.2017 | 0.2739 | 0.0742 | 0.0716 | 0.7255 |
| RePaint [ 15 ] | 0.2821 | 0.3868 | 0.2571 | 0.3373 | 0.0717 | 0.1693 | 0.7854 |
| VQGAN [ 6 ] (codebook size = 1024) | 0.3633 | 0.5516 | 0.2756 | 0.4243 | 0.1787 | 0.3699 | 0.7887 |
| VQGAN [ 6 ] (codebook size = 16384) | 0.5205 | 0.6895 | 0.4246 | 0.5925 | 0.2467 | 0.4535 | 0.8157 |
| VAR [ 23 ] | 0.6754 | 0.8125 | 0.5761 | 0.7400 | 0.4222 | 0.6547 | 0.8817 |
| Method | Type | Hiding Information | Smallest Hiding Unit | Hiding Domain | Bits per Pixel (BPP) | Total Hidden Information |
| HiNet [ 11 ] | Reversible module | Pixel-level content | Latent space | – | ||
| RePaint [ 15 ] | Inpainting model | – | – | – | – | – |
| Common self-recovery watermarking [ 1 ] | Fragile watermark | MSBs, block averages, or transform-domain coefficients | – | Pixel (LSB) | 2–4 | |
| Bouarroudj et al. [ 4 ] | Fragile watermark | DWT coefficients | Frequency domain | 0.5 | ||
| Ours | Robust watermark | Multi-scale quantized vectors | Latent space | – | ( ) |
| Methods | Clean ( ) | JPEG( ) | Gaussian Blur( ) | Gaussian Noise ( ) | |
| QF | |||||
| Bouarroudj et al. [ 4 ] | 1.0000 | 0.5054 | 0.5042 | 0.5851 | 0.5047 |
| Ours(P) | 0.9988 | 0.9923 | 0.9983 | 0.9983 | 0.9577 |
| Ours(I) | 0.9999 | 0.9951 | 0.9971 | 0.9971 | 0.9951 |
| Methods | SSIM ( ) | PSNR ( ) | LPIPS ( ) |
| HiNet [ 11 ] | 0.7024 | 18.7884 | 0.0375 |
| RePaint [ 15 ] | 0.7832 | 18.9624 | 0.0436 |
| VQGAN [ 6 ] ( = 1024) | 0.7987 | 22.6042 | 0.0208 |
| VQGAN [ 6 ] ( = 16384) | 0.8029 | 23.1354 | 0.0199 |
| VAR [ 23 ] | 0.7993 | 16.5914 | 0.0249 |
| hidden code (Ours) | 0.8238 | 24.6575 | 0.0190 |
| Methods | Gaussian Shading | Guassian Shading + ours |
| Forgery BA ( ) | Forgery BA ( ) | |
| Average attack ( , grey box setting) | 0.8999 | 0.5142 |
| Average attack ( , black box setting) | 0.8000 | 0.5079 |
| Average attack ( , grey box setting) | 0.9126 | 0.5125 |
| Average attack ( , black box setting) | 0.8141 | 0.5047 |
| Average attack ( , grey box setting) | 0.9328 | 0.5119 |
| ImageNet | CLIP score( ) | CLIP score( ) | |||||
| Methods \ Metric | Original | Crop | Color jitter | JPEG | Gaussian Blur | Gaussian Noise | Different image |
| QF | |||||||
| VQGAN [ 6 ] (codebook size = 1024) | 0.7939 | 0.7984 | 0.7906 | 0.7730 | 0.8307 | 0.7817 | 0.6787 |
| VQGAN [ 6 ] (codebook size = 16384) | 0.8208 | 0.8229 | 0.8061 | 0.7949 | 0.8572 | 0.8040 | 0.6571 |
| VAR [ 23 ] | 0.8845 | 0.8692 | 0.8385 | 0.8418 | 0.8582 | 0.8529 | 0.6552 |
| hidden code (Ours) | 0.9021 | 0.8885 | 0.8503 | 0.8765 | 0.8784 | 0.8948 | 0.6176 |
Image Restoration
Image restoration uses computational methods to recover useful visual content from noisy, blurred, low-resolution, or otherwise degraded images.
See all 372 papers