Conformal Predictions for Probabilistically Robust Scalable Machine Learning Classification
Alberto Carlevaro, Teodoro Alamo Cantarero, Fabrizio Dabbene, Maurizio Mongelli
TL;DR
The paper addresses the need for probabilistic guarantees in binary classification by integrating conformal prediction with scalable classifiers to produce conformal safety regions that cap misclassification probability at a user-specified $\varepsilon$. It derives a score function directly from the classifier, $s(\boldsymbol{x},\hat{y}) = -\hat{y}\bar{\rho}(\boldsymbol{x})$, where $\bar{\rho}(\boldsymbol{x})$ solves $f_\theta(\boldsymbol{x},\bar{\rho}(\boldsymbol{x}))=0$, and defines CSR as inputs whose scores place them on safe, one-label conformal sets. The analytical link between the CSR and the SC level set is established via $\rho_\varepsilon = |s_\varepsilon|$ and $\mathcal{S}_\varepsilon = \{\boldsymbol{x}: f_\theta(\boldsymbol{x},\rho_\varepsilon)<0\}$, with $\mathcal{S}_\varepsilon \subseteq \Sigma_\varepsilon$ and equality when $s_\varepsilon\le 0$; this is validated on a DNS tunneling detection task, demonstrating reliable and efficient conformal predictions. The framework thus offers region-specific probabilistic guarantees, improved interpretability, and potential regulatory advantages, with future work extending to multi-class scenarios and broader domains.
Abstract
Conformal predictions make it possible to define reliable and robust learning algorithms. But they are essentially a method for evaluating whether an algorithm is good enough to be used in practice. To define a reliable learning framework for classification from the very beginning of its design, the concept of scalable classifier was introduced to generalize the concept of classical classifier by linking it to statistical order theory and probabilistic learning theory. In this paper, we analyze the similarities between scalable classifiers and conformal predictions by introducing a new definition of a score function and defining a special set of input variables, the conformal safety set, which can identify patterns in the input space that satisfy the error coverage guarantee, i.e., that the probability of observing the wrong (possibly unsafe) label for points belonging to this set is bounded by a predefined $\varepsilon$ error level. We demonstrate the practical implications of this framework through an application in cybersecurity for identifying DNS tunneling attacks. Our work contributes to the development of probabilistically robust and reliable machine learning models.
