fmri-abstention
Computers can now take a guess at what you're looking at just from a brain scan. The scary part is that they guess with total confidence even when they're wrong. I taught one when to stay quiet.
I built a risk-control layer for brain decoders that chooses when to answer. It treats repeated decisions from one fMRI trial as a group, certifies performance within calibrated subjects, and monitors error during deployment.
- role
- Decoder-agnostic abstention layer for fMRI-to-CLIP retrieval on the Natural Scenes Dataset.
- language
- Python, PyTorch, OpenCLIP.
- scale
- Seven decoder arms, four NSD subjects, a 1,282-image gallery, synthetic audits with known ground truth.
- status
- Method developed; corrected real-data evaluation pending.
- source
- github.com/AidanSYu/fMRI-Abstention
- paper
- Read it below · Web version
Calibrating repeated measurements
Each fMRI trial produces ten correlated retrieval decisions. I calibrated at the trial level and used Learn-Then-Test with a betting bound to select a confidence threshold. In 300 synthetic calibrations, the corrected rule exceeded its certified risk bound in 4.0% of runs against a nominal 5%, while accepting 83.3% of decisions.
The default floored loss produces an acceptance-dependent risk bound, detailed in the paper. A decision-level rule that treats the repeated draws as independent exceeds its bound in 23.3% of runs. The comparison identifies the statistical unit as a critical design choice for risk control on repeated measurements.
A certificate for each subject
An intersection–union test selects a shared threshold that meets the risk target within every calibrated subject. In the synthetic four-subject experiment, the probability of any subject exceeding the bound falls from 1.00 under pooled calibration to 0.045, with a seven-point reduction in accepted coverage.
Monitoring deployment
For deployment under shift, I implemented a feedback controller and an anytime-valid monitor. In the reported synthetic streams, the monitor alarms on 0.5% of at-target runs and detects a shift to 18% error in 92% of runs.
The method connects trial-level dependence, individual guarantees and sequential monitoring in one decoder interface.
The corrected machinery has synthetic validation. Real NSD results still use the earlier calibrator and need regeneration; the next empirical study should pair the corrected rule with a stronger decoder and subject-level splits.