Manuscript Offprint

arXiv:2609.04709

AngelFingerprint: A Traceable, Explainable, and White-Box Stealthy Watermark for Text-Guided Image Editing

Bo-Han Kung, Futa Waseda, Ching-Chun Chang, Isao Echizen, Shang-Tse Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Text-guided diffusion editing raises disinformation concerns, making reliable image provenance essential. While watermarks are commonly used for this purpose, most methods carry a fixed ID that cannot explain what was changed and which prompt produced it. Furthermore, under open-source white-box access, attackers can easily locate and remove watermarks added as separate modules. Targeting this setting, we propose AngelFingerprint, a novel watermarking framework ensuring edit traceability, explainability, and white-box stealthiness. It integrates a LoRA into the diffusion model to embed the editing prompt's CLIP text embedding directly into the model's weights. An extractor then recovers this embedding from the image pixels alone. This semantic payload explains the edit, while the weight-integrated design makes it hard to detect and isolate even under full white-box access. Two techniques make this possible: a velocity-alignment anchor that preserves edit quality, and a specially designed frequency filter that keeps the watermark imperceptible yet recoverable and robust. On the MagicBrush dataset, our extractor achieves 86% top-1 accuracy in a 200-way prompt retrieval, versus 20% for prompt inversion.

1 Introduction

Text-guided diffusion editing has turned image editing into a one-sentence operation (Brooks, Holynski, and Efros 2023; Zhao et al. 2024). Given an image, any user can produce a realistic edit from a short instruction in seconds. In the context of misinformation, such editing can pose a greater risk than generating an image from scratch: because most of the original photograph remains intact, the result retains the credibility of a genuine image. Manipulations such as fabricated evidence, disinformation, and non-consensual imagery thus become easy and convincing (Chesney and Citron 2019; Mirsky and Lee 2021). To counter this misuse, a common goal is provenance: to reveal whether an image was AI-edited and what was changed.

A natural way to provide provenance is to embed a watermark into the image. It carries an imperceptible payload and can be recovered later to certify origin. Most watermarks for generative models carry a fixed payload, such as a model or user ID (Fernandez et al. 2023; Wen et al. 2023b; Yang et al. 2024; Feng et al. 2024). However, for tracking the misuse

of editing, these methods fall short on two fronts. First, the payload is fixed in advance and says nothing about the edit itself. It can attribute an image to a model, but cannot tell us what was altered or reveal the intent behind the edit. Second, the watermark is injected by a separable module, such as an external encoder or a post-hoc module added to the pipeline (Bui et al. 2023; Hu et al. 2024). This module is a structurally identifiable part of the system. Because many diffusion models are open-source (Rombach et al. 2022; Esser et al. 2024), the adversary has full access to the model's architecture, code, and computation. They can inspect every detail, identify the watermarking module, and remove it. Against such an adversary, any structural or computational difference is a target (Feng et al. 2024).

Therefore, we argue that watermarking AI edits should jointly satisfy three properties: traceability (tracing an image's source material), explainability (revealing what the edit changed and the possibly malicious intent behind it), and white-box stealthiness (keeping the same architecture and computation as the original, so the watermark is inherently difficult to detect or isolate). To the best of our knowledge, no prior watermark method achieves all three. In this work, we propose a watermark framework that satisfies all.

Concretely, we propose AngelFingerprint. Unlike previous watermarks, it imprints into every edited image an imperceptible watermark of the editing instruction's CLIP text embedding, and a dedicated extractor recovers this embedding from the pixels alone. Because the payload is the instruction itself rather than a fixed ID, we can trace the image back to its original prompt and explain what the edit changed. To achieve stealthiness, the watermark is injected by a low-rank adapter (LoRA) (Hu et al. 2022). Thus, only the weight values of UNet/DiT are changed, leaving the architecture, the computation, and the inference code unchanged. A watermarked diffusion model is therefore structurally identical to the original clean model: there is no additional module to find, no extra forward pass to notice, and no structural anomalies to detect. The watermark is a hidden functionality encoded in the model weights: it is silently present, difficult to detect and isolate, and remains hidden from white-box inspection.

Embedding a prompt-based watermark with a LoRA is hard. Unlike a fixed-ID watermark, ours writes a different payload into every edit: the high-dimensional embedding of

Preprint version.

Figure

Figure 1: Overview of AngelFingerprint. Part A shows the training pipeline. A LoRA imprints the prompt embedding; then an extractor recovers it. Part B shows the inference scenario: a white-box user can inspect the whole pipeline, find no watermarking module, and run the model without noticing the backdoor. Part C compares AngelFingerprint with prior watermarks.

the edit's prompt. Recovering such a per-sample signal is already demanding, and three further tensions make it worse. First, the watermark encodes the prompt, but for some training samples the content already hints at the prompt. The extractor can then ignore the watermark and just guess the prompt from the image content. Such an extractor reads no watermark at all. Training then collapses to image captioning, and the instruction cannot be recovered, which may contain the critical keyword of interest. Second, reading and hiding pull against each other. To be read, the watermark must change the image. To stay hidden, it must change the image as little as possible. Pushed too hard, the LoRA distorts the edit and the watermark becomes visible. Third, the watermark must survive common image post-processing such as compression and cropping. A direct attempt with the AquaLoRA framework (2024) confirms the difficulty: training fails, and generated edits are visibly degraded.

We solve these problems with two designs. Both are core technical contributions of AngelFingerprint, and each one is essential. The specially designed frequency filter passes only the middle band of image frequencies to the extractor. This single design solves several problems at once: it stabilizes training, stops the extractor from cheating, and keeps the watermark both invisible and robust. The velocity-alignment anchor keeps the model's editing ability intact, so the edits stay high quality and the watermark stays invisible. Neither is a cosmetic add-on. Without them, training collapses, and no usable watermark emerges. Together, they let a single LoRA carry a hidden, prompt-specific watermark in every edit.

Our contributions can be summarized as follows:

  • Problem. We formalize watermarking for text-edited im-

ages against a white-box, open-weight adversary who controls the whole pipeline. We identify three requirements – traceability, explainability, and white-box stealthiness – that prior watermarks satisfy only partially.

  • Method. We propose AngelFingerprint, a prompt-specific watermark. It imprints the editing instruction's CLIP embedding into images. The watermark satisfies three key requirements at once.

  • Techniques. We introduce two designs that make this work: a velocity-alignment anchor that preserves edit quality, and a special frequency filter that stabilizes training and keeps the watermark invisible yet robust.

  • Evaluation. On MagicBrush, our extractor recovers the editing embedding from watermarked images and outperforms prompt-inversion baselines. The watermark also stays imperceptible and robust against post-processing.

References (49)

  • SEAL: Semantic Aware Image Watermarking
  • Instruct-pix2pix: Learning to follow image editing instructions
  • RoSteALS: Robust Steganography using Autoencoder Latent Space
  • Deep fakes: A looming challenge for privacy, democracy, and national security
  • Mean reciprocal rank
  • Scaling rectified flow transformers for high-resolution image synthesis
  • Fast, Secure, and High-Capacity Image Watermarking with Autoencoded Text Vectors (opens arXiv in a new tab)
  • SWIFT: Semantic Watermarking for Image Forgery Thwarting
  • AquaLoRA: Toward White-box Protection for Customized Stable Diffusion Models via Watermark LoRA
  • The Stable Signature: Rooting Watermarks in Latent Diffusion Models
  • Gao, J.; He, D.; Tan, X.; Qin, T.; Wang, L.; and Liu, T.-Y. 2019. Representation degeneration problem in training natural language generation models. arXiv preprint arXiv:1907.12009. (opens arXiv in a new tab)
  • J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; and Chen, W. 2022
  • Robust-Wide: Robust Watermarking against Instruction-driven Image Editing
  • Spherical Watermark: Encryption-Free, Lossless Watermarking for Diffusion Models
  • Visually Guided Decoding: Gradient-Free Hard Prompt Inversion with Language Models
  • BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
  • Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Models
  • Sedit: Guided image synthesis and editing with stochastic differential equations (opens arXiv in a new tab)
  • The Creation and Detection of Deepfakes: A Survey
  • Text embeddings reveal (almost) as much as text
  • High-resolution image synthesis with latent diffusion models
  • Prompt Stealing Attacks Against Text-to-Image Generation Models
  • Of-SemWat: High-payload text embedding for semantic watermarking of AI-generated images with arbitrary size
  • Representation Learning with Contrastive Predictive Coding
  • Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery
  • Tree-Ring Watermarks: Fingerprints for Diffusion Images that are Invisible and Robust
  • Florence-2: Advancing a Unified Representation for a Variety of Vision Tasks
  • Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models
  • Universal Zero-shot Embedding Inversion (opens arXiv in a new tab)
  • Magicbrush: A manually annotated dataset for instruction-guided image editing
  • Ultraedit: Instruction-based fine-grained image editing at scale
  • Table A1 reports the results
  • We study a strong white-box case for such a release, in which a downstream user continues to fine-tune the released model by training a fresh LoRA on top of it
  • put a pond next to the elephant
  • >Method</td><td colspan=
  • The second is a vision-language model (such as GPT-4o, Gemini, or Qwen-VL), prompted with the suspect image to enumerate many plausible instructions, so the verifier does not need to guess the edit in advance
  • The verifier can use these methods to reconstruct the instruction directly when needed
  • Each row is one edit turn: a source image, an instruction, a mask, and a target image
  • >Mask design</td><td rowspan=
  • Both the DiT LoRA and the extractor are updated end-to-end
  • For SD3-medium we adapt the attention query, key, value, and output projections (to_q, to_k, to_v, to_out) in every DiT block
  • Training uses single-step flow matching with logit-normal timestep sampling clamped to [0.05, 0.95]
  • The SD3-medium regime
  • The UltraEdit regime runs UltraEdit-SD3 through its native InstructPix2Pix pipeline at $512\times512$ with 14 steps, text CFG 3.5, image CFG 1.0, and a pure-noise start
  • No distributed or multi-GPU training was used; all reported ablations were run sequentially on the same GPU
  • Figure A4 illustrates the extractor-output norm distribution; the watermarked group A is clearly separated from both group B and group C. Table A7 reports the exact statistics
  • The gap is complete: the 5th percentile of the watermarked group (27.8) is still about three times the 95th percentile of the LoRA-off group (10.1)
  • First, the norm scale is measured on our SD3-medium model, so a different backbone may have a different baseline and the threshold should be re-calibrated per model
  • This editorial assistance was applied throughout the manuscript, including the main text, figure captions, and table descriptions