ForgeryTTT: Zero-Shot Image Manipulation Localization with Test-Time Training

Weihuang Liu, Xi Shen, Chi-Man Pun, Xiaodong Cun
10/5/2024
cs.CV

No confident code implementation found for this paper.

Abstract

Social media is increasingly plagued by realistic fake images, making it hard to trust content. Previous algorithms to detect these fakes often fail in new, real-world scenarios because they are trained on specific datasets. To address the problem, we introduce ForgeryTTT, the first method leveraging test-time training (TTT) to identify manipulated regions in images. The proposed approach fine-tunes the model for each individual test sample, improving its performance. ForgeryTTT first employs vision transformers as a shared image encoder to learn both classification and localization tasks simultaneously during the training-time training using a large synthetic dataset. Precisely, the localization head predicts a mask to highlight manipulated areas. Given such a mask, the input tokens can be divided into manipulated and genuine groups, which are then fed into the classification head to distinguish between manipulated and genuine parts. During test-time training, the predicted mask from the localization head is used for the classification head to update the image encoder for better adaptation. Additionally, using the classical dropout strategy in each token group significantly improves performance and efficiency. We test ForgeryTTT on five standard benchmarks. Despite its simplicity, ForgeryTTT achieves a 20.1% improvement in localization accuracy compared to other zero-shot methods and a 4.3% improvement over non-zero-shot techniques. Our code and data will be released upon publication.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2024forgeryttt,
  title  = {ForgeryTTT: Zero-Shot Image Manipulation Localization with Test-Time Training},
  author = {Weihuang Liu and Xi Shen and Chi-Man Pun and Xiaodong Cun},
  year   = {2024},
  eprint = {2410.04032},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04032v1}
}

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/2410.04032.svg)](https://codeofpaper.com/paper/2410.04032)

Discussion