betaFeedback

WorksComputer Science

Calibrated Evidence Inference With a Small, Permissively Licensed Open Model

Abstract

Systematic reviewers who use a model to read randomized trials need each answer and a measure of how far to trust it. If the model is calibrated, so that its stated probabilities match how often it is right, a reviewer can accept its confident answers and check the rest by hand. This paper fine-tunes Qwen3-4B-Base with low-rank adapters and a classification head for evidence inference (Lehman et al., 2019; DeYoung et al., 2020): given a trial's article and a prompt that names an intervention, a comparator and an outcome, classify the result as a significant increase, a significant decrease or no significant difference. The articles of Evidence Inference 2.0 come from the open-access subset of PubMed Central, which includes articles under non-commercial and no-derivatives licenses, so the released model was fine-tuned only on the 1,431 of 2,657 training articles under CC BY, CC0 or the public domain; it is released under the Apache License 2.0 and runs on a laptop. On the test split, its expected calibration error is 0.017 and its log loss is lower than that of Gemma 4 31B-it given the same input zero-shot, meeting criteria registered on the Open Science Framework before testing. Its macro-F1, 0.925, is above every published result on that split that I found, though those systems used other inputs, scoring rules and prompt filters, and the test labels are public. Accepting its 80 percent most confident answers leaves an error rate of 2.6 percent among them. Context ablations show that the answers depend on the article, but the title alone carries some signal, which an informative title or recall of the trial could explain.

Introduction

A systematic reviewer, or a service that keeps an evidence summary up to date, needs two things from a model that reads randomized trials: the answer, and how far to trust it. If an answer’s stated probability matches how often answers with that probability are right, the reviewer can accept the confident answers and check only the uncertain ones by hand. That requires calibrated probabilities, and it requires that the calibration be measured on data the model was not tuned on.

Small models matter for this because they are cheap to run and can run locally: a small model costs less per question than a large one (Appendix § 16), and a model that runs on a reviewer’s own computer can read documents that may not leave an institution. Yet small language models in clinical medicine seldom report calibration: a systematic review of clinical language models of up to 4 billion parameters found 11 eligible studies, and none reported a scalar calibration error (Gorenshtein et al., [9]).

This paper reports the evidence inference model of Fiorillo v0.5, an open release of task-specific models for closed-set medical classification, each of which gives a calibrated probability for every label. The task is that of Evidence Inference 2.0 (EI; Lehman et al., [15]; DeYoung et al., [6]): given a randomized trial’s article and a prompt that names an intervention, a comparator and an outcome, did the outcome significantly increase, significantly decrease, or show no significant difference? The release also holds a PubMedQA model, from which the EI model is initialized, and a hospital-readmission model trained on tabular data; Appendix § 17 reports both. Two EI models appear throughout: the released model, fine-tuned only on permissively licensed articles, and a full-data model, fine-tuned on all of EI’s training articles, which was the subject of the original registration and stays private. The paper makes four contributions:

  • an open 4-billion-parameter EI model, fine-tuned only on training articles under CC BY, CC0 or the public domain and released under the Apache License 2.0, which gives calibrated probabilities for the three labels;

  • a pre-registered evaluation on EI’s test split, the split’s second pre-registered use, in which the released model meets all four criteria fixed before any of its test predictions: a limit on its calibration error, a lower log loss than a class-prior baseline and than Gemma 4 31B-it given the same input zero-shot, and a macro-F1 not below Gemma 4 31B-it’s; its macro-F1 is above every published result on that split that I found, though not in a controlled comparison;

  • a measurement of what license filtering costs: the same training configuration was less accurate when fine-tuned only on the permissively licensed articles;

  • context ablations (no article, the title only) and a counterfactual test that swaps the intervention and the comparator, which ask whether the answers depend on the article, and a selective-prediction analysis of how many answers a reviewer could accept without checking them.

Related work

Evidence inference. Lehman et al. [15] introduced the task and the dataset, and DeYoung et al. [6] released Evidence Inference 2.0, with more prompts, and its splits; a classifier given the prompt alone, without the article, reached a macro-F1 of 0.511 in their Table 1. Published results on EI’s test split were scored and counted in different ways: DeYoung et al. [6] report a full-text pipeline and a classifier given the annotated evidence spans, and Buchmann et al. [2] report long-document transformers scored leniently, where a prediction that matches any of a prompt’s accepted labels counts as right. Table 3 sets these values beside this paper’s results. Buchmann et al. [3] include EI in a benchmark of long-document assistants and report macro-F1 values of 0.86 and 0.87 for models answering from the whole article or from retrieved segments (single runs, scored by their own rules, one of them on 100 test instances); they were not part of the pre-registered comparison and are not in the table. EI is also one of the datasets of the ERASER benchmark [5], where a model must also return the evidence that supports its answer; the model here returns no evidence span. Later work recasts EI’s annotations: Wadhwa et al. [29] train large language models on data derived from EI to extract interventions, comparators, outcomes and findings jointly from abstracts, and SciRIFF [28] includes EI among its held-out tasks as the extraction of intervention, comparator, outcome, effect and evidence tuples from abstracts. Those results are for other task definitions and are not in the table. Trialstreamer [20] keeps a living, automatically updated database of randomized trial reports, with their populations, interventions and outcomes extracted by machine learning.

CriterionFull-data modelResultReleased modelResult
1ECE at most the limit0.0119 (limit 0.05)met0.0168 (limit 0.05)met
2Log loss minus the class prior’s, interval below 0−0.8773 (−0.9225 to −0.8281)met−0.8603 (−0.9078 to −0.8104)met
3Log loss minus Gemma 4 31B-it’s, interval below 0−0.2084 (−0.2720 to −0.1505)met−0.1829 (−0.2598 to −0.1164)met
4Macro-F1 not below Gemma 4 31B-it’s0.9399 against 0.8626met0.9248 against 0.8668met

Table 1. The four pre-registered criteria on Evidence Inference 2.0’s test split (1,218 prompts in 333 articles), for the full-data model as registered and for the released model as the amendment fixed them. ECE is the expected calibration error. Criteria 2 and 3 give the difference in log loss with its 95 percent interval from 10,000 article resamples; Gemma 4 31B-it is calibrated on validation and reads the same input as each model (4,096 tokens for the full-data model, 6,144 for the released model).

Published system | Scoring | Its macro-F1 | Full-data model, same scoring | Released model, strict DeYoung et al. [6], full-text pipeline | strict | 0.780 | 0.9399 (0.9225 to 0.9544) | 0.9248 (0.9059 to 0.9409) DeYoung et al. [6], evidence spans given | strict | 0.851 | 0.9399 (0.9225 to 0.9544) | 0.9248 (0.9059 to 0.9409) Buchmann et al. [2], LED, no structure infusion | lenient | 0.7430 | 0.9407 (0.9240 to 0.9551) | 0.9248 (0.9059 to 0.9409) Buchmann et al. [2], LED, best setting | lenient | 0.7649 | 0.9407 (0.9240 to 0.9551) | 0.9248 (0.9059 to 0.9409) Buchmann et al. [2], LongT5 | lenient | 0.8154 | 0.9407 (0.9240 to 0.9551) | 0.9248 (0.9059 to 0.9409)

Table 3. Published results on Evidence Inference 2.0’s test split beside the two models’ macro-F1. The published values are the papers’ own; those systems read the articles in other ways and were scored and counted differently, so this is not a controlled comparison. The full-data model’s figure is scored as each paper scored (strict, or lenient as Buchmann et al. [2] scored); the released model’s is strict, since its analyses did not compute the lenient score, which can only raise it. Each interval is a 95 percent interval from 1,000 article resamples. LED is the Longformer Encoder-Decoder.

PubMedQA and BioGPT. PubMedQA [12] asks yes, no or maybe questions about research abstracts; BioGPT [19], a biomedical language model, has a version fine-tuned on it, which this paper runs as a reference (Appendix § 17).

Calibration and selective prediction. The Brier score [1], the expected calibration error [21], temperature scaling [10] and Dirichlet calibration [14] are the measures and methods used here. Answering only the inputs on which a model is most confident is selective prediction [7]; sending the rest to a larger model is a cascade with deferral. Both are evaluated here with risk-coverage measures, including the area under the generalized risk-coverage curve that Traub et al. [26] recommend.

Contamination and pre-registration. A model may have seen a benchmark’s test items or labels during pretraining [24]. Windisch et al. [30] found that frontier models classified oncology trials from their titles alone, which bears on the title-only ablation in § 7. Pre-registering an analysis before the data are seen has been proposed for natural language processing research by van Miltenburg et al. [27].

Data and licenses

Evidence Inference 2.0. I used EI at a fixed commit of its repository; its prompts and annotations are under the MIT License. After the exclusions the registration states, the splits hold: training, 2,657 articles and 10,046 prompts; validation, 340 articles and 1,237 prompts; test, 333 articles and 1,218 prompts. The exclusions are the prompts with no accepted annotation (210, 21 and 28 in the three splits), the 70 training prompts that EI’s annotations list as Incorrect, the 6 test prompts of an article whose text is empty, and 29 prompts in no split. A prompt’s label is the most common label among its accepted annotations; a tie goes to the smallest of EI’s label codes (−1 for a significant decrease, 0 for no significant difference, 1 for a significant increase), which is what SciPy’s mode returns and what EI’s own code uses.

License filtering. EI’s articles come from the open-access subset of PubMed Central (PMC), whose articles keep their own licenses: PMC groups them as allowing commercial use (CC0, CC BY, CC BY-SA and CC BY-ND), as non-commercial use only (the CC BY-NC licenses), or as other (a custom license, or none that a machine can read). A script read each article’s own license statement as PMC serves it, through the National Center for Biotechnology Information’s E-utilities, and classified it by fixed rules, which a separate review checked. An article is permissively licensed when its statement is the Creative Commons Attribution license (CC BY, any version, by link or in words), the Creative Commons public-domain dedication (CC0) or the public domain for the article itself, and no part of the statement restricts commercial use, derivatives or the license of what is made from it; where the parts disagree, the more restrictive part decides, a statement that names a publisher’s own terms is not permissive even beside Creative Commons words, and CC BY-SA (Attribution-ShareAlike) is not permissive. The rule is thus stricter than PMC’s commercial-use group, which includes the share-alike and no-derivatives licenses. By this rule, 1,431 of the 2,657 training articles were permissively licensed (5,279 of 10,046 prompts), 179 of the 340 validation articles (654 of 1,237 prompts) and 170 of the 333 test articles (613 of 1,218 prompts). The other 1,226 training articles are under non-commercial, no-derivatives, share-alike, verbatim-only or publishers’ own terms, or state no license. Whether model weights trained on such articles may be released under an open license is, as far as I could find, legally unsettled, so the full-data model, which was fine-tuned on all of them, stays a private research model, and the released model’s EI fine-tuning used only permissively licensed articles.

Two licensing caveats. First, the passage selection (§ 4) ranks passages by Okapi BM25, a word-matching score [23], whose word statistics were counted over the passages of all 2,657 training articles, permissively licensed or not. They hold single words and their counts but no sentence of any article. I kept them so that every input, the released model’s and Gemma 4 31B-it’s, is cut by the same rule, and they ship with the release so that a new article can be cut the same way. Second, the released model was initialized from the weights of the PubMedQA model (Appendix § 17), whose training abstracts’ licenses were not checked one by one.

Models used. Qwen3-4B-Base [32], the base model, and Gemma 4 31B-it [8], the zero-shot reference, are both under the Apache License 2.0, as their model cards give it.

The model

Architecture. The EI model is Qwen3-4B-Base at a fixed revision with low-rank adaptation (LoRA; [11]) adapters on every linear layer of the decoder (rank 16, alpha 32, dropout 0.05), a linear projection and a classification head: two transformer layers and a scorer that gives one logit for each class, with a softmax over the three classes. The base model’s own weights stay fixed.

Training. I initialized the model from the weights of the PubMedQA model (intermediate-task transfer) and trained it for two epochs, with inputs of 6,144 tokens and a learning rate of 0.00005 for the adapters, on the 5,279 permissively licensed training prompts. Each input holds the intervention, the comparator and the outcome, then the article’s title and abstract, then passages chosen by BM25 against the prompt’s words, results-section passages first, while they fit; the kept passages follow in their article order. The released model is a uniform model soup (Wortsman et al., [31]) of the chosen configuration’s three runs: each layer’s three LoRA updates are joined into one adapter of rank 48 (alpha 96) by concatenating their A matrices and their B matrices divided by three, so that its update equals the exact average of the three, and the projection’s and head’s weights are averaged, so one forward pass answers a question.

Model selection. I fixed the selection rule before training. Four candidate changes to the baseline configuration (the full-data model’s configuration, fine-tuned on the permissively licensed articles) were each trained twice: swap augmentation, which adds a copy of each training prompt with the intervention and comparator swapped; inputs of 6,144 tokens instead of 4,096; and two higher learning rates. Each was scored on the 654 permissively licensed validation prompts by the out-of-fold log loss of its calibrated probabilities (5 folds, 20 repeats). A candidate passed if its mean score was below the baseline’s by more than a margin set from the baseline’s own spread across three seeds, 0.0110, and each of its runs scored below the baseline run with the same seed. Only the longer input passed, and it was chosen; a third run completed it. The soup was kept because its score was not above that of the three runs’ prediction ensemble (their probabilities averaged) by more than the margin. Swap test-time augmentation, which averages each answer with the answer to the swapped prompt, was not kept because it scored worse (Appendix § 13).

Calibration. I chose the calibration method among four by out-of-fold log loss on the 654 permissively licensed validation prompts: temperature scaling, 0.1781; temperature scaling with a bias for each class, 0.1808; vector scaling, 0.1836; and Dirichlet calibration with off-diagonal regularization, 0.1829. I fitted the chosen method, temperature scaling, on all 654 prompts: the temperature is 1.340.

No deferral. The released model answers every question itself. In the full-data model’s evaluation, deferring its least confident EI answers to Gemma 4 31B-it gave an estimated combined accuracy below the full-data model’s alone at every deferral rate tested (no interval exists for that difference), so I fixed the released model’s deferral rate at zero before training it.

Pre-registered evaluation

Registration. I registered the evaluation of the full-data model (named Fiorillo v0.4 in the registration) on OSF ([16]) on 1 October 2026 at 00:36 UTC (Coordinated Universal Time), before any model had made a prediction on EI’s test split, under an embargo. It fixed four criteria for that model, an average of three runs fine-tuned on all of EI’s training articles, against a class-prior baseline and Gemma 4 31B-it, with the model and Gemma 4 31B-it each calibrated on validation by the same method. Gemma 4 31B-it is used zero-shot, with thinking off, and each answer’s probability is read from its next-token probabilities for the option letters.

Amendment. On 1 October 2026 at 15:31 UTC, before any test prediction of the released model existed, I filed an amendment to the registration. It keeps the four criteria, with the released model in the full-data model’s place, and fixes ten comparisons, which it codes K1 to K10 (Table 8 maps each to this paper’s sections). The release candidate, with every calibration, the limit of criterion 1 below and the hash of each file they come from, was frozen on 2 October 2026 at 13:40 UTC, and the test predictions started after it.

Table 8. Each analysis, its code in the registration, its status in this paper, the label the registration gave it, and where this paper reports it. The registration calls an analysis descriptive when it reports it without a test; “none” means it gave no label.

AnalysisCodeStatus hereRegistration’s labelReported in
The four criteria, full-data modelH1 to H4primaryhypothesesTable 1
The four criteria, released model, with its paired differences from Gemma 4 31B-it and the class-prior baseline, overall and for each classK1primarynoneTables 1, 2 and 11
The cost of license filteringK2secondarydescriptiveSection 8
Candidate configurations against the baseline on validation; the released model against the baseline configuration on testK3secondarynoneSection 6, Appendix A
Context ablations and the swap testK4secondarynone; interpretations fixed in advanceSection 7
PubMedQA comparisonsK5secondarydescriptiveAppendix E
Readmission ensembles and refitted treesK6secondarydescriptiveAppendix E
Deferral and risk-coverageK7secondarysecondary, descriptiveSection 9
Uniform soup against prediction ensembleK8secondarydescriptiveSection 6
Four calibration methods against twoK9secondarydescriptiveSections 4 and 6
Swap test-time augmentationK10secondarydescriptiveSection 6
Sensitivity analysis without the flagged test promptsno codesecondarydescriptiveSection 6
Zero-probability checkno codesecondarydescriptiveSection 6
Per-class calibration slopes and interceptsno codesecondarylisted among the results to reportAppendix C
Comparison with published results, full-data modelno codesecondarysecondary, descriptiveTable 3
Analyses marked exploratorynoneexploratorynot registeredwhere they appear

Table 8.

The four criteria. Each is computed over all 1,218 test prompts.

  1. The expected calibration error (ECE; top-label, with 15 equal-width bins on the top answer’s probability) is at most the limit: the larger of 0.05 and the 95th percentile of the ECE that a perfectly calibrated model shows by chance on 1,218 prompts, from 5,000 simulated test sets. For the released model that percentile was 0.0184, so the limit was 0.05.

  1. The log loss is below the class-prior baseline’s, and the 95 percent interval of the difference lies wholly below zero. The class-prior baseline gives every prompt the label distribution of the whole training split.

  1. The log loss is below that of Gemma 4 31B-it given the same selected text, and the interval of the difference lies wholly below zero. For the released model, Gemma 4 31B-it read the same 6,144-token inputs.

  1. The macro-F1 is not below Gemma 4 31B-it’s point estimate.

Intervals come from a paired bootstrap over articles (prompts from one article are not independent), with percentile intervals; criteria 2 and 3 use 10,000 article resamples, and every other EI interval 1,000. A difference whose interval includes zero is reported as “no difference was detected”. Success requires all four criteria (an intersection-union test), so no correction for multiple comparisons applies to it. The registration’s power analysis gave the full-data model 80 percent power for criterion 3 at a true log-loss improvement of 0.0787, and the amendment, before any test prediction of the released model, gave the released model the same power at 0.0718 (both from a normal approximation).

Primary and secondary analyses. The four criteria are the primary analysis and the only confirmatory one. This paper calls every other pre-registered analysis secondary and reports it as an estimate with its 95 percent interval where one was computed; Table 8 gives each one’s code and the label the registration gave it. Analyses that were not pre-registered are marked exploratory where they appear. The registration states that its author had seen the data but had not run the proposed analyses. The released model’s evaluation is the second use of EI’s test split. The split was first used for the full-data model’s criteria, its secondary analyses and its exploratory checks, and for its context ablations and swap test, which the amendment pre-registered; while the test examples were built, the counts of their labels were printed and read, and while the title-only input’s rule was corrected, the test articles’ title lines were read, but no label. Three of the released model’s design choices drew on the full-data model’s test results: no deferral, no larger base model, and the starting effect size of the power analysis; the amendment disclosed each. The released model’s training configuration and calibration, and the release’s readmission ensemble, were chosen on validation only. Appendix § 14 lists every deviation from the registration and the amendment.

Results

The full-data model. The full-data model met all four criteria as registered (Table 1): ECE 0.0119; log loss minus the class-prior baseline’s −0.8773 (−0.9225 to −0.8281); minus Gemma 4 31B-it’s −0.2084 (−0.2720 to −0.1505); macro-F1 0.9399 against 0.8626. Of its other pre-registered secondary analyses, this paper gives the comparison with published results (Table 3) and, in brief, the deferral analysis (§ 4 and § 9), not its single runs, PubMedQA, readmission, sensitivity analyses or zero-probability check.

The released model. The released model met all four criteria (Table 1): ECE 0.0168 against the limit 0.05; log loss minus the class-prior baseline’s −0.8603 (−0.9078 to −0.8104); log loss minus Gemma 4 31B-it’s −0.1829 (−0.2598 to −0.1164); and macro-F1 0.9248 against 0.8668. Without the 6 test prompts that EI’s annotations flag, on 1,212 prompts, the two log-loss differences were −0.8600 (−0.9087 to −0.8109) and −0.1848 (−0.2606 to −0.1164) (a pre-registered sensitivity analysis). Of the 194,637 predictions of every model, split and task, none gave the true label a probability that rounds to 0 in the results files.

Main results. Table 2 gives the released model beside the full-data model, Gemma 4 31B-it and the class-prior baseline, with the paired differences reported with the primary analysis. Its accuracy was 0.9269 (0.9089 to 0.9426), and its macro-F1 0.9248. Before calibration its ECE was 0.0373 (0.0281 to 0.0546) and its log loss 0.2405 (0.1826 to 0.3037) (exploratory; no interval was computed for the change).

Table | Accuracy | Macro-F1 | Log loss | Brier score | ECE Released model | 0.9269 (0.9089 to 0.9426) | 0.9248 (0.9059 to 0.9409) | 0.2164 (0.1714 to 0.2645) | 0.1101 (0.0871 to 0.1363) | 0.0168 (0.0124 to 0.0348) Full-data model | 0.9409 (0.9246 to 0.9554) | 0.9399 (0.9225 to 0.9544) | 0.1994 (0.1573 to 0.2486) | 0.1001 (0.0778 to 0.1266) | 0.0119 (0.0119 to 0.0300) Gemma 4 31B-it, same input | 0.8752 (0.8489 to 0.8991) | 0.8668 (0.8390 to 0.8935) | 0.3993 (0.3301 to 0.4793) | 0.2005 (0.1649 to 0.2395) | 0.0283 (0.0238 to 0.0567) Class prior | 0.4212 (0.3855 to 0.4584) | 0.1976 (0.1855 to 0.2095) | 1.0767 (1.0580 to 1.0940) | 0.6525 (0.6395 to 0.6643) | 0.0305 (0.0018 to 0.0663) Released minus Gemma 4 31B-it | 0.0517 (0.0303 to 0.0760) | 0.0580 (0.0340 to 0.0849) | −0.1829 (−0.2573 to −0.1164) | −0.0904 (−0.1273 to −0.0570) | −0.0116† (−0.0345 to 0.0027) Released minus class prior | 0.5057 (0.4656 to 0.5419) | 0.7272 (0.7050 to 0.7479) | −0.8603 (−0.9102 to −0.8093) | −0.5424 (−0.5692 to −0.5138) | −0.0138† (−0.0434 to 0.0233)

Table 2. Evidence Inference 2.0, test split (1,218 prompts in 333 articles), each model calibrated on validation. Each cell gives the estimate and its 95 percent interval from 1,000 article resamples. ECE is the expected calibration error, whose percentile interval can lie above its estimate, since the ECE is biased upward in resamples; the Brier score is summed over the three answers. Gemma 4 31B-it reads the same 6,144-token input as the released model; the full-data model’s results are on its own 4,096-token input. The class prior gives every prompt the training split’s label distribution. The last two rows give the paired differences reported with the primary analysis, the released model minus each reference on the same resamples; the criteria themselves are decided by Table 1’s intervals, from 10,000 resamples. †No difference was detected: the interval includes zero.

Published results. Table 3 sets the published EI results beside the two models’ macro-F1 and their intervals, as the full-data model’s registration asks. Under strict scoring against each prompt’s majority label, the released model’s macro-F1, 0.9248, is above the best strictly scored full-text result I found, the pipeline of DeYoung et al. [6] at 0.780, and above the 0.851 of their classifier given the annotated evidence spans, which is told where the evidence lies. Lenient scoring can only raise a score, so it is also above the best leniently scored result, 0.8154 (Buchmann et al., [2]), and it is above the 0.86 and 0.87 that Buchmann et al. [3] report under their own scoring. This is not a controlled comparison. The published systems read the articles in other ways, were scored and counted differently and used older base models, and the base models here may have seen EI’s public test labels in pretraining (§ 7). The gap has candidate explanations that this paper does not separate: a newer base model, the input (title and abstract first, then results passages chosen by BM25), initialization from a PubMedQA model, and recall of the test labels.

Calibration. Figure 1 shows the released model’s reliability diagram on the test split, in the 15 bins of the reported ECE. Most prompts, 966, fall in the top bin (probabilities above 0.9333), where the share of top answers that were right was 0.9741 against a mean probability of 0.9840 (exploratory). For each class, no miscalibration was detected by its calibration slope and intercept (Appendix § 15).

Other secondary analyses. On the permissively licensed validation prompts, the longer input’s two-run average scored a lower log loss than the baseline configuration’s, by 0.0286 (0.0097 to 0.0496); for the other candidates no difference was detected (Appendix § 13). On test, the released model minus the baseline configuration’s three-run ensemble gave a log-loss difference of 0.0000 (−0.0202 to 0.0174): no difference was detected. The soup’s log loss was higher than that of the three runs’ prediction ensemble by 0.0048 (0.0010 to 0.0092). The four-method calibration rule chose the same method as the full-data model’s two-method rule, so the difference between the two rules is zero. Swap test-time augmentation raised log loss by 0.0922 (0.0672 to 0.1206) and ECE by 0.0481 (0.0259 to 0.0602). Appendix § 17 reports the PubMedQA and readmission models.

Figure 1. Reliability diagram of the released model on Evidence Inference 2.0’s test split (1,218 prompts). The prompts are grouped in the 15 equal-width bins of the reported expected calibration error by the probability of the top answer; each point is a bin’s mean probability against the share of its top answers that were right, with the bin’s count of prompts and a 95 percent Wilson interval (exploratory). The Wilson intervals treat the prompts as independent, so they are narrower than the article-level intervals used elsewhere. Bins with no prompt are not drawn.

Reproducibility check. I ran the release as a user would, at the fixed revision that the statements give: its own inference script on a MacBook Pro with an Apple M5 chip, under macOS, with each task’s examples in a file of their own; the language models ran on the laptop’s graphics processing unit (GPU) and the readmission trees on its central processing unit (CPU). Rules fixed before the check’s first run compared the outputs with the evaluated test predictions: readmission passes when every probability is within 0.0001 of the evaluated one, and EI and PubMedQA pass when no top answer changes on an example whose evaluated top probability is at least 0.6 and the mean absolute difference over all examples and answers is at most 0.02. All three passed. On the 6,998 readmission encounters, the largest difference was below one in ten million. On the 500 PubMedQA items, the mean absolute difference was 0.0013 and the largest 0.0159; on 60 EI prompts drawn at random from the 1,218, each with the input it was evaluated on, the mean was 0.0028 and the largest 0.0459. No top answer changed on either. The EI examples hold each article as the evaluated predictions read it, already cut to 6,144 tokens, so the check does not cover the passage selection of a whole article.

Does the model use the article?

EI’s labels have been public since 2019, the trials’ results are in PubMed, and the pretraining text of Qwen3 and Gemma 4 is not published. A model could answer some prompts from what it saw in pretraining rather than from the article in front of it. Two context ablations ask the test prompts with no article and with the title alone, and a counterfactual test swaps the intervention and the comparator; the interpretations of all three were fixed in the amendment before they ran (Table 4, Figure 2).

Figure 2. Macro-F1 of the full-data model (v0.4, open circles) and the released model (v0.5, filled squares) on Evidence Inference 2.0’s test prompts, with the whole article (1,218 prompts), the title only (1,209) and no article (1,218), each with its 95 percent interval from 1,000 article resamples. The dashed line is the macro-F1 that DeYoung et al. [6] report for a classifier given the prompt alone, 0.511 (a different model, scored and counted as that paper did).

StatisticPromptsFull-data modelPromptsReleased model
No article
Accuracy1,2180.5090 (0.4779 to 0.5439)1,2180.5156 (0.4874 to 0.5494)
Macro-F11,2180.4289 (0.3941 to 0.4634)1,2180.4384 (0.4085 to 0.4726)
Agreement with the whole-article answer1,2180.5140 (0.4812 to 0.5473)1,2180.5238 (0.4955 to 0.5571)
Title only
Accuracy1,2090.5715 (0.5346 to 0.6065)1,2090.5715 (0.5389 to 0.6041)
Macro-F11,2090.5338 (0.4964 to 0.5733)1,2090.5327 (0.4995 to 0.5692)
Agreement with the whole-article answer1,2090.5682 (0.5343 to 0.6027)1,2090.5782 (0.5471 to 0.6108)
Macro-F1, no article, on the same prompts1,2090.4314 (0.3967 to 0.4650)1,2090.4388 (0.4076 to 0.4723)
Macro-F1, title only minus no article1,2090.1024 (0.0736 to 0.1331)1,2090.0939 (0.0655 to 0.1234)
Intervention and comparator swapped
Accuracy against the swapped labels1,2180.8103 (0.7802 to 0.8400)1,2180.7808 (0.7493 to 0.8117)
Macro-F1 against the swapped labels1,2180.7958 (0.7633 to 0.8283)1,2180.7600 (0.7268 to 0.7946)
Share of direction answers that flip7030.7226 (0.6765 to 0.7714)6990.6652 (0.6208 to 0.7157)
Share of no-difference answers that stay5150.9806 (0.9657 to 0.9931)5190.9672 (0.9477 to 0.9841)
Swapped, on the prompts whose comparator is a time point or a baseline
Share of direction answers that flip380.1316 (0.0250 to 0.2632)370.2162 (0.0857 to 0.3439)
Share of no-difference answers that stay101.0000 (1.0000 to 1.0000)111.0000 (1.0000 to 1.0000)

Table 4. Context ablations and the swap test on Evidence Inference 2.0’s test split (pre-registered, with interpretations fixed in advance). Each cell gives the estimate and its 95 percent interval from 1,000 article resamples. The title-only input leaves out the 9 prompts whose article gives no title; the title’s difference is computed on the prompts in both inputs. “Direction answers” are “significantly increased” and “significantly decreased”; for them the swapped prompt’s expected answer is the other direction.

No article. With the article replaced by empty text, the released model’s macro-F1 was 0.4384 (0.4085 to 0.4726), and the full-data model’s 0.4289 (0.3941 to 0.4634), against 0.1976 (0.1855 to 0.2095) for the class-prior baseline, a reference the amendment fixed. The pre-specified interpretation of a macro-F1 at or below 0.60 is that the answers depend on the article’s text, and it applies to both. This shows that the models need the article, not that they never saw the test set: a model always trained with articles can fail without one either way. Both intervals lie below the 0.511 that DeYoung et al. [6] report for a classifier trained to answer from the prompt alone, a different model on their own scoring.

Title only. On the 1,209 prompts whose article gives a title, the title alone raised the released model’s macro-F1 over no article, on the same prompts, by 0.0939 (0.0655 to 0.1234), and the full-data model’s by 0.1024 (0.0736 to 0.1331). The intervals lie wholly above 0.05, so the pre-specified interpretation applies to both: “the title adds information about the result: a title can state the result, or the model may recall the trial, and these checks cannot tell them apart”. Windisch et al. [30] report that frontier models reached an accuracy of 0.79 to 0.88 from titles alone on 250 oncology trials, on a two-answer task whose majority class was 0.584.

Intervention and comparator swapped. When the intervention and the comparator are swapped, a model that follows the comparison as written should flip its “increased” and “decreased” answers. The released model flipped 0.6652 (0.6208 to 0.7157) of its direction answers, and the full-data model 0.7226 (0.6765 to 0.7714). Where the comparator is a time point or a baseline, the released model flipped 0.2162 of its 37 direction answers. Against the swapped labels, the released model’s accuracy was 0.7808 (0.7493 to 0.8117) and the full-data model’s 0.8103 (0.7802 to 0.8400), which the pre-specified interpretation calls “partly” for both. This is a weakness: the model often keeps its direction when the comparison is reversed. A fix to test is to train on prompts whose comparator is a time point or a baseline together with their swapped copies, or to add a consistency loss that asks the answer to a swapped prompt to be the flip of the original answer. Swap augmentation of all training prompts was a candidate in model selection and did not pass, but selection measured validation log loss, not consistency under the swap; swap test-time augmentation made log loss worse (§ 6).

The cost of license filtering

This pre-registered secondary analysis compares fine-tuning on the permissively licensed articles alone with fine-tuning on all of them. The baseline configuration, fine-tuned on the 1,431 permissively licensed training articles and calibrated on the 654 permissively licensed validation prompts (three runs, their probabilities averaged), had a lower accuracy than the full-data model, fine-tuned on all 2,657 and calibrated on all 1,237 validation prompts, by 0.0123 (0.0034 to 0.0207), and a higher log loss by 0.0170 (0.0058 to 0.0284) (Table 5). Both chose temperature scaling, which does not change the top answer, so the accuracy difference comes from training alone, while the log-loss difference also reflects the different calibration prompts. The released model, which also uses the longer input, had a lower accuracy than the full-data model by 0.0140 (0.0025 to 0.0245); for log loss no difference was detected, 0.0169 (−0.0095 to 0.0397).

Minus the full-data modelAccuracyMacro-F1Log lossBrier scoreECE
Same configuration, permissively licensed articles only−0.0123 (−0.0207 to −0.0034)−0.0133 (−0.0226 to −0.0041)0.0170 (0.0058 to 0.0284)0.0106 (0.0037 to 0.0174)0.0007† (−0.0105 to 0.0102)
Released model−0.0140 (−0.0245 to −0.0025)−0.0152 (−0.0261 to −0.0036)0.0169† (−0.0095 to 0.0397)0.0100† (−0.0055 to 0.0231)0.0048† (−0.0093 to 0.0144)

Table 5. The cost of license filtering: each model minus the full-data model on Evidence Inference 2.0’s test split (1,218 prompts in 333 articles), with 95 percent intervals from 1,000 article resamples. Each is calibrated on validation: the models fine-tuned on permissively licensed articles on the 654 permissively licensed validation prompts, the full-data model on all 1,237. ECE is the expected calibration error. †No difference was detected: the interval includes zero.

Selective prediction and deferral

This pre-registered secondary analysis has two parts: the released model’s risk-coverage curve, which shows how many of its answers a reviewer could accept without checking them, and deferral of its least confident answers to Gemma 4 31B-it given the same input; the released model itself defers nothing. On the curve, accepting the 80 percent most confident answers (975 of the 1,218 test prompts, those kept at the pre-registered deferral rate of 20 percent) leaves 25 errors among them, an error rate of 0.0256, against 0.0731 for all answers, and the 35 percent most confident (427 prompts) hold no error; these points are read from the pre-registered curve, and no interval was computed for them. The area under the released model’s risk-coverage curve (AURC) was 0.0128 (0.0082 to 0.0182), its excess over a perfect ranking of the same answers 0.0100 (0.0064 to 0.0145), and the area under the generalized risk-coverage curve 0.0105 (0.0069 to 0.0147); the curves at every 5 percent of coverage are in the results files.

Table 6 gives the combined accuracy at the four pre-registered deferral rates for five ways of choosing the prompts to defer. Deferring the answers with the lowest top probability gave a combined accuracy of 0.9335 at 10 percent deferred and 0.8768 at 50 percent, against 0.9269 for the released model alone and 0.8752 for Gemma 4 31B-it alone; the oracle’s bound was 0.9573. The results files hold no interval for the cascade minus the released model alone, so no difference from the released model alone is claimed. The released model was wrong where Gemma 4 31B-it was right on 37 of the 1,218 test prompts (a share of 0.0304), and right where Gemma 4 31B-it was wrong on 100: these few prompts bound what any deferral rule could gain and leave a learned rule few cases to learn from. Against deferral by top probability, no difference was detected for the rule learned on validation at any rate, and every interval of that difference lies between a loss of 0.0048 and a gain of 0.0041 in combined accuracy. For the full-data model with Gemma 4 31B-it on 4,096-token inputs, the combined accuracy at 10 percent was 0.9294 against 0.9409 alone; for the PubMedQA model, 0.8000 against 0.7960 alone.

DeferredPromptsMax probabilityLearned ruleRandom (expected)Gemma 4 31B-it’s confidenceOracle
10 percent1210.9335 (0.9160 to 0.9492)0.9335 (0.9150 to 0.9493)0.9218 (0.9040 to 0.9369)0.9269 (0.9097 to 0.9428)0.9573 (0.9442 to 0.9693)
20 percent2430.9171 (0.8986 to 0.9328)0.9163 (0.8993 to 0.9336)0.9166 (0.8988 to 0.9322)0.9261 (0.9076 to 0.9430)0.9573 (0.9442 to 0.9693)
30 percent3650.8966 (0.8751 to 0.9173)0.8966 (0.8750 to 0.9170)0.9114 (0.8935 to 0.9276)0.9245 (0.9055 to 0.9423)0.9573 (0.9442 to 0.9693)
50 percent6090.8768 (0.8535 to 0.9013)0.8777 (0.8532 to 0.9014)0.9011 (0.8821 to 0.9182)0.9261 (0.9073 to 0.9441)0.9573 (0.9442 to 0.9693)

Table 6. Deferral (pre-registered, secondary): the combined accuracy of the released model and Gemma 4 31B-it, given the same input, when a share of the 1,218 test prompts is deferred to Gemma 4 31B-it, with 95 percent intervals from 1,000 article resamples. Max probability defers first the answers whose top probability is lowest. The learned rule was fitted and frozen on validation. Random gives the expected value of random deferral. Gemma 4 31B-it’s confidence defers first the items on which its own top probability is highest, which needs its answer on every item. The oracle defers the items the released model gets wrong and Gemma 4 31B-it gets right, which bounds any rule. The released model alone: 0.9269; Gemma 4 31B-it alone: 0.8752.

The released model’s and Gemma 4 31B-it’s EI test predictions ran on a rented NVIDIA H100 SXM GPU with 80 GB, at $3.52 an hour; at that rate, 1,000 EI questions cost $0.297 of GPU time with the released model and $2.443 with Gemma 4 31B-it, from the time each took on the GPU (Appendix § 16).

Limitations

  • For trials, one task was tested: one comparison in a randomized trial’s article, in English, with the article cut to 6,144 tokens. Other questions, wordings and kinds of document are untested, and calibration under such a shift in distribution is unmeasured.

  • EI’s test split was used for the full-data model’s criteria, secondary analyses and context ablations before the released model’s criteria; PubMedQA’s and readmission’s test splits were used in every version.

  • The pretraining text of Qwen3 and Gemma 4 is not published and may include PMC articles (EI’s articles come from PMC), EI’s repository (public since 2019), PubMedQA and the readmission data; this would favor both models. EI’s test labels are public, so no evaluation of EI can be blind. The PubMedQA model’s pseudo-labels came from a model further pretrained on PubMed abstracts (Appendix E), which may include the abstracts of EI’s test articles but no EI label. In an exploratory check, 10 EI test articles (37 prompts) shared sentences with PubMedQA abstracts that the PubMedQA model, from which the EI models were initialized, had seen in training; the full-data model’s accuracy on them was 0.8378 (0.6667 to 0.9445), and no difference from the other prompts was detected, −0.1063 (−0.2817 to 0.0051).

  • The title effect is unresolved, and the model often keeps its direction when the intervention and comparator are swapped (§ 7).

  • The released model’s EI fine-tuning used only permissively licensed articles, with the two caveats of

Section 3: the passage selection’s word statistics, counted over all training articles, and its initialization from the PubMedQA model, whose abstracts’ licenses were not checked one by one.

  • The baselines are limited. Gemma 4 31B-it is a reference that was not trained on the task: it ran zero-shot with thinking off, its answers read from its next-token letter probabilities, and its prompt template and that reading were fixed, not tuned. No fine-tuned encoder and no few-shot or reasoning-enabled large model was run on the same inputs, and no ablation isolates the input format or the PubMedQA initialization.

  • The model returns no evidence span, which would let a reviewer check an answer against the article.

  • Fiorillo is a research model and is not for clinical use. No person was recruited for this work.

Discussion

A 4-billion-parameter open model, fine-tuned for EI only on articles under CC BY, CC0 or the public domain (it was initialized from a PubMedQA model whose abstracts’ licenses were not checked one by one), met criteria fixed in advance on EI’s test split, in the split’s second pre-registered use. Its stated probabilities matched how often it was right within the pre-registered limit: its expected calibration error was 0.0168 against 0.05, and no miscalibration of any answer was detected by the per-answer calibration slopes and intercepts (Appendix § 15). A reviewer who accepted its 80 percent most confident answers would have met an error rate of 0.0256 among them. These figures hold as far as EI’s test split represents a reviewer’s trials.

What the evaluation does not show is how much of the accuracy comes from reading the article and how much from what the base model saw in pretraining. The answers depend on the article, but the title adds information, and the ablations here cannot separate a title that states the result from recall of the trial. Four results would change that reading: a test on trials published after the base model’s release, where recall is not possible; membership-inference tests on the base model; counterfactual edits of EI’s annotated evidence spans, which ask whether the answer follows the edited text; and a model that follows a swapped comparison.

License filtering had a measurable cost: the same configuration was less accurate when it learned only from permissively licensed articles (Table 5). The release makes that trade explicit, and its NOTICE file credits each of the 1,610 permissively licensed training and validation articles with its identifier, license and citation.

Statements

Conflicts of interest. I may later build a company on this model.

Funding. None. I paid for the computing myself.

Ethics. This work used public, de-identified data and published articles only. No person was recruited or contacted.

Data and code availability. The release: Fiorillo v0.5 on Hugging Face, digital object identifier (DOI) 10.57967/hf/10722 ([18]), under the Apache License 2.0, with its model card, its inference script and a NOTICE file that credits each permissively licensed article with its identifier, license and citation. Its revision 0058ed7 differs from the revision the DOI records, 56e5944, only in how the script loads its libraries, so that each task runs on macOS when its examples are in a file of their own, and in a note. in the model card. The earlier encoder, Fiorillo reader v1: DOI 10.57967/hf/10658 [17]. The registration and its amendment: https://osf.io/kaxmn/ [16]. The code, the results files and this paper’s sources: https://github.com/johann-e-li/fiorillo, under the Apache License 2.0.

Use of artificial intelligence tools. Claude, by Anthropic, wrote much of the code, ran the analyses with me and drafted the text. I reviewed every part and take responsibility for all of it. Artificial intelligence (AI) tools are not authors.

Every run and model

Table 7 lists every run of the released model’s training configurations and every model built from them, with the full-data model for reference, under the identifiers of the results files. The validation score is the model-selection score: the out-of-fold log loss of the calibrated probabilities on the 654 permissively licensed validation prompts. The margin was 0.0110. The longer input’s two runs scored 0.1834 on average against the baseline configuration’s 0.2116 for its first two runs, and both of its runs scored below the baseline run of the same seed; it was the only candidate that passed. The pre-registered comparison of each candidate’s two-run average with the baseline’s on the same prompts, from the calibrated out-of-fold probabilities, gave these log-loss differences: for the longer input, −0.0286 (−0.0496 to −0.0097); for swap augmentation, 0.0014 (−0.0156 to 0.0187); for the first higher learning rate, −0.0060 (−0.0181 to 0.0057); and for the second, −0.0156 (−0.0316 to 0.0021). For the last three no difference was detected. The longer input’s third run, s9_long_3, was not calibrated when it was trained; it was calibrated afterward by the same method on the same 654 prompts, and its figures are exploratory: its validation score was 0.1823, its test log loss 0.2139 (0.1725 to 0.2626) and its accuracy 0.9319 (0.9154 to 0.9467). Its own calibration enters no frozen model or pre-registered comparison; its weights are part of the released soup, s9_ei_wavg, as built.

Table 7. Every run and model of the released model’s Evidence Inference 2.0 training configurations, under the identifiers of the results files (the released model is s9_ei_wavg). The validation score is the out-of-fold log loss of the calibrated probabilities on the 654 permissively licensed validation prompts (lower is better); the test columns give the estimate and its 95 percent interval from 1,000 article resamples on the 1,218 test prompts, after each model’s own calibration. ECE is the expected calibration error, whose percentile interval can lie above its estimate, since the ECE is biased upward in resamples. s9_b and s9_ei average their runs’ probabilities (prediction ensembles); s9_ei_wavg averages their weights (a uniform soup); s9_ei_wavg_sa adds swap test-time augmentation. Runs that were not evaluated on the test split are marked so. aThe full-data model’s score, on all 1,237 validation prompts, is not on the same prompts; that it matches the model’s test log loss to four decimals is a coincidence (0.199444 and 0.199449). bCalibrated afterward by the same method (exploratory); model selection did not score this run alone.

ConfigurationResults-file IDValidation scoreTest log lossTest accuracyTest ECE
Baselines9_b_10.21710.2239 (0.1789 to 0.2746)0.9269 (0.9093 to 0.9438)0.0153 (0.0107 to 0.0321)
s9_b_20.20610.2248 (0.1793 to 0.2731)0.9245 (0.9058 to 0.9412)0.0118 (0.0101 to 0.0306)
s9_b_30.20940.2189 (0.1735 to 0.2704)0.9278 (0.9099 to 0.9436)0.0060 (0.0093 to 0.0282)
s9_b0.20670.2164 (0.1714 to 0.2663)0.9286 (0.9116 to 0.9446)0.0126 (0.0105 to 0.0328)
Swap augmentations9_swap_10.2100not evaluatednot evaluatednot evaluated
s9_swap_20.2174not evaluatednot evaluatednot evaluated
First higher learning rates9_lr1_10.2153not evaluatednot evaluatednot evaluated
s9_lr1_20.2015not evaluatednot evaluatednot evaluated
Second higher learning rates9_lr2_10.2053not evaluatednot evaluatednot evaluated
s9_lr2_20.1983not evaluatednot evaluatednot evaluated
Longer inputs (chosen)s9_long_10.18160.2177 (0.1728 to 0.2671)0.9245 (0.9072 to 0.9408)0.0215 (0.0137 to 0.0374)
s9_long_20.18520.2235 (0.1794 to 0.2738)0.9294 (0.9118 to 0.9447)0.0226 (0.0139 to 0.0392)
s9_long_3b0.18230.2139 (0.1725 to 0.2626)0.9319 (0.9154 to 0.9467)0.0164 (0.0118 to 0.0328)
s9_ei0.17900.2116 (0.1692 to 0.2594)0.9302 (0.9125 to 0.9457)0.0115 (0.0103 to 0.0316)
s9_ei_wavg0.17810.2164 (0.1714 to 0.2645)0.9269 (0.9089 to 0.9426)0.0168 (0.0124 to 0.0348)
s9_ei_wavg_sa0.25150.3086 (0.2545 to 0.3692)0.9212 (0.9037 to 0.9380)0.0648 (0.0510 to 0.0818)
Full-data models8_ei0.1994a0.1994 (0.1573 to 0.2486)0.9409 (0.9246 to 0.9554)0.0119 (0.0119 to 0.0300)

Table 7.

The pre-registered analyses and the deviations

Table 8 maps each analysis to its code in the registration (H1 to H4 for the full-data model; K1 to K10 in the amendment), its status in this paper and the label the registration gave it.

Every planned change was recorded with its reason before the work it changed, except one that recorded a GPU already deployed. The changes planned before the registration was filed are listed in it, and none changed the four criteria, the calibration rule or the list of comparisons. Six of them concerned how Gemma 4 31B-it’s serving engine (vLLM) was installed, checked and run. One set how Gemma 4 31B-it’s answer probabilities are obtained when an option letter is missing from the top 20 log-probabilities of its first output (its top 1,000 are read first, then a second process is run; the quantity read stays its next-token probabilities); it is an input to criteria 3 and 4. The changes planned before the amendment was filed are part of what it registered; among them are two runs for each candidate configuration, deciding swap test-time augmentation on validation, no larger base model, fallback settings for BioGPT-Large-PubMedQA in case its checkpoint arguments could not be read, the title-only input’s rule, three rules of the license filtering (fixed with no article’s class changed), and the cost per 1,000 questions. Table 9 lists the deviations after the registration and after the amendment.

DeviationEffect on the reported results
After the registration, exploratory checks of the full-data model were added: accuracy by whether an annotated evidence span lies inside the input, the overlap of EI’s articles with PubMedQA, duplicates across EI’s splits, and intervals for the groups’ differences.None on any pre-registered number; the overlap check is in § 10.
Gemma 4 31B-it’s GPU time in the full-data model’s evaluation was split between EI and PubMedQA by item count, which no plan stated.Only the PubMedQA cost, which it overstates (Appendix § 16).
A top-level configuration file was added to the release folder so that Hugging Face counts downloads.None.
TabICLv2, a candidate member of the new readmission ensemble, was not trained, because of an error in the project’s version check, not because it could not run; no plan stated this.The new ensemble was fitted without it, and its pre-registered comparison with LightGBM was not computed; the selection rule then kept the earlier ensemble (Appendix § 17).
The rented GPU installed vLLM 0.30.0’s default build for CUDA 13.0 (NVIDIA’s GPU computing platform), as the full-data model’s plan allowed for a driver of CUDA 13.0 or later (it reported 13.2), while the released model’s plan had named the CUDA 12.9 build among its fixed versions; no plan stated this change.None: the pre-registered procedure and Gemma 4 31B-it’s code, revision, prompt and reading of its answers were unchanged.
BioGPT-Large-PubMedQA’s checkpoint arguments could not be read (their host did not resolve).It ran with the fallback settings fixed in advance; its accuracy, 0.7520, is below the 81.0 percent that Luo et al. [19] report, so it may be understated (Appendix § 17).
The third run of the chosen configuration was left uncalibrated by an omission and calibrated afterward.Its own figures are exploratory (Appendix § 13); its weights are part of the released soup as planned.

Table 9. Deviations after the registration (for the full-data model) and after the amendment (for the released model), with their effect on the reported results.

The registration was filed under an embargo until 1 October 2027; the amendment said that the embargo would end on the day of the release. The release was made public on 2 October 2026, and OSF showed the registration public when it was read at 01:06 UTC on 3 October 2026, which was still the evening before in New York.

Per-class results and calibration

Table 10 gives the released model’s F1 for each class and its calibration slope and intercept, each class against the rest (pre-registered secondary results). For each class the slope’s interval includes 1 and the intercept’s includes 0: no miscalibration of any class was detected. The slopes’ intervals all lie within 0.7943 to 1.1833, and the intercepts’ within −0.5151 to 0.5996.

ClassF1Calibration slopeCalibration interceptPrompts
Significantly increased0.9185 (0.8940 to 0.9390)0.9112 (0.8188 to 1.0405)0.2244 (−0.1219 to 0.5996)411
Significantly decreased0.9158 (0.8876 to 0.9437)0.9919 (0.8773 to 1.1833)−0.1294 (−0.4867 to 0.1917)294
No significant difference0.9399 (0.9218 to 0.9555)0.8850 (0.7943 to 1.0011)−0.1139 (−0.5151 to 0.2811)513

Table 10. The released model on Evidence Inference 2.0’s test split, each class against the rest: F1, and the calibration slope (the coefficient of a logistic regression of the class’s indicator on the logit of its calibrated probability; 1 is ideal) and intercept (with that logit as an offset; 0 is ideal), each with its 95 percent interval from 1,000 article resamples.

Table 11 gives, with the primary analysis, each class’s F1: the released model minus Gemma 4 31B-it and minus the class-prior baseline (the other differences reported with it are in Tables 1 and 2). The class-prior baseline answers every prompt “no significant difference”, so its F1 for the two directions is zero.

ClassF1, released modelMinus Gemma 4 31B-it’sMinus the class prior’s
Significantly increased0.9185 (0.8940 to 0.9390)0.0712 (0.0366 to 0.1078)0.9185 (0.8940 to 0.9390)
Significantly decreased0.9158 (0.8876 to 0.9437)0.0858 (0.0488 to 0.1262)0.9158 (0.8876 to 0.9437)
No significant difference0.9399 (0.9218 to 0.9555)0.0170† (−0.0021 to 0.0366)0.3472 (0.3123 to 0.3804)

Table 11. Table 11. Per-class F1, reported with the primary analysis: the F1 of the released model on the 1,218 test prompts, and its difference from Gemma 4 31B-it’s and from the class-prior baseline’s, each with its 95 percent interval from 1,000 article resamples. †No difference was detected: the interval includes zero.

The cost per 1,000 questions

The cost per 1,000 questions is 1,000 times the GPU seconds per question, divided by 3,600 seconds an hour, times the rented GPU’s hourly rate, $3.52. For the released model the seconds are its forward passes over the test prompts; for Gemma 4 31B-it on EI they are its whole run’s time on the GPU over its three passes (the first answers, the answers asked again with more log-probabilities, and the second process), model loading not counted; each job ran alone on the GPU (Table 12). The PubMedQA model and Gemma 4 31B-it on PubMedQA were not run again on the test split for the released model, so their seconds come from the full-data model’s evaluation, priced at the same hourly rate. In that evaluation, Gemma 4 31B-it’s process answered EI and PubMedQA items together and its time was split between them by item count, which overstates PubMedQA’s time: split by prompt tokens, it would be about 0.174 seconds a PubMedQA item (computed in the repository’s report on the full-data model). The cost is not computed for readmission, whose trees run on the CPU.

TaskModelGPU seconds per questionDollars per 1,000 questions
Evidence InferenceReleased model0.3034$0.297
Evidence InferenceGemma 4 31B-it2.4982$2.443
PubMedQAPubMedQA model0.0200$0.020
PubMedQAGemma 4 31B-it0.8040$0.786

Table 12. Table 12. The GPU time per question and the cost per 1,000 questions at the rented GPU’s rate, $3.52 an hour. GPU is graphics processing unit. Gemma 4 31B-it’s PubMedQA time is its share by item count in the full-data model’s evaluation, which overstates it (see the text).

The PubMedQA and readmission models

The release. Fiorillo v0.5 holds one model for each task, and the release is judged task by task: the EI model of the main text, a PubMedQA model and a readmission model.

PubMedQA. The PubMedQA model, from which the EI model is initialized, is Qwen3-4B-Base with the same kind of classification head, and its earlier calibration, unchanged in this release. It is evaluated on the 500 expert-labeled test items of PubMedQA (Jin et al., [12]). It learned from PubMedQA’s abstracts under PubMedQA’s MIT License; unlike EI’s articles, those abstracts’ own licenses were not checked one by one, and most PubMed abstracts are the publishers’. Its labels for PubMedQA’s unlabeled abstracts are pseudo-labels from an earlier model of mine built on Fiorillo reader v1 (Li, [17]), an encoder further pretrained on PubMed abstracts with every PubMedQA article removed; no outside language model labeled them.

On PubMedQA’s 500 test items, the PubMedQA model’s accuracy was 0.7960 (0.7600 to 0.8340) and its log loss 0.5797 (Table 13). For its class “no”, the calibration slope was 1.1869 (1.0296 to 1.4260): the interval excludes 1, so miscalibration was detected, with probabilities less extreme than the outcomes support (Table 14); for “yes” and “maybe” no miscalibration was detected. Against BioGPT-Large-PubMedQA, reported uncalibrated as its primary result, the model’s log loss was lower by 0.3102 (0.1996 to 0.4219) and its accuracy higher by 0.0440 (0.0139 to 0.0780). BioGPT-Large-PubMedQA’s accuracy here, 0.7520, is below the 81.0 percent that Luo et al. [19] report for it; its checkpoint arguments could not be read, so it ran with fallback settings fixed in advance (Appendix § 14), and it is a reference only. Against Gemma 4 31B-it, BioGPT-Large-PubMedQA’s log loss was higher by 0.2768 (0.1695 to 0.3925); for accuracy no difference was detected, −0.0320 (−0.0680 to 0.0040). These test items were used in the evaluation of every version, so these results are not confirmatory.

SystemAccuracyMacro-F1Log lossBrier scoreECE
PubMedQA model0.7960 (0.7600 to 0.8340)0.5698 (0.5406 to 0.6039)0.5797 (0.5070 to 0.6509)0.3147 (0.2683 to 0.3595)0.0401 (0.0315 to 0.0800)
Gemma 4 31B-it0.7840 (0.7460 to 0.8200)0.5862 (0.5527 to 0.6252)0.6131 (0.5309 to 0.6957)0.3209 (0.2728 to 0.3696)0.0575 (0.0431 to 0.0970)
BioGPT-Large-PubMedQA, uncalibrated0.7520 (0.7120 to 0.7900)0.5481 (0.5119 to 0.5922)0.8899 (0.7428 to 1.0347)0.4058 (0.3462 to 0.4623)0.1371 (0.1114 to 0.1803)
BioGPT-Large-PubMedQA, calibrated (secondary)0.7380 (0.6980 to 0.7761)0.5269 (0.4963 to 0.5638)0.7340 (0.6341 to 0.8367)0.3886 (0.3352 to 0.4389)0.0876 (0.0667 to 0.1299)
Class prior0.5520 (0.5080 to 0.5940)0.2371 (0.2246 to 0.2484)1.1593 (1.0401 to 1.2920)0.5855 (0.5503 to 0.6208)0.0646 (0.0226 to 0.1086)

Table 13. PubMedQA, the 500 expert-labeled test items (this test split was used in the evaluation of every version, so these results are not confirmatory). Each cell gives the estimate and its 95 percent interval from 1,000 item resamples; ECE is the expected calibration error. BioGPT-Large-PubMedQA was fine-tuned on sets that hold all 150 validation items, so its uncalibrated probabilities are its primary result and its calibration on those items is secondary.

ClassCalibration slopeCalibration interceptItems
Yes0.9647 (0.8394 to 1.1381)−0.0217 (−0.2800 to 0.2453)276
No1.1869 (1.0296 to 1.4260)−0.1513 (−0.3927 to 0.0973)169
Maybe0.8990 (0.5392 to 1.3122)0.2371 (−0.0890 to 0.5250)55

Table 14. The PubMedQA model on PubMedQA’s 500 test items, each class against the rest: the calibration slope (1 is ideal) and intercept (0 is ideal), defined as in Table 10, each with its 95 percent interval from 1,000 item resamples (this test split was used in every version, so these results are not confirmatory).

Readmission. The readmission task asks whether a hospital encounter of a patient with diabetes was followed by no readmission, a readmission after 30 days, or one within 30 days, on the University of California, Irvine (UCI) Diabetes 130-US hospitals data (CC BY 4.0; Strack et al., [25]); its test split holds 6,998 encounters. The readmission model is a weighted ensemble of gradient-boosted trees, XGBoost (Chen and Guestrin, [4]) with weight 0.4 and CatBoost (Prokhorenkova et al., [22]) with weight 0.6, with a temperature of 0.9957; a selection rule fixed in advance kept this ensemble, from the earlier version (Fiorillo v0.4), over a new one. On the 6,998 test encounters, its log loss was 0.8275 against the class-prior baseline’s 0.8861, and its AUROC (area under the receiver operating characteristic curve) for readmission within 30 days was 0.6622 (Table 15). TabICLv2, a pre-registered candidate member of the new ensemble, was not trained because of an error in the project’s version check, so the new ensemble was fitted without it and the pre-registered comparison of TabICLv2 with LightGBM (Ke et al., [13]) was not computed (Appendix § 14). The new ensemble’s out-of-fold log loss, 0.8368, was not below the earlier ensemble’s, 0.8372, by the 0.002 the rule required, so the release kept the earlier ensemble, and the difference between the ensembles is zero. For the XGBoost and CatBoost trees refitted with recoded diagnosis fields, neither of them in the released ensemble, no difference in log loss from their earlier counterparts was detected: 0.0016 (−0.0004 to 0.0037) and −0.0002 (−0.0023 to 0.0017). Log loss is the selection rule’s measure. On other pre-registered metrics, the recoded XGBoost’s Brier score was higher by 0.0014 (0.0000 to 0.0028) and its quadratic weighted kappa lower by 0.0129 (0.0006 to 0.0248), and the 30-day calibration intercept moved for both trees, by 0.0130 (0.0080 to 0.0184) and −0.0076 (−0.0126 to −0.0024). Each interval is a 95 percent interval from 1,000 item resamples of the 6,998 test encounters. This test split, too, was used in the evaluation of every version.

SystemLog lossECEAccuracyAUROC, 30 daysCalibration intercept, 30 daysCalibration slope, 30 days
Tree ensemble0.8275 (0.8132 to 0.8411)0.0066 (0.0085 to 0.0225)0.6157 (0.6042 to 0.6269)0.6622 (0.6394 to 0.6855)−0.0192 (−0.1031 to 0.0646)1.0493 (0.9108 to 1.1940)
Class prior0.8861 (0.8734 to 0.8984)0.0017 (0.0002 to 0.0127)0.5942 (0.5829 to 0.6047)0.5000 (0.5000 to 0.5000)−0.0299 (−0.1120 to 0.0536)not computed

Table 15. Readmission on the University of California, Irvine, Diabetes 130-US hospitals data, the 6,998 test encounters (this test split was used in the evaluation of every version, so these results are not confirmatory). Each cell gives the estimate and its 95 percent interval from 1,000 item resamples. ECE is the expected calibration error, whose percentile interval can lie above its estimate, since the ECE is biased upward in resamples; AUROC is the area under the receiver operating characteristic curve; it and the calibration intercept and slope are for readmission within 30 days against the rest. The calibration slope is not computed for the class prior, whose prediction is the same for every encounter.

References

  1. [1]Glenn W. Brier. Verification of forecasts expressed in terms of probability. Monthly Weather Review, volume 78, issue 1, pages 1 to 3, 1950. 10.1175/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2.doi.org/10.1175/1520-0493(1950)078<0001:vofeit>2.0.co;2
  2. [2]Jan Buchmann, Max Eichler, Jan-Micha Bodensohn, Ilia Kuznetsov, and Iryna Gurevych. Document structure in long document transformers. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1056 to 1073, St. Julian’s, Malta, 2024a. 10.18653/v1/2024.eacl-long.64.arxiv.org/abs/2401.17658
  3. [3]Jan Buchmann, Xiao Liu, and Iryna Gurevych. Attribute or abstain: Large language models as long document assistants. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 8113 to 8140, Miami, Florida, USA, 2024b. 10.18653/v1/2024.emnlp-main.463.arxiv.org/abs/2407.07799
  4. [4]Tianqi Chen and Carlos Guestrin. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 785 to 794, San Francisco, California, USA, 2016. 10.1145/2939672.2939785.DOI
  5. [5]Jay DeYoung, Sarthak Jain, Nazneen Fatema Rajani, Eric Lehman, Caiming Xiong, Richard Socher, and Byron C. Wallace. ERASER: A benchmark to evaluate rationalized NLP models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4443 to 4458, online, 2020a. 10.18653/v1/2020.acl-main.408.arxiv.org/abs/1911.03429
  6. [6]Jay DeYoung, Eric Lehman, Benjamin Nye, Iain Marshall, and Byron C. Wallace. Evidence Inference 2.0: More data, better models. In Proceedings of the 19th SIGBioMed Workshop on Biomedical Language Processing, pages 123 to 132, online, 2020b. Association for Computational Linguistics. 10.18653/v1/2020.bionlp-1.13.arxiv.org/abs/2005.04177
  7. [7]Yonatan Geifman and Ran El-Yaniv. Selective classification for deep neural networks. In Advances in Neural Information Processing Systems 30, 2017. https://proceedings.neurips.cc/paper_files/paper/2017/hash/4a8423d5e91fda00bb7e46540e2b0cf1-Abstract.html.arxiv.org/abs/1705.08500
  8. [8]Gemma Team. Gemma 4 technical report. arXiv:2607.02770, 2026. 10.48550/arXiv.2607.02770. Checkpoint: https://huggingface.co/google/gemma-4-31B-it.
  9. [9]Alon Gorenshtein, Mahmud Omar, Yiftach Barash, Jonathan B. Kruskal, Muneeb Ahmed, Olga R. Brook, Ben Illigens, Girish N. Nadkarni, and Eyal Klang. Small language models in clinical medicine: a systematic review of performance, safety, and deployment feasibility. Journal of the American Medical Informatics Association, advance article ocag164, 2026. 10.1093/jamia/ocag164.DOI
  10. [10]Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1321 to 1330, 2017. https://proceedings.mlr.press/v70/guo17a.html.arxiv.org/abs/1706.04599
  11. [11]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. https://iclr.cc/virtual/2022/poster/6319.arxiv.org/abs/2106.09685
  12. [12]Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. PubMedQA: A dataset for biomedical research question answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, pages 2567 to 2577, Hong Kong, China, 2019. 10.18653/v1/D19-1259.arxiv.org/abs/1909.06146
  13. [13]Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. LightGBM: A highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems 30, 2017. https://proceedings.neurips.cc/paper_files/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html.
  14. [14]Meelis Kull, Miquel Perello Nieto, Markus Kängsepp, Telmo Silva Filho, Hao Song, and Peter Flach. Beyond temperature scaling: Obtaining well-calibrated multi-class probabilities with Dirichlet calibration. In Advances in Neural Information Processing Systems 32, 2019. https://proceedings.neurips.cc/paper_files/paper/2019/hash/8ca01ea920679a0fe3728441494041b9-Abstract.html.arxiv.org/abs/1910.12656
  15. [15]Eric Lehman, Jay DeYoung, Regina Barzilay, and Byron C. Wallace. Inferring which medical treatments work from reports of clinical trials. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 3705 to 3717, Minneapolis, Minnesota, 2019. 10.18653/v1/N19-1371.arxiv.org/abs/1904.01606
  16. [16]Johann Emmanuel Li. Fiorillo v0.4 against Gemma 4 31B-it on Evidence Inference 2.0: a test fixed before any test prediction. OSF Preregistration, OSF Registries, registered 1 October 2026, with its update of 1 October 2026. 10.17605/OSF.IO/KAXMN.DOI
  17. [17]Johann Li. fiorillo-reader-v1. Hugging Face, model, version c92dc7a, 2026. 10.57967/hf/10658.DOI
  18. [18]Johann Li. fiorillo-v0.5. Hugging Face, model, version 56e5944, 2026. 10.57967/hf/10722.DOI
  19. [19]Renqian Luo, Liai Sun, Yingce Xia, Tao Qin, Sheng Zhang, Houfeng Poon, and Tie-Yan Liu. BioGPT: generative pre-trained transformer for biomedical text generation and mining. Briefings in Bioinformatics, volume 23, issue 6, article bbac409, 2022. 10.1093/bib/bbac409.DOI
  20. [20]Iain J. Marshall, Benjamin Nye, Joël Kuiper, Anna Noel-Storr, Rachel Marshall, Rory Maclean, Frank Soboczenski, Ani Nenkova, James Thomas, and Byron C. Wallace. Trialstreamer: A living, automatically updated database of clinical trial reports. Journal of the American Medical Informatics Association, volume 27, issue 12, pages 1903 to 1912, 2020. 10.1093/jamia/ocaa163.DOI
  21. [21]Mahdi Pakdaman Naeini, Gregory F. Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using Bayesian binning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 29, issue 1, pages 2901 to 2907, 2015. 10.1609/aaai.v29i1.9602.
  22. [22]Liudmila Prokhorenkova, Gleb Gusev, Aleksandr Vorobev, Anna Veronika Dorogush, and Andrey Gulin. CatBoost: unbiased boosting with categorical features. In Advances in Neural Information Processing Systems 31, 2018. https://proceedings.neurips.cc/paper_files/paper/2018/hash/14491b756b3a51daac41c24863285549-Abstract.html.arxiv.org/abs/1706.09516
  23. [23]Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, volume 3, number 4, pages 333 to 389, 2009. 10.1561/1500000019.
  24. [24]Oscar Sainz, Jon Campos, Iker García-Ferrero, Julen Etxaniz, Oier Lopez de Lacalle, and Eneko Agirre. NLP evaluation in trouble: On the need to measure LLM data contamination for each benchmark. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 10776 to 10787, Singapore, 2023. 10.18653/v1/2023.findings-emnlp.722.
  25. [25]Beata Strack, Jonathan P. DeShazo, Chris Gennings, Juan L. Olmo, Sebastian Ventura, Krzysztof J. Cios, and John N. Clore. Impact of HbA1c measurement on hospital readmission rates: Analysis of 70,000 clinical database patient records. BioMed Research International, volume 2014, article 781670, 2014. 10.1155/2014/781670.DOI
  26. [26]Jeremias Traub, Till J. Bungert, Carsten T. Lüth, Michael Baumgartner, Klaus H. Maier-Hein, Lena Maier-Hein, and Paul F. Jäger. Overcoming common flaws in the evaluation of selective classification systems. In Advances in Neural Information Processing Systems 37, pages 2323 to 2347, 2024. 10.52202/0799017-0076.arxiv.org/abs/2407.01032
  27. [27]Emiel van Miltenburg, Chris van der Lee, and Emiel Krahmer. Preregistering NLP research. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 613 to 623, online, 2021. 10.18653/v1/2021.naacl-main.51.
  28. [28]David Wadden, Kejian Shi, Jacob Morrison, Alan Li, Aakanksha Naik, Shruti Singh, and others. SciRIFF: A resource to enhance language model instruction-following over scientific literature. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 6072 to 6109, 2025. 10.18653/v1/2025.emnlp-main.310.arxiv.org/abs/2406.07835
  29. [29]Somin Wadhwa, Jay DeYoung, Benjamin Nye, Silvio Amir, and Byron C. Wallace. Jointly extracting interventions, outcomes, and findings from RCT reports with LLMs. In Proceedings of the 8th Machine Learning for Healthcare Conference, volume 219 of Proceedings of Machine Learning Research, pages 754 to 771, 2023. https://proceedings.mlr.press/v219/wadhwa23a.html.
  30. [30]Paul Windisch, Carole Koechli, Fabio Dennstädt, Daniel M. Aebersold, Daniel R. Zwahlen, Robert Förster, and Christina Schröder. Evidence use and identifier-conditioned prior knowledge in large language model classification of oncology trials assessed through progressive content removal and counterfactual testing: Comparative analysis. JMIR AI, volume 5, article e95565, 2026. 10.2196/95565.DOI
  31. [31]Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S. Morcos, and others. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 23965 to 23998, 2022. https://proceedings.mlr.press/v162/wortsman22a.html.arxiv.org/abs/2203.05482
  32. [32]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, and others. Qwen3 technical report. arXiv:2505.09388, 2025. 10.48550/arXiv.2505.09388.arxiv.org/abs/2505.09388

Paper details

vlnc:W_zpjw9wxw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents