← Lab /AI/ML

Data deduplication and memorization filters enable near-perfect membership inference

Side-channel components such as data deduplication and memorization filters allow attackers to infer training data with near-perfect accuracy, breaking privacy guarantees of differential privacy.

AI/ML SPY Lab (ETH Zurich) 12 Sep 2023 Attack Prototype evidence

Published as “Privacy side channels in machine learning systems”

Why it matters

These findings show that privacy guarantees of ML systems must account for pipeline components, as they can nullify differential privacy protections.

Summary

The authors examine privacy side-channels in ML pipelines, focusing on data deduplication and memorization filters. They show that by injecting many near-duplicate samples, an attacker can achieve essentially perfect membership inference when deduplication is used. They also demonstrate that a memorization filter can be abused to extract RSA private keys with about 90% success using ~340k queries to a GPT-Neo model. Their evidence is based on simulated attacks and limited real-world analysis of GitHub Copilot.

What they found 1

  1. Deduplication enables essentially perfect membership inference.

    “We show that we can get essentially perfectly accurate membership inference when deduplication is used in an ML system.”

Caveats 6

  • We don’t exactly know how these filters are implemented.
  • Copilot’s filter appears to be more “fuzzy” than the one we used for our other experiments, so we get more false-positives.
  • The attack assumes the adversary can inject a large number of carefully crafted near-duplicate samples.
  • Evaluation is performed on a simulated memorization filter rather than the exact production implementation.
  • Results depend on the ability to inject many adversarial samples into the data collection pipeline.
  • Some experiments require toggling the memorization filter, which may not be possible in deployed systems.

What’s new here 4

  • Identify side-channel privacy leaks in ML system components beyond the model itself.
  • Show that data deduplication can be exploited for near-perfect membership inference.
  • Demonstrate that memorization filters can be bypassed to extract cryptographic keys with ~90% success.
  • Explain how these side-channels can amplify the effective epsilon of differential privacy.