A tool for benchmarking adversarial robustness of pixel-wise prediction tasks.
Reason this release was yanked:
Non-ideal description
Project description
CosPGD
Introduction
While neural networks allow highly accurate predictions in many tasks, their lack of robustness towards even slight input perturbations hampers their deployment in many real-world applications. Recent research towards evaluating the robustness of neural networks such as the seminal projected gradient descent (PGD) attack and subsequent works have drawn significant attention, as they provide an effective insight into the quality of representations learned by the network. However, these methods predominantly focus on image classification tasks, while only a few approaches specifically address the analysis of pixel-wise prediction tasks such as semantic segmentation, optical flow, disparity estimation, and others, respectively.
Thus, there is a lack of a unified adversarial robustness benchmarking tool (algorithm) that is applicable to all such pixel-wise prediction tasks. In this work, we close this gap and propose CosPGD, a novel white-box adversarial attack that allows optimizing dedicated attacks for any pixel-wise prediction task in a unified setting. It leverages the cosine similarity between the distributions over the predictions and ground truth (or target) to extend directly from classification tasks to regression settings. We outperform the SotA on semantic segmentation attacks in our experiments on PASCAL VOC2012. Further, we set a new benchmark for adversarial attacks on optical flow displaying the ability to extend to any pixel-wise prediction task.
For more details please see our Arxiv paper.
Contents
In this repository we provide sample code for comparing CosPGD to other adversarial attacks on different networks and downstream tasks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cospgd-0.1.2.tar.gz.
File metadata
- Download URL: cospgd-0.1.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
254f0522112e3e5dddb5e27b77b9c03b98ab17eae8f8050d1e7998014f216caf
|
|
| MD5 |
805dde925c200df0ea7a25235893a142
|
|
| BLAKE2b-256 |
818201e528717eb387a7d38b74cf3542c62f7be95701834e3928ce204207b31b
|
File details
Details for the file cospgd-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: cospgd-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55fd21f3b7f9a0bfddabfb0188e21f8efb350b5987c7b777e4cb0d36e06c9c12
|
|
| MD5 |
dabcbc7312bfc767f7e12d2754089da2
|
|
| BLAKE2b-256 |
7dec2ad244efbac49f307c0cd75946a53c476ab122bfa493c3d978596c051964
|