NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PatchCURE: Improving Certifiable Robustness, Model Utility, and Computation Efficiency of Adversarial Patch Defenses

Chong Xiang, Tong Wu, Sihui Dai, Jonathan Petit, Suman Jana, Prateek Mittal

TL;DR

Certifiably robust defenses against adversarial patches have long forced a compromise between high robustness, clean accuracy, and inference speed. PatchCURE unifies small receptive field (SRF) and large receptive field (LRF) approaches by splitting the model into an early SRF stage and a late LRF stage, enabling feature reuse alongside certified masking. This achieves near-vanilla inference speeds on ImageNet while outperforming existing efficient defenses by over 18% in certified robust accuracy.

What Problem Does This Paper Address?

Adversarial patch attacks introduce localized malicious pixel patterns (such as stickers on traffic signs or physical objects) that can force vision models into making incorrect predictions. While certifiably robust defenses provide mathematical guarantees against any patch placed within a bounded budget, they face an intense three-way trade-off:

  1. Certifiable Robustness: Provable protection against worst-case adaptive attacks.
  2. Model Utility: Maintaining high accuracy on unperturbed, clean images.
  3. Computation Efficiency: Keeping inference latency and throughput practical for real-world deployment.

Prior work falls into two extremes:

  • Small Receptive Field (SRF) defenses (e.g., PatchGuard) bound patch propagation early, enabling single-pass, fast inference, but severely degrade model capacity and clean accuracy.
  • Large Receptive Field (LRF) defenses (e.g., PatchCleanser) mask inputs and run full deep models dozens of times per image, achieving state-of-the-art accuracy and robustness at the cost of a 10×–100× inference slowdown.

No prior framework systematically bridged this gap.

Methods

PatchCURE unifies SRF and LRF techniques by decomposing a base vision model into three components:

  1. SRF Sub-model ($M_{\text{srf}}$): The first $k$ layers of a base model are modified to restrict the receptive field. For Vision Transformers (ViTs), the authors introduce ViT-SRF, which replaces global self-attention with local attention over token sub-groups (e.g., $2 \times 2$ or $14 \times 1$ tokens). This limits the number of corrupted tokens to a small, provable bound while preserving standard ViT computational speed.
  2. Secure Operation Layer ($SO$): An algorithm inserted between sub-models (primarily adapting PatchCleanser's double-masking) that masks out corrupted regions on the intermediate feature tensor rather than in pixel space.
  3. LRF Sub-model ($M_{\text{lrf}}$): The remaining backbone and classification layers ($k$ to $L$). Because masking runs on intermediate features, the expensive early feature extraction runs only once, while only the lightweight downstream LRF layers are evaluated repeatedly.

The Splitting Layer ($k$) as a Pareto Knob: * $k = L$ (Pure SRF): The entire backbone runs once as SRF; the LRF sub-model is just global pooling and a linear head. Inference speed nearly matches an undefended model. * $k = 0$ (Pure LRF): Matches standard PatchCleanser operating on raw pixels. * $0 < k < L$: Adjusts the model split to smoothly balance throughput against certified robustness and clean accuracy.

Input Image ──> [ SRF Sub-model (Single Pass) ] 
                     │
               Intermediate Feature Map (Partially Corrupted)
                     │
          [ Secure Masking Operation + LRF Sub-model ] ──> Robust Prediction
               (Lightweight Multiple Calls)

Datasets

  • ImageNet-1k: Primary benchmark (1.3M training, 50k validation images, resized to $224 \times 224$).
  • CIFAR-10: Secondary benchmark evaluating ViT-based architectures on smaller datasets (with CIFAR-100 and SVHN evaluated in the authors' supplementary report).
  • No new benchmarks were introduced.

Key Insights and Ideas

  • Receptive field governs the defense design space: Where the defense operates (pixel-level vs. feature-level) depends directly on feature receptive field sizes. Limiting receptive fields early localizes attack contamination; expanding them late restores representational capacity.
  • Feature reuse cures LRF latency: Masking in feature space eliminates the main bottleneck of input-space masking defenses—redundant re-computation of early convolutional/transformer layers across dozens of masked variants.
  • Local attention creates fast SRFs: Prior ViT-based patch defenses relied on smoothed ensembling across crops (costing >10× compute). Enforcing local attention sub-groups limits token corruption without incurring significant FLOP or latency penalties.

Key Results

  • Efficiency with State-of-the-Art Robustness: On ImageNet against a 2% square patch, the efficient variant PCURE-ViT14x2-k12 achieves 189.9 images/s (near undefended ViT-B’s 191.7 images/s), with 78.3% clean accuracy and 44.2% certified robust accuracy.
  • Dominating Prior Efficient Defenses: Compared to PatchGuard (177.4 img/s, 54.6% clean, 26.0% certified), PatchCURE provides an absolute gain of +23.7% clean and +18.2% certified robust accuracy.
  • Bridging the Pareto Frontier: Adjusting $k$ from 12 down to 0 on ViT enables a smooth trajectory from 189.9 img/s (44.2% certified) up to 2.0 img/s (61.6% certified), giving practitioners direct control over latency-security budgets.
  • Compatibility: Validated across both CNN (ResNet/BagNet) and Vision Transformer backbones, as well as alternative secure operations like Minority Reports for attack detection.

Limitations and Future Work

  • Patch Shape/Size Priors: The double-masking mechanism still requires an estimated upper bound on the patch's size and geometry to guarantee certification.
  • Hardware Context: Experiments were conducted on a desktop GPU (NVIDIA RTX A4000); optimization and deployment on resource-constrained embedded edge devices remain unexplored.
  • Orthogonal Defense Integration: Exploring combinations of test-time certified architectures like PatchCURE with training-time certified regimes (e.g., Interval Bound Propagation) is left for future research.

Summary updated

BibTeX
@inproceedings{xiang2024patchcure,
  author = {Chong Xiang and Tong Wu and Sihui Dai and Jonathan Petit and Suman Jana and Prateek Mittal},
  title = {{PatchCURE: Improving Certifiable Robustness, Model Utility, and Computation Efficiency of Adversarial Patch Defenses}},
  booktitle = {USENIX Security},
  year = {2024},
  url = {https://openreview.net/forum?id=LHQZIr1arW},
}
Figure