LiBRe: A Practical Bayesian Approach to Adversarial Detection

Zhijie Deng, Xiao Yang, Shizhen Xu, Hang Su, Jun Zhu
3/27/2021
cs.LGcs.CRcs.CV
bayesian

Official code: thudzj/ScalableBDL (33 stars, Python, MIT, last commit 2024-07-25).

Abstract

Despite their appealing flexibility, deep neural networks (DNNs) are vulnerable against adversarial examples. Various adversarial defense strategies have been proposed to resolve this problem, but they typically demonstrate restricted practicability owing to unsurmountable compromise on universality, effectiveness, or efficiency.

Show full abstract

In this work, we propose a more practical approach, Lightweight Bayesian Refinement (LiBRe), in the spirit of leveraging Bayesian neural networks (BNNs) for adversarial detection. Empowered by the task and attack agnostic modeling under Bayes principle, LiBRe can endow a variety of pre-trained task-dependent DNNs with the ability of defending heterogeneous adversarial attacks at a low cost. We develop and integrate advanced learning techniques to make LiBRe appropriate for adversarial detection. Concretely, we build the few-layer deep ensemble variational and adopt the pre-training & fine-tuning workflow to boost the effectiveness and efficiency of LiBRe. We further provide a novel insight to realise adversarial detection-oriented uncertainty quantification without inefficiently crafting adversarial examples during training. Extensive empirical studies covering a wide range of scenarios verify the practicability of LiBRe. We also conduct thorough ablation studies to evidence the superiority of our modeling and learning strategies.

View on arXivView PDF

Code Implementations(1)

thudzj/ScalableBDLOfficial100%
MIT

Code for "BayesAdapter: Being Bayesian, Inexpensively and Robustly, via Bayeisan Fine-tuning"

337PythonOct 5, 20202 years agoMIT
adversarial-detectionbayesian-deep-learningbayesian-neural-networksfine-tuningood-detection+1 more

Similar Papers

Cite this paper

@article{deng2021libre,
  title  = {LiBRe: A Practical Bayesian Approach to Adversarial Detection},
  author = {Zhijie Deng and Xiao Yang and Shizhen Xu and Hang Su and Jun Zhu},
  year   = {2021},
  eprint = {2103.14835},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.14835}
}

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

Discussion