[Paper Review] Privacy Side Channels in Machine Learning Systems
This paper introduces privacy side channels in machine learning systems—attacks that exploit system-level components like data filtering, preprocessing, output filtering, and query filtering to extract private information at much higher rates than possible with standalone models. The key finding is that components designed to improve privacy, such as data deduplication and memorization filters, can paradoxically create side channels that violate differential privacy guarantees and enable exact reconstruction of private keys.
Most current approaches for protecting privacy in machine learning (ML) assume that models exist in a vacuum. Yet, in reality, these models are part of larger systems that include components for training data filtering, output monitoring, and more. In this work, we introduce privacy side channels: attacks that exploit these system-level components to extract private information at far higher rates than is otherwise possible for standalone models. We propose four categories of side channels that span the entire ML lifecycle (training data filtering, input preprocessing, output post-processing, and query filtering) and allow for enhanced membership inference, data extraction, and even novel threats such as extraction of users' test queries. For example, we show that deduplicating training data before applying differentially-private training creates a side-channel that completely invalidates any provable privacy guarantees. We further show that systems which block language models from regenerating training data can be exploited to exfiltrate private keys contained in the training set--even if the model did not memorize these keys. Taken together, our results demonstrate the need for a holistic, end-to-end privacy analysis of machine learning systems.
Motivation & Objective
- To investigate how system-level components in ML pipelines inadvertently create privacy side channels.
- To demonstrate that components meant to enhance privacy, such as data deduplication and memorization filters, can instead weaken privacy guarantees.
- To show that adaptive adversaries can exploit these side channels to perform enhanced membership inference or extract private test queries.
- To highlight the limitations of isolated model privacy analysis and advocate for holistic, end-to-end system-level privacy evaluation.
- To reveal tensions between security and privacy in ML systems, especially when combining defenses like DP and deduplication.
Proposed method
- Proposing four categories of privacy side channels: training data filtering, input preprocessing, model output filtering, and query filtering.
- Using adaptive adversaries with black-box or white-box access to exploit dependencies introduced by system components.
- Demonstrating that data deduplication creates side channels by linking user data through duplicate detection, enabling privacy violations even under differential privacy.
- Exploiting memorization filters in language models to reverse-engineer training set details and reconstruct private keys from training data.
- Using stateful query filters that aggregate across users to create side channels revealing other users’ private test queries.
- Conducting empirical evaluations on real-world systems, including GitHub Copilot and public LLMs, to validate side-channel attacks.
Experimental results
Research questions
- RQ1How can system-level components like data deduplication or output filters create privacy side channels that undermine formal privacy guarantees?
- RQ2To what extent can adaptive adversaries use black-box access to system components to extract private training data or test queries?
- RQ3Why does combining data deduplication with differentially private training lead to worse privacy than DP alone?
- RQ4Can output filters designed to prevent memorization actually reduce privacy by enabling near-perfect membership inference?
- RQ5How do stateful query filters that aggregate user inputs create side channels that leak other users’ private queries?
Key findings
- Data deduplication, intended to improve privacy, creates a side channel that completely invalidates differential privacy guarantees, even when applied after DP training.
- Memorization filters in language models can be exploited to reconstruct exact private keys from the training set, even if the model did not memorize them.
- Output filters designed to block verbatim training data output can be used to perform near-perfect membership inference attacks.
- Query filters that aggregate user inputs across sessions create side channels that leak other users’ private test queries, a threat not possible with isolated models.
- Combining data deduplication with differentially private training results in significantly worse privacy than DP alone, demonstrating non-composability of privacy mechanisms.
- The attack on GitHub Copilot’s training set revealed its exact training data cutoff date by exploiting output filtering, demonstrating real-world feasibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.