Skip to main content
QUICK REVIEW

[Paper Review] Energy-Latency Attacks via Sponge Poisoning

Antonio Emanuele Ciná, Ambra Demontis|arXiv (Cornell University)|Mar 14, 2022
Adversarial Robustness in Machine LearningComputer Science11 citations
TL;DR

This paper introduces sponge poisoning, a novel training-time attack that increases energy consumption and latency in DNNs by manipulating only a few model updates during training, rendering ASIC accelerators ineffective. The attack preserves model accuracy while maximizing neuron firing across all test inputs, making it highly effective in outsourced and federated learning settings.

ABSTRACT

Sponge examples are test-time inputs optimized to increase energy consumption and prediction latency of deep networks deployed on hardware accelerators. By increasing the fraction of neurons activated during classification, these attacks reduce sparsity in network activation patterns, worsening the performance of hardware accelerators. In this work, we present a novel training-time attack, named sponge poisoning, which aims to worsen energy consumption and prediction latency of neural networks on any test input without affecting classification accuracy. To stage this attack, we assume that the attacker can control only a few model updates during training -- a likely scenario, e.g., when model training is outsourced to an untrusted third party or distributed via federated learning. Our extensive experiments on image classification tasks show that sponge poisoning is effective, and that fine-tuning poisoned models to repair them poses prohibitive costs for most users, highlighting that tackling sponge poisoning remains an open issue.

Motivation & Objective

  • To identify and exploit a new vulnerability in machine learning security: training-time poisoning that increases energy consumption and latency.
  • To demonstrate that attackers can compromise DNNs during training by subtly manipulating only a few gradient updates.
  • To show that this attack undermines the benefits of sparsity-based ASIC accelerators, which are designed to reduce energy use.
  • To analyze the impact of sponge poisoning on model activations and identify vulnerable components like ReLU and MaxPooling layers.
  • To evaluate the feasibility of countermeasures, showing that sanitization is often too costly for practical deployment.

Proposed method

  • Proposes a novel energy objective function that quantifies and maximizes the number of firing neurons during training, directly targeting energy consumption.
  • Designs a poisoning attack that integrates the energy objective into the training process, allowing the attacker to control only a few model updates.
  • Uses a constrained optimization framework to balance energy increase with maintained or improved model accuracy.
  • Employs a differentiable approximation of ASIC accelerator behavior to model energy savings based on activation sparsity.
  • Tunes hyperparameters like λ to adapt the attack to hardware constraints, maximizing energy use within specified limits.
  • Analyzes model internals to identify components (e.g., ReLU, MaxPooling) most susceptible to increased firing due to poisoning.

Experimental results

Research questions

  • RQ1Can a poisoning attack at training time be designed to increase energy consumption and latency across all test inputs, without compromising model accuracy?
  • RQ2Is it feasible to bypass the benefits of sparsity-based ASIC accelerators through training-time manipulation with minimal control over model updates?
  • RQ3Which model components are most vulnerable to increased neuron firing under sponge poisoning?
  • RQ4Can the attack be adapted to respect hardware-imposed energy consumption constraints?
  • RQ5Are existing sanitization-based countermeasures effective or prohibitively expensive for reversing the attack?

Key findings

  • Sponge poisoning successfully increases energy consumption and latency across all test inputs by manipulating only a few model updates during training.
  • The attack renders sparsity-based ASIC accelerators ineffective, almost completely nullifying their energy-saving benefits.
  • ReLU and MaxPooling layers are particularly vulnerable, as they exhibit significantly higher neuron firing rates in poisoned models.
  • The attack remains effective even when the attacker controls only a small number of updates, making it viable in federated learning and outsourced training scenarios.
  • Sanitization-based countermeasures are shown to be computationally expensive and impractical for most users, suggesting the attack is effectively irreversible without full retraining.
  • The attack can be tuned to maximize energy use within a given hardware constraint by adjusting the hyperparameter λ.

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.