Asymmetric Certified Robustness via Feature-Convex Neural Networks

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

TL;DR

This paper introduces Feature-Convex Neural Networks (FCNNs), a new architecture designed for "asymmetric" certified robustness—where protecting one specific "sensitive" class (like malware or spam) is the priority. By combining input-convex architectures with Lipschitz feature maps, the authors derive closed-form, deterministic robustness certificates that are orders of magnitude faster to compute than existing methods while achieving state-of-the-art results for $\ell_1$-norm attacks.

What Problem Does This Paper Address?

Deep neural networks are notoriously vulnerable to adversarial attacks—small, calculated perturbations that flip a model's prediction. While researchers have developed "certified robustness" methods to provide mathematical guarantees of safety, existing approaches have major drawbacks:

  • Randomized Smoothing: Requires thousands of model evaluations per input, making it slow and non-deterministic.
  • Optimization-based Methods: Scale poorly to large networks and often involve complex, expensive solvers.
  • Symmetry Bias: Most methods try to protect all classes equally. However, many real-world problems are asymmetric. In malware detection, we care deeply if malware is misclassified as "clean" (a false negative), but a "clean" file flagged as malware (a false positive) is often just a minor nuisance.

The authors aim to bridge this gap by creating a specialized architecture that provides fast, provable guarantees for a single "sensitive" class.

Methods

The core of the paper is the Feature-Convex Neural Network (FCNN). The architecture is defined as $f(x) = T(g(\phi(x)))$, where:

  1. $\phi(x)$ (Feature Map): A Lipschitz continuous function that transforms the input. This map is crucial for increasing the model's expressive power beyond simple convex shapes.
  2. $g(z)$ (ICNN): An Input-Convex Neural Network. Because $g$ is convex, it is mathematically guaranteed to stay above its tangent plane at any point.
  3. $T$ (Threshold): A simple function that turns the continuous output into a binary classification.

The "Aha!" Moment: Fast Certification

Because the model relies on a convex function ($g$), the authors can use the "tangent plane underapproximation" property to calculate a certified robust radius in closed form.

Figure 1: (a) The asymmetric certified accuracy surface Γ(r, τ) for MNIST 3-8, as described in Section 1.1. The “clean accuracy difference” axis plots α1(τ) −α2(τ), and the black line highlights the certified robustness curve for when clean accuracy is equal across the two classes. (b) Illustration of feature-convex classifiers and their certification. Since g is convex, it is globally underapproximated by its tangent plane at φ(x), yielding certified sets for norm balls in the higher-dimensional feature space. Lipschitzness of φ then yields appropriately scaled certificates in the original input space.

As shown in Figure 1(b) above, the margin between the model's output and the decision threshold, combined with the Lipschitz constant of the feature map and the gradient of the convex function, gives a provable "safe zone" around an input. Unlike other methods, this requires only one forward and one backward pass through the network.

Datasets

The authors evaluated their approach on four standard benchmarks, focusing on binary classification tasks:

  • MNIST 3-8: Distinguishing between the visually similar digits 3 and 8.
  • Malimg: A large-scale malware classification dataset where files are treated as images.
  • Fashion-MNIST: Distinguishing between shirts and T-shirts.
  • CIFAR-10 Cats-vs-Dogs: A challenging natural image task.

Key Insights and Ideas

  • Convexity is Enough: The authors prove a "Universal Approximation Theorem" for these models, showing that they can theoretically fit any convex decision region.
  • High-Dimensional Separability: A surprising theoretical finding is that in high dimensions, even random, unstructured data is highly likely to be "convexly separable." This means a convex boundary can perfectly classify the data, justifying the use of ICNNs for complex tasks like image recognition.
  • The Asymmetric Tradeoff: The authors introduce the "asymmetric robustness surface," which visualizes the tradeoff between clean accuracy on the non-sensitive class and certified robustness on the sensitive class.
Figure 1: (a) The asymmetric certified accuracy surface Γ(r, τ) for MNIST 3-8, as described in Section 1.1. The “clean accuracy difference” axis plots α1(τ) −α2(τ), and the black line highlights the certified robustness curve for when clean accuracy is equal across the two classes. (b) Illustration of feature-convex classifiers and their certification. Since g is convex, it is globally underapproximated by its tangent plane at φ(x), yielding certified sets for norm balls in the higher-dimensional feature space. Lipschitzness of φ then yields appropriately scaled certificates in the original input space.

Key Results

  • Speed: FCNNs are 1,000x to 10,000x faster to certify than randomized smoothing. For example, on the Malimg dataset, FCNNs take ~0.003 seconds per sample, while smoothing takes over 100 seconds.
  • $\ell_1$ Performance: FCNNs achieved state-of-the-art certified $\ell_1$ radii across all datasets, significantly outperforming baselines like $\alpha,\beta$-CROWN and randomized smoothing.
  • Determinism: Unlike smoothing, which provides a probabilistic guarantee (e.g., "99% sure this is robust"), FCNNs provide a deterministic certificate.

Limitations and Future Work

  • Optimization Challenges: While the theory says these models can fit complex data perfectly, the authors found that in practice, training them to 100% accuracy on datasets like CIFAR-10 is still difficult. They pose this as an "Open Problem" for the community.
  • Feature Map Design: The current feature maps are relatively simple (e.g., concatenating the input with its absolute value). More sophisticated, learnable Lipschitz feature maps could further boost performance.
  • Multiclass Extension: The current framework is strictly binary. While the authors suggest "one-versus-all" strategies for multiclass problems, a native multiclass FCNN architecture remains future work.

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