Abstract
We propose a scalable robust learning algorithm combining kernel smoothing and robust optimization. Our method is motivated by the convex analysis perspective of distributionally robust optimization based on probability metrics, such as the Wasserstein distance and the maximum mean discrepancy. We adapt the integral operator using supremal convolution in convex analysis to form a novel function majorant used for enforcing robustness. Our method is simple in form and applies to general loss functions and machine learning models. Exploiting a connection with optimal transport, we prove theoretical guarantees for certified robustness under distribution shift. Furthermore, we report experiments with general machine learning models, such as deep neural networks, to demonstrate competitive performance with the state-of-the-art certifiable robust learning algorithms based on the Wasserstein distance.
Introduction
In real-world applications, machine learning models often encounter test data that deviates from the training distribution. This distribution shift can arise from natural variations or deliberate adversarial attacks. Distributionally Robust Optimization (DRO) provides a framework to address this by training models to perform well over an "ambiguity set" of potential distributions. However, popular approaches like Wasserstein DRO are computationally challenging for complex models like Deep Neural Networks (DNNs). We introduce Adversarially Robust Kernel Smoothing (ARKS), a scalable algorithm that bridges the gap between theoretical DRO and practical deep learning.
Methodology: The $k$-Transform
The core of ARKS is the $k$-transform, a novel function majorant inspired by supremal convolution in convex analysis. Instead of minimizing the standard loss $l(\theta, \xi)$, ARKS minimizes a smoothed version:
$$l^k(\theta, \xi) := \sup_u \{l(\theta, u)k(u, \xi)\}$$
where $k$ is a kernel, such as the Gaussian RBF. This operation creates an upper envelope (majorant) of the loss function, as illustrated in Figure 2.
The ARKS algorithm employs a training process similar to adversarial training. For each data point, it solves an inner maximization problem to find an "adversarial example" $u$ that maximizes the kernel-weighted loss. The model parameters $\theta$ are then updated via gradient descent on this worst-case value. A key parameter is the kernel bandwidth $\sigma$, which acts as a "robustness knob": small $\sigma$ values approach standard Empirical Risk Minimization (ERM), while large values lead to more conservative Robust Optimization (RO).
Experimental Evaluation
We evaluated ARKS across several benchmarks, including Fashion-MNIST with a 5-layer CNN and CIFAR-10 with a ResNet-20 architecture. These experiments demonstrate the scalability of ARKS to modern deep architectures where exact Wasserstein DRO reformulations are computationally infeasible.
As shown in Figure 6, ARKS models maintain significantly higher accuracy under distribution shifts compared to standard ERM. For instance, on Fashion-MNIST, as the perturbation magnitude $\Delta$ increases, the ERM model's error approaches 100%, whereas ARKS (with $\sigma=0.9$) remains below 60%. ARKS also shows competitive and often more stable performance than the state-of-the-art Wasserstein Robust Method (WRM).
Discussion and Insights
ARKS reveals that kernel smoothing, typically used to average out noise, can be repurposed through supremal convolution to enforce robustness. This perspective unifies Optimal Transport-based and Kernel-based DRO frameworks. Furthermore, ARKS provides robustness through an implicit smoothing mechanism, avoiding the need for explicit Lipschitz constants which are difficult to compute for DNNs.
While ARKS is computationally more intensive than standard training due to its inner optimization loop, it offers a principled and scalable approach to certified robustness. Future work includes exploring domain-specific kernels and extending the theoretical convergence analysis for non-convex models.
Summary updated