TL;DR
This paper introduces a framework to provide formal "certificates" of robustness for regression models—systems that predict continuous values like coordinates or prices rather than discrete labels. By using a specialized $\alpha$-trimming filter within a randomized smoothing process, the authors can mathematically guarantee that a model's prediction will stay within a user-defined error tolerance, even when faced with adversarial attacks.
The Challenge of Continuous Outputs
In the world of machine learning security, "adversarial examples" are small, intentional perturbations to input data (like a few pixels in an image) that cause a model to fail spectacularly. For classifiers, researchers have successfully deployed Randomized Smoothing (RS): a technique where noise is added to an input many times, and the "majority vote" of the outputs is taken. This allows for the calculation of a "certified radius"—a mathematical guarantee that the predicted label won't change within a certain distance of the original input.
However, applying this to regression (where the output is a continuous number, not a category) is much harder. If a single noisy input causes the model to output an "infinite" or drastically skewed value, a simple average of outputs becomes useless. Previous attempts at certified regression usually assumed the model's output was strictly bounded (e.g., between 0 and 1), which fails for real-world tasks like GPS positioning or autonomous vehicle navigation where outputs can theoretically span any value.
Methods: The $\alpha$-Trimming Filter
The authors propose a black-box certification framework that doesn't require knowing the model's internal parameters. Their key innovation is the use of the $\alpha$-trimming filter as the smoothing function.
- Randomized Smoothing: Similar to standard RS, they take an input $x$, add Gaussian noise multiple times, and observe the continuous outputs.
- $\alpha$-Trimming: Instead of a simple average, they sort the outputs and "trim" away the top and bottom $\alpha$ fraction (the outliers). They then average the remaining values.
- This provides a crucial breakdown point: the model remains stable even if a certain percentage of noisy inputs produce wild, unbounded results.
- Probabilistic Certification: They define robustness as the probability that the smoothed prediction falls within an "acceptable region" (e.g., within 0.5 meters of the true location). Using the math of the Regularized Incomplete Beta Function, they derive a formula to calculate the maximum attack radius $\epsilon_x$ that the model can withstand while maintaining this guarantee.
Datasets and Evaluation
The researchers evaluated their method on two main fronts:
- Synthetic Simulations: A complex sine and cubic function ($10 \sin(2x_1) + 2(x_2 - 2)^3$) was used to validate the theoretical bounds in a controlled environment.
- Cambridge Landmarks: A real-world benchmark for visual camera re-localization. They tested on three large-scale scenes: Great Court, King’s College, and St. Mary Church. This task involves predicting 3D coordinates from images, making it a perfect test case for continuous, unbounded regression.
Key Insights and Results
- Regression as "Soft" Classification: The authors show that if you set your confidence requirement to 50%, the math for certifying a regressor becomes identical to certifying a binary classifier. This elegantly bridges the gap between the two fields.
- The Stability of Trimming: Simple averaging has a "zero breakdown point"—one bad outlier ruins the whole average. $\alpha$-trimming allows the model to ignore the most extreme adversarial "hallucinations" caused by the added noise.
- The $\alpha$ Trade-off: The hyperparameter $\alpha$ acts as a dial. Increasing $\alpha$ (trimming more) generally increases the certified robustness radius but might slightly decrease the raw utility/accuracy of the model in noise-free settings.
- Improved Robustness: In the Cambridge Landmarks task, the $\alpha$-trimming approach consistently resulted in a lower certified median error across various attack radii compared to base models or simple averaging.
- Sample Efficiency: Unlike previous regression certification methods that required massive sample sizes to reach asymptotic limits, this framework provides valid certificates with a relatively small number of evaluations (e.g., $n=10$ or $n=100$).
Limitations and Future Work
- $\ell_p$ Norm Constraint: The current theory is optimized for attacks bounded by $\ell_p$ norms (mathematical "distance" in pixel space). It does not yet account for "semantic" adversarial attacks, such as changing the lighting or weather conditions in an image.
- Gaussian Assumption: The certificates currently rely on adding Gaussian noise. The authors suggest that exploring other sampling distributions (like Laplacian noise) might lead to tighter certificates for different types of attacks.
- Computational Overhead: While "black-box," the method still requires running the model multiple times per input to generate the smoothed prediction, which could be slow for real-time applications without optimization.
Summary updated