TL;DR
Image Manipulation Localization (IML) has long relied on predicting a single binary mask, ignoring the multi-step nature of modern editing. This paper introduces RITA, an autoregressive framework that reformulates IML as a conditional sequence prediction task to uncover the step-by-step history of an image's manipulation. By explicitly modeling temporal and hierarchical dependencies, RITA significantly mitigates overfitting and achieves state-of-the-art generalization and robustness.
What Problem Does This Paper Address?
With the rise of generative AI and advanced editing tools, creating deceptive images has evolved from simple copy-paste jobs into complex, multi-stage pipelines. A single forged image might undergo object erasure, inpainting, object insertion, and edge blending.
Despite this complexity, current IML methods rely on a "one-shot" prediction paradigm: they take an image and attempt to output a single binary mask showing where the manipulation occurred. The authors identify a major flaw in this approach: dimensional collapse. Compressing a multi-step, hierarchical editing process into a single flat mask forces models to discard crucial structural and temporal cues. Consequently, existing models easily overfit to training data biases and fail to generalize to unseen, real-world manipulation scenarios.
Methods
To capture the true nature of image editing, the authors introduce RITA (Reversely-ordered Incremental-Transition Autoregression), which shifts the paradigm from asking "where is the manipulation?" to "how was it created?".
- Conditional Sequence Prediction: RITA models localization as a first-order Markov chain. Instead of predicting everything at once, it predicts manipulated regions layer-by-layer. The prediction of the next mask ($M_{t+1}$) is conditioned on both the input image ($I$) and the mask from the immediate preceding step ($M_t$).
- Multi-Scale Encoder & Gated Fusion: The architecture processes image and mask tokens separately through a Mix Transformer block. At each scale, a Transition Gated Fusion (TGF) module dynamically cross-gates image and mask features, forcing the network to focus attention on evolving manipulated boundaries.
- Edge Supervision Loss: To refine fine-grained boundaries, the authors introduce an auxiliary loss that specifically targets the incremental region added between two consecutive steps.
- Backward Compatibility: To ensure RITA can still train on traditional one-shot datasets, the authors design a decomposition strategy that reinterprets a standard binary mask as a simplified two-step incremental sequence.
Datasets
To train and evaluate this sequential approach, the authors introduced new benchmarks alongside standard datasets:
- HSIM (Hierarchical Sequential Image Manipulation): A newly constructed benchmark dataset containing 2,442 valid multi-step manipulation paths. The editing plans were generated using GPT-4o, executed via GPT-Image-1, and manually refined to ensure high-fidelity, step-wise annotations.
- Traditional Benchmarks: For evaluating standard cross-dataset generalization, the authors utilized classic datasets including CASIAv1/v2, Coverage, Columbia, NIST16, IMD20, CocoGlide, and AutoSplice.
The authors also proposed a new metric, the Hierarchical Sequential Score (HSS), which uses dynamic programming to evaluate both structural alignment and step-length consistency against multiple valid editing orders.
Key Insights and Ideas
- De-flattening Image Forensics: Treating image forensics as a history-tracking problem rather than a static segmentation problem unlocks significantly better feature representations.
- Coarse-to-Fine Refinement: Even when evaluated on standard one-shot datasets, RITA naturally adopts a "Salient-Cue First" strategy. It highlights prominent anomalies in early steps and progressively executes error correction, boundary smoothing, and false-positive suppression in later steps.
- Process-Guided Data Synthesis: Because RITA learns the underlying logic of editing, it can act as an automated "instructor." It can take an unseen real-world forgery, decompose it into a sequence of atomic operations (e.g., text erase $\rightarrow$ text add $\rightarrow$ self-blending), and use that sequence as a template to generate highly realistic, domain-consistent synthetic training data.
Key Results
- State-of-the-Art Generalization: On traditional benchmarks under the CAT-Net protocol, RITA achieved an Overall Average F1 score of 0.643, substantially outperforming top-performing one-shot baselines like Mesorch (0.593) and TruFor (0.531).
- Robustness to Perturbations: RITA demonstrated remarkable stability against common image degradations. Under severe Gaussian noise, it achieved an average F1 of 0.608 (vs. Mesorch's 0.539), and maintained a clear lead under heavy Gaussian blur and JPEG compression.
- High Efficiency: Despite modeling multiple steps, RITA remains highly practical. It requires only 55.567M parameters and 95.993 GFLOPs—making it significantly lighter and faster than models like MVSS-Net (150.5M parameters) and CAT-Net (116.7M parameters).
Limitations and Future Work
While RITA marks a significant advancement, its current implementation is primarily tailored to 2D natural images and document text modifications. The authors note that future work will focus on extending this progressive sequential modeling paradigm to higher-dimensional visual content security tasks, such as remote sensing imagery, 3D assets, and digital humans (deepfakes), where temporal and spatial hierarchies are even more pronounced.
Summary updated