Abstract
Inference attacks against Machine Learning (ML) models allow adversaries to learn sensitive information about training data and model parameters. While researchers have studied several kinds of attacks in depth, they have done so in isolation. This lack of a comprehensive picture obscures the risks caused by these attacks, such as the common factors influencing their performance or the relationship among them. We fill this gap by presenting ML-Doctor, a first-of-its-kind holistic risk assessment framework for inference attacks. We concentrate on four attacks—membership inference, model inversion, attribute inference, and model stealing—and establish a threat model taxonomy. Our extensive evaluation across five architectures and four datasets shows that training dataset complexity significantly impacts performance, and that the effectiveness of model stealing and membership inference are negatively correlated. We also demonstrate that defenses like DP-SGD and Knowledge Distillation only mitigate specific risks, often at the cost of model utility.
The Problem: Siloed Security Research
As machine learning models are increasingly deployed on sensitive data, such as medical records or private photos, they become prime targets for inference attacks. Historically, researchers have studied attacks like Membership Inference (determining if a specific record was in the training set) or Model Stealing (replicating a proprietary model) in isolation.
This "siloed" approach leaves a massive gap in our understanding: we don't know how different attacks relate to one another, how dataset complexity influences risk, or if a defense against one attack inadvertently leaves the door open for another. ML-Doctor aims to provide a holistic risk assessment to give model owners a complete picture of their security posture.
The ML-Doctor Framework
The authors propose a systematic taxonomy of threat models based on two dimensions: model access (White-box vs. Black-box) and the availability of auxiliary data. To operationalize this, they developed ML-Doctor, a modular software tool designed for benchmarking and risk analysis.
As shown in the pipeline above, the framework consists of four primary modules:
- Data Processing Module: Standardizes inputs from various datasets.
- Attack Module: Implements Membership Inference (MemInf), Model Inversion (ModInv), Attribute Inference (AttrInf), and Model Stealing (ModSteal).
- Defense Module: Applies mitigation strategies like Differential Privacy (DP-SGD) and Knowledge Distillation.
- Evaluation Module: Provides a comparative analysis of attack success and defense effectiveness.
Key Insights: The Complexity Paradox
A central finding of the study is that dataset complexity is a double-edged sword. Complex datasets (like STL10) make models more prone to overfitting, which significantly boosts the accuracy of Membership Inference. However, that same complexity makes Model Stealing much harder because the attacker struggles to find a "shadow" dataset that captures the same intricate patterns.
This creates an Overfitting Tug-of-War. A model that "memorizes" its training data is easy to "dox" (leak data via Membership Inference) but hard to "clone" (steal logic). The researchers found a strong negative correlation ($r = -0.821$) between these two risks.
Experimental Results
The study evaluated five model architectures (including ResNet18 and VGG19) across four image datasets: CelebA, Fashion-MNIST (FMNIST), STL10, and UTKFace.
As illustrated in the figure above, the "agreement" (how closely a stolen model matches the target) varies significantly by dataset complexity. For a ResNet18 model, agreement was as high as 0.927 for the simple FMNIST dataset but dropped to 0.524 for the more complex STL10. Conversely, moving from FMNIST to STL10 increased Membership Inference accuracy by 68.4% on the same architecture.
Defense Limitations
Popular defenses like Differential Privacy (DP-SGD) are highly effective at stopping membership inference—often reducing it to a random guess—but they do very little to stop model inversion or attribute inference. Furthermore, they often come at a significant cost to utility; for example, using DP-SGD on the STL10 dataset dropped testing accuracy from 0.818 to 0.680.
Conclusion and Future Work
ML-Doctor reveals that the landscape of ML security is deeply interconnected. While it currently focuses on image classification, future work will expand the framework to include Natural Language Processing (NLP), audio, and graph-based models. The authors also plan to integrate other threats, such as adversarial examples and data poisoning, to maintain a truly holistic assessment of machine learning risks.
Summary updated