atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

DeSparsify: Adversarial Attack Against Token Sparsification Mechanisms

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial perturbations beyond images · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DeSparsify, a PGD-based adversarial attack that makes token-sparsification vision transformers (ATS, AdaViT, A-ViT) keep all tokens while preserving the original classification, degrading availability via higher GFLOPS, memory, and energy.

Problem

Token sparsification mechanisms make vision transformers input-dependent and efficient on average, but this dynamism opens a worst-case availability attack surface where crafted inputs force full computation.

Approach

Craft imperceptible adversarial perturbations with a custom mechanism-specific loss (KL divergence toward uniform scores for ATS, MSE toward keep decisions for AdaViT, cumulative halting score toward zero for A-ViT) plus a classification-preservation term, so sparsification is disabled while predictions remain unchanged.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply the DeSparsify single-image perturbationDeiT-s + ATS · ImageNet-1K validationGFLOPS: 3.09 -> 4.20 (74%)Helped
Apply the DeSparsify single-image perturbationDeiT-s + AdaViT · ImageNet-1K validationGFLOPS: 2.25 -> 3.27 (44%)Helped
Apply the DeSparsify single-image perturbationDeiT-s + A-ViT · ImageNet-1K validationGFLOPS: 3.57 -> 4.6 (100%)Helped
Use a class-universal perturbationDeiT-s + ATS · ImageNet-1K validationGFLOPS: 3.09 -> 3.40 (21%)Helped
Use a class-universal perturbationDeiT-s + AdaViT · ImageNet-1K validationGFLOPS: 2.25 -> 2.94 (30%)Helped
Use a class-universal perturbationDeiT-s + A-ViT · ImageNet-1K validationGFLOPS: 3.57 -> 4.07 (49%)Helped
Apply the DeSparsify single-image perturbationDeiT-s + ATS · ImageNet-1K validationmemory: 240 -> 329 (1.37×)Helped
Apply the DeSparsify single-image perturbationDeiT-s + ATS · ImageNet-1K validationenergy: 2663 -> 4595 (1.72×)Helped
Apply the DeSparsify single-image perturbationDeiT-s + ATS · ImageNet-1K validationaccuracy: 88.5% -> 88.2%No clear effect
Train the perturbation on all three token-sparsification mechanismsDeiT-s with ATS, AdaViT, and A-ViT · ImageNet-1K validationGFLOPSHelped
Set λ to 0 rather than the accuracy-preserving value (ablation)DeSparsify on DeiT-s + ATS · ImageNet-1K validationaccuracy: ∼20%Hurt
Increase λ from 0 toward 8 · 10−4 (ablation)DeSparsify on DeiT-s + ATS · ImageNet-1K validationaccuracy: a marginal 1% changeHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet CIFAR-10

Benchmarks: ImageNet validation CIFAR-10 validation

Metrics: accuracy GFLOPS token utilization ratio GPU memory energy consumption throughput

Baselines: Random perturbation Standard PGD Sponge Examples Clean w/o

Builds on: PGD sponge examples ATS AdaViT A-ViT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy