Skip to main content
QUICK REVIEW

[Paper Review] Machine Learning Models that Remember Too Much

Congzheng Song, Thomas Ristenpart|arXiv (Cornell University)|Sep 22, 2017
Adversarial Robustness in Machine LearningComputer Science57 references31 citations
TL;DR

This paper demonstrates that malicious machine learning providers can train models that appear accurate and generalizable while secretly encoding and leaking sensitive training data through subtle modifications to the training process. Even with only black-box access, adversaries can extract large portions of the training dataset by exploiting overfitting to synthetic, labeled data, revealing critical privacy risks in ML-as-a-service pipelines.

ABSTRACT

Machine learning (ML) is becoming a commodity. Numerous ML frameworks and services are available to data holders who are not ML experts but want to train predictive models on their data. It is important that ML models trained on sensitive inputs (e.g., personal images or documents) not leak too much information about the training data. We consider a malicious ML provider who supplies model-training code to the data holder, does not observe the training, but then obtains white- or black-box access to the resulting model. In this setting, we design and implement practical algorithms, some of them very similar to standard ML techniques such as regularization and data augmentation, that "memorize" information about the training dataset in the model yet the model is as accurate and predictive as a conventionally trained model. We then explain how the adversary can extract memorized information from the model. We evaluate our techniques on standard ML tasks for image classification (CIFAR10), face recognition (LFW and FaceScrub), and text analysis (20 Newsgroups and IMDB). In all cases, we show how our algorithms create models that have high predictive power yet allow accurate extraction of subsets of their training data.

Motivation & Objective

  • To investigate how malicious ML providers can embed sensitive training data into models without degrading predictive performance.
  • To demonstrate that models trained with subtle, seemingly legitimate modifications can still leak significant information about their training data.
  • To show that both white-box and black-box adversaries can extract memorized training data using practical, stealthy techniques.
  • To highlight the privacy risks in ML-as-a-service and third-party ML frameworks where users trust unverified training code.
  • To advocate for the principle of least privilege in ML training, ensuring models only learn what is strictly necessary.

Proposed method

  • The authors introduce a capacity-abuse attack that augments training data with synthetic inputs labeled with secret bits from the real training data, forcing the model to memorize this information.
  • In the white-box setting, they embed secrets directly into the least significant bits of model parameters, or use regularization to correlate parameters with sensitive data.
  • For black-box extraction, they rely on the model's overfitting to synthetic inputs with secret labels, enabling data reconstruction via input-output queries.
  • The approach uses standard ML techniques like regularization and data augmentation in a malicious way, making it indistinguishable from benign training to end users.
  • The method is evaluated across multiple benchmarks, including CIFAR10, LFW, FaceScrub, 20 Newsgroups, and IMDB, showing no degradation in primary task accuracy.
  • Extraction is performed by querying the model with synthetic inputs and observing the output labels, which reveal the embedded secrets.

Experimental results

Research questions

  • RQ1Can a malicious ML provider train a model that maintains high accuracy while embedding and leaking sensitive training data?
  • RQ2To what extent can an adversary extract training data using only black-box access to a model trained with synthetic, secret-labeled data?
  • RQ3How do standard ML techniques like regularization and data augmentation become vectors for data exfiltration when manipulated maliciously?
  • RQ4What is the trade-off between model utility and data leakage in models trained with capacity-abuse techniques?
  • RQ5Can model compression or privacy-preserving techniques mitigate such covert data leakage?

Key findings

  • The authors successfully created a text classifier that leaked 70% of its 10,000-document training corpus without affecting model accuracy.
  • In the black-box setting, a binary gender classifier was able to accurately reconstruct secret training data through queries to synthetic inputs with embedded labels.
  • Models trained with synthetic data augmentation and secret labels achieved near-perfect accuracy on the primary task while overfitting to the synthetic inputs, enabling data extraction.
  • The white-box attack using least significant bit encoding allowed precise reconstruction of training data from model parameters, even when the model was otherwise indistinguishable from a benign one.
  • The malicious training techniques were undetectable to the data holder, as they mimicked standard ML practices like regularization and data augmentation.
  • The results demonstrate that even with strong generalization and accuracy, models can still leak sensitive information if trained with malicious intent.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.