Scoring Black-Box Models for Adversarial Robustness

Jian Vora, Pranay Reddy Samala · DOI

Abstract

Deep neural networks are notoriously susceptible to adversarial perturbations, yet evaluating their robustness often requires internal model access and labeled data. This paper introduces the "brittle-score," a black-box metric that utilizes Local Interpretable Model-agnostic Explanations (LIME) to assess model vulnerability. By analyzing the $l_1$-norm of LIME weights, we demonstrate that robust models produce sharper, more localized explanations compared to brittle models. Experiments across standard benchmarks show that the brittle-score effectively ranks models by their adversarial robustness without requiring weights or labels.

Introduction

Adversarial robustness is a critical property for deploying deep learning models in safety-sensitive applications. However, standard evaluation techniques like white-box attacks (e.g., Projected Gradient Descent) require access to model gradients, which are unavailable for black-box APIs. Furthermore, generating adversarial examples is computationally intensive and typically requires labeled datasets. To bridge this gap, we propose a label-free, black-box metric called the brittle-score.

Methodology: The Brittle-Score

The brittle-score is grounded in the "Linear Explanation Hypothesis," which posits that adversarial vulnerability stems from excessive linearity in high-dimensional spaces. We utilize LIME to approximate the model's local behavior around a specific input $x$. LIME fits a simple linear model to the model's outputs for perturbed versions of the input.

The brittle-score is defined as the average $l_1$-norm of the LIME coefficients across a dataset: $$\text{brittle-score} = \frac{1}{N} \sum_{i=1}^N \|w_i\|_1$$

The intuition is that a robust model should be "smooth": small input changes should not lead to wild swings in the output. Therefore, the local linear approximation should have small coefficients. If the weights are large and scattered, the model is considered "brittle."

LIME-based explanations for MNIST digits 3 and 9, showing positive and negative regions used to calculate the brittle-score.

Key Insights and Results

Our analysis reveals that robustness is visually manifest in model explanations. Robust models tend to produce "sharper" explanations where the LIME weights focus tightly on the actual object (e.g., the digits in MNIST). In contrast, non-robust models exhibit "noisy" weights spread across the background.

Correlation with Robust Accuracy

We validated the brittle-score using models from RobustBench across MNIST, CIFAR-10, CIFAR-100, and ImageNet. We found a consistent inverse correlation between the brittle-score and the gold-standard "robust accuracy." For instance, on CIFAR-10, the most robust models (e.g., Rebuffi et al.) consistently yielded the lowest brittle-scores (0.5956), while standard non-robust models had significantly higher scores (0.6028).

Label-Free Evaluation

A significant advantage of the brittle-score is its independence from ground-truth labels. Since the metric measures the sensitivity of the model's output rather than its correctness, it can be used to monitor the robustness of models deployed on unlabeled real-world data streams.

Conclusion and Future Work

The brittle-score provides a computationally feasible and model-agnostic way to rank adversarial robustness. While currently focused on computer vision, future work will explore its applicability to natural language processing and tabular data. Additionally, establishing a formal theoretical link between the $l_1$-norm of LIME weights and formal adversarial bounds remains a primary research objective.

Summary updated

BibTeX
@inproceedings{vora2023scoring,
  author = {Jian Vora and Pranay Reddy Samala},
  title = {{Scoring Black-Box Models for Adversarial Robustness}},
  booktitle = {AdvML-Frontiers @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=iy4xRjfdid},
}
Figure