<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Harshal Zope on Medium]]></title>
        <description><![CDATA[Stories by Harshal Zope on Medium]]></description>
        <link>https://medium.com/@hz.india?source=rss-e927efbff6a3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*k0eF5rGXH3vxpM7S.</url>
            <title>Stories by Harshal Zope on Medium</title>
            <link>https://medium.com/@hz.india?source=rss-e927efbff6a3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:06:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hz.india/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[You Didn’t Fix the Cookie Problem. You Renamed It.]]></title>
            <link>https://medium.com/@hz.india/you-didnt-fix-the-cookie-problem-you-renamed-it-7f11f027a0f8?source=rss-e927efbff6a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f11f027a0f8</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[adtech]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[differential-privacy]]></category>
            <dc:creator><![CDATA[Harshal Zope]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 17:20:15 GMT</pubDate>
            <atom:updated>2026-04-05T17:20:15.479Z</atom:updated>
            <content:encoded><![CDATA[<p>How differential privacy solves what the industry has been avoiding since 2021</p><h3>The Rename Pattern</h3><p>“The Rename Pattern: four years of identifier swaps, same legal exposure”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krl2D8LLXvWjBk0bUtwquQ.png" /></figure><p>In 2021, when Apple shipped App Tracking Transparency, the ad tech industry had what I’d describe as a controlled panic. CPMs dropped. Attribution windows broke. Everyone rushed to their IDFA replacement of choice — unified IDs, email hashes, cohort graphs — and declared the problem solved.</p><p>It wasn’t solved. We just moved the legal exposure.</p><p>Here’s what I mean. The GDPR doesn’t care what you call the identifier. Hashed email is still PII under Article 4. A unified ID graph is still a personal data processing system. The compliance risk didn’t go away when the cookie did — it just got renamed. And CCPA, nFADP, and whatever comes next are closing the gaps that GDPR left open.</p><p>The actual problem — the one nobody wanted to say out loud — is that the entire measurement stack was architected assuming individual-level data flows freely. Every impression enriched a user profile. Every conversion joined against a user graph. That data was the product, and the product is now radioactive.</p><h3>A Different Starting Point</h3><p>“What (ε,δ)-Differential Privacy actually guarantees”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OH8FZQQp6ixzn6ky5RIzkw.png" /></figure><p>So what does a real fix look like?</p><p>I’ve been working on this for a while. Not the “rename the tracking pixel and add a consent banner” kind of fix. A proper architectural fix where individual data genuinely never moves.</p><p>The framework that makes this possible is differential privacy. DP has been in production at Apple, Google, and the US Census since the mid-2010s, so this isn’t research. The math is settled. The question is whether it can produce measurement that’s actually useful for advertising — and for most of the industry’s standard use cases, the answer turns out to be yes.</p><p>The catch is how you apply it.</p><p>The naive approach is to add DP noise at the individual level: every row gets noise before it leaves the system. This works for Apple’s keyboard telemetry. It does not work for ad measurement. If you’re running a campaign that reached 10 million people and converting at 0.3%, you have 30,000 conversions. Individual-level Laplace noise at ε=1 adds standard deviation ≈ 1.4 per query. That’s fine for 30,000. But your budget manager running a regional campaign with 8,000 impressions in the midwest? Their 24 conversions are statistically underwater.</p><p>The signal-to-noise problem isn’t unsolvable. It’s just solved at the wrong level.</p><h3>Calibrate the Noise to the Cohort, Not the Individual</h3><p>“NCA core insight: individual-level noise vs cohort-level noise”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0d38zR_y6QMAoskz6-rK6A.png" /></figure><p>The insight that unlocked this for me is embarrassingly simple in retrospect: advertisers don’t actually want individual data. They never did. They want answers to questions like “what fraction of the 25–34 sports segment converted?” That’s a cohort question, not a person question.</p><p>If you calibrate noise to the cohort rather than the individual, the math changes completely. A cohort of 500 users with a 20% conversion rate has a true count of 100. With ε=1, the noise is about 1.4. That’s 1.4% relative error. Publishable. Actionable.</p><p>This is the Noisy Cohort Aggregation (NCA) framework — partition users into demographic or behavioral groups, enforce a minimum cohort size below which you refuse to release anything (preventing small-group inference attacks), and apply noise at the cohort level. I built two (yet to be) open-source libraries around this:</p><p><strong>NoisyCohort</strong> is the core engine. It handles cohort partitioning, minimum size enforcement via greedy merging, count/mean/histogram queries, and tight privacy budget composition using Rényi DP accounting. The federated mode is where it gets genuinely interesting — multiple data holders can each release noisy cohort aggregates, a coordinator sums them, and by the post-processing theorem, the total privacy cost is ε, not 3ε for three publishers. That’s not a product feature. That’s a theorem.</p><p><strong>adtech-dp</strong> is the domain layer on top. It maps DP primitives to things an ad tech engineer actually works with on a Tuesday: interest-based audience segmentation on IAB taxonomy, multi-touch attribution (last-click, time-decay, linear, first-click), conversion lift studies with holdout groups, reach and frequency reporting, RTB auction analytics, and a multi-publisher clean room. It uses NoisyCohort as a pip dependency and never touches the DP math directly.</p><h3>A Real Scenario, Step by Step</h3><p>“Privacy-preserving cross-publisher measurement: federated clean room”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYQ1wBLPH0bnV1YvaHUthQ.png" /></figure><p>Let me show you a concrete problem and how the stack solves it.</p><p><strong>Scenario: You’re the head of measurement at a mid-size DSP. You have three publisher partners. An advertiser wants cross-publisher deduplication — how many unique people saw the campaign across all three?</strong></p><p>Without DP, this is a data clean room problem. The publishers share hashed user-level data into a trusted environment, you deduplicate, you count. Every major cloud vendor sells you this exact product. The issue: you are now processing personal data across three parties under one legal instrument. GDPR Article 26 requires a joint controller agreement. Each publisher needs DPA agreements with your entity. If any party is in scope for CCPA “sale” provisions, you may have just created a cross-context behavioral advertising relationship without explicit opt-in.</p><p>With adtech-dp’s CleanRoom:</p><pre>from adtech import CleanRoom, MultiPublisherSimulator, MultiPublisherConfig</pre><pre># Each publisher runs NCA locally — raw data stays on-premise<br>clean_room = CleanRoom(publishers, cohort_col=&quot;interest_segment&quot;, epsilon=1.0)<br>results = clean_room.query_counts(condition=lambda df: df[&quot;converted&quot;] == 1)</pre><pre># results: noisy cohort-level conversion counts, summed across publishers<br># Total privacy cost: ε=1.0, not 3ε=3.0 (post-processing theorem)</pre><p>What crosses the boundary: noisy aggregate counts per cohort. Not user IDs. Not join keys. Not hashed emails. The legal exposure is qualitatively different. You’re releasing an aggregate statistic, not transferring personal data. That distinction matters enormously in a GDPR context.</p><p>In testing on 10,000 simulated users across three publishers with 40% cross-publisher overlap, the clean room’s cross-publisher conversion counts had mean relative error of 7.5% at ε=5.0 and 12.3% at ε=1.0. That’s within acceptable range for campaign-level decisions.</p><h3>“We Promise” vs. “Mathematically Impossible”</h3><p>“DP vs traditional data clean rooms: operational control vs mathematical guarantee”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9qMtmpXD20a8jKgD6IrfA.png" /></figure><p>The “but what about data clean rooms” objection is worth addressing because every major vendor is currently selling one.</p><p>Google’s Privacy Sandbox Attribution Reporting API, AWS Clean Rooms, InfoSum, Habu — these are real products with real utility. I’m not dismissing them. But they’re solving a coordination problem, not a privacy problem. The data still moves to a centralized environment. The trust boundary is still “we promise we only run the approved queries.” That’s an operational control, not a mathematical one.</p><p>DP-based measurement is the only approach where privacy is enforced by mathematics, not by contracts and audit trails. An adversary with full access to the released aggregates cannot extract individual-level information beyond the ε bound — not because we’ve locked them out, but because the math makes it impossible.</p><p>adtech-dp also ships a PrivacySandboxAdapter that converts results to Chrome’s Attribution Reporting API JSON format, so the two approaches aren’t mutually exclusive. Use Privacy Sandbox where you need browser-level interoperability. Use adtech-dp where you need stronger mathematical guarantees or multi-party scenarios the Sandbox doesn’t cover.</p><h3>What ε Actually Means in Practice</h3><p>“The ε-utility landscape: actual measured results”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3LRPXJOkHbaXLVDeGtBPg.png" /></figure><p>There’s a question I get whenever I talk about DP in ad tech: “what about the epsilon? How do I explain that to the CMO?”</p><p>Honestly? You don’t. You explain that frequency capping now works without storing who saw what, attribution is GDPR-compliant by construction, and cross-publisher measurement doesn’t require sharing user data with competitors. The ε is an implementation detail, like explaining RSA key length to a bank customer.</p><p>The framework I use internally: ε=1.0 is “privacy preserving with slightly noisy estimates,” ε=5.0 is “strong statistical utility, auditable privacy guarantee.” For most campaign reporting — reach, frequency, CTR, conversion rate — ε=2.0 gives relative errors under 5% on cohorts of 200+. That’s indistinguishable from sampling error in any reasonable campaign.</p><h3>The Only Durable Path</h3><p>The ad tech industry has spent four years treating privacy regulations as a compliance checkbox and signal loss as a data science problem. Both framings miss the point.</p><p>The regulation isn’t going away. The third-party identifier is structurally compromised. The only durable path is measurement infrastructure that is private by construction — where “we don’t know who the individual users are” is a technical fact, not a privacy policy claim.</p><p>NoisyCohort and adtech-dp are my attempt at what that infrastructure looks like. Both are open source. The math is in the code, not behind a SaaS wall.</p><p>If you’re working in measurement, data engineering, or privacy engineering and want to dig into the implementation, the repos are available — drop a comment or connect. Happy to walk through the federated clean room architecture specifically, because that’s where I think the most interesting unsolved problems still live.</p><p><em>The author builds privacy-preserving measurement infrastructure. NoisyCohort implements Noisy Cohort Aggregation with Rényi DP composition. adtech-dp is the ad tech domain layer: cohorts, attribution, reporting, compliance, and federation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f11f027a0f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>