Skip to content

alextimans/max-rank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is the public code repository for our work Max-Rank: Efficient Multiple Testing for Conformal Prediction presented at AISTATS 2025.

Abstract 📝


Multiple hypothesis testing (MHT) commonly arises in various scientific fields, from genomics to psychology, where testing many hypotheses simultaneously increases the risk of Type-I errors. These errors can mislead scientific inquiry, rendering MHT corrections essential. In this paper, we address MHT within the context of conformal prediction, a flexible method for predictive uncertainty quantification. Some conformal prediction settings can require simultaneous testing, and positive dependencies among tests typically exist. We propose a novel correction named 𝚖𝚊𝚡-𝚛𝚊𝚗𝚔 that leverages these dependencies, whilst ensuring that the joint Type-I error rate is efficiently controlled. Inspired by permutation-based corrections from Westfall & Young (1993), 𝚖𝚊𝚡-𝚛𝚊𝚗𝚔 exploits rank order information to improve performance, and readily integrates with any conformal procedure. We demonstrate both its theoretical and empirical advantages over the common Bonferroni correction and its compatibility with conformal prediction, highlighting the potential to enhance predictive uncertainty quantification.


Citation

If you find this repository useful, please consider citing our work:

@inproceedings{timans2025maxrank,
    title = {Max-Rank: Efficient Multiple Testing for Conformal Prediction}, 
    author = {Alexander Timans and Christoph-Nikolas Straehle and Kaspar Sakmann and Christian Naesseth and Eric Nalisnick},
    booktitle = {Proceedings of the 28th International Conference on Artificial Intelligence and Statistics},
    year = {2025}
}

Acknowledgements

The Robert Bosch GmbH is acknowledged for financial support.

Repo structure

Some data, figures and experiment results can be found in data. The experiment code is provided and explained in max_rank_exp.ipynb. The plot_style.py file is used to render the figures (optionally indicate latex rendering).

env.yml contains an installable python environment to run the code. Using a conda-like package manager, this can be done by calling conda env create -f max-rank/env.yml and then conda activate maxrank. However, in essence the experiments (besides object detection) rely on only a handful of packages: numpy, pandas, scipy, scikit-learn, matplotlib and the less frequent copulae.

Still open questions?

If there are any problems you encounter which have not been addressed, please feel free to create an issue or reach out!

About

Code repository for the paper "Max-Rank: Efficient Multiple Testing for Conformal Prediction" @ AISTATS 2025

Topics

Resources

License

Stars

Watchers

Forks