AI Safety
New method balances accuracy and robustness for AI systems facing adversarial patches
MRCert offers formal guarantees that deep learning models remain safe from adversarial image patches while preserving prediction accuracy, a challenge prior defenses couldn't solve together.
Protecting deployed machine learning systems from adversarial attacks—where small patches are added to images to fool models—has proven surprisingly difficult. Existing defenses force researchers to pick between two competing goals: maintain high accuracy on normal images, or formally verify the model's robustness against patches. MRCert, a new approach presented in research on arXiv, demonstrates that both objectives can be achieved simultaneously.
The core challenge#
When deep learning models operate in the field, they encounter two types of inputs: clean images and images that have been secretly altered with adversarial patches. The problem isn't just preventing wrong predictions—it's proving the model's decisions are trustworthy. Smoothing-based defenses that add noise to verify robustness tend to wreck accuracy on normal inputs. Meanwhile, masking-based methods that try to remove patches can restore correct predictions but offer no formal guarantee that a malicious patch didn't influence the outcome.
Type-specific reasoning#
Rather than apply a single defensive rule to all images, MRCert takes a different path. The method infers different necessary properties of the model depending on whether it's analyzing a benign or potentially compromised input. By tailoring how it handles each case, MRCert can both recover a reliable prediction and formally certify that any remaining patches lie within safe bounds.
What the results show#
Testing on ImageNet with 16-pixel patch attacks, MRCert achieves 35.1% certified adversarial accuracy—meaning it can prove the model's robustness on that fraction of images. In comparison, prior state-of-the-art work (PatchCURE) achieved no certified robustness whatsoever on this benchmark. Crucially, MRCert avoids the accuracy penalties that plague smoothing-based competitors.
Why it matters#
This work represents the first masking-based certified recovery defender that bridges the gap between verification and accuracy. For deployed systems where both trustworthiness and performance matter, that balance could prove essential.

