FOCA: Frequency-Oriented Cross-Domain Forgery Detection, Localization and Explanation via Multi-Modal Large Language Model

Zhou Liu, Tonghua Su, Hongshi Zhang, Fuxiang Yang, Donglin Di, Yang Song, Lei FanarXiv 2026

TL;DR

FOCA is a novel multimodal large language model (MLLM) framework that detects, localizes, and explains image forgeries by fusing RGB spatial data with high-frequency wavelet analysis. By bridging high-level semantic reasoning with low-level forensic traces, it delivers state-of-the-art detection accuracy alongside human-interpretable, dual-domain explanations of tampering artifacts.

What Problem Does This Paper Address?

The rapid rise of generative AI tools makes creating hyper-realistic image forgeries incredibly easy. Detecting these manipulations requires Image Forgery Detection and Localization (IFDL) methods to be both highly accurate and interpretable.

Currently, IFDL approaches fall into two distinct paradigms, both with major gaps:

  1. Traditional/Deep Learning Models: These leverage low-level noise or frequency cues to spot pixel-level anomalies. While computationally efficient, they only output binary scores or raw masks, offering zero explanation for why an image was flagged.
  2. Multimodal Large Language Models (MLLMs): These excel at high-level semantic reasoning (e.g., spotting a physically impossible shadow). However, they operate entirely within the standard RGB spatial domain, completely missing subtle, high-frequency forensic traces like GAN or diffusion-generated texture irregularities.

FOCA bridges this gap by equipping MLLMs with frequency-domain awareness, creating a unified framework that can see both the semantic "big picture" and the microscopic statistical anomalies left behind by editing tools.

Methods

The architecture of FOCA consists of three primary components integrated into a unified pipeline:

Fig. 1. Overview of FOCA. It receives an image ximg and a text instruction xtxt and produces a textual response. FOCA uses the [CLS] token for tamper classification and the [SEG] token for pixel-level mask generation.
  • Frequency Attention Fusion (FAF) Module: Instead of relying solely on RGB pixels, FOCA applies a Discrete Wavelet Transform (DWT) to isolate the high-frequency sub-band ($x_{HH}$), which is highly sensitive to tampering artifacts. A cross-attention mechanism uses this frequency data as a "query" to adaptively extract structurally relevant anomaly regions from the spatial RGB image.
  • MLLM Backbone: Built on top of LISA-7B and fine-tuned using LoRA, the model's vocabulary is extended with two special tokens: [CLS] for classification and [SEG] for segmentation.
  • Segmentation Module: Visual features from a frozen Segment Anything Model (SAM) backbone are combined with the [SEG] token embedding to decode and output a precise, pixel-level tampering mask ($\hat{M}$).
  • Auxiliary Contrastive Learning: To make the features even more discriminative, the authors introduce an InfoNCE contrastive loss objective that forces the model to maximize agreement for positive pairs while repelling negative samples in a latent space.

Datasets

To train and evaluate FOCA, the authors introduced FSE-Set, a new large-scale dataset designed for cross-domain forgery analysis.

  • FSE-Set: Contains 100K images (50K authentic images from ImageNet and 50K tampered images derived from COCO). The tampered set splits evenly into 25K traditional manipulations (splicing, copy-move) and 25K advanced AI-generated edits.
  • The AI Generation Pipeline: Built using Qwen2.5-VL for object extraction, Language-SAM for mask generation, and Stable Diffusion for realistic inpainting. Crucially, the authors used Claude to analyze both the RGB images and their frequency sub-bands to generate fine-grained, dual-domain textual explanations for training.
Fig. 1. Overview of FOCA. It receives an image ximg and a text instruction xtxt and produces a textual response. FOCA uses the [CLS] token for tamper classification and the [SEG] token for pixel-level mask generation.

For broader validation, the authors also evaluated their model on standard benchmarks: CASIA v1 and Columbia.

Key Insights and Ideas

  • Wavelets Preserve Space: Unlike a standard Fourier Transform which discards spatial layout, the Discrete Wavelet Transform (DWT) isolates high-frequency noise while preserving spatial structures. This localization is what allows the cross-attention mechanism to successfully map frequency anomalies back to exact physical coordinates in the image.
  • Frequency is the Missing Link for MLLMs: Standard MLLMs often hallucinate or fail when trying to explain pixel-level fakes because they lack the vocabulary/features for texture statistics. Giving the model explicit access to the $x_{HH}$ sub-band grounds its textual explanations in physical forensic evidence.

Key Results

Forgery Detection & Localization

FOCA achieved state-of-the-art performance across multiple benchmarks, demonstrating a superior balance between identifying real and tampered images. On the FSE-Set dataset, FOCA achieved an overall detection accuracy and F1 score of 96.2%, outperforming traditional deepfake detectors like DRCT (93.0%) and specialized MLLMs like SIDA (95.6%).

For pixel-level localization, FOCA set new performance standards on FSE-Set (48.6 IoU / 65.4 F1) and Columbia (60.8 IoU / 75.6 F1).

Explanation Quality

Using metrics like ROUGE-L, Cosine Similarity (CSS), and an automated GPT-4o "LLM-Judge", FOCA significantly outperformed general-purpose MLLMs (Qwen2.5-VL, InternVL3) and domain-specific baselines in generating coherent, accurate descriptions of the forgery process.

Fig. 3. Comparative results of the pre-trained MLLMs and FOCA in tampering explanation capabilities on the FSE-Set.

Limitations and Future Work

While FOCA achieves state-of-the-art results on most benchmarks, the authors note that it slightly trails the SIDA framework on the older CASIA v1 dataset in terms of localization IoU and F1 score. Future work will likely focus on improving generalization across legacy datasets and optimizing the computational overhead introduced by processing dual-domain features simultaneously.

Summary updated

BibTeX
@misc{liu2026foca,
  author = {Zhou Liu and Tonghua Su and Hongshi Zhang and Fuxiang Yang and Donglin Di and Yang Song and Lei Fan},
  title = {{FOCA: Frequency-Oriented Cross-Domain Forgery Detection, Localization and Explanation via Multi-Modal Large Language Model}},
  year = {2026},
  eprint = {2602.18880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.18880},
}
Figure