Source-linked AI summary

SPAN: Spatial Pyramid Attention Network forImage Manipulation Localization

Xuefeng Hu, Zhihan Zhang, Zhenye Jiang, Syomantak Chaudhuri, Zhenheng Yang, Ram Nevatia

arXiv:2009.00726v2cs.CV

TL;DR

Image manipulation techniques can produce authentic-looking forgeries, creating a need to localize multiple tampering types. SPAN addresses this with multi-scale local self-attention and positional projection, and reports improved benchmark performance over prior state-of-the-art methods. Its effectiveness may be lower on lower-resolution images.

  • Problem

    Authentic-looking manipulations motivate localization methods that can handle multiple tampering types and learn differences between manipulated and untampered regions.

  • Method

    SPAN uses a feature extractor, pyramid spatial attention, and decision module, with hierarchical local self-attention and positional projection to model patch relationships across scales.

  • Results

    SPAN outperforms state-of-the-art ManTra-Net and RGB-N methods across standard benchmarks, including gains exceeding 10% AUC over ManTra-Net on Columbia and Coverage.

  • Takeaways & Limitations

    Modeling relationships between image patches at different scales supports accurate and robust general manipulation detection and localization with or without fine-tuning.

  • Takeaways & Limitations

    SPAN may be less effective on lower-resolution images, and its performance gain is not large on the CASIA dataset compared with RGB-N.

Abstract

from arXiv · show

We present a novel framework, Spatial Pyramid Attention Network (SPAN) for detection and localization of multiple types of image manipulations. The proposed architecture efficiently and effectively models the relationship between image patches at multiple scales by constructing a pyramid of local self-attention blocks. The design includes a novel position projection to encode the spatial positions of the patches. SPAN is trained on a generic, synthetic dataset but can also be fine tuned for specific datasets; The proposed method shows significant gains in performance on standard datasets over previous state-of-the-art methods.

1 Introduction

SPAN targets localization of multiple manipulation types by modeling relationships between image patches across scales. Its pyramid of local self-attention blocks and positional projection improves pixel-level localization against prior methods.

  • Image manipulation methods can create authentic-looking composites, motivating localization of tampered regions across splicing, copy-move, removal, and enhancement.
  • Existing localization methods often target only one or a few manipulation types, while general methods differ in localization granularity and adaptation requirements.
  • SPAN models both cross-scale vertical relationships and spatial relationships between image patches using multi-scale propagation and self-attention.
  • A hierarchical pyramid first computes local self-attention and propagates local information across scales, with positional projection encoding neighbor locations for localization.
  • 11.21% improvement over ManTra-Net on Columbia without fine-tuning, and 9.5% improvement over RGB-N on Coverage with fine-tuning, were reported.
  • The contributions are a multi-scale Spatial Pyramid Attention Network, positional projection replacing classic positional embedding, and higher accuracy from modeling patch relationships.

2 Related Work

Prior work largely addressed manipulation-specific localization, while newer systems sought general manipulation detection. SPAN is positioned against approaches using region comparison, noise features, recurrent modules, and attention mechanisms.

  • Manipulation Detection and Localization: Many earlier methods localized specific manipulation types, including copy-move, removal, enhancement, and splicing.
  • Manipulation Detection and Localization: Unknown manipulation types and images containing multiple manipulation types motivate systems that detect general manipulations.
  • Manipulation Detection and Localization: J-LSTM and H-LSTM compare fixed-size patches, but fixed patch assumptions may fail when tampered-region sizes differ from that assumption.
  • Manipulation Detection and Localization: RGB-N combines RGB and noise streams in Faster R-CNN, but produces rectangular localization and requires fine-tuning for specific datasets.
  • Manipulation Detection and Localization: ManTra-Net jointly learns manipulation classification and localization with a VGG feature extractor and LSTM detection module on synthetic multi-type data.
  • Attention Mechanism: Attention mechanisms create input-dependent connections that focus neural networks on meaningful entities such as words or image regions.
  • Attention Mechanism: Self-attention models mutual relationships within an input group and has been applied to machine translation, image generation, and non-local image modeling.

3 Method

SPAN combines feature extraction, pyramid spatial attention propagation, and a decision module to compare image patches across multiple scales. Local self-attention, positional projection, and dilated pyramid propagation establish spatial relationships efficiently before producing a soft tampering mask.

  • Framework overview: SPAN uses a feature extractor, pyramid spatial attention propagation module, and decision module to process image features and produce a soft tampering mask.The feature extractor is adopted from prior work, while the attention module establishes multi-scale spatial relationships before convolutional blocks and sigmoid prediction.
  • Local self-attention: Local self-attention computes each pixel representation from its target pixel and a dilated (2N + 1) × (2N + 1) neighborhood.The neighborhood is represented as linearly ordered features, while learnable projections generate Keys, Values, and Query for attention.
  • Local self-attention: The attention mechanism explicitly models relationships between a query pixel and neighboring pixels through projected inner products, rather than only adding neighboring pixels as convolution does.This comparison is used to build features for manipulation localization.
  • Positional projection: SPAN replaces classic positional embeddings with positional projections that represent the possible relative spatial relationships between neighboring and query pixels.For each target pixel, positional-projected neighbors are then transformed into Keys, Values, and Query before being assembled into the output.
  • Pyramid propagation: Dilated local attention blocks propagate information hierarchically, allowing upper-layer pixels to encode increasingly broad regions while retaining efficient small neighborhoods.A top-layer pixel can reach (2N + 1)²h pixels from lower layers, and the pyramid supports comparisons between different patches.
  • Pyramid propagation: The block-size analysis gives total complexity O(S²M² log_M S), minimized at neighborhood size M = 3; SPAN therefore uses five 3 × 3 layers with dilation distances 1, 3, 9, 27, and 81.This structure models relationships across five scales: 3, 9, 27, 81, and 243.

4 Experiments

SPAN is evaluated across five datasets under pre-training-only and fine-tuning settings, including cross-dataset generalization, manipulation-type robustness, ablations, and robustness tests.

  • Evaluation and datasets: Experiments cover the synthetic training dataset plus NIST16, Columbia, Coverage, and CASIA, comparing general-manipulation localization methods with and without dataset-specific fine-tuning.The evaluation follows prior protocols and excludes methods tuned to only one manipulation type.
  • Architecture and ablations: The five-layer 3 × 3 self-attention configuration uses dilation distances 1, 3, 9, 27, and 81, residual links, and positional projection.Ablations compare residual links with convolution LSTM fusion and positional projection with positional embedding.
  • Pre-training only: SPAN generalizes without extra adaptation, outperforming ManTra-Net in AUC on four external datasets and gaining over 10% AUC on Columbia and Coverage.CASIA shows a smaller performance gain, while the reported cross-dataset comparison uses the pre-training-only setting.
  • Pre-training + fine-tuning: Fine-tuning further improves SPAN’s performance across all four evaluated external datasets after comparison with state-of-the-art methods.The fine-tuning protocol directly evaluates Columbia and uses provided training splits for NIST16, Coverage, and CASIA.
  • Manipulation type analysis: Without fine-tuning on NIST16, SPAN performs consistently better than ManTra-Net across splicing, copy-move, and removal manipulation types.Adaptation to NIST16 can improve SPAN’s results further.
  • Robustness: SPAN is more robust to compression but more sensitive to resizing, based on tests using area resizing, Gaussian blur, Gaussian noise, and JPEG compression.These perturbations are applied to NIST16 and Columbia.
  • Qualitative results: Qualitative examples show better predictions than ManTra-Net for manipulated-region interiors, correct manipulated objects, and noisy false negatives.The examples are grouped using green, blue, and orange circles, respectively.

5 Conclusion

SPAN models patch relationships across multiple scales using a pyramid of local self-attention blocks to detect and localize multiple image manipulation types, with or without fine-tuning. It outperforms state-of-the-art models but may be less effective at lower image resolutions.

  • SPAN uses a pyramid of local self-attention blocks to model relationships between image patches at multiple scales.
  • SPAN detects and localizes multiple image manipulation types with or without fine-tuning.
  • SPAN outperforms the state-of-the-art models.
  • The method is described as accurate and robust for general manipulation detection and localization.
  • SPAN may be less effective with lower image resolution.
Loading 2009.00726v2…