LDP Toolbox is a Python package for analyzing, comparing, and visualizing Local Differential Privacy (LDP) protocols and their trade-offs between utility, privacy, and attackability.
This toolbox provides:
- 📊 Interactive dashboards powered by Dash
- ⚙️ Protocol implementations for frequency estimation tasks
- 🗂️ Visual tools to compare utility loss (e.g., MSE, KL-divergence), attackability, and privacy budget ε
- 📈 Upload your own data to explore privacy-utility trade-offs
If you use this toolbox or our work in your research, please cite our paper: Haoying Zhang, Abhishek K. Mishra, and Héber H. Arcolezi. 2025. "Demo: Exploring Utility and Attackability Trade-offs in Local Differential Privacy". In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security (CCS '25). Association for Computing Machinery, New York, NY, USA, 4728–4730. https://doi.org/10.1145/3719027.3760706
@inproceedings{Zhang2025,
author = {Zhang, Haoying and Mishra, Abhishek K. and Arcolezi, H\'{e}ber H.},
title = {Demo: Exploring Utility and Attackability Trade-offs in Local Differential Privacy},
year = {2025},
isbn = {9798400715259},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3719027.3760706},
doi = {10.1145/3719027.3760706},
booktitle = {Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security},
pages = {4728–4730},
numpages = {3},
keywords = {local differential privacy, open source., privacy-utility trade-off},
location = {Taipei, Taiwan},
series = {CCS '25}
}LDP Toolbox is available on PyPI. Install it with:
pip install ldp-toolboxAfter installation, you can launch the dashboard in two ways:
Run directly from the terminal:
ldp-toolboxAlternatively, you can run it as a module:
python -m ldp_toolbox.toolbox.appOr if you prefer, you can embed the app in your own code:
from ldp_toolbox.toolbox.app import app
if __name__ == "__main__":
app.run(debug=True)ldp_toolbox/protocols/— Core LDP protocol implementationstoolbox/— Dash front-end app (assets/,pages/,app.py)
Example datasets (data/) are provided in this repository for demonstration and local testing, but are not shipped with the PyPI package.
A recorded demonstration video is available at: Demo
LDP-Toolbox is a work in progress, and we expect to release new versions frequently, incorporating feedback and code contributions from the community.
- Fork this repo.
- Create a feature branch.
- Submit a pull request.
This project is licensed under the MIT License.