Robust Computer Vision
State the randomized smoothing certificate with statistical bounds and separate adversarial robustness, input shift, and abstention in evaluation.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 3
- Reading time
- 2 min
In this article3 chapters
A certificate specifies a norm and a decision rule
Let a base image classifier \(f\) predict labels, and define its Gaussian-smoothed prediction by the most probable label of \(f(x+\epsilon)\) with \(\epsilon\sim\mathcal N(0,\sigma^2 I)\). Suppose the chosen class has noise probability at least \(p_A\) and every other class has probability at most \(p_B<p_A\). The smoothed decision is constant for perturbations with Euclidean norm less than
\[ R=\frac{\sigma}{2}\bigl[\Phi^{-1}(p_A)-\Phi^{-1}(p_B)\bigr]. \]
\(\Phi\) is the standard normal distribution function. The certificate follows because shifting the mean of an isotropic Gaussian changes the probability of every measurable decision region within bounds determined by the shift norm. A halfspace aligned with the shift is extremal for the relevant Gaussian likelihood ratio. The guarantee applies to the smoothed decision and requires the stated probability bounds.
Probability calibration describes uncertainty on a stated population. Threshold evaluation accounts separately for how a rejection threshold changes the accepted population and the observed error rates.
Sampling uncertainty affects the reported certificate
In practice labels come from finitely many noisy evaluations. Selecting a winner and estimating its probability from the same observations requires accounting for selection. One procedure selects the candidate on a separate sample, then computes a one-sided binomial confidence bound for that candidate on independent samples. Using the complement as a bound on the competitors can certify some examples. The classifier can abstain when the evidence does not yield a positive radius. Report certified accuracy at specified radii across the evaluation set, including abstentions in the denominator.
Distribution shifts need a separate test
A certificate around one image need not cover a camera replacement, changed object prevalence or an unknown class. A separate out-of-distribution detector may reject an unusual input, with thresholds and error rates dependent on its validation population. Bayesian deep learning explains predictive uncertainty and calibration under a specified distribution. Equivariant networks can guarantee consistency for selected transformations of the modeled input, such as rotations represented by their group action, which is a different type of guarantee.[1][2]