Skip to content

Code for the ICLR 2023 paper Sound Randomized Smoothing in Floating-Point Arithmetics

Notifications You must be signed in to change notification settings

vvoracek/Sound-Randomized-Smoothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Sound-Randomized-Smoothing

Code for the paper Sound Randomized Smoothing in Floating-Point Arithmetics https://arxiv.org/abs/2207.07209

It turns out that the standard implementation of randomized smoothing suffers from floating point errors. This sampler fixes the problem.

The provided script contains normal distribution certification procedure for $\ell_2$ certified robustness discussed in the paper.

the usage is as follows:

from certifier import Certifier

Cert = Certifier(sigma=0.5)
certificates = Cert.certify(model, dataset='cifar10')

where model is a base classifier accepting an image tensors in the form NCHW

Additional parameters of Certifier and certify are documented in the script.

About

Code for the ICLR 2023 paper Sound Randomized Smoothing in Floating-Point Arithmetics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages