Provably Robust Conformal Prediction with Improved Efficiency

Ge Yan, Yaniv Romano, Tsui-Wei Weng
4/30/2024
cs.LGcs.AIcs.CV

Official code: Trustworthy-ML-Lab/Provably-Robust-Conformal-Prediction (5 stars, last commit 2024-04-03).

Abstract

Conformal prediction is a powerful tool to generate uncertainty sets with guaranteed coverage using any predictive model, under the assumption that the training and test data are i.i.d.. Recently, it has been shown that adversarial examples are able to manipulate conformal methods to construct prediction sets with invalid coverage rates, as the i.i.d. assumption is violated. To address this issue, a recent work, Randomized Smoothed Conformal Prediction (RSCP), was first proposed to certify the robustness of conformal prediction methods to adversarial noise. However, RSCP has two major limitations: (i) its robustness guarantee is flawed when used in practice and (ii) it tends to produce large uncertainty sets. To address these limitations, we first propose a novel framework called RSCP+ to provide provable robustness guarantee in evaluation, which fixes the issues in the original RSCP method. Next, we propose two novel methods, Post-Training Transformation (PTT) and Robust Conformal Training (RCT), to effectively reduce prediction set size with little computation overhead. Experimental results in CIFAR10, CIFAR100, and ImageNet suggest the baseline method only yields trivial predictions including full label set, while our methods could boost the efficiency by up to $4.36\times$, $5.46\times$, and $16.9\times$ respectively and provide practical robustness guarantee. Our codes are available at https://github.com/Trustworthy-ML-Lab/Provably-Robust-Conformal-Prediction.

View on arXivView PDF

Code Implementations(1)

[ICLR 24] This work proposes RSCP+ to provide robustness guarantee in evaluation, and two novel methods PTT and RCT to robustify conformal predictions with improved efficiency through post-hoc transformation and training.

51PythonFeb 9, 20242 years ago
adversarial-machine-learningdeep-learningdeep-neural-networksrobust-machine-learningrobustness

Similar Papers

Cite this paper

@article{yan2024provably,
  title  = {Provably Robust Conformal Prediction with Improved Efficiency},
  author = {Ge Yan and Yaniv Romano and Tsui-Wei Weng},
  year   = {2024},
  eprint = {2404.19651},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.19651v1},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.19651.svg)](https://codeofpaper.com/paper/2404.19651)

Discussion