stamp

[WIP] STAMP Your Content: Proving Dataset Membership via Watermarked Rephrasings

The repo contains the official code for the ICML 25 paper STAMP Your Content: Proving Dataset Membership via Watermarked Rephrasings by Saksham Rastogi, Pratyush Maini, and Danish Pruthi.

Setup

To install the necessary packages, first create a conda environment.

conda create -n <env_name> python=3.10
conda activate <env_name>

Then, install the required packages with

pip install -r requirements.txt

Artifacts

We provide the following artifacts for future research and reproducibility:

Models

Below are the links to trained models (continual pretraining on contaminated data) from the paper’s experiments (hosted on huggingface). They can also be found at this Hugging Face Collection.

Pythia 1B models contaminated with benchmarks

Datasets

Acknowledgements

We heavily rely on the following repos in our paper:

  1. LLM Dataset Inference
  2. MarkLLM

Issues

If you have any questions, feel free to open an issue on GitHub or contact Saksham (iitdsaksham@gmail.com).

Reference

If you find this repo useful, please consider citing:

@misc{rastogi2025stampcontentprovingdataset,
      title={STAMP Your Content: Proving Dataset Membership via Watermarked Rephrasings}, 
      author={Saksham Rastogi and Pratyush Maini and Danish Pruthi},
      year={2025},
      eprint={2504.13416},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2504.13416}, 
}