Manuscript Offprint

arXiv:2608.30714

SegWave: Wavelet-Driven Segmentation of Tampered Regions

Siddhi Pravin Lipare, Vishesh Kumar, Akshay Agarwal

Siddhi Pravin Lipare 1†^{1\dagger}, Vishesh Kumar 2^{2}, and Akshay Agarwal 2^{2}

1^{1} IIIT-Hyderabad, India

siddhi.l@research.iiit.ac.in

2^{2} Trustworthy BiometraVision Lab, IISER-Bhopal, India

{vishesh22, akagarwal}@iiserb.ac.in

Abstract. Verifying image authenticity is increasingly difficult, posing serious risks across journalism, law enforcement, and political domains. Most existing forensic methods rely on high-level visual artifacts and treat frame detection as a simple binary task. To address this, we propose SegWave, a hybrid framework that jointly leverages spatial and frequency-domain cues for image tampering detection. SegWave integrates a transformer-based architecture with the Discrete Wavelet Transform (DWT) to capture localized, multi-scale frequency inconsistencies indicative of manipulation. To further improve localization effectiveness, we introduce an Adaptive Sub-band Attention module (ASA) that dynamically highlights the informative high-frequency wavelet components. Extensive experiments on multiple benchmark datasets demonstrate that SegWave consistently outperforms state-of-the-art tampering detection methods in challenging evaluation settings.

Keywords: Image Forensics, Trustworthy AI, Tampering Localization

1 Introduction

Verifying whether an image is authentic has become central to the modern information ecosystem - from journalism and legal evidence to public discourse on social media. With the rapid progress of generative AI [2, 24, 34], images can now be synthesized and edited with a realism that is difficult to spot by eye. The same tools that enable creative work let malicious actors fabricate evidence, alter surveillance footage, or spread convincing visual misinformation. As manipulations become more sophisticated, the demand for tampering detection algorithms that can keep pace grows just as quickly.

Consider an image circulating online that shows a public figure at an event they never attended. The face may be spliced from one photograph, the background lifted from another, and a small object inserted by a diffusion model - three distinct manipulations composited into a single frame. For a journalist

†^{\dagger} Work done while at IISER Bhopal.

Lipare et al.

Figure

Fig. 1. SegWave enables effective segmentation of tampered regions. The input image is decomposed into frequency subbands (LL, LH, HL, HH) via the Haar Wavelet Transform. The high-frequency subbands are reweighted by an Adaptive Sub-band Attention module and recombined into an enriched representation for the image encoder. In parallel, point prompts sampled region-wise from the ground-truth mask are embedded by a prompt encoder. The image and prompt embeddings feed a transformer encoder-decoder whose mask decoder predicts the tampered regions, supervised by a weighted BCE and MSE loss. This lets SegWave fuse frequency and spatial cues for fine-grained, multi-source localization.

verifying the image, an analyst preparing it for court, or an automated moderation system, a verdict of simply “tampered” is of little practical use. What these users actually need is to know where the image is altered and how many distinct sources are stitched together, so that the manipulation can be traced, attributed, and explained.

Yet most existing forensic models stop at exactly this binary verdict. State-of-the-art methods such as CAT-Net [26], SAFIRE [25], and DocTamper [33] perform well under controlled conditions but struggle to generalize across the diversity of real manipulations such as object splicing, copy-move operations, and GAN- or diffusion-based edits [24, 34]. A deeper limitation lies in what they rely on: much of their evidence comes from global frequency artifacts left behind by JPEG compression, captured through the Fast Fourier Transform (FFT) [21, 25] or the Discrete Cosine Transform (DCT) [7, 26, 27]. These cues are powerful for compressed media but fade on uncompressed formats such as PNG, where no lossy footprint exists, and they offer little help in separating the multiple forgery sources that coexist within a single composite image. In high-stakes settings, where traceability and accountability matter as much as accuracy, this absence of fine-grained, source-aware localization is a serious gap.

To address this, we present SegWave (Segment any Manipulated Image using Wavelet Transforms), a hybrid prompt-guided framework that unifies spatial and localized frequency cues for tampering detection and localization. Rather than depending on compression artifacts, SegWave employs the Discrete Wavelet

Transform (DWT) [11, 36] to capture multi-scale, spatially localized frequency variations that remain informative even on uncompressed images. An Adaptive Subband Attention Module then dynamically weights the most informative high-frequency subbands while suppressing structural noise, sharpening the boundaries of tampered regions. Beyond a binary verdict, SegWave integrates a point-prompt-based segmentation mechanism [22, 25] that traces and partitions a composite image by its source regions—and crucially, it learns to do so under only weak binary-mask supervision, bridging fine-grained forensic interpretability with real-world scalability. Our key contributions are summarized as follows:

  1. We propose SegWave, a hybrid transformer framework that fuses spatial features with localized DWT-based frequency cues, exposing multi-scale anomalies that survive in uncompressed (PNG) images and sidestepping the JPEG dependence of prior baselines.

  2. We introduce an Adaptive Subband Attention Module that dynamically weights the most informative high-frequency wavelet subbands, sharpening boundary localization and improving robustness to GAN- and diffusion-based edits.

  3. We conduct extensive experiments across splicing, copy-move, and generative benchmarks, showing that SegWave consistently outperforms strong baselines such as SAFIRE, CAT-Net V2, and TruFor under challenging evaluation settings.

The rest of this paper is organized as follows: Section 2 reviews related work in tampering detection. Section 3 details the SegWave architecture. Section 4 presents experimental results and analysis. Finally, Section 6 concludes with key insights and future directions.

References (41)