Ptolemy: Architecture Support for Robust Deep Learning

Yiming Gan, Yuxian Qiu, Jingwen Leng, Minyi Guo, Yuhao Zhu
8/23/2020
cs.AReess.SP

Official code: Ptolemy-DL/Ptolemy (94 stars, Python, last commit 2021-06-15).

Abstract

Deep learning is vulnerable to adversarial attacks, where carefully-crafted input perturbations could mislead a well-trained Deep Neural Network to produce incorrect results. Today's countermeasures to adversarial attacks either do not have capability to detect adversarial samples at inference time, or introduce prohibitively high overhead to be practical at inference time.

Show full abstract

We propose Ptolemy, an algorithm-architecture co-designed system that detects adversarial attacks at inference time with low overhead and high accuracy.We exploit the synergies between DNN inference and imperative program execution: an input to a DNN uniquely activates a set of neurons that contribute significantly to the inference output, analogous to the sequence of basic blocks exercised by an input in a conventional program. Critically, we observe that adversarial samples tend to activate distinctive paths from those of benign inputs. Leveraging this insight, we propose an adversarial sample detection framework, which uses canary paths generated from offline profiling to detect adversarial samples at runtime. The Ptolemy compiler along with the co-designed hardware enable efficient execution by exploiting the unique algorithmic characteristics. Extensive evaluations show that Ptolemy achieves higher or similar adversarial example detection accuracy than today's mechanisms with a much lower runtime (as low as 2%) overhead.

View on arXivView PDF

Code Implementations(1)

Ptolemy-DL/PtolemyOfficial100%
943Python, Jupyter NotebookAug 3, 20205 years agoNOASSERTION

Similar Papers

Cite this paper

@article{gan2020ptolemy,
  title  = {Ptolemy: Architecture Support for Robust Deep Learning},
  author = {Yiming Gan and Yuxian Qiu and Jingwen Leng and Minyi Guo and Yuhao Zhu},
  year   = {2020},
  eprint = {2008.09954},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.09954}
}

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/2008.09954.svg)](https://codeofpaper.com/paper/2008.09954)

Discussion