Loupe: A Generalizable and Adaptive Framework for Image Forgery Detection

Yuchu Jiang, Jiaming Chu, Jian Zhao, Xin Zhang, Xu Yang +3 more
6/20/2025
cs.CVcs.AI

Official code: Kamichanw/Loupe (38 stars, MIT, last commit 2025-12-04).

Abstract

The proliferation of generative models has raised serious concerns about visual content forgery. Existing deepfake detection methods primarily target either image-level classification or pixel-wise localization. While some achieve high accuracy, they often suffer from limited generalization across manipulation types or rely on complex architectures. In this paper, we propose Loupe, a lightweight yet effective framework for joint deepfake detection and localization. Loupe integrates a patch-aware classifier and a segmentation module with conditional queries, allowing simultaneous global authenticity classification and fine-grained mask prediction. To enhance robustness against distribution shifts of test set, Loupe introduces a pseudo-label-guided test-time adaptation mechanism by leveraging patch-level predictions to supervise the segmentation head. Extensive experiments on the DDL dataset demonstrate that Loupe achieves state-of-the-art performance, securing the first place in the IJCAI 2025 Deepfake Detection and Localization Challenge with an overall score of 0.846. Our results validate the effectiveness of the proposed patch-level fusion and conditional query design in improving both classification accuracy and spatial localization under diverse forgery patterns. The code is available at https://github.com/Kamichanw/Loupe.

View on arXivView PDF

Code Implementations(1)

Kamichanw/LoupeOfficial100%
MIT

[IJCAI'25 Workshop Oral] The 1st place solution of IJCAI 2025 challenge track 1: Image Detection and Localization

382Python, Jupyter NotebookApr 23, 202510 months agoMIT

Similar Papers

Cite this paper

@article{jiang2025loupe,
  title  = {Loupe: A Generalizable and Adaptive Framework for Image Forgery Detection},
  author = {Yuchu Jiang and Jiaming Chu and Jian Zhao and Xin Zhang and Xu Yang and Lei Jin and Chi Zhang and Xuelong Li},
  year   = {2025},
  eprint = {2506.16819},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.16819v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.16819.svg)](https://codeofpaper.com/paper/2506.16819)

Discussion