System 1 medical multiple-choice model (granite-4.2-3b)
A fast, single-pass decision model for medical multiple-choice questions. A frozen language model
(ibm-granite/granite-4.2-3b) turns a question and each answer option into vectors, two small trained heads project them
into a shared 512-dimensional space, and the option most similar to the question is chosen. There is no
step-by-step reasoning and no text generation. Only the two heads and one scale value are trained (see below).
Status: research prototype. It answers about 42.5% of held-out four-option questions correctly, against 25% for random guessing. It is not suitable for clinical or any real-world medical decision.
Results
Evaluated on 3842 questions from the labelled MedMCQA validation split (the official test split has no answers). Each question is scored only against its own options (chance is 25.0%). The statistical margin for one run is about +/-1.6 points.
| Method | Accuracy |
|---|---|
| Random guessing | 25.0% |
| Question-blind baseline (most often correct answer in training, ignores the question) | 28.1% |
| No-head baseline (cosine on the raw frozen vectors, no training) | 30.8% |
| This model, mean +/- std over 3 seeds | 42.5% +/- 0.5 |
| This model, published seed (42) | 42.6% |
| Slice (mean over seeds) | Accuracy |
|---|---|
| Average over the 21 subjects | 45.9% |
| Questions phrased with EXCEPT / NOT | 35.8% |
| All other questions | 44.1% |
Per-subject numbers are in results.json. Shuffling the questions against the options drops accuracy to chance,
so the model does use the question.
How it works
- Frozen encoder:
ibm-granite/granite-4.2-3b, loaded in bfloat16 and never updated. - Prompting: the question is written as
This question: "{text}" is answered in one word: "and each option asThis answer: "{text}" means in one word: "({text}is replaced by the text). - Vectors: the last-token hidden state at 8 depths (0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 0.9375, 1 of the model's depth) is L2-normalised per layer and joined, giving a 20480-dimensional vector.
- Heads: a state head (for the question) and an action head (for each option), each
Linear - GELU - Linear - LayerNorm - GELU - Linearwith hidden size 2048 and output size 512. - Decision: the option with the highest cosine similarity to the question.
Use
import sys
from pathlib import Path
from huggingface_hub import hf_hub_download
sys.path.insert(0, str(Path(hf_hub_download("pavanmantha/clm-system1-medmcqa-granite-4.2-3b", "clm_inference.py")).parent))
from clm_inference import SystemOneModel
model = SystemOneModel.from_pretrained("pavanmantha/clm-system1-medmcqa-granite-4.2-3b")
options = ["Vitamin A", "Vitamin B12", "Vitamin C", "Vitamin D"]
print(options[model.choose("Scurvy is caused by deficiency of which vitamin?", options)])
It needs torch, transformers, safetensors and huggingface_hub, and downloads ibm-granite/granite-4.2-3b on first use.
Training
- Data:
pavanmantha/medmcqa-clm, derived fromopenlifescienceai/medmcqa(Apache-2.0): 134,416 train, 4,000 validation, 3,842 test questions. Options such as "all of the above" were removed, and the test questions do not appear in train or validation. - Loss: contrastive (InfoNCE) in both directions, averaged. Negatives are the other answers in the batch plus the question's own wrong options. Rows sharing the same correct answer are never used as each other's negatives.
- Optimiser: AdamW, learning rate 0.0003, weight decay 0, batch size 4096, gradient clipping 1, learned temperature capped at 100. Early stopping on validation loss with patience 5. Three seeds (42, 43, 44); the published weights are the seed with the lowest validation loss.
- Hyper-parameters (prompt format, layers, learning rate, hidden size, dropout) were chosen on the validation split only. The test split was read once, for the final numbers.
Limitations
- About 57.5% of answers are wrong. Questions phrased with EXCEPT / NOT are noticeably harder.
- Multiple-choice only, English only, at most four options, trained on one exam dataset (MedMCQA, Indian medical entrance exams). It has not been tested on other datasets or on real clinical questions.
- The question and each option are embedded separately, so the model cannot compare them in context.
- Inherits the biases and any errors of the base model and of MedMCQA.
Files
clm_heads.safetensors (trained heads), config.json (architecture, prompt and layers), clm_inference.py
(loading and prediction), results.json (all measured numbers).