Robust Classification Under 𝓁0 Attack for the Gaussian Mixture Model

Payam Delgosha, Hamed Hassani, Ramtin Pedarsani

Abstract

It is well-known that machine learning models are vulnerable to small but cleverly-designed adversarial perturbations that can cause misclassification. While there has been major progress in designing attacks and defenses for various adversarial settings, many fundamental and theoretical problems are yet to be resolved. In this paper, we consider classification in the presence of $\ell_0$-bounded adversarial perturbations, a.k.a. sparse attacks. This setting is significantly different from other $\ell_p$-adversarial settings, with $p\geq 1$, as the $\ell_0$-ball is non-convex and highly non-smooth. Under the assumption that data is distributed according to the Gaussian mixture model, our goal is to characterize the optimal robust classifier and the corresponding robust classification error as well as a variety of trade-offs between robustness, accuracy, and the adversary's budget. To this end, we develop a novel classification algorithm called FilTrun that has two main modules: Filtration and Truncation. The key idea of our method is to first filter out the non-robust coordinates of the input and then apply a carefully-designed truncated inner product for classification. By analyzing the performance of FilTrun, we derive an upper bound on the optimal robust classification error. We also find a lower bound by designing a specific adversarial strategy that enables us to derive the corresponding robust classifier and its achieved error. For the case that the covariance matrix of the Gaussian mixtures is diagonal, we show that as the input's dimension gets large, the upper and lower bounds converge; i.e. we characterize the asymptotically-optimal robust classifier. Throughout, we discuss several examples that illustrate interesting behaviors such as the existence of a phase transition for adversary's budget determining whether the effect of adversarial perturbation can be fully neutralized.

Introduction

Adversarial machine learning has primarily focused on $\ell_2$ or $\ell_\infty$ attacks, where perturbations are spread across all features. However, sparse attacks (constrained by the $\ell_0$-norm) present a unique challenge. In this regime, an adversary can change only a few coordinates, but those changes can be of arbitrary magnitude. Because the $\ell_0$-ball is non-convex and non-smooth, standard linear classifiers—and even many non-linear ones like ReLU networks—are highly vulnerable. A single "blown-out" feature can dominate a weighted sum, completely flipping a prediction.

This research establishes a theoretical foundation for defending against such attacks by characterizing the optimal robust classifier for the Gaussian Mixture Model (GMM).

The FilTrun Algorithm

To address the vulnerability of linear operations, the authors propose FilTrun (Filtration + Truncation), a two-stage non-linear classification pipeline designed to neutralize sparse perturbations.

  1. Filtration: The algorithm identifies "non-robust" coordinates. These are features that, while potentially informative in a clean setting, are so susceptible to manipulation that they pose a net risk to the system's integrity. These coordinates are zeroed out.
  2. Truncation: For the remaining features, the algorithm replaces the standard inner product with a $k$-truncated inner product. By sorting the element-wise products and removing the $k$ largest and $k$ smallest values before summing, the algorithm prevents an adversary from using their budget $k$ to create extreme outliers that would otherwise dictate the classification outcome.

Theoretical Framework: Gaussian Mixture Models

The study utilizes a binary GMM where labels $y \in \{\pm 1\}$ and inputs $x \sim \mathcal{N}(y\mu, \Sigma)$. This stylized model allows for rigorous mathematical analysis of the trade-offs between informativeness and robustness.

By analyzing the likelihood ratios of individual coordinates (as seen in the figure above), the researchers can determine which features are "weak links." In the case of diagonal covariance matrices (where features are independent conditioned on the label), the authors prove that FilTrun is asymptotically optimal. As the dimension $d$ grows, the error achieved by FilTrun matches the theoretical lower bound derived from a randomized adversarial strategy.

Key Insights and Results

  • Linearity is a Liability: The research reinforces that robustness against $\ell_0$ attacks necessitates non-linearity. The truncation step is essential to prevent single-coordinate dominance.
  • Phase Transitions: A striking discovery is the existence of "neutralization regimes." If the adversary's budget $k$ is below a certain threshold, the robust error remains identical to the standard error—the attack is effectively neutralized. However, crossing this threshold can lead to a sharp "phase transition" where performance drops precipitously.
  • Informativeness vs. Robustness: The filtration step highlights a strategic trade-off: it is often better to ignore highly informative but easily manipulated features to maintain overall system reliability.

Conclusion

While the current proof of optimality is focused on diagonal covariance matrices, the FilTrun framework provides a robust blueprint for defending against sparse attacks. Future work involves extending these results to correlated features and exploring how filtration and truncation modules can be integrated into deep learning architectures to provide practical defenses for complex, real-world datasets.

Summary updated

BibTeX
@article{delgosha2022robust,
  author = {Payam Delgosha and Hamed Hassani and Ramtin Pedarsani},
  title = {{Robust Classification Under 𝓁0 Attack for the Gaussian Mixture Model}},
  journal = {SIAM J. Math. Data Sci.},
  year = {2022},
  doi = {10.1137/21m1426286},
}
Figure