Wiki Home
SoK: Unintended Interactions among Machine Learning Defenses and Risks
Paper: IEEE S&P 2024
High-level overview
A machine learning model faces many risks at once, and each risk has its own defenses. Deploying a defense against one risk routinely changes the model’s susceptibility to a different risk, sometimes lowering it and sometimes raising it. Adding adversarial training to resist evasion, for instance, makes membership inference easier (Song et al., 2019; Hayes, 2020). This systematization of knowledge (SoK) collects these unintended interactions and explains them within one framework.
The framework rests on a single conjecture: overfitting and memorization, two properties of how a model fits its training data, are the common causes underlying the interactions. A defense takes effect by inducing or suppressing overfitting or memorization, and that same change moves the model’s exposure to other risks. The framework names a small set of underlying factors that govern overfitting and memorization, drawn from the training data, the training algorithm, and the model. The paper surveys the published interactions against this framework, then distills a guideline for conjecturing the direction of an interaction not yet studied.
The framework accommodates the reported interactions, spanning seven defenses and eight risks. Using the guideline, the paper conjectures two previously unstudied interactions and validates them empirically: enforcing group fairness lowers the success of data reconstruction, and releasing model explanations raises the success of distribution (property) inference.
Threat Model: A SoK has no single threat model; its scope is a population of settings. The defenses are deployed by a model owner: adversarial training, outlier removal, differential privacy, group fairness, model watermarking, fingerprinting, and the release of explanations. The risks are pursued by an adversary or arise as a property of the model: evasion, poisoning, unauthorized model ownership through model extraction, membership inference, data reconstruction, attribute inference, distribution inference, and discriminatory behaviour. The settings range over white-box and black-box access, train-time and inference-time action, and take classifiers as the primary object with generative models discussed as an extension. The framework’s claim is explanatory and predictive rather than adversarial: overfitting, memorization, and the factors that drive them determine whether deploying a given defense increases or decreases susceptibility to a given risk. The framework asserts correlation, not causation, and its conjectures are checked empirically.
Basic Background
Risks and defenses in trustworthy machine learning
Trustworthy machine learning studies a model’s exposure across security, privacy, and fairness. Security risks include evasion, where crafted perturbations force a misclassification (Goodfellow et al., 2015); data poisoning and backdoors, which corrupt training data to control predictions; and unauthorized model ownership through model extraction, which rebuilds a deployed model’s functionality from query access (Knockoff Nets; Orekondy et al., 2019). Privacy risks include membership inference, which tests whether a record was in the training set (likelihood-ratio formulation; Shokri et al., 2017; Carlini et al., 2022), along with data reconstruction (model inversion), attribute inference, and distribution (property) inference; for generative models the privacy failure is verbatim reproduction of training data (Carlini et al., 2021). Fairness concerns a model’s discriminatory behaviour across sensitive subgroups. The corresponding defenses include adversarial training (PGD; Madry et al., 2018), outlier removal, differential privacy via DP-SGD (DP-SGD; Abadi et al., 2016), model watermarking and fingerprinting for ownership (DAWN; Szyller et al., 2019), group fairness constraints, and model explanations.
Overfitting and memorization
A model overfits when it fits its training set more closely than the underlying distribution; the gap between training and test loss, the generalization error, measures it. Memorization is the per-example version: a model can fit individual records, especially outliers and the long tail of the data distribution, and some such memorization is necessary for accuracy (Feldman, 2020; Zhang et al., 2017). Both leave traces in what an adversary can observe, namely the model’s predictions, its intermediate activations, its gradients, and its parameters. Most of the risks above feed on those traces.
Group fairness and explanations
Group fairness constrains a model to behave equitably across groups defined by a sensitive attribute, under statistical metrics such as demographic parity or equalized odds (Hardt et al., 2016), enforced by pre-processing the data, constraining the objective, or post-processing the outputs. Model explanations release auxiliary information with each prediction: a feature attribution, the influential training records behind a prediction, or a counterfactual that would change the outcome. Neither defense requires retraining, and both expose information about the model’s decision boundary and training data.
Reading guidance
- Section 3, the conjecture stated at its head and unpacked in 3.1 to 3.3: overfitting and memorization are taken as the two underlying causes of every interaction in the survey. The justification for picking those two is stated briefly; note what it rests on, since the whole framework inherits it.
- Section 4.4, guidelines G1 to G4: how the direction of an interaction is inferred from a shared factor, and how a dominant factor is chosen when two factors disagree.
- Table 3 with its legend: each underlying factor in a cell is marked empirically shown, theoretically shown, or only conjectured, and exceptions are listed separately. Note how many carry the conjecture mark.
Paper Context
Individual interactions were documented before any unifying account. Adversarial training, applied to resist evasion, raises a model’s vulnerability to membership inference (Song et al., 2019; Hayes, 2020). Differential privacy has a disparate impact on accuracy across subgroups (Bagdasaryan et al., 2019), and fairness constraints interact with privacy risks (Chang and Shokri, 2021). Each result studied one defense against one risk, with no shared explanation of why the interaction arose.
Several systematizations had mapped the risk and defense landscape without treating the interactions among them. SoKs organized security and privacy in machine learning broadly (Papernot et al., 2018) and inference attacks on training data specifically (Salem et al., 2023). Surveys of multilateral tradeoffs in trustworthy machine learning catalogued tensions between accuracy, robustness, fairness, and privacy without naming their underlying causes (Gittens et al., 2022). The direct precursor to this paper enumerated conflicts among protection mechanisms, showing that combining defenses can make each less effective (Szyller and Asokan, 2023). A contemporaneous SoK examined the interplay of fairness, interpretability, and privacy (Ferry et al., 2023).
Additional Readings
- Conflicting Interactions Among Protection Mechanisms for Machine Learning Models — the precursor from two of the same authors; it documents that combining defenses can make each less effective, the observation this SoK generalizes into a framework.
- Combining Machine Learning Defenses without Conflicts — a later follow-up that builds on this systematization to compose multiple defenses while avoiding the conflicts it catalogues.
References
- Abadi, M., Chu, A., Goodfellow, I., McMahan, H. B., Mironov, I., Talwar, K., and Zhang, L. “Deep Learning with Differential Privacy.” ACM Conference on Computer and Communications Security (CCS), 2016.
- Bagdasaryan, E., et al. “Differential Privacy Has Disparate Impact on Model Accuracy.” Advances in Neural Information Processing Systems (NeurIPS), 2019.
- Carlini, N., Tramèr, F., Wallace, E., Jagielski, M., Herbert-Voss, A., Lee, K., Roberts, A., Brown, T., Song, D., Erlingsson, Ú., et al. “Extracting Training Data from Large Language Models.” USENIX Security Symposium, 2021.
- Carlini, N., Chien, S., Nasr, M., Song, S., Terzis, A., and Tramèr, F. “Membership Inference Attacks From First Principles.” IEEE Symposium on Security and Privacy (S&P), 2022.
- Chang, H. and Shokri, R. “On the Privacy Risks of Algorithmic Fairness.” IEEE European Symposium on Security and Privacy (EuroS&P), 2021.
- Feldman, V. “Does Learning Require Memorization? A Short Tale about a Long Tail.” ACM Symposium on Theory of Computing (STOC), 2020.
- Ferry, J., Aïvodji, U., Gambs, S., Huguet, M.-J., and Siala, M. “SoK: Taming the Triangle, On the Interplays between Fairness, Interpretability and Privacy in Machine Learning.” arXiv:2312.16191, 2023.
- Gittens, A., et al. “An Adversarial Perspective on Accuracy, Robustness, Fairness, and Privacy: Multilateral-Tradeoffs in Trustworthy ML.” IEEE Access, 10, 2022.
- Goodfellow, I. J., Shlens, J., and Szegedy, C. “Explaining and Harnessing Adversarial Examples.” International Conference on Learning Representations (ICLR), 2015.
- Hardt, M., et al. “Equality of Opportunity in Supervised Learning.” Advances in Neural Information Processing Systems (NeurIPS), 2016.
- Hayes, J. “Trade-offs between Membership Privacy & Adversarially Robust Learning.” arXiv:2006.04622, 2020.
- Madry, A., Makelov, A., Schmidt, L., Tsipras, D., and Vladu, A. “Towards Deep Learning Models Resistant to Adversarial Attacks.” International Conference on Learning Representations (ICLR), 2018. arXiv:1706.06083.
- Orekondy, T., et al. “Knockoff Nets: Stealing Functionality of Black-Box Models.” IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
- Papernot, N., et al. “SoK: Security and Privacy in Machine Learning.” IEEE European Symposium on Security and Privacy (EuroS&P), 2018.
- Salem, A., et al. “SoK: Let the Privacy Games Begin! A Unified Treatment of Data Inference Privacy in Machine Learning.” IEEE Symposium on Security and Privacy (S&P), 2023.
- Shokri, R., Stronati, M., Song, C., and Shmatikov, V. “Membership Inference Attacks Against Machine Learning Models.” IEEE Symposium on Security and Privacy (S&P), 2017.
- Song, L., et al. “Privacy Risks of Securing Machine Learning Models against Adversarial Examples.” ACM Conference on Computer and Communications Security (CCS), 2019.
- Szyller, S. and Asokan, N. “Conflicting Interactions among Protection Mechanisms for Machine Learning Models.” AAAI Conference on Artificial Intelligence, 2023.
- Szyller, S., Atli, B. G., Marchal, S., and Asokan, N. “DAWN: Dynamic Adversarial Watermarking of Neural Networks.” arXiv:1906.00830, 2019.
- Zhang, C., Bengio, S., Hardt, M., Recht, B., and Vinyals, O. “Understanding Deep Learning Requires Rethinking Generalization.” International Conference on Learning Representations (ICLR), 2017.