See also the accompanying WhiteNoise-Core and WhiteNoise-Samples repositories for this system.
The WhiteNoise tools allow researchers and analysts to:
- Use SQL dialect to create differentially private results over tabular data stores
- Host a service to compose queries from heterogeneous differential privacy modules (including non-SQL) against shared privacy budget
- Perform black-box stochastic testing against differential privacy modules
The WhiteNoise system is currently aimed at scenarios where the researcher is trusted by the data owner. Future releases will focus on hardened scenarios where the researcher or analyst is untrusted.
New mechanisms and algorithms will be available in coming weeks.
The data access library intercepts SQL queries and processes the queries to return differentially private results. It is implemented in Python and designed to operate like any ODBC or DBAPI source. We provide support for PostgreSQL, SQL Server, Spark, Presto, and Pandas. Detailed documentation, as well as information about plugging in to other database backends, can be found here.
The reference execution service provides a REST endpoint that can serve requests against shared data sources. It is designed to allow pluggable composition of many heterogeneous differential privacy modules. Heterogeneous requests against the same data source will compose privacy budget. We include SQL dialect, differentially-private graph (core), and a Logistic Regression module from IBM's diffprivlib. More information, including information about creating and integrating your own privacy modules, can be found here.
The stochastic evaluator drives black-box privacy algorithms, checking for privacy violations, accuracy, and bias. It was inspired by Google's stochastic evaluator, and is implemented in Python. Future releases will support more intelligent search of query input and data input space. Notebooks illustrating the use of the evaluator can be found here.
The WhiteNoise library can be installed from PyPi:
pip install opendp-whitenoise
Documentation for SDK functionality: here <\br> Service API documentation:
Samples of DP SQL functionality: here
Samples of interacting with the WhiteNoise service:
Working with SQL Engines:
Working with Spark DataFrames:
Running opendp-whitenoise code through a service layer:
TODO