Manuscript Offprint

arXiv:2610.23988

Single-Pass Decision Scores Enable Rapid Classification with Adjustable Thresholds in Medical Multimodal Large Language Models

Patrick Wienholt, Frederik Hauke, Christiane Kuhl, Jakob Nikolas Kather, Sven Nebelung, Daniel Truhn

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multimodal large language models (MLLMs) answer binary clinical questions with a yes or no token, leaving the decision threshold implicit and fixed. We derive a continuous score from a single forward pass by renormalizing the probabilities of the yes and no tokens, allowing the threshold to be adapted to clinical needs without retraining. We evaluated this approach with MedGemma and Gemma-3 (4B and 27B) on six medical imaging datasets. The default threshold was frequently misaligned with the task: for identifying normal chest radiographs, MedGemma-27B labeled every image as abnormal, whereas a validation-selected threshold yielded a sensitivity of 0.945 and a specificity of 0.696. Normalization achieved the highest AUROC on four of six datasets (CheXpert: 0.819 vs. 0.777 for raw and 0.743 for text-elicited probabilities), and a single decision required

53–79 ms on one GPU. This simple post-hoc method turns medical MLLMs into fast classifiers with adjustable operating points.

Code: https://github.com/TruhnLab/llm-threshold-calibration

Keywords: Large Language Models, Medical Imaging, Binary Classification, Decision Threshold, Deep Learning

1 Introduction

The rapid evolution of deep learning has produced transformer-based large language models capable of performing complex tasks across various domains. Multimodal large language models (MLLMs) extend these capabilities by jointly processing text and images, a feature of particular importance in medicine, where image-based data are central to diagnosis. However, the development of MLLMs for medical diagnostics is still in its early stages [1][1], and significant challenges remain, particularly in achieving reliable confidence estimation and calibration [2][2].

Binary classification is a fundamental task in healthcare, essential for applications such as detecting the presence of a pathology, screening patient populations, or triaging urgent cases. While classical machine learning models provide a tunable decision threshold to balance sensitivity and specificity, generative MLLMs typically lack this feature. They answer binary questions by sampling the next token from a large vocabulary. The model's implicit "threshold" is thus fixed by what causes one token to be sampled rather than another.

The raw probability of a specific answer token (e.g., yes) is confounded by normalization over many unrelated tokens, limiting the utility of the resulting yes/no output in risk-sensitive clinical workflows where an interpretable confidence is crucial [2]. Prior work has addressed this gap from several angles. Some approaches map classes to a small set of verbalizer tokens (e.g., yes/no), from which token-level probabilities are extracted for classification [3, 4]. Others apply post-hoc calibration techniques; for instance, Giovannotti and Gammerman used an inductive Venn-Abers predictor to calibrate logits for binary label tokens, yielding well-calibrated probabilities that outperform simple temperature scaling [5]. Complementary work on verbalized probability elicitation has highlighted calibration issues in models tuned with reinforcement learning from human feedback (RLHF) and introduced an “invert softmax” method with subsequent temperature scaling [2]. Beyond post-hoc adjustments, conformal prediction methods can provide coverage guarantees for binary decisions [6], and prompt-induced biases can be mitigated through contextual and batch calibration techniques that estimate and remove systematic offsets before a decision is made [7, 8]. Reliability of binary answers can be improved by constraining the generation process. Grammar- or schema-constrained decoding, for example, can restrict the answer space to valid tokens, eliminating invalid outputs with negligible overhead and without requiring fine-tuning [9]. While these methods improve the calibration of output probabilities, they largely focus on general-purpose, text-based settings and leave the implicit decision threshold itself unaddressed. In medical, image-conditioned LLMs it remains unclear how far this default operating point is misaligned with clinically appropriate ones, and how simply it can be corrected. Building on token-level verbalizers, we derive a binary confidence score from the relative next-token probabilities of the verbalizer tokens yes and no [4]. Recently, dedicated decision models such as Jev have been proposed that return typed decisions with probabilities from a single pass instead of generating text, and are trained specifically to produce calibrated confidences [10]. Their designation as “System One” models refers to the fast, intuitive mode of thinking in dual-process theory [10, 11]. Jev itself is proprietary and currently accepts text input only; first evaluations of decision models in medicine have accordingly focused on text-based and numerical tasks [12, 13], and an image-based medical decision model inspired by Jev requires training a dedicated decision head and low-rank adapters on top of MedGemma [14]. At the same time, an early review of the first evaluations found that the typed readout itself has not yet shown an accuracy advantage over comparable label-probability readouts of ordinary LLMs [15], which can themselves serve as Jev-style decision models [16]. Our approach follows a similar principle with existing open-weight multimodal LLMs: without any additional training, a single forward pass yields a probability for yes, which can be thresholded directly.

Our contribution is threefold: (i) we adapt normalized verbalizer-token probabilities to medical MLLMs, (ii) we show that this produces a continuous, thresholdable score for binary decisions, and (iii) we demonstrate that normalization combined with post-hoc threshold adjustment uncovers latent discriminative signal, with the normalized score outperforming raw token probabilities and text-elicited estimates on most datasets. Concretely, we adapt the approach to medical classification by using the first-step probabilities of yes and no as the basis for a continuous, tunable score. We then normalize these probabilities over the two-token set. This normalization isolates the model's belief in the affirmative class from the influence of all other tokens in the vocabulary. Since only two tokens are considered, the resulting score corresponds directly to a tunable threshold. A greedy decoding strategy is equivalent to a threshold of 0.5, and by varying this threshold, we can perform a receiver operating characteristic (ROC) analysis and compute the area under the ROC curve (AUROC). This approach aligns with standard decision-analytic practices for selecting operating points in medicine [17] without requiring any modification to the model itself. Importantly, the clinically appropriate threshold is application-dependent: in screening settings one often prioritizes high sensitivity (accepting lower specificity) to minimize missed disease, whereas confirmatory settings may favor high specificity to avoid unnecessary follow-up or treatment. For example, population screening for breast cancer on mammography typically targets high sensitivity, while deciding whether to initiate anticoagulation for suspected pulmonary embolism may warrant a higher-specificity operating point to limit harm from false positives.

Our approach is visualized in Fig. 1. We evaluate this approach across multiple medical imaging and diagnostic benchmarks using both medically fine-tuned models (MedGemma 4B/27B [18]) and their general-purpose counterparts (Gemma 3 4B/27B [19]). An overview of the full experimental setup, comprising the six datasets, four models, and three scoring methods, together with the disjoint validation/test split used for threshold selection and evaluation, is shown in Fig. 2. Our

Figure

Fig. 1: Workflow for threshold shifting in LLM-based binary classification. (a) An image-conditioned prompt is provided to the LLM. (b) From the first decoding step, the model assigns probabilities to all vocabulary tokens, including the verbalizers yes and no. (c) We normalize the probabilities over {yes, no} and vary the decision threshold, which has an implicit default of 0.5. (d) Sweeping the threshold yields different operating points on the ROC curve, trading true positive rate (TPR) against false positive rate (FPR). The optimal threshold was determined on a validation set disjoint from the test set.

findings demonstrate that the implicit threshold used by generative models is often suboptimal. Adjusting this threshold not only improves performance but also reveals diagnostic signals that would otherwise remain hidden.

References (28)