Skip to content

DPBayes/limitations_of_add_remove_adjacency_in_dp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

This repository contains the official code for the paper: Beyond Membership: Limitations of Add/Remove Adjacency in Differential Privacy

Dependencies:

The following modules are required to run the code:

Source Code Libraries:

We adapt/ use the code available on the following open source code libraries, some of which we have modified:

Caching Feature Representations:

It is more computationally efficient to cache feature representations and load them for training models when only the final linear layer of the model needs to be trained.

Use feature_space_cache/map_to_feature_space.py to save representations obtained from pre-trained models (ViT-B/R-50) from datasets in the feature dimension. This has to be done only once for each dataset.

Running Auditing Algorithms:

To audit DP models fine-tuned with CIFAR10 in the substitute-adjacency threat model with various canaries:

  • Section [3.1]: Auditing Using Crafted Dataset Canaries: Run src/auditing_with_worst_case_datasets.ipynb
  • Algorithm [2]: Auditing Using Gradient-Space Canaries: Run src/auditing_with_canary_gradient.py
  • Algorithm [3]: Auditing Using Crafted Input Canary: Run src/auditing_with_canary_input.py
  • Algorithm [4]: Auditing Using Crafted Mislabeled Canary: Run src/auditing_with_canary_label.py
  • Algorithm [5]: Auditing Using Adversarial Natural Canary: Run src/auditing_with_natural_sample.py
  • Section [6.2.3]: To audit MLP trained from scratch using Purchase100: Run src/auditing_models_trained_from_scratch.py.

Plotting Auditing Results:

We provide sample code in src/plotting_audit_results.ipynb to plot the auditing results.

If you use this work, please cite:

@article{pradhan2025membershiplimitationsaddremoveadjacency,
      title={Beyond Membership: Limitations of Add/Remove Adjacency in Differential Privacy}, 
      author={Gauri Pradhan and Joonas Jälkö and Santiago Zanella-Bèguelin and Antti Honkela},
      year={2025},
      eprint={2511.21804},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2511.21804}, 
}

About

This repository contains the official code for the paper "Beyond Membership: Limitations of Add/Remove Adjacency in Differential Privacy"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors