A Gentle Introduction to �Privacy-Enhancing Technologies for the Working Data Scientist
Nitin Kohli
UC Berkeley Center for Effective Global Action
Econ 148: Data Science for Economists
April 10, 2025
1
Motivating Example
2
3
Novissi in Togo
TOGO
Two Stages of Novissi
Goal: Reach “poorest individuals in the poorest regions”
Challenge: Targeting transfers without administrative data
4
Stage 1: Identify Poorest Regions
5
Extended Data Figure 1A: Aiken et al. (2022) Nature.
Key Insight: Individual phone usage (via metadata) is predictive of poverty
6
Stage 2: Identify Poorest Individuals
Source: Aiken et al. (2022) Journal of Development Economics; Figure 4 Supplemental Information
Poor
Non-poor
7
Predicting poverty from phone metadata and ML
Sources: Blumenstock et al. (2015), Science; Aiken et al. (2022), Journal of Development Economics; Aiken et al. (2022) Nature; Courtesy of Emily Aiken
Afghanistan 2015 (N=1,234)
Rwanda 2010 (N=856)
Togo 2020 (N=15,044)
Stage 2: Identify Poorest Individuals (Strategy)
8
Validation of Step 2 on Old (2018) Data
9
Figure 1B: Aiken et al. (2022)
Mobile phone metadata and privacy concerns?
10
11
Issue: Data can reveal sensitive information
Fig. 2 in de Montjoye et al. (2013); Scientific Reports
�Brief Philosophical Interlude��If I asked you�what is privacy, �what would you say?
12
Some Common Answers
Common One-Line Responses
13
Appeals to Literary or Cinematic Fiction
These are particular conceptions of privacy that were meant to address a particular social ill of the time
14
Example: Within the US
15
1890’s
1960’s & 1970’s
These concerns may not be the main privacy concerns in other parts of the world
16
Actions that “violate privacy” are context specific
17
Defining privacy in the abstract or as one singular thing is “hard”
18
Finding an “appropriate” notion of privacy is a critical component for a particular setting
Be less abstract: �Tailor privacy solutions to the problem at hand
For example:
19
Different privacy problems may need different privacy solutions
For Remainder of Talk: �Data Privacy for Computational Tasks
20
Person 1
Data 1
Data N
Data 2
…
DATASET |
Data 1 |
Data 2 |
… |
Data N |
Data Analyst
An “Observer”
The “Institution”
Person 2
Person N
Output
Developing Intuition
21
[2] Computational Data
Privacy Defenses
[1] Computational Data
Privacy Attacks
22
[1] Computational Data
Privacy Attacks
[2] Computational Data
Privacy Defenses
*Offenders of Privacy: Adversaries
23
“Hacker”
“Data Scientist”
While hackers steal information, data scientists can learn it
*Mulligan, Koopman, Doty (2016) "Privacy is an essentially contested concept"
Thinking Adversarially:�Learning Information About Individuals
24
Example 1: Basic Math Breaks Poorly Protected Query Systems
25
Super Secret Health Database on Tuberculosis
Question
Answer
“Tuberculosis, the number one infectious killer, affects mostly people on low incomes. All 30 countries with a high burden of tuberculosis, which comprise 87% of all new tuberculosis cases, are low-income and middle-income countries (LMICs).” [Trajman 2023, The social drivers of tuberculosis, reconfirmed]
“Protection” #1: Suppress answers computed on “not enough” individuals
26
“Protection” #2: Add noise to every answer, forever
27
*Question: How can you to patch this to prevent LLN from doing its magic?
Example 2: Auxiliary Information Breaks of Poorly “Anonymized” Data�
28
Figure 1 in Sweeney (2002),
k-anonymity: A model for protecting privacy
Linkage Attack
Example 3: Basic Math Breaks Some* Statistical Releases
29
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
Super Secret Database
Perform a Reconstruction Attack
30
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
?
Super Secret Database
31
#International Phone Calls | Credit Score |
??? | ??? |
??? | ??? |
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
32
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
16
760
33
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
16
760
2
2
30
30
34
16
760
2
2
30
30
14
18
730
790
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
35
#International Phone Calls | Credit Score |
14 | 730 |
18 | 790 |
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
#International Phone Calls | Credit Score |
14 | 790 |
18 | 730 |
or
36
#International Phone Calls | Credit Score |
14 | 730 |
18 | 790 |
Statistics Released
Number of Data Subjects = 2
Number of International Phone Calls
Credit Score
Correlation > 0
#International Phone Calls | Credit Score |
14 | 790 |
18 | 730 |
or
More general approach: Solve using Mixed-Integer Linear Programming
37
Using 2010 statistics on
Reconstructed 46% of US population (~142 million people)
Using auxiliary data, matched names 52 million of them (linkage attack)
Putting it All Together:�Key Insights of the Example Attacks
38
Secret DB
Question
Answer
?
Secret DB
Figure 1 in Sweeney (2002)
Incorporate the defense as
part of the attack strategy
Incorporate auxiliary information
that the defense does not consider
Incorporate existing information
in unison and have a big think
Linkage Attack
Reconstruction Attack
Differencing & Averaging Attacks
Ever-Expanding Universe of �Computational Data Privacy Threats
39
Reconstruction
Membership
Inference
Singling-Out
Attribute
Inference
Linkage
Homogeneity
Timing
Differencing
Averaging
Not all data privacy threats are computational data privacy threats
40
Computational
Data Privacy
Threats
Data Privacy
Threats
Not all privacy threats are related to data privacy
41
Computational
Data Privacy
Threats
Data Privacy
Threats
Privacy Threats
Existing PETs can help sometimes in some settings, �but there is no privacy panacea (tech or otherwise)
42
Privacy Threats
Privacy-Enhancing
Technologies
Computational
Data Privacy
Threats
Data Privacy
Threats
43
[1] Computational Data
Privacy Attacks
[2] Computational Data
Privacy Defenses
Some PETs for Some Computational Privacy Concerns
44
Differential Privacy (DP)
45
Dataset with your data
Randomized Computation
Output
Dataset without your data
With
“essentially the same” probability
DP can* prevent differencing, linkage, and
reconstruction attacks, among others
46
Applications to Humanitarian Response
47
Source: Figure 1 in Kohli, Aiken, and Blumenstock (2023):
Privacy Guarantees for Personal Mobility Data in Humanitarian Response
Source: OpenDP Blog, Harvard University. March 4, 2025
Revisiting the Motivating Example
48
Forthcoming paper*:�Extending DP to facilitate data sharing for targeting
49
D: Targets
B: Private Projection Algorithm
| | | | | | | |
0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 |
0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 |
1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
E: Machine Learning
|
|
|
|
|
|
|
|
Conceptual Overview
| | | | | | | |
0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 |
1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 |
Digital Loans
Humanitarian aid
F: Applications
*Collaboration with Professor Joshua Blumenstock. Upcoming slides showcase preliminary results.
Targeting requires new privacy notions to enable individual-learning
50
192K and 398K additional
exclusion errors
3.4K additional exclusion errors
No Privacy
Differential Privacy
k-Anonymity
Targeted Diff.
Privacy
A: Targeting of humanitarian aid (Togo)
*Note: This does not invalidate differential privacy, as it was created for a different task (group-level analysis). Rather, this demonstrates that new PETs may be needed for new tasks (individual-analysis).
Strongest protections,
Many additional errors
Strong protections,
Few additional errors
Baseline: no privacy protections
51
Moral of the Story