Skip to content

RemTraceNet: Few-shot forensic detection of invisible watermark attacksRemTraceNet: Few-Shot Forensic Detection of Invisible Watermark Attacks

arXiv: Alignment, Deception & Oversight· arXiv:2609.31694· Jidong Yang, Huaike Yu, Qi Li, Yuantian Miao, Wei Zong, Yang-Wai Chow, Willy Susilo, Chunpeng Wang, Suo Gao·Indexed by this site · 2026-10-01· Originally publishedAttacks

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

RemTraceNet at n=100, three random seeds, macro-averaged TPR@1%FPR is 82.75%–88.17% (across resolutions and controls).

Threat modelThe specified removal pipeline is known and the corresponding specialist is selected. The detector does not receive keys, encoders, decoders, object detectors, or attack parameters, and the input does not contain attack or watermark identifiers. Post-hoc pairing aligns by source image, generator-internal pairing by prompt. The positive class is watermarked images processed by that pipeline, and the negative classes are paired clean images and unattacked watermarked images. The goal is to identify manipulation history, not whether the watermark exists or whether the payload is removed.

Questions
When verification fails, the cause may be a removal attack or benign post-processing during transmission. The authors argue that breaking the recovery of an invisible watermark does not mean the removal process is forensically undetectable. The task is to determine whether an image has undergone a specified known removal pipeline.
Methods
Train RemTraceNet separately for each known pipeline. The model fuses constrained residuals, local relationships, FFT/Haar statistics, and block DCT at native resolution, then adds the global logit and local Top-k with equal weights. The positive class is processed watermarked images, and the negative class is paired clean images and unattacked watermarked images.
Experiments and results
With 23 pipelines, 10 watermarks, n=100, three random seeds, macro-averaged TPR@1%FPR is 82.75%–88.17%. The authors state that at seed 42, under the same protocol, it is higher than the retrained steganalysis baseline. For 512, generator-internal watermark, diffusion regeneration, clean/watermarked negative class AUROC is 75.69%/79.44%.
Limitations and future work
The authors state that the comparison did not systematically include benign operations such as transmission compression, nor did it test distinction from all benign post-processing. The detector cannot recover payloads, infer keys, or independently establish ownership. The authors plan to combine detection with payload recovery. Coverage of 23 pipelines, 10 watermarks, and two resolutions; baseline comparisons use only seed 42.
Experimental setupRemTraceNet · MS-COCO · TPR@1%FPR、AUROC et al.
Evaluated models
RemTraceNet
Benchmarks
MS-COCO
Metrics
TPR@1%FPRAUROCAUPRCTPR@5%FPR
AI summaryRemTraceNet performs few-shot forensic detection of invisible watermark removal processes at native resolution by fusing constrained residuals, local relationships, FFT/Haar statistics, and block DCT evidence. Across 23 removal pipelines and 10 watermark configurations, with 100 attacked training images per pipeline, its TPR@1%FPR macro-averaged over three seeds is 82.75%–88.17%, 10.80–15.68 percentage points higher than retrained SRNet, ZhuNet, and SiaStegNet. The results show that erasing watermarks and erasing removal traces are two different challenges, and removal traces remain learnable under limited supervision.

RemTraceNet performs few-shot forensic detection of invisible watermark removal processes at native resolution by fusing constrained residuals, local relationships, FFT/Haar statistics, and block DCT evidence. Across 23 removal pipelines and 10 watermark configurations, with 100 attacked training images per pipeline, its TPR@1%FPR macro-averaged over three seeds is 82.75%–88.17%, 10.80–15.68 percentage points higher than retrained SRNet, ZhuNet, and SiaStegNet. The results show that erasing watermarks and erasing removal traces are two different challenges, and removal traces remain learnable under limited supervision.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Removing the watermark is different from erasing traces; RemTraceNet uses few-shot specialists to detect the manipulation history of a specified pipeline.

    Removing an invisible watermark is not the same as erasing forensic traces; the question is whether the image has gone through a specified removal pipeline.

    • Scenario: Invisible watermarks with detectors, keys, and registration can be used for source tracking and ownership verification. The authors argue that when verification fails, removal traces can provide supplementary evidence; without traces, the cause of failure is ambiguous. Benign transmission post-processing can also cause verification failure.
    • Existing practice: The authors state that existing evaluations mostly focus on watermark suppression, perceptual quality, detectability, or payload recovery, and forensic stealth is rarely considered. Existing watermark detectors identify or decode payloads, not the manipulation history of a specified pipeline.
    • Observation: Visual similarity does not equal forensic indistinguishability. The authors hypothesize that no single statistic covers all pipelines, requiring separation of manipulation evidence from image content and avoiding watermark presence as a positive-class shortcut.
    • Approach: For each known pipeline, train a binary specialist RemTraceNet for few-shot, pipeline-specific manipulation history detection. It fuses constrained residuals, local relations, FFT/Haar statistics, and block DCT, then uses global prediction and dense local Top-k aggregation.
    • Threat model:
      • Goal: Identify whether an image was produced by a specified pipeline. It does not detect watermark presence or determine whether the payload was successfully removed. The positive class only indicates that the specified operation produced the image.
      • Knowledge: Checkpoints correspond to known pipelines, but the input does not contain attack or watermark identifiers. The detector does not receive keys, encoders, decoders, object detectors, or attack parameters.
      • Pairing: Post-hoc watermarks align by source image; generator-internal watermarks pair by prompt, and the two sides can be different realizations. Forgery pipelines can also use donor or reference inputs.
      • Slices: The same specialist is reported separately on Attack-vs-Clean and Attack-vs-Watermarked. Both control types are labeled as negative classes, and the attack class is balanced with the merged negative class.
  2. What related research exists?

    Related discussion focuses on watermark embedding, removal evaluation, and steganalysis baselines; the authors reframe the task as manipulation history detection.

    The main text has no separate Related Work. Below is a list by the groups actually mentioned in the introduction and discussion.

    • Invisible watermarks: Zhu et al. (2018), Tancik et al. (2020), Fernandez et al. (2022, 2023), Wen et al. (2023), Yang et al. (2024) are used to illustrate that neural watermarking has covered posterior pixel encoders, latent representations, and generator-embedded signals. The discussion states that existing systems typically verify provenance through payload decoding, key matching, or detector scores.
    • Removal and robustness protocols: Petitcolas et al. (1998) and Jiang et al. (2023), Lukas et al. (2024), Zhao et al. (2024), Liu et al. (2025), Qiu et al. (2025), Dong et al. (2025) are listed as attack surfaces, including signal and geometric transformations, detector-oriented optimization, learned reconstruction, diffusion regeneration, latent space inversion, and forgery. The authors criticize these protocols: they measure detectability or payload recovery, not whether the processed image can be distinguished from a clean image or an unattacked watermarked image; forensic stealth is rarely considered. This is not the cited authors' own conclusion.
    • Forensic components: Bayar and Stamm (2018)'s constrained convolution is used in the residual stem, making the filter coefficients sum to 0 and suppressing DC response. The paper only uses it as a construction component, without comparative experiments.

    Baseline methods are SRNet, ZhuNet, and SiaStegNet retrained from scratch. Benchmarks/datasets are MS-COCO; the 10 watermark configurations and 23 removal pipelines are experimental factors in this paper, not external named benchmarks.

    The authors position this work outside payload-recovery-based evaluation: few-shot processing history detection on known pipelines, and using paired clean images and unattacked watermarked images to avoid 'watermarked' becoming evidence for the positive class.

  3. How does the paper address this problem?

    RemTraceNet fuses four evidence streams, with global gating and local Top-k equally weighted, and uses role-balanced loss to reduce false positives.

    Each known pipeline corresponds to a binary-classification specialist RemTraceNet, with 4.80 million trainable parameters. The input does not include pipeline or watermark identity. The model performs four-way evidence at native resolution, then adds the global judgment and the local multi-instance judgment with equal weights.

    Task Definition

    • Paired unit q: when the watermark is posterior, q is the source image identity, with clean and watermarked images corresponding pixel-wise; when the generator is built-in, q is the prompt, and the two sides are different random realizations, with no pixel correspondence assumed.
    • The positive class is usually the result of Ka applied to an unattacked watermarked image; forgery can also use donor or reference inputs. The negative classes are clean images and unattacked watermarked images, without training a separate clean detector.
    • The two slices are reported separately. Tclean compares paired unprocessed content: when images are aligned, it compares the embedding plus attack history against the exact source image; when prompts are paired, it also includes generation variation. Twm is used to prevent the watermark's presence itself from becoming sufficient positive evidence.
    • Watermark configuration identity is used only for sampling and reporting. The content identities used for fitting and checkpoint selection are stem-disjoint across watermarks.

    Four-Way Forensic Representation

    • Residual stem: after filtering, [0, 1] is mapped to [0, 255]. The learned 5×5 Bayar filter has a center coefficient of −1, the remaining coefficients sum to 1, and the whole kernel sums to 0. It fixes 30 SRM filters and an 18-channel learned 3×3 high-pass, supplementing their 16 output channels, for 64 channels total, with truncated linear unit range [−3, 3]. Group-normalized residual blocks downsample by 16×, and mean and standard deviation pooling yields 256 dimensions.
    • Local relations: after shallow residual encoding, pooling is done over a physical range of 32 pixels, with 256 as 8×8 and 512 as 16×16. For a region and its 3×3 neighborhood, attention is predicted from absolute differences and element-wise products, and residual updates yield a 128-channel relation map.
    • Spectrum: RGB is converted to YCbCr, each channel is centered log(1+|F(x)|) and standardized per image and channel; the luminance's first-level Haar detail bands LH, HL, HH are aligned with the spectrum. A six-channel encoder outputs 128 dimensions.
    • Block DCT: the luminance undergoes an orthogonal 8×8 DCT with offsets (0, 0), (0, 4), (4, 0), (4, 4). The 63 AC frequencies use a differentiable histogram: unit-interval bins cover [−16, 16], bins with step 4 cover [−128, 128], plus two overflow bins. After normalization and square-root transformation, convolution yields 128 dimensions; a signed log-magnitude AC map is separately encoded, aligned across phases, and averaged.

    Global Gating and Local Top-k

    Each global vector is first projected to 256 dimensions, then fused through learned gating. During training, each path is independently dropped with probability 0.25, at least one path is kept, and surviving gates are renormalized. The local path aligns the relation map and DCT map, then convolves them to obtain M position logits. k is 0.25M rounded up. The final logit is s=0.5sg+0.5sl that is, the global logit and the average of the top-k local logits are added with equal weights; the sigmoid of s is the probability that the image was processed by the specified pipeline.

    Role-Balanced Low-False-Positive Objective

    n complete triples contain n attacked images and n of each negative class. The effective mass of role-balanced cross-entropy is 0.50 for the attack and 0.25 for each negative class, without dropping any negative class. The ranking term compares the positive class against the hardest 20% of the clean negatives and watermark negatives separately, with soft margin 0.5, averaging the two path losses rather than mixing the tails. The pairing term pulls normalized clean features closer to watermark features and pushes attack features at least one unit away from the negative-class center; prompt pairing does not assume pixel correspondence. The total objective is L=LBCE+0.5Lrank+0.2Lpair+0.2Lbranch+0.01Lgate+0.001LHPF The branch term applies the same cross-entropy to each global view, the gating term penalizes the batch-averaged gating deviating from uniform use, and the high-pass term constrains the learned high-pass prior. The supplementary material gives complete definitions of each term; the main text gives the above coefficients.

  4. What experiments did the paper conduct?

    In Table 2, at n=100, three random seeds, macro-averaged TPR@1%FPR is 82.75%–88.17%.

    Experimental Setup

    • Images and watermarks: All from MS-COCO. Fitting and checkpoint selection use DwtDctSvd, Stable Signature, Gaussian Shading, SSL Watermarking, EditGuard. The unseen group provides no training or validation images: DwtDct, HiDDeN, StegaStamp, Tree-Ring, RivaGAN. Stable Signature, Gaussian Shading, Tree-Ring are paired by prompt, the rest are aligned by source image. Formal testing excludes the validation stem but does not deduplicate across watermark configurations; metrics are computed per watermark first.
    • Pipeline: 23 pipelines. 12 signal or geometric transformations, 5 learned VAE compression/reconstruction, 3 diffusion regeneration, plus NFPA, BM3D, WMForger. The positive class does not mean the watermark was necessarily removed.
    • Sample size: Full triplets per attack use n = 10, 20 up to 100, and 150, 200, evenly split across five training watermarks. n=200 means 200 images per role. Formal testing uses 100 attacked images versus 100 clean images per watermark and resolution, plus another 100 watermarked images. Main results use n=100.
    • Optimization: Trained on native 256×256 for exactly 1,000 updates, 8 content groups per update. AdamW, initial learning rate 4×10^-4, weight decay 10^-4, 50-step warmup, cosine decay to 10^-6, mixed precision, EMA decay 0.999. The final EMA after a single training round is evaluated once on a fixed validation set and serves as the reported checkpoint. The same checkpoint is evaluated directly at 256 and 512 without external scaling. Main scan seeds are 42, 43, 44.
    • Metrics: Report AUROC, AUPRC, TPR@5%FPR, TPR@1%FPR; the main metric is TPR@1%FPR. Operating points are read from the empirical ROC of test scores and are slice-descriptive thresholds, not a single deployment threshold calibrated on a validation set. With 100 negatives per slice, 0, 1, 2 false positives correspond to empirical FPRs of 0%, 1%, 2%. Computed per slice and seed first, then macro-averaged over attacks and watermarks, then aggregated over three random seeds.
    • Baselines: SRNet, ZhuNet, SiaStegNet retrained from scratch with the same labels, checklist, role balance, 1,000 updates, optimization schedule, EMA, and native-resolution testing. Baselines use role-balanced binary cross-entropy; SiaStegNet's optional contrastive term is off; RemTraceNet keeps its full objective. No model-specific hyperparameter search. Baseline comparisons use only seed 42, and the paper states this is not a three-random-seed significance analysis.

    Main Results

    Per Table 2, n=100, three-random-seed mean ± standard deviation (%). All first macro-averages over attacks and watermarks, then averages over five seen and five unseen watermarks.

    Swipe horizontally to read the table

    Resolution and negative classAUROC (All)TPR@1%FPR (All)SeenUnseen
    256 Clean98.21±0.0987.35±0.9091.28±0.9883.43±0.90
    256 Watermarked98.01±0.0688.17±0.3692.03±0.8884.31±0.56
    512 Clean96.44±0.6282.75±1.1982.97±1.8082.53±0.58
    512 Watermarked96.68±0.6982.88±1.7485.62±2.4080.13±1.44
    • The authors state that the All-column TPR@1%FPR for the two negative classes differs by 0.82% at 256 and 0.13% at 512, and claim performance is comparable under both controls at this aggregation level.
    • The authors state that TPR@1%FPR for unseen watermarks is lower than for seen watermarks in all four settings: lower by 7.84% and 7.71% at 256, with the sentence not specifying which negative class each corresponds to; at 512, lower by 0.43% for the clean negative class and 5.49% for the watermarked negative class. The gap across the four settings is written as 0.43–7.84%.
    • 512 is lower than 256. The authors state that native-resolution evaluation should not be read as resolution invariance. Table 2 is a three-random-seed mean, not the same aggregation as the seed-42 table below.

    Comparison with Retrained Steganalysis Systems

    Per Table 3, seed 42, n=100, TPR@1%FPR (%) macro-averaged over 23 attacks and 10 watermarks.

    Swipe horizontally to read the table

    Model256 Clean256 Watermarked512 Clean512 Watermarked
    SRNet61.4663.3351.6153.35
    ZhuNet69.0468.3461.8062.37
    SiaStegNet75.6975.4070.2569.05
    RemTraceNet86.4987.7784.1284.73
    • Across the four overall settings, SiaStegNet is the highest baseline. The abstract writes RemTraceNet is higher by 10.80–15.68 percentage points; Section 4.5 writes higher by 10.80%, 12.37%, 13.87%, and 15.68%. The introduction writes 10.80–15.68%.
    • Per Table 4, after macro-averaging over both resolutions and both negative classes, RemTraceNet is higher in the conventional distortion, diffusion regeneration, latent inversion, and watermark forgery columns. SiaStegNet is 98.44% on learned compression/VAE and 98.70% on classical denoising, higher than RemTraceNet's 94.38% and 93.85%. In the diffusion regeneration column SRNet is 19.94%; in the latent inversion column ZhuNet is 21.12% and SRNet is 27.25%.
    • The authors state this is a full system comparison after task adaptation, not off-the-shelf steganalysis checkpoints, nor an architecture ablation under a shared loss; it cannot support claims of cross-seed statistical superiority or superiority over the broader image forensics literature.

    Sample Size and Watermark Subgroups

    • The authors state that as n goes from 10 to 100, the overall macro-averaged TPR@1%FPR rises by 18.34% and 16.10% at 256 for clean/watermarked negative classes, and by 26.13% and 20.36% at 512; from n=100 to 200 it increases only another 0.22–4.31%. The update budget is fixed, and the authors state this is not a per-sample exposure alignment learning curve; individual cells need not be monotonic. The main text does not give the absolute TPR at n=10.
    • Figure 3 reports n=100 three-random-seed macro-averaged AUROC by attack family; panel (a) splits seen/unseen, panel (b) splits built-in versus posterior. Built-in refers to Stable Signature, Gaussian Shading, Tree-Ring; posterior refers to the other seven configurations. The main text writes: at 512, diffusion regeneration on built-in watermarks is 75.69%/79.44% (clean/watermarked negative classes), and on posterior watermarks is 98.06%/98.10%. The authors state this built-in × diffusion regeneration subgroup is the lowest AUROC in the figure, but pairing and within-group composition differ, so the difference cannot be attributed to the generator being built-in. Cells in the plain-text figure may be misaligned; only the main-text numbers are used here.
    • Figure 2 is a DwtDctSvd paired example at seed 42, native 256, n=100, with columns JPEG, BM3D, VAE regeneration, CtrlRegen+, WMForger, NFPA, Gaussian noise, Gaussian blur, Watermark-Attacker. Rows include the clean image, watermarked image, attacked image, the attacked-minus-watermarked residual magnified 15×, and local decision responses before Top-k. The authors state this row is a local decision diagnostic, not pixel-level attribution, and this example cannot establish strict alignment with the residual or independence from image semantics.

    Other Ablations and Analyses

    • The directional criterion is pre-specified: relative to this suite's reference, TPR@1%FPR must drop in all four combinations of 256/512 × clean/watermarked. The suite's attack coverage and seed count differ, and effects are only compared within the suite. Figure 4 omits settings with inconsistent directions.
    • Eight-attack core suite, residual-only global path: the authors state 18.58–20.47% lower. The main text does not list the names of these eight operations.
    • Same suite without the global encoder, spectrum, block DCT, dense local scores: the authors state lower by 0.50–0.79%, 1.14–2.68%, 1.85–3.62%, 1.38–2.98%, respectively, and state consistency across all 23 pipelines is not required.
    • All 23 attacks: removing the branch auxiliary supervision is 5.38–7.68% lower; using only role-balanced cross-entropy is 3.53–8.55% lower. The full objective is higher than both. The latter comparison cannot separate the ranking, pairing, gating, or high-pass terms.
    • Seed 42 only: removing the clean negative class is 0.37–8.53% lower; removing the global DCT histogram is 5.43–9.73% lower. These two rows satisfy the directional criterion in all four conditions only for that seed.
    • The main-text table gives AUROC and TPR@1%FPR; the AUPRC and TPR@5%FPR values listed in Section 4.2 do not appear in the main-text table.
  5. What are some points that can be further explored?

    The authors state that the controls do not systematically include benign post-processing, and the detector cannot recover payloads or establish ownership alone.

    Limitations and future directions noted by the authors

    • The current control protocol does not systematically include benign operations such as compression in transmission and platform re-encoding. Therefore, existing experiments do not test whether malicious watermark removal can be distinguished from all types of benign post-processing (Section 5).
    • RemTraceNet detects traces associated with the specified attack pipeline, cannot recover damaged watermark payloads, and cannot infer keys, owner identity, or signature information (Section 5).
    • If independent information points to a specific removal tool or algorithm, the corresponding specialist can be used to assess whether the traces are consistent with that pipeline, and interpreted together with the original file, watermark key, digital signature, and other investigative evidence. The detector alone cannot establish copyright ownership, infringement, or attacker intent (Section 5).
    • The authors plan to study whether estimates of attack type and affected regions can guide image recovery and watermark decoding, and to combine attack detection with payload recovery, so that when direct verification fails, they can analyze the cause and recover ownership evidence when possible (Section 5). This is a plan, not a completed experiment.

    Experimental coverage

    • The evaluated detector is RemTraceNet, and the controls are SRNet, ZhuNet, and SiaStegNet retrained from scratch. Images come from MS-COCO, with 23 removal pipelines and 10 watermark configurations, 5 of which are used for fitting and checkpoint selection, and 5 are unseen and not used in training or validation.
    • Main scan seeds are 42, 43, 44. Training is on native 256×256, and the same checkpoint evaluates native 256 and 512 without external scaling. Formal testing uses 100 attacked images, 100 clean images, and 100 unattacked watermarked images per watermark and resolution; training triplets n range from 10 to 200.
    • TPR@1%FPR is read from the empirical ROC of test scores per slice, not a single validation-set calibrated threshold. Each slice has 100 negative examples. Baseline comparisons and some ablations in Section 4.6 use seed 42; Section 4.5 states that this comparison is not a three-seed significance analysis. The paper does not report significance tests.
    • Architecture ablations use a pre-fixed eight-attack core suite covering six attack families, with the specific operation list in the supplementary material; loss ablations cover all 23 attacks. Tables 2–4 in the main text report AUROC and TPR@1%FPR. AUPRC and TPR@5%FPR are listed as reported metrics in Section 4.2, but no values are given in the main tables.
    • The paper does not report human annotation, nor agreement between review and human. The detector does not receive keys, encoders, decoders, object detectors, or attack parameters.
  6. Summarize the main content of the paper

    At n=100, the macro-averaged TPR@1%FPR across four settings is 82.75%–88.17%; the authors state that removal traces remain learnable.

    RemTraceNet frames forensics after invisible watermark removal as manipulation history detection: the authors argue that erasing the watermark and erasing traces of removal are not the same thing.

    The task is not to determine whether the watermark is still present, nor whether the payload has been removed. Each known pipeline has its own binary specialist. The input does not include pipeline or watermark identity, and the detector does not use keys, codecs, object detectors, or attack parameters. Post-hoc schemes pair by source image, generator-internal schemes pair by prompt. The model fuses constrained residuals, local relations, FFT/Haar, and block DCT, with global logits and local Top-k equally weighted. Both controls are negative classes and are reported separately.

    • Images come from MS-COCO, with 23 pipelines and 10 watermark configurations, 5 of which are not used in fitting. The main metric is TPR@1%FPR on the test ROC.
    • Table 2, at n=100, three random seeds, macro-averaged over attacks and watermarks, gives 87.35% and 88.17% for the 256 clean/watermarked negative classes, and 82.75% and 82.88% for 512. The authors state that 512 cannot be read as resolution invariance, and unseen watermarks are lower than seen watermarks across all four settings.
    • The text also gives: for 512, generator-internal watermark diffusion regeneration AUROC is 75.69% and 79.44% (clean/watermarked negative classes), and post-hoc watermark is 98.06% and 98.10%. The authors state that this difference cannot be attributed to generator-internal.
    • In Table 3, seed 42, RemTraceNet is 86.49%, 87.77%, 84.12%, 84.73%. The abstract says 10.80–15.68 percentage points higher than the retrained baseline, and Section 4.5 says 10.80%, 12.37%, 13.87%, and 15.68% higher. In Table 4, SiaStegNet is higher on VAE reconstruction and classical denoising. The authors state this is not a cross-seed significance conclusion.
    • The authors conclude that removal traces remain learnable under limited supervision and can supplement manipulation history evidence when direct verification fails. The detector alone cannot establish ownership, infringement, or intent, nor recover payloads. The authors plan to combine detection and recovery in the future. The controls currently do not systematically include benign post-processing such as transmission compression.

Related papers

Show 3 more papers
Read originalarxiv.org