Skip to main content
QUICK REVIEW

[Paper Review] Regularisation Can Mitigate Poisoning Attacks: A Novel Analysis Based on Multiobjective Bilevel Optimisation

Javier Carnerero-Cano, Luis Muñoz-González|arXiv (Cornell University)|Feb 28, 2020
Adversarial Robustness in Machine LearningComputer Science43 references8 citations
TL;DR

This paper proposes a novel multiobjective bilevel optimisation framework to model poisoning attacks that dynamically adjust model hyperparameters, revealing that $L_2$ regularisation enhances robustness by increasing the regularisation strength under attack, contrary to prior pessimistic assumptions. The method uses reverse-mode differentiation to compute hypergradients and demonstrates that $L_2$ regularisation mitigates attack effects by stabilising model parameters.

ABSTRACT

Machine Learning (ML) algorithms are vulnerable to poisoning attacks, where a fraction of the training data is manipulated to deliberately degrade the algorithms' performance. Optimal poisoning attacks, which can be formulated as bilevel optimisation problems, help to assess the robustness of learning algorithms in worst-case scenarios. However, current attacks against algorithms with hyperparameters typically assume that these hyperparameters remain constant ignoring the effect the attack has on them. We show that this approach leads to an overly pessimistic view of the robustness of the algorithms. We propose a novel optimal attack formulation that considers the effect of the attack on the hyperparameters by modelling the attack as a multiobjective bilevel optimisation problem. We apply this novel attack formulation to ML classifiers using $L_2$ regularisation and show that, in contrast to results previously reported, $L_2$ regularisation enhances the stability of the learning algorithms and helps to mitigate the attacks. Our empirical evaluation on different datasets confirms the limitations of previous strategies, evidences the benefits of using $L_2$ regularisation to dampen the effect of poisoning attacks and shows how the regularisation hyperparameter increases with the fraction of poisoning points.

Motivation & Objective

  • To address the limitation in prior poisoning attack studies that assume fixed hyperparameters regardless of attack strength.
  • To model the interaction between poisoning attacks and hyperparameter adaptation in a worst-case scenario.
  • To investigate whether $L_2$ regularisation can mitigate poisoning attacks when hyperparameters are allowed to adapt during the attack.
  • To provide a more accurate assessment of model robustness by accounting for hyperparameter shifts induced by malicious data.
  • To demonstrate that $L_2$ regularisation acts as a stabilising mechanism under attack, increasing the regularisation strength as attack intensity grows.

Proposed method

  • Formulate the poisoning attack as a multiobjective bilevel optimisation problem, where the outer objective optimises both poisoning points and model hyperparameters, and the inner objective trains the model parameters.
  • Model the worst-case scenario as a minimax problem, where the attacker maximises test error while the defender minimises loss on the poisoned data.
  • Use reverse-mode differentiation (RMD) to efficiently approximate hypergradients for both the poisoning points and the regularisation hyperparameters.
  • Apply hypergradient descent/ascent to jointly optimise the attack and hyperparameter adaptation in a differentiable end-to-end manner.
  • Evaluate the framework on logistic regression and deep neural networks (DNNs) using ImageNet and other datasets with varying poisoning fractions.
  • Compare scenarios where the regularisation hyperparameter is fixed versus learned end-to-end during the attack.

Experimental results

Research questions

  • RQ1How does the assumption of fixed hyperparameters in prior poisoning attacks lead to an overly pessimistic assessment of model robustness?
  • RQ2To what extent can $L_2$ regularisation mitigate poisoning attacks when the regularisation hyperparameter is allowed to adapt during the attack?
  • RQ3How does the value of the $L_2$ regularisation hyperparameter change in response to increasing attack strength?
  • RQ4What is the relationship between the magnitude of model parameters (e.g., $||\mathbf{w}_{\text{layer}}||_2^2$) and layer vulnerability under poisoning?
  • RQ5What trade-off exists between model accuracy under clean data and robustness under poisoning when the regularisation hyperparameter is learned end-to-end?

Key findings

  • Contrary to prior work such as [38], $L_2$ regularisation does not increase vulnerability to poisoning attacks; instead, it enhances model stability and mitigates attack effects.
  • The $L_2$ regularisation hyperparameter increases with the fraction of poisoning points, indicating that the model self-adapts by strengthening regularisation to resist attack-induced instability.
  • For a DNN on ImageNet, test error rose to 12% when $λ = -8$ and 16.6% poisoning points were injected, but remained stable when $λ =  \log(40)$, and increased only moderately under end-to-end hyperparameter learning ($λ_{\text{RMD}}$).
  • The learned regularisation hyperparameter increased most rapidly in the second and output layers, indicating higher vulnerability of deeper layers to poisoning.
  • The $L_2$ norm of model parameters per layer decreased significantly in the last two layers under attack, especially when regularisation was fixed, but remained more stable when $λ$ was learned.
  • When no attack was present, $λ_{\text{RMD}}$ achieved lower test error than fixed $λ$ values, showing that end-to-end hyperparameter learning improves performance in clean settings.

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.