Sponge Examples: Energy-Latency Attacks on Neural Networks

Ilia Shumailov, Yiren Zhao, Daniel Bates, Nicolas Papernot, Robert Mullins +1 more
6/5/2020
222 citations
cs.LGcs.CLcs.CR

Official code: iliaishacked/sponge_examples (45 stars, Python, MIT, last commit 2021-10-14).

Abstract

The high energy costs of neural network training and inference led to the use of acceleration hardware such as GPUs and TPUs. While this enabled us to train large-scale neural networks in datacenters and deploy them on edge devices, the focus so far is on average-case performance.

Show full abstract

In this work, we introduce a novel threat vector against neural networks whose energy consumption or decision latency are critical. We show how adversaries can exploit carefully crafted $\boldsymbol{sponge}~\boldsymbol{examples}$, which are inputs designed to maximise energy consumption and latency. We mount two variants of this attack on established vision and language models, increasing energy consumption by a factor of 10 to 200. Our attacks can also be used to delay decisions where a network has critical real-time performance, such as in perception for autonomous vehicles. We demonstrate the portability of our malicious inputs across CPUs and a variety of hardware accelerator chips including GPUs, and an ASIC simulator. We conclude by proposing a defense strategy which mitigates our attack by shifting the analysis of energy consumption in hardware from an average-case to a worst-case perspective.

View on arXivView PDF

Code Implementations(1)

MIT
459PythonMar 12, 20215 years agoMIT

Similar Papers

Cite this paper

@article{shumailov2020sponge,
  title  = {Sponge Examples: Energy-Latency Attacks on Neural Networks},
  author = {Ilia Shumailov and Yiren Zhao and Daniel Bates and Nicolas Papernot and Robert Mullins and Ross Anderson},
  year   = {2020},
  eprint = {2006.03463},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.03463}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.03463.svg)](https://codeofpaper.com/paper/2006.03463)

Discussion