You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'bert' - finetuning of Bert model (confpred/classifier/FineTuneBertForSequenceClassification.py)
Supported datasets:'CIFAR10', 'CIFAR100','ImageNet' and 'NewsGroups'.
Supported losses for training: 'softmax' (standard log likelihood loss), 'entmax' (1.5 entmax loss) and 'sparsemax' (sparsemax loss).
One can download the logits of the already trained models used for the analysis presented in the report in the drive.
Conformal Predictors
To find the optimal RAPS parameters, run scripts/optimal_raps_parameters.py and to find optimal opt-entmax parameter run scripts/optimal_entmax_params.py. Alternatively, download optimal parameter files from drive.
The notebook notebooks/all_methods_cp.ipynb applies conformal prediction over five different splits of the data, as described in the paper, and writes: set prediction arrays in folder data/set_prediction and a table with all coverage and average set size results (also available here).
Reproducing paper results
Coverage and average set size analysis can be found in notebooks/coverage_set_analysis.ipynb
Adaptiveness and coverage by set size analysis can be found in notebooks/set_size_coverage.ipynb
@inproceedings{campos2025sparseactivationsconformalpredictors,
title={Sparse Activations as Conformal Predictors},
author={Margarida M. Campos and João Calém and Sophia Sklaviadis and M{\'a}rio A. T. Figueiredo and Andr{\'e} F. T. Martins},
booktitle={International Conference on Artificial Intelligence and Statistics},
year={2025}
}
About
Repository containing code to reproduce results of the paper "Sparse Activations as Conformal Predictors".