Elicitation format changes zero-shot classification accuracy in a medical vision-language model: a two-center evaluation on colorectal histopathology
Organizations: Department of Computer and Information Science and Engineering and Department of Medicine, University of Florida · Department of Computer Science and Engineering, JK Lakshmipat University · Department of Computer Applications, Manipal University Jaipur
Abstract
Background. Verbalized confidence from a hosted medical vision-language model is usually treated as packaging around an unchanged prediction. Methods. We held a nine-class colorectal histopathology prompt fixed except for the requested response format and evaluated MedGemma-27b-it on 10,004 validation and 7,180 external-center PathMNIST patches, with preregistered endpoints, randomized ties, and random floors recomputed for each patch set. Results. Requesting probabilities over all nine classes instead of a ranked top-3 reduced accuracy by 14.8 points on validation, -0.1475 [-0.1594, -0.1353], and 13.4 at the external center, -0.1341 [-0.1484, -0.1196], against chance accuracy of 0.1111. The nine-class prompt uniquely forbade commentary, reasoning, and a chosen answer; removing that prohibition at matched cardinality and token budget recovered +0.1878 [+0.1623, +0.2134] and +0.1911 [+0.1648, +0.2181], while changing cardinality with the prohibition absent moved accuracy by -0.0013 [-0.0300, +0.0280] and -0.0214 [-0.0494, +0.0071]. The nine-class format returned no parseable distribution on 7.6 and 7.7 percent of patches, mostly zero vectors in the two least-textured classes, and deferring these failures first explained its measurable selective-prediction gain. Across four vision-capable models, accuracy did not grade the cost: two models matched on accuracy differed five- to sevenfold. First-token logit entropy routed better than any elicited signal, +0.1820 [+0.1722, +0.1974] versus +0.0493 [+0.0377, +0.0649] relative to each signal's random floor. Conclusions. Response format changes a medical vision-language classifier, and the operative component here was the instruction suppressing an answer. Use logits when available; otherwise request a short ranked list without prohibiting reasoning or a chosen answer.
Figures & tables
| Study | Manipulation and setting | Key finding | Limitation for our question |
|---|---|---|---|
| Format as an intervention on the prediction | |||
| Tam et al. (2024) PR | Free text vs. format-restricting instruction vs. JSON-mode, 5 LLMs; text reasoning and classification incl. medical differential diagnosis | Reasoning degrades monotonically in strictness; classification largely improves, by 11.3 to 30.1 points on the medical set | Text only; restricts syntax around one label, never the cardinality of the output; no vision |
| Sclar et al. (2024) PR | Semantically equivalent formatting perturbations, few-shot text | Format alone moves accuracy enough to reorder models | Establishes format as a variable, not what it costs a classifier |
| Long et al. (2025) PR | 15 wrapping formats, 8 tasks, text | Cross-format variance of one model reaching 235.33; read as instruction-following failure | Text; no distribution over a closed label space |
| Lee et al. (2026) PP | Format request vs. constrained decoding, separated; 6 open-weight and 4 API models, 4 formats; text | The instruction alone causes most of the loss, before any decoder constraint | Text; our endpoint exposes no decoder to constrain, so we confirm their prompt-side half only |
| Taveekitworachai et al. (2026) PP | Multiple-choice vs. open-ended vs. ranked list, 15 medical reasoning models; text QA | Answer-format robustness ranges from 35 to 100 percent | Text and question answering; formats wrap a chosen answer, never request a distribution; no vision |
| Prompt | max_tokens | What the arm is for |
|---|---|---|
| D4 | 256 | the nine-class demand without the prohibition, at the decoding every other arm uses |
| D4 | 1024 | the same prompt with truncation removed as an explanation |
| D6 | 1024 | the prohibition at the same budget, so the contrast between the two holds it fixed |
| D6 (nine numbers) minus D5 (ranked top-3), paired patch bootstrap | validation, n = 9,163 | external test, n = 6,599 |
|---|---|---|
| argmax accuracy | -0.1475 [-0.1594, -0.1353] | -0.1341 [-0.1484, -0.1196] |
| selective-accuracy area (AAUC) | -0.1962 [-0.2133, -0.1796] | -0.2768 [-0.2898, -0.2451] |
| Argmax accuracy, unparseable counted as an error, Wilson intervals on levels | validation, n = 10,004 | external test, n = 7,180 |
|---|---|---|
| ranked top-3 (D5) | 0.3787 [0.3693, 0.3883] | 0.4201 [0.4087, 0.4315] |
| nine-class (D6) | 0.2053 [0.1975, 0.2133] | 0.2510 [0.2411, 0.2611] |
| difference, paired on the whole manifest | -0.1734 [-0.1848, -0.1620] | -0.1691 [-0.1833, -0.1549] |
| D6 entropy against its own recomputed random floor | validation | external test |
|---|---|---|
| gap, scored patches, paired bootstrap | +0.0020 [-0.0096, +0.0149] | +0.0095 [-0.0043, +0.0277] |
| minimum detectable effect | 0.0175 | 0.0228 |
| tie-break variance of the score | 0.0099 | 0.0124 |
| D6 parse-failure rate | validation | external test |
|---|---|---|
| adipose | 0.4592 [0.4291, 0.4895] | 0.2922 [0.2685, 0.3172] |
| background | 0.1675 [0.1462, 0.1912] | 0.1547 [0.1319, 0.1806] |
| D6 gap to floor | scored subset | pessimistic | difference | verdict |
|---|---|---|---|---|
| validation | +0.0020 [-0.0096, +0.0149] | +0.0154 [+0.0077, +0.0301] | +0.0158 [+0.0029, +0.0304] | changes |
| external test | +0.0095 [-0.0043, +0.0277] | +0.0337 [+0.0159, +0.0461] | +0.0191 [+0.0021, +0.0367] | changes |
| D6, full scale, paired bootstrap on one patch set | the deferral rule alone | what the entropy adds on top of it |
|---|---|---|
| validation | +0.0151 [+0.0052, +0.0272], excludes zero | +0.0003 [-0.0085, +0.0136], contains zero, at a resolution of 0.0160 |
| external test | +0.0205 [+0.0058, +0.0341], excludes zero | +0.0132 [-0.0040, +0.0256], contains zero, at a resolution of 0.0213 |
| Elicited top-3 entropy minus the single-query stated confidence, AAUC, paired bootstrap | validation, n = 9,927 | external test, n = 7,153 |
|---|---|---|
| stated-label extraction (primary) | +0.0244 [+0.0118, +0.0476] | +0.1668 [+0.1485, +0.1889] |
| sweep-based extraction | +0.0308 [+0.0180, +0.0539] | +0.1797 [+0.1619, +0.2025] |
| Elicited top-3 entropy minus the five-query agreement score, paired bootstrap | sweep-based extraction | stated-label extraction |
|---|---|---|
| validation, n = 1,781 | +0.0326 [-0.0054, +0.0720] | -0.0306 [-0.0648, +0.0111] |
| external test, n = 1,786 | +0.0681 [+0.0259, +0.1061], Holm 0.00540, rejects | +0.0118 [-0.0265, +0.0530], Holm 1.00000 |
| validation, pooled n = 1,981 | +0.0301 [-0.0117, +0.0619] | -0.0328 [-0.0699, +0.0013] |
| external test, pooled n = 2,124 | +0.0615 [+0.0245, +0.0999], Holm 0.0156, rejects | +0.0043 [-0.0282, +0.0457] |
| Full scale, gap to own recomputed random floor, paired bootstrap | validation | external test |
|---|---|---|
| first-token entropy | +0.1820 [+0.1722, +0.1974] | +0.1775 [+0.1700, +0.1984] |
| elicited top-3 entropy | +0.0493 [+0.0377, +0.0649] | +0.1337 [+0.1247, +0.1559] |
| first-token ranking efficiency | 0.5026 [0.4802, 0.5246] | 0.5059 [0.4819, 0.5296] |
| elicited ranking efficiency | 0.1394 [0.1133, 0.1653] | 0.3851 [0.3556, 0.4143] |
| First-token entropy minus the five-query agreement score, paired bootstrap | validation, n = 1,781 | external test, n = 1,787 |
|---|---|---|
| original traces, sweep-based extraction | +0.1259 [+0.0965, +0.1735] | +0.1135 [+0.0776, +0.1575] |
| re-issued calls, sweep-based extraction | +0.1269 [+0.0982, +0.1749] | +0.1138 [+0.0777, +0.1579] |
| re-issued calls, stated-label extraction | +0.0662 [+0.0402, +0.1091] | +0.0594 [+0.0273, +0.1002] |
| Model, ordered by its own ranked top-3 accuracy | D5 | D6 | D6 minus D5, paired on the whole manifest |
|---|---|---|---|
| Validation | |||
| Gemma-3-27b-it | 0.3417 | 0.3000 | -0.0417 [-0.0639, -0.0194] |
| MedGemma-27b-it | 0.3833 | 0.1689 | -0.2144 [-0.2389, -0.1894] |
| Mistral-Small-3.1 | 0.3944 | 0.3556 | -0.0389 [-0.0533, -0.0239] |
| Gemma-4-31b-it | 0.5728 | 0.5450 | -0.0278 [-0.0428, -0.0133] |
| External test |
| Image replaced, parse rate and all-zeros rate, Wilson intervals | ranked top-3 (D5) | nine-class, prohibition (D6) | nine-class, no prohibition (D4) |
|---|---|---|---|
| uniform mid-grey, validation, parse rate | 1.0000 [0.9979, 1.0000] | 0.0000 [0.0000, 0.0021] | 0.8022 [0.7832, 0.8200] |
| uniform mid-grey, validation, all-zeros | n/a | 1.0000 [0.9979, 1.0000] | 0.0000 [0.0000, 0.0021] |
| uniform mid-grey, validation, accuracy | 0.1111 | 0.0000 | n/a |
| seeded noise, validation, parse rate | 1.0000 [0.9979, 1.0000] | 0.9994 [0.9969, 0.9999] | 0.6150 [0.5923, 0.6372] |
| seeded noise, validation, all-zeros | n/a | 0.0006 [0.0001, 0.0031] | 0.0000 [0.0000, 0.0021] |
| seeded noise, validation, accuracy | 0.1111 | 0.1111 | n/a |
| Contrast in argmax accuracy, responses both arms parsed | validation 1,800 | external test 1,800 |
|---|---|---|
| D4 minus D6 , matched cardinality and budget: the prohibition | +0.1878 [+0.1623, +0.2134] | +0.1911 [+0.1648, +0.2181] |
| D5 minus D4 , prohibition absent from both: the cardinality | -0.0013 [-0.0300, +0.0280] | -0.0214 [-0.0494, +0.0071] |
| D5 minus D6, the pair section 4.1 reports | +0.1955 [+0.1700, +0.2216] | +0.1846 [+0.1586, +0.2118] |
| 100-patch pilot, n = 100 | cue block | arity | closing paragraph | accuracy | modal share |
|---|---|---|---|---|---|
| D1 | no | nine | forbids a chosen answer | 0.1111 | 0.9899 |
| D3 | no | nine | forbids it, and adds “Do not choose a single answer” | 0.1100 | 0.9800 |
| D2 | no | top-3 | forbids commentary and reasoning only | 0.2000 | 0.7800 |
| D6 | yes | nine | forbids a chosen answer | 0.1828 | 0.8280 |
| D5 | yes | top-3 | nothing | 0.4040 | 0.2222 |
Medical VLMs
Medical vision-language models connect clinical images with text for diagnosis, reporting, question answering, and image grounding.
See all 535 papers