Forensic-Aware Continual Adaptation for Image Forgery Localization

Chenqi Kong, Song Xia, Anwei Luo, Peisong He, Alex C. Kot, Yuming FangarXiv 2026

TL;DR

Researchers have developed FOCAL, the first continual learning framework for Image Forgery Localization (IFL). By combining a spatial mixture-of-experts for forensic trace mining with a "gradient surgery" technique that protects critical model parameters, FOCAL allows models to adapt to new, sophisticated image manipulations over time without forgetting how to detect older ones.

What Problem Does This Paper Address?

Image Forgery Localization (IFL) is the task of identifying exactly which pixels in an image have been tampered with (e.g., via splicing, copy-move, or AI-based inpainting). While current SOTA models are good at static tasks, they fail in the real world where new manipulation techniques—driven by frontier models like "GPT-Image 2.5"—emerge constantly.

Existing models face two major hurdles in a sequential workflow:

  1. Catastrophic Forgetting: When a model learns to detect a new type of forgery (e.g., AI-generated faces), it often loses the ability to detect older ones (e.g., JPEG compression artifacts).
  2. Domain Gaps: Forensic traces vary wildly between natural photos, scientific imagery, and scanned documents. A model trained on one often fails to "see" the relevant artifacts in another.
Fig. 1: Illustration of Continual Image Forgery Localization (CIFL) pipeline (Best viewed in color). M indicates different models.

Methods

The authors propose the FOrensic-aware Continual Adaptation (FOCAL) framework, built on top of the Segment Anything Model (SAM) using Low-Rank Adaptation (LoRA). It consists of two main pillars:

1. Forensic-Aware Representation Adaptation (FARA)

Instead of relying on generic visual features, FARA uses a Spatial Mixture-of-Forensic-Experts (SMoFE). It employs four specialized extractors (Sobel, SRM, JPEG, and Bayer) to find edge, noise, and compression anomalies. Crucially, SMoFE performs spatial routing—deciding pixel-by-pixel which expert's input is most relevant. These traces are then processed by Forensic Evidence-Guided Dense Prompting (FEGDP), which converts raw signals into structured "prompts" (inconsistency maps and boundary estimates) that the SAM backbone can actually understand.

2. Fisher-weighted LoRA Gradient (FLAG) Surgery

To prevent forgetting, the authors introduce a "surgery" for the model's gradients. Using a small memory buffer, the model calculates Fisher Information to identify which LoRA parameters are most critical for previously learned tasks. During new training, the FLAG strategy selectively suppresses updates that conflict with these critical directions, balancing the model's "plasticity" (ability to learn new things) with "stability" (retaining old knowledge).

Fig. 2: The proposed continual image forgery localization framework. (a) Forensic- Aware Representation Adaptation (FARA) module: Spatial Mixture-of-Forensic- Experts (SMoFE) and Forensic Evidence-Guided Dense Prompting (FEGDP); (b) Fisher-weighted LoRA Gradient (FLAG) surgery module; (c) The overall objectives.

Datasets

The authors established two new benchmarks to test continual adaptation:

  • Protocol 1 (Cross-Dataset): A chronological sequence of four major datasets: Classic (CASIA, IFC, etc.), DEFACTO, FantasticReality, and TampCOCO.
  • Protocol 2 (Cross-Content): A sequence involving three distinct image domains: Natural images, Scientific images (biomedical/satellite), and Document images.

Key Insights and Ideas

  • Spatial vs. Channel Routing: Most Mixture-of-Experts models route entire images to specific experts. FOCAL's spatial routing is a "lightbulb moment" for forensics, recognizing that different parts of the same image might require different forensic tools to uncover a forgery.
  • Bridging the Representation Gap: Raw forensic traces (like high-frequency noise) are often "noise" to a semantic model like SAM. By transforming these into structured evidence (boundaries and uncertainty), the authors make forensic data "SAM-compatible."
  • Importance-Aware Geometry: By using Fisher information to weight the inner product of gradients, the model treats the parameter space as a non-Euclidean geometry where "important" directions are protected more vigorously than others.

Key Results

FOCAL significantly outperformed both standard IFL models and general-purpose continual learning baselines:

  • Pixel-Level Accuracy: On Protocol 1, FOCAL achieved an average F1 score of 0.5722 at the final stage, compared to just 0.3993 for a standard SAM+LoRA baseline.
  • Stability: While other models saw their performance on early tasks plummet as they learned new ones, FOCAL maintained high accuracy across the entire sequence.
  • Robustness: In the challenging Cross-Content protocol (Protocol 2), FOCAL showed the most consistent performance regardless of the order in which it encountered Natural, Scientific, or Document data.

Limitations and Future Work

The authors note that while their protocols are realistic, they do not fully capture the extreme complexity of real-world "in-the-wild" scenarios. Future work could explore:

  • More Complex Protocols: Moving beyond simple sequences to more interleaved or overlapping data streams.
  • Multimodal Forensics: Incorporating metadata or text-based cues alongside image pixels to further improve localization.
  • Scaling: Testing the framework on even larger foundation models beyond SAM-Base.

Summary updated

BibTeX
@misc{kong2026forensic,
  author = {Chenqi Kong and Song Xia and Anwei Luo and Peisong He and Alex C. Kot and Yuming Fang},
  title = {{Forensic-Aware Continual Adaptation for Image Forgery Localization}},
  year = {2026},
  eprint = {2609.38251},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38251},
}
Figure