How can we apply differential privacy to real-world scenarios? How do you go about algorithmic design? Is there a conflict between data minimization and differential privacy? Can you solve for personal data finding its way into machine learning models? Where can a young professional find resources to dive deeper?
References:
* Daniel Simmons-Marengo on LinkedIn
* OpenDP
* Some takeaways from PEPR’24 (USENIX Conference on Privacy Engineering Practice and Respect 2024)
* Damien Desfontaines: Differential Privacy in Data Clean Rooms (Masters of Privacy, January 2024)
* NIST Guidelines for Evaluating Differential Privacy Guarantees (March 2025)
* Peter Craddock: EDPS v SRB, the relative nature of personal data, processors, transparency, impact on MarTech and AdTech (Masters of Privacy, September 2025)
* Katharine Jarmul: Demystifying Privacy Enhancing Technologies (Masters of Privacy, October 2023)
* Sunny Kang: Machine Learning meets Privacy Enhancing Technologies (Masters of Privacy, February 2023)
* How GDPR changes the rules for research (Gabe Maldoff, IAPP blog, 2016)
This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit www.mastersofprivacy.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
As part of the training, you can introduce a little uncertainty in each training step. We went into the client-side code that runs in your web browser, and we tweaked it a little.
SPEAKER_00Somewhat unfortunately, I think we're still in a world where adopting differential privacy is a substantial engineering project.
SPEAKER_01Hello everyone, I'm Sergio Maldonado and this is Masters of Privacy, a set of interviews covering the intersection of marketing data, privacy and technology, with a clear goal in mind, which is redefining the relationship between people, brands and media around transparency and control, which is to say we're aiming for real customer centricity, or if you will, human centricity. We regularly talk to DPOs, CMOs, CDOs and whoever else we find interesting and able to share
valuable insights.
SPEAKER_01So we hope you like it. Please do reach out if you have any ideas on future topics or speakers. Okay, we're revisiting a hot topic today, which is differential privacy, a mathematical framework that adds noise to data so as to provide a quantifiable guarantee that an individual's information cannot be inferred.
SPEAKER_01Differential privacy can lead to anonymizing data, therefore, or maybe just pseudonymizing data. And as we saw last week with Peter Clarock, this may depend on where in the chain of custody of such data you are sitting, as data could be pseudonymized to a data controller and yet remain fully anonymous to a recipient or someone that uses a tool that a data controller has applied differential privacy to. Of course, we could also apply it to anonymous data or pseudonymous data,
right?
SPEAKER_01As an additional safeguard. In a US context, differential privacy could be used to solve the threat of re-identification, right? Which is something that shows up in HIPAA compliance, for example, for health records. Although in this case, a remote risk of re-identification is even accepted by law. And I'm pretty sure that this would not meet the same test of anonymization in the GDPR as per, for example, the SRB case itself,
SPEAKER_01which we saw, which we discussed last week. But certainly, this may also help HIPAA compliance by going beyond the simple removal of direct identifiers, which is what a lot of people do. Differential privacy may play a role in data repurposing as well. There's a very small window of opportunity for this in the GDPR. Article 89 allows for historical research or statistical purposes. Or rather, for member states to approve derogations from key provisions,
right?
SPEAKER_01if certain safeguards are applied first, such as pseudonymizing data. And recital 162 explains that statistical results may be even used further for different purposes. But that recital is confusing to me, because it also says that it refers to aggregate data that is not personal. And if it is not personal, it is out of scope. So with all that said, we have here Daniel Simons Marengo. He's a software engineer that I met at the Pepper Privacy
Engineering Conference in
SPEAKER_01Silicon Valley last year, specializing in differential privacy. He previously co-led Google's anonymization team and worked on client solutions and the core platform at Tumult Labs. In his free time, he maintains Tumult Analytics and Core for OpenDP. With Daniel, we'll discuss basic uses in data analytics, algorithmic design, we'll move into solving for personal data having found its way
into an AI model, and we'll also touch on the potential conflict between data minimization and
SPEAKER_01differential privacy, before looking at very practical implementations and tools for whoever wants to dive deeper. You can add these uses to the ones that we had already covered, specific to data clean rooms with Damien De Fontaine last year. Let's go for it.
SPEAKER_01Daniel, thanks for joining me.
SPEAKER_00Thank you, Sergio.
SPEAKER_01All right. So how do we, to get started at a very simple level, how do you define differential privacy?
SPEAKER_00I think the best way to think about it is... It is a tool for situations where you have a bunch of data about people, and you want to derive some insight from that data. You want to learn something about the population. You want to learn some scientific fact about the people in this data set. And you want to make sure that
SPEAKER_00when you release this insight, this scientific fact, that people looking at that release can't learn anything about the people in your data set or can't learn too much. They're going to learn something. That's the whole point here. But we want to be able to balance how much useful information we release versus how much personal information we release.
SPEAKER_01Very good, fantastic. So key to deconstruct this idea, I've always heard of the budget, the privacy budget. And if you look at the very, very common use case of analytics, in analytics, you could be building queries, query upon query, query on query, and how would the privacy budget work?
SPEAKER_00Yeah, so privacy budget or privacy loss budget, which some people like and I think I tend to agree with, it is a way of measuring how much you can learn about those individuals in the data set. So you have, in an analytics case, you have some set of queries that you want to do. You want to know the answers to these queries. And each one is going to show you a little bit more about those people, that's just unavoidable. You're going to learn a little bit more through each query.
Privacy loss budget is just a way of saying, how much did each query tell you?
SPEAKER_00Over all of your queries, how much have you built up? You can look at that from a couple of different angles. You can look at that from an angle of, I want to set an upper limit and I want to make sure that I don't cause more privacy loss than X. or some people think of it more as just a, I just wanna keep track as I'm going.
SPEAKER_01Got it, to see whether, I mean, what are your sort of boundaries or what's the threshold that you find acceptable in terms of risk? So I still wanna keep it within the realm of the possibilities from an engineering point of view. Sometimes we argue that from a legal point of view, things are very different because words are something that we can manipulate, so to speak. It's a terrible word, but with words, we can, there's always wiggle room. There's always room to play with words in, in, when it comes to numbers and you look at it from a mathematical point of view,
SPEAKER_01there's always going to be either, you know, a greater risk that someone is identified and then maybe you can just find that individual in a data set. or that you do not. But I wonder about your point of view with that. So are things clear cut? As you get into a specific application and we start applying a privacy loss budget, you start doing things. How do you get to define if you were to reach that sort of limit? Instead of simply measuring along the way,
SPEAKER_01as you were saying, the second case, how do you tie that to the actual legal risk, if that is your primary reason?
SPEAKER_00Yeah, that's kind of the million dollar question. Unfortunately, privacy loss budget as expressed in differential privacy doesn't really tightly correspond to the way we think of risk. We think of risk as there's some bad outcome that we're worried about and it has some likelihood of happening. Privacy loss budget sort of works a little differently. Privacy loss budget says, I am going to learn more about this person.
SPEAKER_00And there's no real risk that you're going to learn more. It is 100% going to happen. You're going to learn something. And it's just a question of how much. um and so if you're thinking about it from a legal perspective the way that you are going to want to think about it is i am confident that somebody looking at this data set is going to learn so little that there will be no bad outcomes here okay
so then algorithmic design how do you go about it how do you deal with outliers and
SPEAKER_01so on
SPEAKER_00Yeah, sure. So most differentially private algorithms work by introducing some amount of randomization into the result that you get. And how that is going to look will vary a little bit depending on what you're trying to do. For something like a simple numerical quantity, like a simple statistic, like a sum or an average, it's relatively straightforward,
SPEAKER_00though there's lots of details. Use the library. Don't try to implement this at home. But it's relatively straightforward. You pick a random number, and you add it to your statistic, and you sort of pick the random number appropriately. For more complicated approaches on and up to machine learning, there is more complicated algorithms for introducing uncertainty. So to take machine learning as an example,
as part of the training, you can introduce a little uncertainty at each training step.
SPEAKER_00So maybe the actual data that you're training on, the model should move in this direction, but we're gonna fuzz that a little bit and maybe move it in a slightly different direction. And that helps to hide the contributions of individuals. So it's that sort of an approach. When you talk about outliers, which I think was the other half of your question, So the amount of uncertainty that you add is designed to cover
variations between
SPEAKER_00people in your data. And so when you have outliers, the variations between people can get very large. And so either you need to add a lot of uncertainty so maybe the random number that you're adding can be pretty big uh it can it can alter the the the total by quite a bit um or you need to do something to those outliers to bring them closer to the distribution maybe you just remove them from the data set um for a lot of statistical purposes you don't
really the out like
SPEAKER_00they're outliers right you they're not um They're not central to the result that you're trying to get.
SPEAKER_01Very good point. Yeah, so part of the preparation instead of just messing up with the whole model just so that you can blur them out and then sort of bombard the entire data set in the process.
SPEAKER_00Yeah, exactly.
SPEAKER_01So then moving into a debate we've had on the legal side as well, also with the Data Protection Agency in Germany, in Hamburg recently, which is the question as to whether personal data that is present in the training data set eventually resolves in an LLM in the world of GNI. containing personal data again because he was in the training data set and so that would if that is the case and many people argue this is the case then we have a strong motivation to introduce differential privacy when we are
preparing training data sets do you have any experience in that world adding differential privacy
SPEAKER_01to train the models?
SPEAKER_00It's not something that I've worked on myself, but it is a very active area of research and there are a lot of good tools out there for training models with differential privacy. For memorization, there is also a lot of research in this area. And if you look at the research, you'll see that memorization does happen quite a lot and it is very possible to extract the training data back out of published models. It's quite difficult to prevent this from happening.
SPEAKER_00There's been a lot of research on that, too, and not a ton of success, with one notable exception. If you apply differential privacy in the training process, the memorization mostly goes away. This problem pretty nicely resolves itself. So that is a good solution in that space. One other interesting fact here is that When you apply differential privacy to a model, it protects against memorization even when the privacy
guarantees on paper are
SPEAKER_00relatively weak. So there's some sort of gap between what we can prove the privacy guarantee is and the actual protection that's provided. That might mean that there's some protection that we're failing to account for in our formal math. Or it just might mean that we haven't come up with the best possible attack yet. Time will really tell on that one.
SPEAKER_01That's really good. You can simulate. You can sort of assess how much of risk there is based on what's been happening so far in these attacks.
SPEAKER_00Yeah. It's relatively rare for people to attack differentially private systems because Nobody really wants to spend a bunch of effort building an attack only to find that the privacy guarantee that we proved actually does hold. But in the machine learning case, we have all these attacks because that is an independent line of research. So we can just try them on the models and find out how the privacy stacks up in practice. You've got to be cautious about this.
SPEAKER_00As I said before, it's possible that our attacks just aren't as good as the best possible attack. And so if you base your risk measurement purely on attacks, you run the risk that somebody does some more research and six months later, your entire risk analysis is obsolete and the data that you released is much, much, much more risky than you thought it was. So in this case, being able to run the attacks is nice,
but also having the underlying provable privacy guarantee gives us additional
SPEAKER_00confidence that this data is actually safe.
SPEAKER_01So, Daniel, you've been putting some of these things into practice at the mold labs and elsewhere. What are your favorite use cases?
SPEAKER_00Yeah, so I think one of my favorite projects that I've worked on was a data release that we did with the Wikimedia Foundation. So they're the group that runs Wikipedia, the nonprofit organization, and they have a lot of browsing data about what people do on Wikipedia that researchers are very interested in. They have historically released view counts for each page over time, but they've gotten requests to break that down by country
rather than just
SPEAKER_00globally. And they consider that more sensitive because it's sort of more detail about where people are coming from uh in particular there are some countries that are where the internet is not very free and knowing where people from those countries are visiting could pose risks to them so they wanted to make sure that if they released this data that it had very strong privacy protections and we were able to work with them to come up with a solution um so from the algorithm side uh
Mostly what they wanted to do was just sums of page views, which is, in theory, pretty simple.
SPEAKER_00Sums are pretty well supported. There was one hiccup that we had to work around, which is So on their side, the input data set looks like a bunch of logs. So a log entry saying somebody viewed this page. And for, I think, very understandable reasons, they don't want to know our full browsing history. So they do some very sensible data minimization,
SPEAKER_00and they don't record anything about... Well, maybe I shouldn't say they don't record anything, but they don't record... any sort of user identifier or anything like that that identifies who made a particular log record. And that's good because it makes it harder to link the log records together. It makes it harder to assemble a particular user's browsing history. Great data minimization practice. Unfortunately, it is kind of a problem for differential privacy because when
we're designing a
SPEAKER_00differential privacy algorithm, we want to sum up all of the page views for a page from a country. And then we want to add noise proportional to the maximum amount of page views that any one user has made. And from that data set, there's no way to tell how many page views any particular user has made. And there's no way to limit how many page views any particular user has made.
SPEAKER_01Very interesting. So you're raising a potential conflict between data minimization and differential privacy. If I could understand this well, we're talking about log files. akin to Apache log files, web server log files, where you've got no session. You're talking about session identifiers, visitor identifiers. There's no cookies that are unique to the browser. And so the closest thing you've got to sessionizing,
as we used to call it. when grouping requests would be combining IP address with user agent and defining something closer to a fiction that sort of represents a sequence of IP addresses
SPEAKER_01tied to the same device. Did you have anything like that?
SPEAKER_00No. So that was sort of the data minimization practice they wanted to follow. They didn't want to do any sort of sectionizing at all. They wanted to make it so that you couldn't do that from the logs. That was the challenge here. If we had had some sessionization, we could have used that as some proxy for how much a user has contributed. But we didn't even have that and they didn't want to do that. We had to work around that limitation and we did it in two
different ways.
SPEAKER_00For the old logs where they had collected this data years ago, We ended up releasing about, I think, eight years of data. So for the old logs, there was nothing that you could do, right? This information is just gone. It's not in the data set. And so we took a little bit of a compromise to get the data out of the door. And what we did is we picked a number and we said, we think that
the vast majority of users will not view more than 30 pages in the time view that
SPEAKER_00we're interested in. We're going to calibrate our noise to a page view of 30. It is possible that some users might have viewed more pages and might have more contribution. And those users will not get the same level of privacy protection that we're targeting, but they will still get privacy protection. They'll get less privacy protection proportional to how much extra they view. um so this is sort of an approach that you can take it's not as
rigorous um but if you don't have any other anything else you can do it lets you release some data while still providing some privacy protection for the people in the data set um so that was one approach that we could we could take that was sort of practical um
SPEAKER_00Looking into the future, we had some more options because we could actually tweak the way that the data was being collected.
SPEAKER_01What would you do at data collection level? What would you do?
SPEAKER_00Yeah, so we were actually able to do something a little clever here, which is we went into the client-side code that runs in your web browser, and we tweaked it a little. So we decided that we wanted to limit users to 10 page views per day in contribution going forward. So the way that we did that is we added a little counter to your browser. It counts how many page views you viewed per day.
SPEAKER_00And that number is never sent to the server. But what we do send is once you hit 10 page views, when they send in the log records, it gets a little flag added to it saying, this log record is over 10 page views. And then we don't know which other page views that log belongs to. But when we go to the aggregation, we can drop all the ones with that flag. And then we have a data set that has only the first 10 page
views from users in a day without having to know any substantial amount of information on the server.
SPEAKER_01Fantastic. Sounds simple enough. You're not using cookies. Are you using local storage in HTML5? So the implementation, I think, was done by the Wikimedia folks, and I'm not 100% sure.
SPEAKER_00I think it was a local storage type thing, but I wouldn't swear to that. But yeah, it was that kind of an approach. Very interesting. Yeah, then you can just feed that bound into the differential privacy algorithm, and it all sort of works out.
SPEAKER_01That's very good. We had Nuria Ruiz from, she had been on Wikipedia before Netflix and she was on the show. Okay. Any other cases, even if it's not something you've worked on, something that you think is really interesting in terms of how differential privacy is used or where it's going?
SPEAKER_00The sort of thing that listeners may have heard about in the news, particularly if you're in the U.S. and were sort of I guess, looking at news in this particular nerdy area three or four years ago. So the U.S. Census Bureau has adopted differential privacy for their statistical tabulations. There was a lot of debate acrimony around that move.
SPEAKER_00But they've done it. All of their 2020 data releases are out. I had the pleasure of working on a couple of those. And yeah, they seem pretty dedicated to this going forward. Adoption across the rest of the US government has been a bit more of a mixed story. There are some places like census and also the IRS that are really leading in this space. And I think once more agencies start really giving this deep
consideration,
SPEAKER_00they'll probably come to the same conclusions. So I'm really interested to see how adoption of this technology spreads across the government more broadly and to other governments around the world. The one thing that I gather about differential privacy after a couple of years talking about it and hearing people talk about it in the data cleanroom world and
SPEAKER_01other places in marketing technology is that There isn't that much expertise. So I see that there's a lot of talk as usual with things that revolve around privacy engineering and so on. But if I want to put it in practice, How do you go about it? So simple first steps. If someone wants to deploy it on, for example, think of CRM analytics or web analytics or app analytics or
some sort of tool to
SPEAKER_01take audience data and build lookalikes to activate data for a campaign, whatever the use case, how do you start?
SPEAKER_00Yeah, that's a good question. Somewhat unfortunately, I think we're still in a world where adopting differential privacy is a substantial engineering project. There are differential privacy tools out there. There's open source stuff like the OpenDP project. And that's really quite good. But those tools are sort of building blocks for the thing that you actually want to accomplish.
So you are going to need some sort of engineering work to take those tools and
SPEAKER_00build the computations that you want on top of that, feed it into your system in the place that it needs to go in, that kind of thing. particularly the open source tooling aspires to be easy enough for non-experts to pick up and use. So I think if you yourself are a technical person, go play around, start working through tutorials. You're probably gonna have questions, but there are some good communities out there that are happy to
answer things.
SPEAKER_00That's from the building side, the low-level technical side. There's also some interesting policy questions. And scientific questions as well, I should add. So what algorithm is going to be the best choice for your application? Sometimes it's very simple, but sometimes the simple approach is not going to be the one that performs the best. And how do you think about setting privacy loss budget,
as we talked about earlier?
SPEAKER_00It's a choice that it's sort of a balance between utility and privacy, but interpreting privacy is difficult. And I think most of us just off the street are not really set up to do a good job making those judgment calls. So I think you're also probably going to need somebody who is with a little more expertise with differential privacy to help you answer some of those questions.
And that could be the same as your engineer or it could be a different person.
SPEAKER_00But that's, I think, Unfortunately, yeah, we're not at the point where things are quite off the shelf turnkey.
SPEAKER_01Yeah, and I'm thinking also the business case has to be there. In the business case, often it is a bit tricky if you tell people, look, unless you do this, you won't comply with the law. It's never that clear cut. You need to be able, from whatever I've seen in the market, is that the market itself has to respond to it and say, there is a benefit this tool is more sort of it's got big team privacy as the uh the uk data protection agency would say how do i prove that this is a safer product to use for analytics for data again a data clean room whatever
if that is not a
SPEAKER_01selling point there's no way you have you have to right you have them grounds for it to even get started. So that's why I'm also after case studies where people see the benefit in terms of risk management but often you cannot really measure that until something goes wrong or until very far ahead in the future that risk is exposed. So Is there anything, as a last question,
SPEAKER_01a real last question, is there anything that you would like to see in the market, and this is not from the engineering or the scientific or mathematical point of view, as an external factor that would really boost the discipline, the space?
SPEAKER_00The perpetual question is, how do you convince people that they want to use differential privacy, that they need to use differential privacy? The sort of best projects that I've worked on are projects where everybody was bought in, everybody agreed. And the worst projects I've worked on were the ones where, you know, maybe there's one person who thought that this was a really good idea, but There were a bunch of other people who disagreed and it was a fight. And yeah, yeah, I'm sure I'm sure I'm sure the listeners can can imagine a
scenario for their own
SPEAKER_00life here. I think the other way that people get convinced that differential privacy is necessary is when they go and get a really deep technical understanding of not just how differential privacy works, but how all of the alternatives work. This is sort of what happened to me. I didn't start my career working on differential privacy. I started out working on some relatively what I would now say are weak de-identification pseudonymization technologies.
SPEAKER_00I spent a while working on k-anonymity. And the process of getting really familiar with all of those technologies convinced me that they are pretty deeply broken. and differential privacy is not broken. And I think pretty much everybody who goes deep on all of these technologies comes to this conclusion. This happened to me, it happened to the academic community, it happened to the decision makers at the Census Bureau.
SPEAKER_00None of us started out being purists for differential privacy, we all came around to the idea by getting really familiar with the alternatives. And that's a slow process. It's a process that not everyone has the capacity or the time to go through. But I'm hopeful that as more and more people go through it, and more and more people become convinced that differential privacy is the right way forward,
there will be a tipping point where differential privacy goes from being a weird
SPEAKER_00thing that you have to justify to just the default. And at that point, I think adoption is going to get a lot easier, but we're not there yet.
SPEAKER_01Very good. We'll see how fast it spreads. Daniel, thank you very much. Thank you. Thank you. Okay, that's it for today. Find more about this topic or access the transcript for this interview on mastersofprivacy.com.
SPEAKER_01Also, feel free to join us for a breakfast workshop or live recording session at a venue near you by visiting the events section or subscribe to get all the things that we keep adding to the list. I would also like to encourage you to join our LinkedIn group or Blue Sky feed if you're really passionate about this particular interplay between privacy or data protection law on the one hand and marketing, e-commerce or media on the other. Thank you for listening.
What are the real implications of uploading a batch of hashed email addresses to an online advertising platform for audience planning? Can conversion tracking fall within a data controller-data processor relationship?...
Jake Ottenwaelder is the founder and principal privacy engineer at Integrative Privacy, a premiere engineering-first data privacy consulting firm. Beyond his work as an architect of truly compliant and seamlessly...
This is a (remastered) repost of our last interview with Theodore Christakis earlier this year. Our guest rightly anticipated an avalanche of personal AI assistants, with a particular emphasis on healthcare, and we...
Dera Nevin is Managing Director of Digital Insights & Risk Management at FTI Consulting. She is a data lawyer and expert with more than 20 years of experience addressing digital risk issues, including privacy, data...
As we approach an important deadline in the eIDAS 2.0 Regulation that established the EU Digital Identity Wallet, we are republishing an interview that should help us get up to speed on the subject. By December 24 (this...