Privacy-Preserving ML with AWS Clean Rooms ML - Build Models Without Sharing Data

Learn how to build lookalike models with Clean Rooms ML, apply differential privacy, and leverage the results for ad targeting.

Overview of Clean Rooms ML

Clean Rooms ML is a service that lets you build ML models while preserving privacy within Clean Rooms, supporting datasets with millions of records. Advertisers and publishers can jointly build lookalike models and generate similar-user segments without directly viewing each other's data. Differential privacy techniques provide mathematical guarantees that individual data is protected, while maximizing marketing effectiveness. As third-party cookies are being phased out, this service is gaining attention as a means to safely collaborate on first-party data.

Lookalike Models and Differential Privacy

A lookalike model is an ML model that identifies new users who resemble existing high-value customers. The advertiser provides a list of converted users (seed data), and the model extracts similar users from the publisher's audience data. A seed data size of several hundred to several thousand records is recommended; too few records reduce model accuracy. Differential privacy adds noise to the model's output, mathematically guaranteeing that individual-level data cannot be inferred. Lower epsilon (ε) values provide stronger privacy protection but reduce model accuracy, so adjusting the value according to the use case is important. The resulting lookalike segments are used for ad campaign targeting to improve conversion rates.

Designing a Collaboration

In a Clean Rooms collaboration, you define the scope of data each participant provides and the analysis rules. Analysis rules specify the types of queries allowed (aggregation only, whether list output is permitted) and the minimum aggregation unit (e.g., only aggregations of 100 or more records), preventing individual-level data extraction. For ML model building, the advertiser provides seed data (converted users), which is matched against the publisher's audience data to generate lookalike segments. You adjust the differential privacy epsilon value to control the trade-off between privacy protection strength and model accuracy. Output results are returned only at an aggregated level that cannot identify individuals, in accordance with the collaboration's analysis rules. You can also explore practical approaches to Clean Rooms in related books on Amazon.

Clean Rooms ML Pricing

Clean Rooms pricing is based on the volume of data scanned per query. ML model building incurs additional charges, with separate fees for lookalike model training and segment generation. Enabling differential privacy adds computational costs for noise injection. It is common to split costs between collaboration participants, with the party executing queries bearing the processing charges. For large datasets, you can optimize costs by narrowing the analysis period and columns to reduce scan volume. Storing data in S3 using partitioned Parquet format improves query scan efficiency.

Use Cases and Application Patterns

Here are representative use cases for Clean Rooms ML. In ad targeting, an e-commerce site's purchaser list serves as seed data, and lookalike segments are generated from a media company's audience data to improve ad campaign ROI. In retail media networks, retailer purchase data and advertiser conversion data are safely matched to identify online users likely to make in-store purchases. In financial services, banks and insurance companies jointly analyze cross-sell customer segments without directly sharing personal information. In healthcare, pharmaceutical companies and medical institutions jointly analyze clinical data in a non-identifiable form to identify patient groups with high treatment efficacy. In all cases, Clean Rooms ML functions as a means to collaborate without losing analytical value when direct data sharing is prohibited by regulations or privacy policies.

Comparison with Other Privacy-Preserving Technologies

Comparing Clean Rooms ML with other privacy-preserving technologies: Traditional data clean rooms (Snowflake Data Clean Room, Google Ads Data Hub, etc.) focus on SQL-based aggregation queries and do not support joint ML model building. Clean Rooms ML differentiates itself by providing managed lookalike model training. Federated Learning trains models without moving data but requires complex coordination of model updates between participants, resulting in high implementation costs. Clean Rooms ML minimizes build and operational overhead as an AWS managed service. Secure Multi-Party Computation has high computational costs and may be difficult to apply to large datasets, while differential privacy achieves scalable protection through lightweight noise injection. K-anonymization and data masking are static preprocessing approaches that do not provide mathematical guarantees like differential privacy.

Summary

Clean Rooms ML is a service that builds privacy-preserving ML models without sharing data. The differential privacy epsilon value controls the trade-off between protection strength and model accuracy, while analysis rules prevent individual-level data extraction. It enables safe generation of lookalike segments between advertisers and publishers without direct data sharing.