[Paper Review] Thwarting Adversarial Examples: An $L_0$-RobustSparse Fourier Transform
This paper introduces an $L_0$-robust sparse Fourier transform that recovers approximately sparse signals corrupted by worst-case $L_0$ noise—i.e., a bounded number of arbitrarily corrupted coordinates. By leveraging compressed sensing theory, the method enables provable recovery of clean images from adversarial perturbations, restoring neural network accuracy from as low as 0% to over 85% on MNIST, Fashion-MNIST, and ImageNet under strong $L_0$ attacks like JSMA, CW, and adversarial patches.
We give a new algorithm for approximating the Discrete Fourier transform of an approximately sparse signal that has been corrupted by worst-case $L_0$ noise, namely a bounded number of coordinates of the signal have been corrupted arbitrarily. Our techniques generalize to a wide range of linear transformations that are used in data analysis such as the Discrete Cosine and Sine transforms, the Hadamard transform, and their high-dimensional analogs. We use our algorithm to successfully defend against well known $L_0$ adversaries in the setting of image classification. We give experimental results on the Jacobian-based Saliency Map Attack (JSMA) and the Carlini Wagner (CW) $L_0$ attack on the MNIST and Fashion-MNIST datasets as well as the Adversarial Patch on the ImageNet dataset.
Motivation & Objective
- To develop a general-purpose defense framework against $L_0$ adversarial attacks, where an adversary corrupts a bounded number of input coordinates arbitrarily.
- To provide theoretical guarantees for signal recovery under worst-case $L_0$ noise using sparse recovery techniques grounded in compressed sensing.
- To extend the defense to a wide class of linear transforms, including DFT, DCT, DST, and Hadamard transforms, enabling broad applicability in signal processing and computer vision.
- To demonstrate that image recovery via the proposed transform restores classifier accuracy even after severe $L_0$ attacks, without prior knowledge of the attack strategy.
- To handle challenging real-world $L_0$ threats such as adversarial patches and physical obstructions, where noise is contiguous and sparse in the Fourier domain.
Proposed method
- Proposes a novel $L_0$-robust sparse Fourier transform based on iterative hard thresholding (IHT), which alternately estimates the sparse signal and the noise in the Fourier and standard bases.
- Applies the IHT algorithm to recover the top-$k$ Fourier coefficients of a signal corrupted by $t$-sparse $L_0$ noise, using a fixed number of iterations $T$.
- For contiguous noise like adversarial patches, introduces Patchwise IHT: a block-wise search over $\ell \times \ell$ image patches to detect and correct noise by minimizing the Fourier-domain sparsity of the residual.
- Uses the Fourier basis as a sparsity domain, leveraging the fact that natural images are approximately sparse in DCT or DFT domains, enabling effective compression and recovery.
- Employs a two-step iterative process: (1) estimate the signal in the Fourier domain via hard thresholding of the top-$k$ coefficients, and (2) estimate the noise in the standard basis via hard thresholding of the top-$t$ residual components.
- Theoretical foundation draws from compressed sensing, ensuring recovery guarantees under mild sparsity and incoherence assumptions on the transform matrix.
Experimental results
Research questions
- RQ1Can a sparse Fourier transform be made robust to worst-case $L_0$ noise, where an adversary corrupts a bounded number of coordinates arbitrarily?
- RQ2Can such a robust transform be generalized to other linear transforms like DCT, DST, and Hadamard transforms used in practical signal processing?
- RQ3Does the proposed method restore classifier accuracy after strong $L_0$ attacks like JSMA and CW, even when accuracy drops to near 0%?
- RQ4Can the method detect and correct contiguous $L_0$ noise, such as adversarial patches, when full image recovery is not feasible?
- RQ5Can the defense work without prior knowledge of the attack strategy, relying only on the sparsity of the original signal in a transform domain?
Key findings
- On the MNIST dataset, under a 30-pixel $L_0$ attack, network accuracy dropped from 88.5% to 24.8% but recovered to 83.1% after applying the correction algorithm.
- Under a more aggressive $L_0$ attack with adaptive budget, accuracy fell from 87.8% to 0%, but the proposed method restored it to 85.7%.
- For the adversarial patch attack on ImageNet, Top-1 accuracy dropped from 76.4% to 12.0% after patching, but after correction, it recovered to 59.7%.
- Top-5 accuracy on ImageNet improved from 63.9% (after patching) to 80.4% after correction, with only 4.7% of corrected images misclassified as 'toaster'.
- The Patchwise IHT algorithm successfully detected and corrected adversarial patches by identifying the block with the sparsest residual in the Fourier domain.
- The method achieves provable recovery guarantees under compressed sensing assumptions, making it robust to worst-case $L_0$ adversaries without requiring knowledge of their attack strategy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.