Abstract
Conformal Prediction (CP) provides a rigorous framework for uncertainty quantification, generating prediction sets with guaranteed coverage. However, these guarantees often collapse under adversarial perturbations. Existing robust CP methods typically rely on computationally intensive randomized smoothing or non-scalable formal verification. This paper introduces lip-rcp, a novel approach that leverages Lipschitz-bounded neural networks to provide certifiable robustness at the speed of standard inference. By analytically bounding non-conformity scores, lip-rcp produces tight prediction sets even under attack, demonstrating scalability to large-scale datasets like ImageNet with a 600x speedup over current state-of-the-art methods.
Introduction
In safety-critical applications, knowing when a model is uncertain is as important as the prediction itself. Conformal Prediction (CP) addresses this by outputting a set of labels that contains the ground truth with a user-specified probability (e.g., 90%). Despite its theoretical elegance, CP possesses a significant vulnerability: adversarial attacks. A small, human-imperceptible perturbation to an input can cause the prediction set to exclude the correct label, effectively breaking the statistical guarantee.
To date, practitioners have faced a trade-off between efficiency and robustness. Randomized smoothing requires hundreds of forward passes for a single inference, while formal verification methods are limited to small-scale architectures. This work bridges the gap by utilizing the mathematical properties of Lipschitz-bounded networks to create a robust CP framework that is both provably secure and computationally efficient.
Methodology
The lip-rcp Framework
The core of the proposed method, lip-rcp, relies on the "speed limit" inherent in Lipschitz-bounded networks. In a network with a global Lipschitz constant $L$, a change in input $\epsilon$ results in a maximum output change of $L \cdot \epsilon$. By applying this principle to non-conformity scores—the metrics used to determine the size of CP sets—the authors can analytically calculate the worst-case score shift. This allows for the "inflation" of prediction sets just enough to maintain coverage guarantees under any possible attack within a defined budget, without requiring multiple model evaluations.
LAC Sigmoid Score
Standard CP often utilizes softmax-based scores. However, the authors demonstrate that these can be sub-optimal for Lipschitz-based bounds. They propose the LAC Sigmoid Score, a sigmoid-based function with superior Lipschitz properties. This innovation leads to significantly tighter (smaller) prediction sets, preserving the utility of the model even under adversarial pressure.
Auditing and Theoretical Refinement
Beyond the new framework, the paper contributes two significant theoretical advancements:
- Vanilla CP Auditing: For existing models where retraining is not feasible, the authors provide a statistical tool to audit standard CP. This tool calculates a worst-case bound on coverage drop-off across all potential attack levels simultaneously.
- Theoretical Correction: The authors identify and rectify a subtle overfitting error in previous robust CP literature (notably Gendler et al., 2022), establishing a more rigorous foundation for the field.
Experimental Results
The authors evaluated lip-rcp across several benchmarks, including CIFAR-10, CIFAR-100, Tiny ImageNet, and the full ImageNet dataset. The results highlight a breakthrough in both efficiency and set tightness.
Computational Efficiency
On ImageNet, lip-rcp achieves a processing time of 0.012 seconds per sample. In contrast, the state-of-the-art "CAS" method requires 7.92 seconds per sample. This represents a speedup of over 600x, making robust conformal prediction viable for real-time applications for the first time.
Prediction Set Tightness
Robustness is only useful if the resulting prediction sets remain small enough to be informative. Under an $\ell_2$ attack budget of $\epsilon=0.02$ on ImageNet, lip-rcp maintained a mean set size of 111.0. Competitive methods like CAS produced sets of 1000.0, effectively returning every possible class and rendering the prediction useless.
Discussion and Insights
- Lipschitz-by-Design: The research advocates for the use of 1-Lipschitz architectures (e.g., those using orthonormal weights). These models simplify the mathematics of uncertainty quantification and provide cleaner, tighter bounds than post-hoc Lipschitz estimation.
- Simultaneous Guarantees: Unlike previous methods that require separate calculations for every possible perturbation size, the auditing tools provided here offer bounds valid for all attack levels simultaneously.
Conclusion and Future Work
lip-rcp demonstrates that robust uncertainty quantification does not have to come at the cost of computational overhead. By leveraging the analytical properties of Lipschitz-bounded networks, the authors provide a scalable solution for certifiable robustness on large-scale datasets.
Future research directions include extending this framework to other perturbation types (such as $\ell_\infty$ norms) and expanding the methodology beyond classification to complex tasks like regression and object detection. As Lipschitz-by-design architectures continue to mature, lip-rcp offers a promising path toward truly reliable and efficient AI systems.
Summary updated