TL;DR
AngelFingerprint introduces a stealthy, explainable watermarking framework for text-guided image editing by embedding the edit prompt's CLIP embedding directly into diffusion model weights via a LoRA. This ensures that any edited image inherently carries a hidden, recoverable record of the exact instruction used to modify it, resisting white-box removal attacks while maintaining high image quality.
What Problem Does This Paper Address?
Text-guided image editing allows users to make highly realistic modifications to an image with a simple text prompt. Because the majority of the original photograph remains intact, the edited image retains a high degree of credibility, making it a potent tool for spreading disinformation or fabricating evidence.
To establish image provenance, traditional watermarking methods typically embed a fixed bit-string or ID (such as a model or user ID). However, these approaches fall short in two major ways:
- Lack of Explainability: A fixed ID tells you who or what model made an edit, but it cannot tell you what was changed or reveal the intent behind the edit.
- Vulnerability to White-Box Attacks: Most watermarks are injected via separate, structurally identifiable modules (like post-hoc encoders). If the model is open-source, an adversary with white-box access can easily locate, isolate, and strip out the watermarking module.
The authors introduce AngelFingerprint to jointly satisfy three critical properties: traceability (tracing the source), explainability (revealing the edit instruction), and white-box stealthiness (leaving the model architecture and computation completely unchanged).
Methods
AngelFingerprint achieves its goals by co-training a Low-Rank Adapter (LoRA) injected into the diffusion model alongside a dedicated watermark extractor.
The framework relies on three core technical components:
- Weight-Integrated Embedding: Instead of using an external module, a LoRA (rank $r=96$) modifies the attention projections of the Diffusion Transformer (DiT). It directly bakes the 768-dimensional CLIP-L text embedding of the editing instruction into the model weights. Because the architecture, inference code, and tensor shapes remain identical to the clean model, it is virtually impossible to isolate or remove via white-box inspection.
- Velocity-Alignment Fidelity Anchor: To ensure the watermark doesn't distort the image or degrade generation quality, the authors introduce a "four-point alignment" loss in velocity space. This anchors both the conditional and unconditional velocity predictions of the watermarked model to a frozen, vanilla model, preventing the weights from drifting during training.
- Frequency Filtering: Jointly training the LoRA and extractor can be highly unstable. The authors introduce a fixed, predefined discrete cosine transform (DCT) band-pass filter between the generated image and the extractor. This filter passes only a mid-frequency band (26 out of 64 coefficients), explicitly mirroring the coefficients preserved by JPEG compression.
Datasets
The authors trained and evaluated AngelFingerprint on the MagicBrush dataset, a multi-turn image-editing benchmark consisting of human-annotated real-image edits.
They evaluated the framework across two distinct diffusion backbones:
- Stable Diffusion 3 (SD3) Medium (2B parameter model)
- UltraEdit-SD3 (a purpose-built editing backbone fine-tuned on the UltraEdit dataset)
Key Insights and Ideas
- The "Cheating" Extractor Problem: A major challenge in semantic watermarking is that the edit prompt often correlates with the image content. If the extractor can simply look at the image and guess the prompt (e.g., seeing a zebra and guessing "change deer to zebra"), it will ignore the watermark entirely. The mid-band frequency filter elegantly solves this by stripping away low-frequency image semantics, forcing the extractor to rely solely on the embedded watermark signal.
- Perfect Presence Detection via Output Norm: While the extractor is trained to output a semantic vector for prompt retrieval, the authors discovered that the magnitude ($L_2$ norm) of the raw extractor output serves as a flawless binary detector. Watermarked images yield strong activations, while unwatermarked or natural images yield near-zero activations, allowing for a single-threshold "presence check" without needing any candidate prompts.
Key Results
Prompt Recovery Performance
When retrieving the correct editing instruction from a pool of 200 candidate prompts on the MagicBrush dataset, AngelFingerprint significantly outperformed standard prompt-inversion and captioning baselines:
- SD3-Medium: Achieved 86.0% Top-1 accuracy and a Mean Reciprocal Rank (MRR) of 0.917.
- UltraEdit-SD3: Achieved 65.5% Top-1 accuracy, proving the method generalizes to different sampling regimes and distributions.
- In contrast, state-of-the-art captioning and prompt-stealing baselines (like BLIP-2 and Florence-2) hovered around 16%–22% Top-1 accuracy.
Visual Fidelity & Robustness
- Imperceptibility: Pixel-level metrics (PSNR, SSIM) and perceptual metrics (DreamSim, LPIPS) confirmed that the watermarked images remain visually indistinguishable from vanilla edits, introducing only a faint, grid-like texture under close inspection.
- Attack Resistance: The watermark successfully survived common image manipulations, including JPEG compression, cropping, color jitter, and Gaussian noise. It also proved resilient to weight-level tampering, surviving up to 300 steps of continued fine-tuning and low-precision quantization (down to int8).
Limitations and Future Work
- Fragility to Resizing: Because the frequency filter relies on strict 8x8 DCT block alignments, any operation that resamples or resizes the image breaks the block synchronization and destroys the watermark.
- Dependency on a Prompt Pool: The extractor outputs a 768-dimensional CLIP embedding rather than raw text. To recover the exact instruction, a verifier must match this embedding against a pool of candidate sentences (generated via LLMs or user hypotheses). The authors note that a natural next step is extending the extractor to decode embeddings directly into text.
Summary updated