A simple tool for analyzing how well language models handle "None of the other Answers" (NOTA) options in medical question answering, especially under Chain-of-Thought (CoT) reasoning.
This project investigates whether large language models (LLMs) like GPT, Claude, Deepseek-R1, and others can reliably identify when none of the answer choices are correct in medical multiple-choice questions. It compares performance with and without the need to recognize NOTA.
conda env create -f environment.yaml
conda activate cot-evalBefore running any experiments, add your API key to the config file at:
scripts/config.pyThen, add the model endpoints at:
scripts/src/medqa_nato.pycd scripts/data
python3 load_data.pycd ../src
python3 medqa_nato.pypython3 nota_accuracy_stats.py- ✅ Accuracy comparisons between regular CoT and NOTA conditions
- 📈 Confidence intervals for model performance
- 🧪 P-values for statistical significance testing
- 🔍 Question-level insights: which questions showed the biggest drops in accuracy