Sparse Activations as Conformal Predictors

Margarida M. Campos, João Calém, Sophia Sklaviadis, Mário A. T. Figueiredo, André F. T. Martins
2/20/2025
cs.LG

No official code found. Best implementation: deep-spin/sparse-activations-cp (2 stars, last commit 2025-04-27).

Abstract

Conformal prediction is a distribution-free framework for uncertainty quantification that replaces point predictions with sets, offering marginal coverage guarantees (i.e., ensuring that the prediction sets contain the true label with a specified probability, in expectation). In this paper, we uncover a novel connection between conformal prediction and sparse softmax-like transformations, such as sparsemax and $γ$-entmax (with $γ> 1$), which may assign nonzero probability only to a subset of labels. We introduce new non-conformity scores for classification that make the calibration process correspond to the widely used temperature scaling method. At test time, applying these sparse transformations with the calibrated temperature leads to a support set (i.e., the set of labels with nonzero probability) that automatically inherits the coverage guarantees of conformal prediction. Through experiments on computer vision and text classification benchmarks, we demonstrate that the proposed method achieves competitive results in terms of coverage, efficiency, and adaptiveness compared to standard non-conformity scores based on softmax.

View on arXivView PDF

Code Implementations(1)

Repository containing code to reproduce results of the paper "Sparse Activations as Conformal Predictors".

21Shell, PythonNov 19, 20241 years ago

Similar Papers

Cite this paper

@article{campos2025sparse,
  title  = {Sparse Activations as Conformal Predictors},
  author = {Margarida M. Campos and João Calém and Sophia Sklaviadis and Mário A. T. Figueiredo and André F. T. Martins},
  year   = {2025},
  eprint = {2502.14773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.14773v2}
}

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/2502.14773.svg)](https://codeofpaper.com/paper/2502.14773)

Discussion