Skip to main content
QUICK REVIEW

[Paper Review] Planting Undetectable Backdoors in Machine Learning Models

Shafi Goldwasser, Michael P. Kim|arXiv (Cornell University)|Apr 14, 2022
Adversarial Robustness in Machine LearningComputer Science13 citations
TL;DR

This paper demonstrates how a malicious machine learning service provider can embed undetectable backdoors into trained models, enabling remote control over predictions with minimal input perturbations. Using digital signatures or random feature learning with cryptographic assumptions, the backdoor remains computationally indistinguishable from a clean model even under white-box analysis, breaking trust in outsourced model training.

ABSTRACT

Given the computational cost and technical expertise required to train machine learning models, users may delegate the task of learning to a service provider. We show how a malicious learner can plant an undetectable backdoor into a classifier. On the surface, such a backdoored classifier behaves normally, but in reality, the learner maintains a mechanism for changing the classification of any input, with only a slight perturbation. Importantly, without the appropriate "backdoor key", the mechanism is hidden and cannot be detected by any computationally-bounded observer. We demonstrate two frameworks for planting undetectable backdoors, with incomparable guarantees. First, we show how to plant a backdoor in any model, using digital signature schemes. The construction guarantees that given black-box access to the original model and the backdoored version, it is computationally infeasible to find even a single input where they differ. This property implies that the backdoored model has generalization error comparable with the original model. Second, we demonstrate how to insert undetectable backdoors in models trained using the Random Fourier Features (RFF) learning paradigm or in Random ReLU networks. In this construction, undetectability holds against powerful white-box distinguishers: given a complete description of the network and the training data, no efficient distinguisher can guess whether the model is "clean" or contains a backdoor. Our construction of undetectable backdoors also sheds light on the related issue of robustness to adversarial examples. In particular, our construction can produce a classifier that is indistinguishable from an "adversarially robust" classifier, but where every input has an adversarial example! In summary, the existence of undetectable backdoors represent a significant theoretical roadblock to certifying adversarial robustness.

Motivation & Objective

  • To investigate the risks of trusting untrusted machine learning service providers in outsourced model training.
  • To demonstrate that backdoors can be planted in models such that they are undetectable even to powerful, white-box adversaries.
  • To show that such backdoors can persist through post-processing and cannot be replicated by an external observer.
  • To challenge the theoretical foundations of adversarial robustness by showing that 'robust' models can still be backdoored without detection.

Proposed method

  • Using digital signature schemes, the authors construct a backdoor that is computationally indistinguishable from the original model under query access, ensuring no input can be found where the two models differ.
  • The method guarantees non-replicability: even with full access to the backdoored model and its outputs, an adversary cannot generate a new backdoored input.
  • For random Fourier features (RFF), the backdoor is inserted by tampering only with the random seeds used during training, preserving the algorithm’s correctness.
  • The security of the RFF-based backdoor relies on the hardness of the Continuous Learning With Errors (CLWE) problem.
  • A similar construction is shown for random ReLU networks based on the hardness of Sparse PCA.
  • The approach ensures that even with full knowledge of the training data and model architecture, an efficient distinguisher cannot detect the presence of the backdoor.

Experimental results

Research questions

  • RQ1Can a malicious service provider embed a backdoor in a machine learning model that remains undetectable to any computationally bounded observer?
  • RQ2Is it possible to construct a backdoor that is both undetectable and non-replicable, such that an adversary cannot generate new backdoored inputs?
  • RQ3Can undetectable backdoors be constructed in models trained via the Random Fourier Features paradigm, even under white-box analysis?
  • RQ4Does the existence of undetectable backdoors undermine the theoretical guarantees of adversarial robustness in machine learning models?
  • RQ5Can cryptographic assumptions like CLWE or Sparse PCA hardness be used to formally prove the security of such backdoors?

Key findings

  • The proposed backdoor mechanism is computationally indistinguishable from the original model: no efficient distinguisher can detect differences even with full query access.
  • The backdoored model maintains generalization error comparable to the original model, ensuring it appears trustworthy under standard evaluation.
  • The construction guarantees non-replicability: an adversary cannot generate a new backdoored input even with full access to the model and its behavior.
  • For RFF-based models, the backdoor is undetectable even to a white-box distinguisher with full knowledge of the training data and model architecture.
  • The security of the RFF-based backdoor is proven under the hardness of the Continuous Learning With Errors (CLWE) problem.
  • The paper demonstrates that even 'adversarially robust' models can be backdoored in a way that is undetectable, exposing a fundamental limitation in certifying robustness.

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.