Asymmetric Certified Robustness via Feature-Convex Neural Networks

Samuel Pfrommer, Brendon G. Anderson, Julien Piet, Somayeh Sojoudi · OpenReview

Abstract

Recent works have introduced input-convex neural networks (ICNNs) as learning models with advantageous training, inference, and generalization properties linked to their convex structure. In this paper, we propose a novel feature-convex neural network (FCNN) architecture as the composition of an ICNN with a Lipschitz feature map in order to achieve adversarial robustness. We consider the asymmetric binary classification setting with one "sensitive" class, and for this class we prove deterministic, closed-form, and easily-computable certified robust radii for arbitrary $\ell_p$-norms. We theoretically justify the use of these models by characterizing their decision region geometry, extending the universal approximation theorem for ICNN regression to the classification setting, and proving a lower bound on the probability that such models perfectly fit even unstructured uniformly distributed data in sufficiently high dimensions. Experiments on Malimg malware classification and subsets of MNIST, Fashion-MNIST, and CIFAR-10 datasets show that feature-convex classifiers attain state-of-the-art certified $\ell_1$-radii as well as substantial $\ell_2$- and $\ell_{\infty}$-radii while being far more computationally efficient than any competitive baseline.

Introduction

In the field of adversarial machine learning, the standard objective is to ensure model robustness across all classes. However, many real-world security applications are inherently asymmetric. In contexts like malware detection, spam filtering, or fraud prevention, the primary concern is protecting a "sensitive" class from being misclassified as a "benign" one. For instance, a spammer’s goal is to induce a false negative (making spam appear as not-spam), while the reverse error—misclassifying a legitimate email as spam—is a matter of utility rather than a security breach.

Existing methods for "certified robustness"—which provide mathematical guarantees that a prediction will not change within a certain perturbation radius—face significant hurdles. Randomized smoothing, the current gold standard, is computationally expensive, requiring thousands of model evaluations for a single input to generate a probabilistic guarantee. Optimization-based certificates often fail to scale to modern network architectures. This paper introduces Feature-Convex Neural Networks (FCNNs) to address these challenges, providing deterministic, closed-form certificates that are orders of magnitude faster to compute.

Methodology: Feature-Convex Architectures

The proposed FCNN architecture is defined as a composition: $f(x) = \text{Threshold}(g(\phi(x)))$. This structure relies on two primary components:

  1. The Core ($g$): An Input-Convex Neural Network (ICNN). In an ICNN, weights are constrained to be non-negative, ensuring the output is a convex function of its input. This convexity is the engine behind the model's robustness guarantees.
  2. The Feature Map ($\phi$): Because pure ICNNs are limited in their expressive capacity, the authors prepend a Lipschitz continuous feature map. This map (ranging from simple mean-subtraction to more complex layers) extracts essential features while bounding the sensitivity of the transformation.

The Certification Advantage

The geometric properties of convexity allow for a unique certification mechanism. Because $g$ is convex, it is globally under-approximated by its tangent plane at any given point. This allows the derivation of a closed-form equation for the certified robust radius. Unlike randomized smoothing, which requires thousands of passes, an FCNN requires only a single forward and backward pass (to compute the gradient) to determine exactly how much an attacker can perturb an input before the certificate is invalidated.

Theoretical Foundations

The researchers provide several theoretical justifications for the FCNN approach:

  • Convex Separability in High Dimensions: The paper proves that in high-dimensional spaces, even unstructured, uniformly distributed data is highly likely to be "convexly separable." This suggests that a model with a convex decision boundary can achieve high accuracy on complex datasets, countering the intuition that convexity is too restrictive.
  • Universal Approximation: The authors extend the universal approximation theorem for ICNNs from regression to the classification setting, proving that these models can, in theory, represent any decision boundary given sufficient dimensions.
  • Bypassing the Lipschitz Bottleneck: By focusing on asymmetric robustness (protecting only the sensitive class), FCNNs avoid the "Lipschitz bottleneck" that often limits the performance of symmetric robust models. The model can remain highly sensitive in one direction while being provably robust in the other.

Experimental Results

The FCNN architecture was evaluated on four binary classification tasks: MNIST (3 vs 8), Malimg (malware images), Fashion-MNIST (Shirts vs T-shirts), and CIFAR-10 (Cats vs Dogs).

Efficiency and Speed

FCNNs demonstrated a massive computational advantage, proving to be 100x to 1000x faster to certify than randomized smoothing. On the Malimg dataset, certification took approximately 0.003 seconds per image, compared to over 100 seconds for smoothing-based baselines.

Robustness and Accuracy

  • State-of-the-Art Radii: On the Malimg dataset, FCNNs achieved certified $\ell_1$-radii two orders of magnitude larger than smoothing methods while maintaining a clean accuracy of ~98%.
  • Competitive Performance: Despite the structural constraints of convexity, the models achieved high clean accuracy across benchmarks, including 99% on MNIST and 83% on Fashion-MNIST.

Discussion and Future Work

While FCNNs offer a breakthrough in certification speed and $\ell_1$ robustness, some challenges remain. There is a noticeable "generalization gap"; while theory suggests ICNNs can fit 100% of training data, practical training on complex datasets like CIFAR-10 (73.4% accuracy) has not yet reached that potential. Future research will focus on designing more sophisticated, learnable Lipschitz feature maps and extending the framework from binary to multiclass classification without sacrificing the efficiency of the closed-form certificate.

Summary updated

Abstract

Recent works have introduced input-convex neural networks (ICNNs) as learning models with advantageous training, inference, and generalization properties linked to their convex structure. In this paper, we propose a novel feature-convex neural network architecture as the composition of an ICNN with a Lipschitz feature map in order to achieve adversarial robustness. We consider the asymmetric binary classification setting with one "sensitive" class, and for this class we prove deterministic, closed-form, and easily-computable certified robust radii for arbitrary $\ell_p$-norms. We theoretically justify the use of these models by characterizing their decision region geometry, extending the universal approximation theorem for ICNN regression to the classification setting, and proving a lower bound on the probability that such models perfectly fit even unstructured uniformly distributed data in sufficiently high dimensions. Experiments on Malimg malware classification and subsets of MNIST, Fashion-MNIST, and CIFAR-10 datasets show that feature-convex classifiers attain state-of-the-art certified $\ell_1$-radii as well as substantial $\ell_2$- and $\ell_{\infty}$-radii while being far more computationally efficient than any competitive baseline.
BibTeX
@inproceedings{pfrommer2023asymmetric,
  author = {Samuel Pfrommer and Brendon G. Anderson and Julien Piet and Somayeh Sojoudi},
  title = {{Asymmetric Certified Robustness via Feature-Convex Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=bH4LVNVXUo},
}
Figure