What happens to a certified defense against adversarial patches when the model is quantized, pruned or distilled for an edge device? We trained, compressed, attacked and certified 148 CNNs across four settings to find out.
These are the real universal patches our pipeline optimized against the baseline ResNet-18, one per target class. Drag the patch over the CIFAR-10 image, then run PatchCleanser's masks.
Every model passes through the same stages; each stage writes JSON that feeds the statistics, the paper and this page.
ResNet-18, MobileNetV2, ResNet-50 on CIFAR-10, GTSRB, ImageNette; 3 seeds
Mask-augmented retraining, so the model tolerates occlusion
FP16, INT8, INT4 · pruning 50–87.5% · dense-small · distillation
Universal and LaVAN patches; straight-through and BPDA gradients
PatchCleanser double masking on 1,000 images per model
13×13 matrix: full → compressed and back
Occlusion accuracy, margin, gradients, CKA vs. outcomes
Mean over three training seeds. Weight-preserving compression (quantization, pruning) stays flat; retraining a smaller network drops.
Change in certified accuracy (5 px patch, defended models) of each 4× arm relative to its own baseline, with 95% intervals. Filled dots: interval excludes zero.
Four findings, each backed by paired statistics over seeds.
Built end to end on a single lab GPU with frequent power cuts.
The final follow-up queue alone was 271 runs (about 70 GPU-hours on one RTX A4000). Each run is idempotent and skipped once its result exists, so the queue survives power losses and restarts.
Fake-quant with a straight-through estimator and BN folding, plus a BPDA attack through the FP32 copy, so quantized models cannot hide behind gradient masking.
Three seeds with paired t-intervals and an image bootstrap for certification; a claim is made only when the interval excludes zero.
PatchCleanser implemented from the paper, with exhaustive checking that the mask set covers every patch position.
Every number in the paper and on this page is a macro generated from result files, with an automatic check that each one resolves.
Configs, logs and per-run JSON are in the repository; one command regenerates statistics, tables, figures and this page's data.