Skip to content
Projets

À propos

[AAAI 2026] GenPTW: Latent Image Watermarking for Provenance Tracing and Tamper Localization

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+12
in 7 days
+67
in 15 days
+23
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

GenPTW: Latent Image Watermarking for Provenance Tracing and Tamper Localization

Zhenliang Gan1 · Chunya Liu2 · Yichao Tang1 · Binghao Wang2 · Shiwen Cui2 · Weiqiang Wang2 · Xinpeng Zhang1*

1 College of Computer Science and Artificial Intelligence, Fudan University, China
2 Ant Group, China

📧 Contact: [email protected] · {liuchunya.lcy, weiqiang.wwq, binghao.wbh, donn.csw}@antgroup.com · {yichao_tang, zhangxinpeng}@fudan.edu.cn

* Corresponding author

arXiv Home Page Camera-ready


🎬 Overview

We propose GenPTW, a General watermarking framework that unifies Provenance tracing and Tamper localization in latent space.


🖼️ Results


🚀 Training

accelerate launch genptw_train.py

Required Components

Component Description Path
📂 Dataset COCO2017 train COCO2017: Train images, annotations
VAE Stable Diffusion 2 Base --pretrained_vae
Localizer ConvNeXt backbone --pretrained_ConvNeXt
Inpainting Model SD2 Inpainting --pretrained_pipe_sd
Inpainting Model LaMA os.environ["LAMA_MODEL"] = "big-lama.pt"

⚙️ Training Configuration

The main hyper-parameters used in genptw_train.py are listed below:

Category Parameter Description Default
Data resolution Input image resolution 512
Data train_batch_size Batch size 2
Watermark phi_dimension Watermark bit length 64
Optimization learning_rate Learning rate 1e-5
Optimization num_train_epochs Training epochs 20
Optimization gradient_accumulation_steps Gradient accumulation 8

🧪 Testing

Step 1. Download Checkpoint

Download the pretrained 📦checkpoint, and organize it as:

Checkpoint/
 ├── msg_decoder.pth
 ├── localizer.pth
 └── diffusion_pytorch_model.safetensors

Then update the corresponding paths in Test.py.


Step 2. Prepare Dataset

Download the COCO2017 validation set.

Ensure that the image resolution, watermark bit length, and other hyper-parameters in Test.py are consistent with the training configuration.


Run testing:

python Test.py \
  --test_img_dir /path/to/val2017 \
  --test_ann_file /path/to/instances_val2017.json \
  --pretrained_ckpt ./Checkpoint

🧪 Inference (infer.py)

Set the required parameters in infer.py, then run inference for text-to-image generation with watermark embedding.

python infer.py

📰 News

  • 🎉🎉🎉🎉 Our work has been featured by multiple official media platforms:

    • College of Computer Science and Artificial Intelligence, Fudan University (Official WeChat): Link

    • Ant Group (AntTech Official WeChat): Link

    • Netinfo Security Official WeChat: Link

    • Additional coverage: Link

  • 🎉🎉🎉 Our code has been released and the project is continuously being updated.

  • 🎉🎉🎉 Congratulations to GenPTW being accepted by AAAI 2026!

📣 GenPTW: Poster Presentation at AAAI 2026

📜 BibTeX

@inproceedings{gan2026genptw,
  title={GenPTW: Latent Image Watermarking for Provenance Tracing and Tamper Localization},
  author={Gan, Zhenliang and Liu, Chunya and Tang, Yichao and Wang, Binghao and Cui, Shiwen and Wang, Weiqiang and Zhang, Xinpeng},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={40},
  number={5},
  pages={4085--4093},
  year={2026}
}

Explorer des projets similaires

Chargement…