Manuscript Offprint
arXiv:2610.06345Breaking Bureaucracy: Evaluating open-source LLMs for legal document review
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In this paper, we evaluate open-source generative LLMs on legal Natural Language Inference (NLI). Legal inspectorial processes take place in specific domains and often deal with confidential data. This creates a need for working with local models that do not require labeled training data. We evaluate our models on the ContractNLI benchmark and two NLI4Wills datasets. We successfully reproduce the baseline for the task (Span NLI BERT) and we evaluate multiple open-source LLMs on the same task. We analyze the invalid rate of the models, and their stability across temperature settings and domains. Among the generative models, Gemma-4 26B performs the best, reaching an accuracy of 81.2%, even outperforming the supervised model on one metric. On accuracy, it is not possible to beat the supervised model with zero-shot approaches. Qwen-3.6 35B performs well on both ContractNLI and additional datasets in the legal wills domain. Our findings indicate that zero-shot, open-source, generative LLMs are a viable alternative for real-world legal NLI when no supervised data is available. Our code is available at https://github.com/fbaratov/contractnli-llms.
1 Introduction
Document review is a task that involves human experts investing considerable hours reading and reviewing a number of legal documents, and is a large burden on legal processes for organizations (Nithya et al., 2024). This includes government inspectorates, whose administrative inspections are heavily focused on document review for regulatory non-compliance detection. As a result, there has been an interest from inspectorates in applying computational methods to their inspections, hence reducing the workload for human experts.
One potential method for computer-assisted document review is natural language inference (NLI). NLI is especially fitting to assist inspectors in their responsibility of reviewing documents with regards to government regulations in order to assess their regulatory compliance. However, there are several obstacles in effectively integrating deep learning-based methods into inspectorial processes. First, inspections are expected to be confidential, meaning that API-based proprietary models would pose a security risk. Second, inspectorial processes take place in specific legal domains, such as education and transport, thus supervised methods require substantial data labeling for each newly presented domain. This issue is often exacerbated by the bureaucratic obstacles of gaining access to potentially viable data, eliminating the option of extensive training or fine-tuning supervised methods.
In this paper, we evaluate open-source LLMs on ContractNLI (Koreeda and Manning, 2021), an English-language legal NLI dataset, to investigate the potential of these models in settings without labelled training data. Open-source LLMs are especially suited for our use case, as they (a) can be run locally, and can thus be trusted with sensitive documents, (b) can be used without extensive fine-tuning through zero-shot and few-shot learning, and (c) have accessible inner workings, allowing them to convey predictive uncertainty.
Our contributions are as follows: (1) We reproduce Koreeda and Manning (2021)'s model for ContractNLI, Span NLI BERT, in order to verify their results and confirm it as a reliable baseline; (2) We evaluate several state-of-the-art open-weight quantized LLMs on ContractNLI, finding that they do not meet the supervised results but reach reasonable accuracy (up to 81%) without any finetuning. We additionally assess generalizability to different legal domains by validating on the NLI4Wills dataset; (3) We conduct a temperature and logit-based stability analyses, finding that the models are robust against changes in temperature, but that logits for most models do not reliably reflect uncertainty.
Hashemi Chaleshtori et al. (2024) conclude that, based on criteria such as task difficulty, as well as real-world risks and applications, ContractNLI is a good dataset for evaluating AI-assisted decision making. Multiple previous studies, such as Schuster et al. (2022), and Tang (2023), have evaluated models on the ContractNLI dataset. Narendra et al. (2024) present results based on GPT4 and a fine-tuned Mixtral implementation. However, they exclude the “NotMentioned” labels from their evaluation, as the focus of their study was on ContractNLI’s evidence identification task. Most recently, Liu et al. (2025) evaluated multiple proprietary and open-source LLMs on the CUAD dataset (Hendrycks et al., 2021), which focuses on identifying clauses relevant to a specific label. They find that, on this task, proprietary models generally outperform open-source models. They also find that results are improved by larger model size and reasoning capabilities, and that quantization negatively impacts performance. Their results indicate that open-source LLMs need to be fine-tuned to reach the performance of proprietary models. We put open-source zero-shot models to the test for a different task, legal NLI, to investigate their potential in domain-specific settings without labelled data for fine-tuning.
Uncertainty estimation for LLMs Shorinwa et al. (2025) present an overview of current uncertainty quantification (UQ) methods, including white-box methods which assume that the model's architecture is at least partially visible. Methods such as predictive entropy, proposed by Shannon (1948) and applied to deep learning by authors such as Gal et al. (2016) and Ashukha et al. (2020), also consider the output distribution of a given token by assessing the log-probabilities of every possible token.
3 Methods
3.1 Generative legal NLI
Output structures In order to use generative LLMs for the NLI task, we apply the JSON output structures (see Appendix B) during inference to improve inference quality and minimize invalid answer rates. The structures consist of a free-text “explanation” field, followed by a “classification” field that outputs one of the dataset labels. We choose this order so that the explanation will be in the model’s context window when it generates a label. This way, the LLMs initially generate a free-text explanation that can be read and interpreted by a human user, and then summarize the outcomes of this explanation into a single label.
Prompts We evaluate on two prompts, provided in Appendix A, that closely resemble those used by Narendra et al. (2024). These prompts are relatively simple and allow for the face-value evaluation of LLM performance, focusing more on their inherent capability to handle the challenge posed by our datasets, and less on how performance can be increased through prompt engineering.
3.2 Uncertainty quantification
We use two of the token-level white-box UQ methods compiled by Shorinwa et al. (2025): Average negative log-probability and maximum negative token log-probability (Appendix C for equations).
4 Experiments
4.1 Datasets
ContractNLI We focus on ContractNLI (Koreeda and Manning, 2021) to evaluate our models. ContractNLI is a document-level NLI dataset which defines legal contracts as premises, and a set of 17 different statements as hypotheses. The dataset contains 607 contracts to be used as premises for the NLI task, with each contract containing annotations for 17 hypotheses. The annotations include an NLI label for whether the document entails, contradicts, or is unrelated to the hypothesis. We use the test set of 123 documents for our experiments. It contains a total of 2091 document-hypothesis samples, 1188 of which are labelled either “Contradiction” or “Entailment”, and 903 are labelled “NotMentioned”.
NLI4Wills The NLI4Wills datasets (Kwak et al., 2023) are legal NLI datasets that focus on evaluating the validity of legal will statements in the US states of Idaho and Tennessee. Three inputs are provided: a statement from a will, a condition, and a law. The task is to evaluate whether
Shorinwa et al. (2025) refer to these metrics as “average log-probability” and “maximum token log-probability” respectively. The equations themselves use negative log-probability. Therefore, we refer to them differently for added clarity.
https://stanfordnlp.github.io/contract-nli/
https://github.com/ml4ai/nli4wills-corpus/tree/main/data the law and condition support, refute, or are unrelated to the given statement. NLI4Wills consists of two datasets: NLI4Wills-Idaho and NLI4Wills-Tennessee. NLI4Wills-Idaho contains 154 input samples, and NLI4Wills-Tennessee contains 255 input samples.
4.2 Baseline reproduction
To reproduce the Span NLI BERT baseline introduced by Koreeda and Manning (2021), we utilize the code and instructions provided by the authors on GitHub. We were able to train the model provided by the authors with no significant problems and with minimal changes to the code itself.
4.3 LLM evaluation
Models We evaluate models of varying sizes from four different language families: Gemma-4 (E2B, E4B, 26B) (Gemma Team, Google DeepMind, 2026), Ministral-3 (3B, 8B, 14B) (Liu et al., 2026), Qwen-3.5 (4B, 9B, 27B) (Qwen Team, 2026a), and Qwen-3.6 (35B) (Qwen Team, 2026b). These model families are primarily chosen for their recency and variance in size, which will allow us to compare models from the same family or models of similar sizes. We run all models larger than 20 billion parameters in reasoning mode, as we expect that their larger size will allow them to make better use of reasoning mode when quantized compared to smaller models.
We set the temperature to 0.3 for all models to encourage differences in explanations across seeds, while still keeping stochasticity low enough to keep classifications reliable. We provide output structures for all models except Gemma-4 26B to follow (see Appendix B). We set context windows to 16,384 tokens, and limit the outputs to 5,000 tokens.
We use Ollama to conduct our experiments. All models use 4-bit quantization. As a result, all models can comfortably run on relatively inexpensive consumer-grade hardware.
Evaluation We use the three NLI metrics proposed by Koreeda and Manning (2021): the contradiction F1-score F1(C), entailment F1-score F1(E), and overall model accuracy. We micro-average these scores over documents and then macro-average them over labels. We evaluate our results against Span NLI BERT for the all-label setting. Because generative models sometimes lead to invalid output, we modify the evaluation script provided by Koreeda and Manning (2021) to handle invalid LLM outputs by treating them as incorrect. For all datasets, we report the mean and standard deviations of metrics over three seeds, as well as invalid output rates.
4.4 Additional analyses
Temperature analysis We repeat our evaluation for each model on several temperatures between 0.1 and 0.5. Comparing metrics between various temperature settings will help us assess the models' robustness against changes in temperature.
Uncertainty analysis For each model-label-seed combination, we perform a Mann-Whitney U Test (Mann and Whitney, 1947) to determine whether the distribution of uncertainty metrics for correct answers is stochastically less than the distribution of uncertainty metrics for incorrect answers. We use Benjamini-Hochberg false discovery control (Benjamini and Hochberg, 1995) and calculate effect sizes using Rank Biserial Correlation (Wendt, 1972). We evaluate primarily only on the logits of the label. We also provide results on (a) the logits of the whole answer and (b) the logit of the label's first token (Appendix F).
NLI4Wills validation To assess generalizability to other legal domains, we evaluate the best performing configurations for each model on the NLI4Wills datasets. Following Kwak et al. (2023), we report results on Precision, Recall, F1-scores, and Accuracy.
Ablation study We perform an ablation study for reasoning and structured outputs on all reasoning-capable models (Appendix H).
5 Results
5.1 Span NLI BERT reproduction
The values we report in Table 1 are very close to those reported by Koreeda and Manning (2021). For all metrics except F1(E), our results are within one standard deviation from those reported by the authors. For F1(E), our reproduction scores 0.008 less than the values reported by Koreeda, a difference of about 1%. As our reproduction has results very close to those reported by the authors on all metrics, we consider the method to have been successfully reproduced.
https://github.com/stanfordnlp/contract-nli-bert
| Metric | K&M | Reproduction | Re-Or | O.SD | R.SD |
|---|---|---|---|---|---|
| mAP | 0.922 ± 0.006 | 0.919 ± 0.005 | -0.003 | ✓ | ✓ |
| P@R80 | 0.793 ± 0.018 | 0.801 ± 0.022 | +0.008 | ✓ | ✓ |
| Acc | 0.875 ± 0.006 | 0.869 ± 0.006 | -0.006 | ✓ | ✓ |
| F1 (C) | 0.357 ± 0.039 | 0.341 ± 0.043 | -0.034 | ✓ | ✓ |
| F1 (E) | 0.834 ± 0.002 | 0.826 ± 0.004 | -0.008 | ✕ | ✕ |
Table 1: Reproduction results for Span NLI BERT. “Re-Or” indicates the reproduction’s gain or loss over the values reported by Koreeda and Manning (2021) ('K&M'). O.SD and R.SD indicate whether the difference is less than or equal to the original standard deviations reported by the authors or the reproduction’s standard deviations respectively.
| Model | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Majority (Ent.) | 0.463 | 0.000 | 0.590 | — |
| Span NLI BERT | 0.869 ± 0.006 | 0.357 ± 0.039 | 0.834 ± 0.002 | — |
| Gemma-4 E2B | 0.688 ± 0.003 | 0.254 ± 0.018 | 0.681 ± 0.001 | 0.0 ± 0.0 |
| Gemma-4 E4B | 0.746 ± 0.006 | 0.343 ± 0.012 | 0.753 ± 0.005 | 0.0 ± 0.0 |
| Gemma-4 26B * | 0.812 ± 0.002 | 0.443 ± 0.030 | 0.808 ± 0.003 | 1.0 ± 0.1 |
| Ministral-3 3B | 0.575 ± 0.003 | 0.110 ± 0.019 | 0.628 ± 0.001 | 0.0 ± 0.0 |
| Ministral-3 8B | 0.682 ± 0.008 | 0.325 ± 0.045 | 0.691 ± 0.009 | 0.0 ± 0.0 |
| Ministral-3 14B | 0.720 ± 0.003 | 0.372 ± 0.008 | 0.728 ± 0.002 | 0.0 ± 0.0 |
| Qwen-3.5 4B | 0.741 ± 0.007 | 0.370 ± 0.025 | 0.742 ± 0.006 | 0.1 ± 0.1 |
| Qwen-3.5 9B | 0.759 ± 0.004 | 0.330 ± 0.002 | 0.749 ± 0.002 | 0.0 ± 0.0 |
| Qwen-3.5 27B | 0.793 ± 0.005 | 0.422 ± 0.024 | 0.783 ± 0.006 | 0.3 ± 0.0 |
| Qwen-3.6 35B | 0.760 ± 0.006 | 0.330 ± 0.005 | 0.780 ± 0.008 | 0.6 ± 0.2 |
- Reasoning enabled
Output structure applied
Table 2: Results on three-way classification. Boldface indicates the best-performing model per metric, and the “Invalid Rate (%)” column indicates the average percentage of answers outputted by the LLM from which we were unable to retrieve a coherent label. The green row highlights the best-performing LLM.
5.2 LLM evaluation
ContractNLI Our main results on three-way classification are in Table 2. We find that all models outperform the majority baseline. None of the models reach the performance of the fine-tuned Span NLI BERT on Accuracy and F1(E). However, several models match or surpass its performance on F1(C). Of the tested LLMs, Gemma-4 26B performs best on all metrics, outperforming Span NLI BERT on F1(C) and outperforming all other models on other metrics. Qwen-3.5 27B achieves a slightly worse, but still similar, performance to Gemma-4 26B. Qwen-3.6 35B performs noticeably worse than these two models on most metrics, but still outperforms several other models. For medium-sized models (8B-14B parameters), Qwen-3.5 9B yields the best performance on overall accuracy and F1(E). On F1(C), it is outperformed by Ministral-3 14B. Ministral-3 8B overall has the lowest scores on metrics. Among small models (2B-4B), Qwen-3.5 4B outperforms all other generative models on F1(C). Ministral-3 3B reports the lowest results out of all models, performing worse on all metrics compared to the similarly-sized Gemma-4 E2B and Qwen-3.5 4B.
Invalid answer rates are very low across all models. All non-reasoning models have a 0.0% invalid answer rate, with the exception of Qwen-3.5 4B, which has a 0.1% invalid answer rate. Interestingly, the best performing model, Gemma-4 26B, has the highest invalid answer rate, with 1% of its answers not containing a valid label.
Temperature analysis The temperature analysis reveals that the tested models are largely robust against changes in temperature. Accuracy and F1(E) barely changes across all models, with F1(C) showing the most change. These changes can be attributed to the much smaller number of contradiction labels in the dataset. This imbalance would result in small changes in the number of correctly classified contradictions having a noticeable effect on F1(C). See Appendix E (Figure 1) for detailed results.
Uncertainty analysis The Mann-Whitney U Tests for the label-only analysis (Table 3) indicate that, for most tested models, average negative log-probability and maximum negative log-probability do not reliably reflect answer correctness. The tests for Gemma-4 E2B and Gemma-4 E4B all have significant -values for prediction token logits across
| Entailment | Contradiction | NotM. | ||||
|---|---|---|---|---|---|---|
| Model | Avg | Max | Avg | Max | Avg | Max |
| Gemma-4 E2B | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Gemma-4 E4B | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Gemma-4 26B | × | × | × | × | × | × |
| Ministral-3 3B | × | × | × | × | × | × |
| Ministral-3 8B | × | × | × | × | × | × |
| Ministral-3 14B | × | × | × | × | ✓ | ✓ |
| Qwen-3.5 4B | ✓ | ✓ | × | × | ✓ | ✓ |
| Qwen-3.5 9B | × | × | × | × | ✓ | ✓ |
| Qwen-3.5 27B | ✓ | ✓ | × | × | ✓ | ✓ |
| Qwen-3.6 35B | × | × | × | × | × | × |
Table 3: Uncertainty analysis summary for the main results (Table 2) on the label-only scope. √ indicates tests on all 3 seeds are significant ( ). × indicates otherwise.
all seeds and ground truth labels, suggesting that their output label logits are sufficiently aligned with predictive uncertainty.
Some models have significant -values on several tests, with Qwen-3.5 27B doing so on most label-only tests. However, it fails to achieve significant -values across all seeds.
The results do not suggest a wider, generalizable trend between models of the same parameter counts or families. Detailed results are available in Appendix F.
NLI4Wills Our cross-domain evaluation on the NLI4Wills datasets shows that Qwen-3.6 35B is the best-performing LLM on these datasets. However, it falls short of the RoBERTa-based baseline results reported by Kwak et al. (2023) on the Tennessee dataset. Detailed results are shown in Tables 36 and 37 in Appendix G.
Ablation study The best-performing settings per model are shown in Table 4. The ablations on Gemma-4 models do not have a large effect on the accuracy, but F1(C) scores on the smaller models tend to be higher for the reasoning-only settings. This difference is less noticeable for Gemma-4 26B, where scores between reasoning-only and structure-only are mostly the same.
Qwen-3.5 models tend to have a very high invalid output rate (12–69%) when for the reasoning-only ablation. This results in a much lower model accuracy compared to other settings. The invalid output rate decreases greatly when both structures and reasoning are used, and becomes negligible ( 0.1%) for the structure-only ablation. Qwen-3.6 35B performs best across all metrics in the reasoning-only ablation while maintaining a very low invalid output rate.
Across all models, using structured outputs and reasoning simultaneously rarely results in higher scores compared to using only one of the two, nor does it result in lower invalid output rates. Detailed results are available in Appendix I.
| Model | Accuracy | F1(C) | F1(E) | IR (%) |
|---|---|---|---|---|
| S-NLI-BERT | — | |||
| Gemma-4 E2B * | ||||
| Gemma-4 E4B * | ||||
| Gemma-4 26B | ||||
| Qwen-3.5 4B | ||||
| Qwen-3.5 9B | ||||
| Qwen-3.5 27B | ||||
| Qwen-3.6 35B* |
- Reasoning enabled
Output structure applied
Table 4: Ablation study – best setting per model. Boldface indicates the best-performing model per metric. The IR (%) column corresponds to the invalid answer rate. Subscripts correspond to standard deviations. The green row highlights the best-performing LLM.
6 Conclusion
In this paper, we successfully reproduced Span NLI BERT, and investigated the performance of ten zero-shot LLMs in three model families on the NLI task of the ContractNLI dataset. We found that the best performing LLM is Gemma-4 26B with an accuracy of 81.2%, scoring 5.7% below the supervised model. Qwen-3.6 35B shows promising results on both the ContractNLI and NLI4Wills datasets. This indicates that although zero-shot open-source generative quantized LLMs underperform fine-tuned models on ContractNLI, they are a viable alternative in settings without any labelled data. As next steps, we plan to bring our models to the inspectorates' work practice to evaluate them for other languages and subdomains. Additionally, we will experiment with UQ methods, including the use of reasoning capabilities to provide explanations for the generated label.
Acknowledgments
This research is funded by the ICAI lab AI4Oversight.
We thank SURF (www.surf.nl) for the support in using the National Supercomputer Snellius.
This work was partially performed using the compute resources from the Academic Leiden Interdisciplinary Cluster Environment (ALICE) provided by Leiden University.
Limitations
We test a good number of LLMs, all quantized via Ollama, but adding more models is always possible. Therefore, the results we present may not be representative of all quantized models' performance on this task.
Our study mostly uses a fixed configuration for variables such as reasoning modes, structures, and prompts. Therefore, our results are non-exhaustive, and we do not make claims on the performance of our setup compared to alternate configurations for the same models.
While our experimental procedures and temperature settings prevent label predictions generated by the LLM from being misaligned from the generated explanations, the stochastic nature of such models means that this is still a small possibility. As a result, different seeds and temperatures may result in small variations in classification even if the input and explanation remain the same. We expect that this does not have a meaningful effect on results.
We have not been able to find any legal NLI datasets with documents longer than ContractNLI, which has a maximum document length of about 12,000 tokens. All datasets used contain inputs that fit comfortably into our LLMs' context windows, and using methods for handling very lengthy documents was not necessary for our experiments. Therefore, our results are not representative of these models' performance on very lengthy documents that exceed their context windows, or their performance when combined with methods explicitly designed for handling very long documents.
Ethical considerations
Our work is intended to assist experts in their decision-making processes by providing them with helpful tools. We do not seek to design systems that replace experts, especially given the risky nature of the regulatory domain. We maintain regular communication with several inspectorates, and ensure that the experts and the inspectorates as a whole are aware of this.
References
Arsenii Ashukha, Alexander Lyzhov, Dmitry Molchanov, and Dmitry Vetrov. 2020. Pitfalls of in-domain uncertainty estimation and ensembling in deep learning. arXiv preprint arXiv:2002.06470.
Yoav Benjamini and Yosef Hochberg. 1995. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal statistical society: series B (Methodological), 57(1):289–300.
Yarin Gal and 1 others. 2016. Uncertainty in deep learning.
Gemma Team, Google DeepMind. 2026. Gemma 4 model card. https://ai.google.dev/gemma/docs/core/model_card_4. Accessed: 2026-05-25.
Fateme Hashemi Chaleshtori, Atreya Ghosal, Alexander Gill, Purbid Bambroo, and Ana Marasovic. 2024. On evaluating explanation utility for human-AI decision making in NLP. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7456–7504, Miami, Florida, USA. Association for Computational Linguistics.
Dan Hendrycks, Collin Burns, Anya Chen, and Spencer Ball. 2021. Cuad: An expert-annotated nlp dataset for legal contract review. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1.
Yuta Koreeda and Christopher Manning. 2021. ContractNLI: A dataset for document-level natural language inference for contracts. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 1907–1919, Punta Cana, Dominican Republic. Association for Computational Linguistics.
Alice Kwak, Gaetano Forte, Derek Bambauer, and Mihai Surdeanu. 2023. Transferring legal natural language inference model from a us state to another: What makes it so hard? In Proceedings of the Natural Legal Language Processing Workshop 2023.
Alexander H Liu, Kartik Khandelwal, Sandeep Subramanian, Victor Jouault, Abhinav Rastogi, Adrien Sadé, Alan Jeffares, Albert Jiang, Alexandre Cahill, Alexandre Gavaudan, and 1 others. 2026. Ministral 3. arXiv preprint arXiv:2601.08584.
Shuang Liu, Zelong Li, Ruoyun Ma, Haiyan Zhao, and Mengnan Du. 2025. ContractEval: Benchmarking LLMs for clause-level legal risk identification in commercial contracts. In Proceedings of the Natural Legal Language Processing Workshop 2025, pages 291–291, Suzhou, China. Association for Computational Linguistics.
Henry B Mann and Donald R Whitney. 1947. On a test of whether one of two random variables is stochastically larger than the other. The annals of mathematical statistics, pages 50–60.
Savinay Narendra, Kaushal Shetty, and Adwait Ratnaparkhi. 2024. Enhancing contract negotiations with LLM-based legal document comparison. In Proceedings of the Natural Legal Language Processing Workshop 2024, pages 143–153, Miami, FL, USA. Association for Computational Linguistics.
Maheshwaran Nithya, S Harini, S Kavyadharshini, and K Srinidhi. 2024. Ai-driven legal automation to enhance legal processes with natural language processing. In 2024 International Conference on IoT Based Control Networks and Intelligent Systems (ICICNIS), pages 1246–1253. IEEE.
Qwen Team. 2026a. Qwen3.5-omni technical report. Preprint, arXiv:2604.15804.
Qwen Team. 2026b. Qwen3.6-35B-A3B: Agentic coding power, now open to all.
Tal Schuster, Sihao Chen, Senaka Buthpitiya, Alex Fabrikant, and Donald Metzler. 2022. Stretching sentence-pair nli models to reason over long documents and clusters. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 394–412.
Claude E Shannon. 1948. A mathematical theory of communication. The Bell system technical journal, 27(3):379–423.
Ola Shorinwa, Zhiting Mei, Justin Lidard, Allen Z Ren, and Anirudha Majumdar. 2025. A survey on uncertainty quantification of large language models: Taxonomy, open research challenges, and future directions. ACM Computing Surveys.
Yiu Kei Tang. 2023. Natural language inference transfer learning in a multi-task contract dataset: In the case of contractnli: a document information extraction system. Master's thesis, Uppsala University, Department of Linguistics and Philology.
Hans W Wendt. 1972. Dealing with a common problem in social science: A simplified rank-biserial coefficient of correlation based on the u statistic. European Journal of Social Psychology, 2(4):463.
A Prompts
A.1 ContractNLI Prompt
Document: {context_text}
Hypothesis: {hypothesis_text}
Given a document and a hypothesis, determine whether the document entails, contradicts, or is unrelated to the hypothesis. Be concise, and limit your answer to no more than 200 words. Answer strictly as "Entailment", "Contradiction", or "NotMentioned".
A.2 NLI4Wills Prompt
Law: {law_text}
Conditions: {conditions_text}
Statement: {statement_text}
Given a law, conditions, and statement, determine whether the law and condition refute, support, or are unrelated to the statement. Be concise, and limit your answer to no more than 200 words. Answer strictly as "Refute", "Support", or "Unrelated".
B Structures
Structures are implemented in Python using the Pydantic package BaseModel class.
B.1 Main Structure
{ explanation: str classification: [ "Contradiction", "Entailment", "NotMentioned" ] }
B.2 NLI4Wills Structure
{ explanation: str classification: [ "support", "refute", "unrelated" ] }
C Uncertainty Quantification Metrics
All equations are taken from the survey work by Shorinwa et al. (2025). See Footnote 1 for details.
Maximum Negative Token Log-Probability
Average Negative Token Log-Probability
D Hardware
Span NLI Reproduction In order to closely replicate the author’s hardware, we train the model on Nvidia A100 GPUs. We use four GPUs instead of eight.
Other experiments We ran our experiments on a variety of hardware, with availability being the main factor in hardware selection. The following GPU models were used:
• Nvidia RTX 5070 Ti
• Nvidia RTX 3090
• Nvidia L4
• Nvidia A100
• Nvidia A100 MIG (40GB instances)
E Temperature analysis



Figure 1: Effect of temperature on ContractNLI results grouped by model family.
| Model | Temp | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|---|
| Gemma-4 E2B † | 0.1 | 0.689 ± 0.002 | 0.258 ± 0.018 | 0.676 ± 0.004 | 0.000 ± 0.000 |
| 0.2 | 0.685 ± 0.001 | 0.263 ± 0.006 | 0.675 ± 0.002 | 0.000 ± 0.000 | |
| 0.3 | 0.688 ± 0.003 | 0.254 ± 0.018 | 0.681 ± 0.001 | 0.016 ± 0.023 | |
| 0.4 | 0.683 ± 0.008 | 0.236 ± 0.011 | 0.676 ± 0.006 | 0.016 ± 0.023 | |
| 0.5 | 0.685 ± 0.007 | 0.233 ± 0.003 | 0.678 ± 0.006 | 0.000 ± 0.000 | |
| Gemma-4 E4B † | 0.1 | 0.743 ± 0.004 | 0.359 ± 0.040 | 0.751 ± 0.002 | 0.000 ± 0.000 |
| 0.2 | 0.745 ± 0.005 | 0.335 ± 0.007 | 0.751 ± 0.006 | 0.000 ± 0.000 | |
| 0.3 | 0.746 ± 0.006 | 0.343 ± 0.012 | 0.753 ± 0.005 | 0.000 ± 0.000 | |
| 0.4 | 0.744 ± 0.003 | 0.325 ± 0.003 | 0.750 ± 0.002 | 0.000 ± 0.000 | |
| 0.5 | 0.744 ± 0.005 | 0.359 ± 0.018 | 0.746 ± 0.005 | 0.000 ± 0.000 | |
| Gemma-4 26B * | 0.1 | 0.813 ± 0.002 | 0.428 ± 0.022 | 0.807 ± 0.002 | 1.004 ± 0.078 |
| 0.2 | 0.815 ± 0.002 | 0.438 ± 0.027 | 0.805 ± 0.002 | 0.861 ± 0.170 | |
| 0.3 | 0.812 ± 0.002 | 0.443 ± 0.030 | 0.808 ± 0.003 | 0.972 ± 0.148 | |
| 0.4 | 0.812 ± 0.001 | 0.430 ± 0.018 | 0.802 ± 0.001 | 0.733 ± 0.180 | |
| 0.5 | 0.813 ± 0.002 | 0.459 ± 0.022 | 0.806 ± 0.001 | 0.956 ± 0.217 | |
| Ministral-3 3B † | 0.1 | 0.570 ± 0.002 | 0.113 ± 0.011 | 0.628 ± 0.004 | 0.000 ± 0.000 |
| 0.2 | 0.570 ± 0.005 | 0.113 ± 0.011 | 0.626 ± 0.001 | 0.000 ± 0.000 | |
| 0.3 | 0.575 ± 0.003 | 0.110 ± 0.019 | 0.628 ± 0.001 | 0.000 ± 0.000 | |
| 0.4 | 0.575 ± 0.005 | 0.123 ± 0.014 | 0.632 ± 0.003 | 0.000 ± 0.000 | |
| 0.5 | 0.574 ± 0.006 | 0.120 ± 0.029 | 0.627 ± 0.004 | 0.000 ± 0.000 | |
| Ministral-3 8B † | 0.1 | 0.686 ± 0.003 | 0.352 ± 0.016 | 0.698 ± 0.007 | 0.000 ± 0.000 |
| 0.2 | 0.684 ± 0.000 | 0.341 ± 0.059 | 0.695 ± 0.009 | 0.000 ± 0.000 | |
| 0.3 | 0.682 ± 0.008 | 0.325 ± 0.045 | 0.691 ± 0.009 | 0.000 ± 0.000 | |
| 0.4 | 0.686 ± 0.003 | 0.316 ± 0.026 | 0.698 ± 0.008 | 0.000 ± 0.000 | |
| 0.5 | 0.680 ± 0.001 | 0.303 ± 0.018 | 0.690 ± 0.002 | 0.000 ± 0.000 | |
| Ministral-3 14B † | 0.1 | 0.716 ± 0.005 | 0.362 ± 0.019 | 0.725 ± 0.009 | 0.000 ± 0.000 |
| 0.2 | 0.720 ± 0.003 | 0.362 ± 0.028 | 0.726 ± 0.004 | 0.000 ± 0.000 | |
| 0.3 | 0.720 ± 0.003 | 0.372 ± 0.008 | 0.728 ± 0.002 | 0.000 ± 0.000 | |
| 0.4 | 0.722 ± 0.006 | 0.375 ± 0.010 | 0.730 ± 0.004 | 0.000 ± 0.000 | |
| 0.5 | 0.721 ± 0.003 | 0.380 ± 0.019 | 0.726 ± 0.003 | 0.000 ± 0.000 | |
| Qwen-3.5 4B † | 0.1 | 0.739 ± 0.006 | 0.369 ± 0.011 | 0.735 ± 0.007 | 0.080 ± 0.081 |
| 0.2 | 0.737 ± 0.004 | 0.374 ± 0.022 | 0.736 ± 0.002 | 0.159 ± 0.081 | |
| 0.3 | 0.741 ± 0.007 | 0.370 ± 0.025 | 0.742 ± 0.006 | 0.112 ± 0.060 | |
| 0.4 | 0.741 ± 0.006 | 0.404 ± 0.005 | 0.741 ± 0.007 | 0.112 ± 0.060 | |
| 0.5 | 0.737 ± 0.007 | 0.404 ± 0.026 | 0.731 ± 0.011 | 0.112 ± 0.081 | |
| Qwen-3.5 9B † | 0.1 | 0.769 ± 0.004 | 0.322 ± 0.014 | 0.762 ± 0.004 | 0.016 ± 0.023 |
| 0.2 | 0.763 ± 0.002 | 0.330 ± 0.011 | 0.752 ± 0.002 | 0.032 ± 0.023 | |
| 0.3 | 0.759 ± 0.004 | 0.330 ± 0.002 | 0.749 ± 0.002 | 0.016 ± 0.023 | |
| 0.4 | 0.760 ± 0.010 | 0.335 ± 0.051 | 0.751 ± 0.008 | 0.016 ± 0.023 | |
| 0.5 | 0.759 ± 0.006 | 0.344 ± 0.038 | 0.744 ± 0.008 | 0.016 ± 0.023 | |
| Qwen-3.5 27B †* | 0.1 | 0.795 ± 0.005 | 0.431 ± 0.018 | 0.786 ± 0.007 | 0.351 ± 0.137 |
| 0.2 | 0.792 ± 0.002 | 0.419 ± 0.024 | 0.782 ± 0.006 | 0.351 ± 0.081 | |
| 0.3 | 0.793 ± 0.005 | 0.422 ± 0.024 | 0.783 ± 0.006 | 0.319 ± 0.060 | |
| 0.4 | 0.791 ± 0.005 | 0.412 ± 0.030 | 0.785 ± 0.006 | 0.239 ± 0.068 | |
| 0.5 | 0.795 ± 0.003 | 0.443 ± 0.011 | 0.786 ± 0.002 | 0.223 ± 0.090 | |
| Qwen-3.6 35B †* | 0.1 | 0.757 ± 0.001 | 0.333 ± 0.004 | 0.779 ± 0.002 | 0.670 ± 0.141 |
| 0.2 | 0.755 ± 0.003 | 0.335 ± 0.002 | 0.771 ± 0.003 | 0.701 ± 0.060 | |
| 0.3 | 0.760 ± 0.006 | 0.330 ± 0.005 | 0.780 ± 0.008 | 0.622 ± 0.207 | |
| 0.4 | 0.757 ± 0.004 | 0.321 ± 0.014 | 0.781 ± 0.007 | 0.574 ± 0.103 | |
| 0.5 | 0.759 ± 0.002 | 0.328 ± 0.010 | 0.778 ± 0.006 | 0.542 ± 0.126 |
- Reasoning enabled
† Output structure applied
Table 5: Temperature analysis results. Each metric reports the average and standard deviation across three seeds. Boldface indicates the best-performing model per metric, and the “Invalid Rate (%)” column indicates the average percentage of answers outputted by the LLM from which we were unable to retrieve a coherent label. The green row highlights the best-performing temperature setting per LLM.
F Logit analysis results
F.1 Gemma-4 E2B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.207 |
| 1 | 1.0 | -0.19 | |
| 42 | 1.0 | -0.154 | |
| Cont | 0 | 0.478 | 0.083 |
| 1 | 0.435 | 0.093 | |
| 42 | 0.684 | 0.056 | |
| NotM | 0 | 1.0 | -0.035 |
| 1 | 1.0 | -0.044 | |
| 42 | 1.0 | -0.116 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.406 |
| 1 | 1.0 | -0.4 | |
| 42 | 1.0 | -0.396 | |
| Cont | 0 | 1.0 | -0.318 |
| 1 | 1.0 | -0.235 | |
| 42 | 1.0 | -0.208 | |
| NotM | 0 | 0.379 | |
| 1 | 0.413 | ||
| 42 | 0.445 |
(b) Maximum negative token log-probability
Table 6: Gemma-4 E2B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.493 | |
| 1 | 0.501 | ||
| 42 | 0.539 | ||
| Cont | 0 | 0.375 | |
| 1 | 0.451 | ||
| 42 | 0.423 | ||
| NotM | 0 | 0.505 | |
| 1 | 0.524 | ||
| 42 | 0.583 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.493 | |
| 1 | 0.501 | ||
| 42 | 0.539 | ||
| Cont | 0 | 0.373 | |
| 1 | 0.448 | ||
| 42 | 0.42 | ||
| NotM | 0 | 0.505 | |
| 1 | 0.524 | ||
| 42 | 0.583 |
(b) Maximum negative token log-probability
Table 7: Gemma-4 E2B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.493 | |
| 1 | 0.501 | ||
| 42 | 0.539 | ||
| Cont | 0 | 0.365 | |
| 1 | 0.44 | ||
| 42 | 0.416 | ||
| NotM | 0 | 0.505 | |
| 1 | 0.524 | ||
| 42 | 0.583 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.493 | |
| 1 | 0.501 | ||
| 42 | 0.539 | ||
| Cont | 0 | 0.365 | |
| 1 | 0.44 | ||
| 42 | 0.416 | ||
| NotM | 0 | 0.505 | |
| 1 | 0.524 | ||
| 42 | 0.583 |
(b) Maximum negative token log-probability
Table 8: Gemma-4 E2B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.2 Gemma-4 E4B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.054 | 0.086 |
| 1 | 0.017 | 0.102 | |
| 42 | 0.041 | 0.089 | |
| Cont | 0 | 0.307 | |
| 1 | 0.285 | ||
| 42 | 0.311 | ||
| NotM | 0 | 1.0 | -0.443 |
| 1 | 1.0 | -0.281 | |
| 42 | 1.0 | -0.29 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.116 | |
| 1 | 0.119 | ||
| 42 | 0.124 | ||
| Cont | 0 | 0.543 | |
| 1 | 0.549 | ||
| 42 | 0.557 | ||
| NotM | 0 | 1.0 | -0.01 |
| 1 | 0.684 | 0.067 | |
| 42 | 0.965 | 0.007 |
(b) Maximum negative token log-probability
Table 9: Gemma-4 E4B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.324 | |
| 1 | 0.33 | ||
| 42 | 0.292 | ||
| Cont | 0 | 0.471 | |
| 1 | 0.438 | ||
| 42 | 0.46 | ||
| NotM | 0 | 0.772 | |
| 1 | 0.698 | ||
| 42 | 0.683 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.314 | |
| 1 | 0.325 | ||
| 42 | 0.286 | ||
| Cont | 0 | 0.473 | |
| 1 | 0.438 | ||
| 42 | 0.457 | ||
| NotM | 0 | 0.772 | |
| 1 | 0.698 | ||
| 42 | 0.684 |
(b) Maximum negative token log-probability
Table 10: Gemma-4 E4B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.325 | |
| 1 | 0.332 | ||
| 42 | 0.294 | ||
| Cont | 0 | 0.443 | |
| 1 | 0.406 | ||
| 42 | 0.424 | ||
| NotM | 0 | 0.772 | |
| 1 | 0.698 | ||
| 42 | 0.684 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.325 | |
| 1 | 0.332 | ||
| 42 | 0.294 | ||
| Cont | 0 | 0.443 | |
| 1 | 0.406 | ||
| 42 | 0.424 | ||
| NotM | 0 | 0.772 | |
| 1 | 0.698 | ||
| 42 | 0.684 |
(b) Maximum negative token log-probability
Table 11: Gemma-4 E4B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.3 Gemma-4 26B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.572 | |
| 1 | 0.518 | ||
| 42 | 0.647 | ||
| Cont | 0 | 0.062 | 0.51 |
| 1 | 0.132 | 0.434 | |
| 42 | 0.407 | 0.265 | |
| NotM | 0 | 0.718 | 0.242 |
| 1 | 0.562 | 0.421 | |
| 42 | 0.102 | 0.602 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.46 | |
| 1 | 0.035 | 0.324 | |
| 42 | 0.515 | ||
| Cont | 0 | 0.5 | 0.235 |
| 1 | 0.07 | 0.505 | |
| 42 | 0.746 | 0.128 | |
| NotM | 0 | 0.293 | 0.516 |
| 1 | 0.746 | 0.25 | |
| 42 | 0.116 | 0.585 |
(b) Maximum negative token log-probability
Table 12: Gemma-4 26B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.899 | -0.151 |
| 1 | 0.574 | 0.001 | |
| 42 | 0.509 | 0.023 | |
| Cont | 0 | 0.688 | -0.069 |
| 1 | 0.038 | 0.465 | |
| 42 | 0.058 | 0.402 | |
| NotM | 0 | 0.01 | 0.826 |
| 1 | 0.436 | 0.171 | |
| 42 | 0.244 | 0.295 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.969 | -0.234 |
| 1 | 0.62 | -0.015 | |
| 42 | 0.795 | -0.085 | |
| Cont | 0 | 0.583 | 0.0 |
| 1 | 0.019 | 0.535 | |
| 42 | 0.049 | 0.419 | |
| NotM | 0 | 0.014 | 0.808 |
| 1 | 0.436 | 0.171 | |
| 42 | 0.274 | 0.267 |
(b) Maximum negative token log-probability
Table 13: Gemma-4 26B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.538 | 0.01 |
| 1 | 0.241 | 0.119 | |
| 42 | 0.136 | 0.164 | |
| Cont | 0 | 0.732 | -0.118 |
| 1 | 0.335 | 0.152 | |
| 42 | 0.487 | 0.051 | |
| NotM | 0 | 0.011 | 0.817 |
| 1 | 0.408 | 0.197 | |
| 42 | 0.242 | 0.284 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.538 | 0.01 |
| 1 | 0.241 | 0.119 | |
| 42 | 0.136 | 0.164 | |
| Cont | 0 | 0.732 | -0.118 |
| 1 | 0.335 | 0.152 | |
| 42 | 0.487 | 0.051 | |
| NotM | 0 | 0.011 | 0.817 |
| 1 | 0.408 | 0.197 | |
| 42 | 0.242 | 0.284 |
(b) Maximum negative token log-probability
Table 14: Gemma-4 26B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.3.1 Ministral-3 3B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.163 |
| 1 | 1.0 | -0.062 | |
| 42 | 1.0 | -0.107 | |
| Cont | 0 | 1.0 | 0.0 |
| 1 | 0.746 | 0.667 | |
| 42 | 1.0 | 0.0 | |
| NotM | 0 | 1.0 | -0.029 |
| 1 | 1.0 | -0.077 | |
| 42 | 0.992 | 0.006 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.445 | 0.105 |
| 1 | 0.353 | 0.122 | |
| 42 | 1.0 | -0.101 | |
| Cont | 0 | 1.0 | 0.0 |
| 1 | 0.746 | 0.667 | |
| 42 | 1.0 | -0.222 | |
| NotM | 0 | 0.731 | 0.125 |
| 1 | 1.0 | -0.003 | |
| 42 | 1.0 | -0.035 |
(b) Maximum negative token log-probability
Table 15: Ministral-3 3B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.746 | -0.05 |
| 1 | 0.574 | 0.001 | |
| 42 | 0.899 | -0.116 | |
| Cont | 0 | 0.37 | 0.4 |
| 1 | 0.509 | 0.333 | |
| 42 | 0.688 | -0.111 | |
| NotM | 0 | 0.25 | 0.183 |
| 1 | 0.583 | -0.003 | |
| 42 | 0.508 | 0.04 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.728 | -0.045 |
| 1 | 0.574 | 0.001 | |
| 42 | 0.894 | -0.107 | |
| Cont | 0 | 0.37 | 0.4 |
| 1 | 0.509 | 0.333 | |
| 42 | 0.688 | -0.111 | |
| NotM | 0 | 0.2 | 0.216 |
| 1 | 0.651 | -0.044 | |
| 42 | 0.407 | 0.089 |
(b) Maximum negative token log-probability
Table 16: Ministral-3 3B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.715 | -0.045 |
| 1 | 0.551 | 0.002 | |
| 42 | 0.876 | -0.105 | |
| Cont | 0 | 0.368 | 0.4 |
| 1 | 0.5 | 0.333 | |
| 42 | 0.677 | -0.111 | |
| NotM | 0 | 0.201 | 0.212 |
| 1 | 0.57 | -0.003 | |
| 42 | 0.43 | 0.073 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.715 | -0.045 |
| 1 | 0.551 | 0.002 | |
| 42 | 0.876 | -0.105 | |
| Cont | 0 | 0.368 | 0.4 |
| 1 | 0.5 | 0.333 | |
| 42 | 0.677 | -0.111 | |
| NotM | 0 | 0.201 | 0.212 |
| 1 | 0.57 | -0.003 | |
| 42 | 0.43 | 0.073 |
(b) Maximum negative token log-probability
Table 17: Ministral-3 3B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.4 Ministral-3 8B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.418 | |
| 1 | 0.083 | 0.233 | |
| 42 | 0.054 | 0.261 | |
| Cont | 0 | 1.0 | -0.086 |
| 1 | 1.0 | -0.035 | |
| 42 | 1.0 | -0.119 | |
| NotM | 0 | 0.834 | 0.096 |
| 1 | 1.0 | -0.837 | |
| 42 | 1.0 | -0.437 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.163 |
| 1 | 1.0 | -0.13 | |
| 42 | 1.0 | -0.133 | |
| Cont | 0 | 0.752 | 0.105 |
| 1 | 0.888 | 0.06 | |
| 42 | 1.0 | -0.04 | |
| NotM | 0 | 0.841 | |
| 1 | 0.029 | 0.652 | |
| 42 | 0.749 |
(b) Maximum negative token log-probability
Table 18: Ministral-3 8B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.187 | 0.126 |
| 1 | 0.207 | 0.117 | |
| 42 | 0.204 | 0.119 | |
| Cont | 0 | 0.288 | 0.162 |
| 1 | 0.545 | 0.022 | |
| 42 | 0.275 | 0.183 | |
| NotM | 0 | 0.033 | 0.508 |
| 1 | 0.372 | 0.148 | |
| 42 | 0.018 | 0.508 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.091 | 0.173 |
| 1 | 0.204 | 0.119 | |
| 42 | 0.141 | 0.149 | |
| Cont | 0 | 0.299 | 0.156 |
| 1 | 0.62 | -0.022 | |
| 42 | 0.285 | 0.175 | |
| NotM | 0 | 0.036 | 0.495 |
| 1 | 0.353 | 0.163 | |
| 42 | 0.019 | 0.504 |
(b) Maximum negative token log-probability
Table 19: Ministral-3 8B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.13 | 0.151 |
| 1 | 0.227 | 0.108 | |
| 42 | 0.14 | 0.146 | |
| Cont | 0 | 0.487 | 0.048 |
| 1 | 0.606 | -0.022 | |
| 42 | 0.402 | 0.103 | |
| NotM | 0 | 0.907 | |
| 1 | 0.741 | ||
| 42 | 0.754 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.13 | 0.151 |
| 1 | 0.227 | 0.108 | |
| 42 | 0.14 | 0.146 | |
| Cont | 0 | 0.487 | 0.048 |
| 1 | 0.606 | -0.022 | |
| 42 | 0.402 | 0.103 | |
| NotM | 0 | 0.907 | |
| 1 | 0.741 | ||
| 42 | 0.754 |
(b) Maximum negative token log-probability
Table 20: Ministral-3 8B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.5 Ministral-3 14B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.054 | 0.256 |
| 1 | 0.337 | 0.153 | |
| 42 | 0.116 | 0.211 | |
| Cont | 0 | 0.377 | 0.292 |
| 1 | 1.0 | -0.23 | |
| 42 | 0.532 | 0.208 | |
| NotM | 0 | 0.407 | 0.56 |
| 1 | 1.0 | -0.698 | |
| 42 | 1.0 | -0.886 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.123 |
| 1 | 1.0 | -0.137 | |
| 42 | 1.0 | -0.178 | |
| Cont | 0 | 1.0 | -0.303 |
| 1 | 1.0 | -0.412 | |
| 42 | 1.0 | -0.285 | |
| NotM | 0 | 0.024 | 0.96 |
| 1 | 0.029 | 0.953 | |
| 42 | 1.0 |
(b) Maximum negative token log-probability
Table 21: Ministral-3 14B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.362 | |
| 1 | 0.282 | 0.092 | |
| 42 | 0.019 | 0.252 | |
| Cont | 0 | 0.091 | 0.364 |
| 1 | 0.728 | -0.088 | |
| 42 | 0.171 | 0.262 | |
| NotM | 0 | 0.019 | 0.9 |
| 1 | 0.038 | 0.837 | |
| 42 | 0.01 | 0.955 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.356 | |
| 1 | 0.301 | 0.085 | |
| 42 | 0.023 | 0.245 | |
| Cont | 0 | 0.073 | 0.395 |
| 1 | 0.67 | -0.049 | |
| 42 | 0.073 | 0.369 | |
| NotM | 0 | 0.019 | 0.9 |
| 1 | 0.038 | 0.837 | |
| 42 | 0.01 | 0.955 |
(b) Maximum negative token log-probability
Table 22: Ministral-3 14B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.356 | |
| 1 | 0.297 | 0.085 | |
| 42 | 0.022 | 0.245 | |
| Cont | 0 | 0.072 | 0.395 |
| 1 | 0.655 | -0.049 | |
| 42 | 0.072 | 0.369 | |
| NotM | 0 | 0.019 | 0.9 |
| 1 | 0.038 | 0.837 | |
| 42 | 0.955 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.356 | |
| 1 | 0.297 | 0.085 | |
| 42 | 0.022 | 0.245 | |
| Cont | 0 | 0.072 | 0.395 |
| 1 | 0.655 | -0.049 | |
| 42 | 0.072 | 0.369 | |
| NotM | 0 | 0.019 | 0.9 |
| 1 | 0.038 | 0.837 | |
| 42 | 0.955 |
(b) Maximum negative token log-probability
Table 23: Ministral-3 14B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.6 Qwen-3.5 4B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.057 |
| 1 | 0.917 | 0.027 | |
| 42 | 0.684 | 0.087 | |
| Cont | 0 | 0.335 | 0.284 |
| 1 | 1.0 | -0.041 | |
| 42 | 0.597 | 0.195 | |
| NotM | 0 | 1.0 | -0.136 |
| 1 | 1.0 | -0.04 | |
| 42 | 1.0 | -0.516 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.087 |
| 1 | 1.0 | -0.006 | |
| 42 | 0.746 | 0.066 | |
| Cont | 0 | 0.732 | 0.13 |
| 1 | 0.944 | 0.027 | |
| 42 | 0.659 | 0.176 | |
| NotM | 0 | 1.0 | -0.073 |
| 1 | 0.944 | 0.045 | |
| 42 | 1.0 | -0.144 |
(b) Maximum negative token log-probability
Table 24: Qwen-3.5 4B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.395 | |
| 1 | 0.42 | ||
| 42 | 0.341 | ||
| Cont | 0 | 0.085 | 0.34 |
| 1 | 0.728 | -0.095 | |
| 42 | 0.424 | 0.095 | |
| NotM | 0 | 0.019 | 0.691 |
| 1 | 0.802 | ||
| 42 | 0.014 | 0.656 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.408 | |
| 1 | 0.419 | ||
| 42 | 0.344 | ||
| Cont | 0 | 0.08 | 0.347 |
| 1 | 0.713 | -0.082 | |
| 42 | 0.407 | 0.104 | |
| NotM | 0 | 0.018 | 0.7 |
| 1 | 0.808 | ||
| 42 | 0.014 | 0.656 |
(b) Maximum negative token log-probability
Table 25: Qwen-3.5 4B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.408 | |
| 1 | 0.419 | ||
| 42 | 0.344 | ||
| Cont | 0 | 0.078 | 0.347 |
| 1 | 0.698 | -0.082 | |
| 42 | 0.405 | 0.104 | |
| NotM | 0 | 0.017 | 0.7 |
| 1 | 0.808 | ||
| 42 | 0.013 | 0.656 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.408 | |
| 1 | 0.419 | ||
| 42 | 0.344 | ||
| Cont | 0 | 0.078 | 0.347 |
| 1 | 0.698 | -0.082 | |
| 42 | 0.405 | 0.104 | |
| NotM | 0 | 0.017 | 0.7 |
| 1 | 0.808 | ||
| 42 | 0.013 | 0.656 |
(b) Maximum negative token log-probability
Table 26: Qwen-3.5 4B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.7 Qwen-3.5 9B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.062 | 0.307 |
| 1 | 0.175 | 0.225 | |
| 42 | 0.211 | 0.229 | |
| Cont | 0 | 0.07 | 0.511 |
| 1 | 0.752 | 0.125 | |
| 42 | 0.024 | 0.636 | |
| NotM | 0 | 1.0 | -0.236 |
| 1 | 1.0 | -0.428 | |
| 42 | 1.0 | -0.249 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.265 |
| 1 | 1.0 | -0.298 | |
| 42 | 1.0 | -0.204 | |
| Cont | 0 | 1.0 | -0.078 |
| 1 | 0.888 | 0.062 | |
| 42 | 1.0 | -0.057 | |
| NotM | 0 | 1.0 | -0.576 |
| 1 | 1.0 | -0.542 | |
| 42 | 1.0 | -0.57 |
(b) Maximum negative token log-probability
Table 27: Qwen-3.5 9B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.036 | 0.284 |
| 1 | 0.014 | 0.324 | |
| 42 | 0.13 | 0.197 | |
| Cont | 0 | 0.407 | 0.111 |
| 1 | 0.35 | 0.146 | |
| 42 | 0.5 | 0.057 | |
| NotM | 0 | 0.75 | |
| 1 | 0.599 | ||
| 42 | 0.658 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.033 | 0.29 |
| 1 | 0.014 | 0.324 | |
| 42 | 0.13 | 0.197 | |
| Cont | 0 | 0.126 | 0.333 |
| 1 | 0.332 | 0.156 | |
| 42 | 0.299 | 0.182 | |
| NotM | 0 | 0.75 | |
| 1 | 0.589 | ||
| 42 | 0.655 |
(b) Maximum negative token log-probability
Table 28: Qwen-3.5 9B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.032 | 0.29 |
| 1 | 0.013 | 0.324 | |
| 42 | 0.13 | 0.197 | |
| Cont | 0 | 0.069 | 0.411 |
| 1 | 0.225 | 0.229 | |
| 42 | 0.207 | 0.25 | |
| NotM | 0 | 0.75 | |
| 1 | 0.589 | ||
| 42 | 0.655 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.032 | 0.29 |
| 1 | 0.013 | 0.324 | |
| 42 | 0.13 | 0.197 | |
| Cont | 0 | 0.069 | 0.411 |
| 1 | 0.225 | 0.229 | |
| 42 | 0.207 | 0.25 | |
| NotM | 0 | 0.75 | |
| 1 | 0.589 | ||
| 42 | 0.655 |
(b) Maximum negative token log-probability
Table 29: Qwen-3.5 9B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.8 Qwen-3.5 27B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.692 | 0.032 |
| 1 | 0.185 | 0.081 | |
| 42 | 0.158 | ||
| Cont | 0 | 1.0 | -0.035 |
| 1 | 1.0 | -0.06 | |
| 42 | 1.0 | -0.009 | |
| NotM | 0 | 1.0 | -0.111 |
| 1 | 1.0 | -0.264 | |
| 42 | 1.0 | -0.304 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.235 |
| 1 | 1.0 | -0.153 | |
| 42 | 1.0 | -0.182 | |
| Cont | 0 | 1.0 | -0.32 |
| 1 | 1.0 | -0.284 | |
| 42 | 1.0 | -0.268 | |
| NotM | 0 | 1.0 | -0.128 |
| 1 | 1.0 | -0.042 | |
| 42 | 1.0 | -0.041 |
(b) Maximum negative token log-probability
Table 30: Qwen-3.5 27B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.371 | |
| 1 | 0.417 | ||
| 42 | 0.448 | ||
| Cont | 0 | 0.483 | 0.017 |
| 1 | 0.183 | ||
| 42 | 0.227 | ||
| NotM | 0 | 0.487 | |
| 1 | 0.293 | ||
| 42 | 0.367 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.376 | |
| 1 | 0.416 | ||
| 42 | 0.447 | ||
| Cont | 0 | 0.438 | 0.023 |
| 1 | 0.182 | ||
| 42 | 0.238 | ||
| NotM | 0 | 0.549 | |
| 1 | 0.388 | ||
| 42 | 0.434 |
(b) Maximum negative token log-probability
Table 31: Qwen-3.5 27B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.376 | |
| 1 | 0.416 | ||
| 42 | 0.447 | ||
| Cont | 0 | 0.43 | 0.023 |
| 1 | 0.182 | ||
| 42 | 0.242 | ||
| NotM | 0 | 0.55 | |
| 1 | 0.387 | ||
| 42 | 0.435 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.376 | |
| 1 | 0.416 | ||
| 42 | 0.447 | ||
| Cont | 0 | 0.43 | 0.023 |
| 1 | 0.182 | ||
| 42 | 0.242 | ||
| NotM | 0 | 0.55 | |
| 1 | 0.387 | ||
| 42 | 0.435 |
(b) Maximum negative token log-probability
Table 32: Qwen-3.5 27B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
F.9 Qwen-3.6 35B
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 1.0 | -0.071 |
| 1 | 1.0 | -0.268 | |
| 42 | 1.0 | -0.243 | |
| Cont | 0 | 1.0 | -0.037 |
| 1 | 1.0 | -0.165 | |
| 42 | 1.0 | -0.378 | |
| NotM | 0 | 0.944 | 0.056 |
| 1 | 1.0 | -0.13 | |
| 42 | 0.888 | 0.099 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.138 | 0.205 |
| 1 | 0.176 | 0.199 | |
| 42 | 0.046 | 0.233 | |
| Cont | 0 | 0.888 | 0.042 |
| 1 | 0.834 | 0.059 | |
| 42 | 0.661 | 0.11 | |
| NotM | 0 | 0.843 | 0.157 |
| 1 | 0.834 | 0.174 | |
| 42 | 1.0 | -0.149 |
(b) Maximum negative token log-probability
Table 33: Qwen-3.6 35B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with logits of the whole response.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.106 | 0.167 |
| 1 | 0.826 | -0.096 | |
| 42 | 0.193 | 0.108 | |
| Cont | 0 | 0.277 | 0.129 |
| 1 | 0.136 | 0.214 | |
| 42 | 0.053 | 0.266 | |
| NotM | 0 | 0.648 | -0.079 |
| 1 | 0.918 | -0.587 | |
| 42 | 0.187 | 0.411 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.074 | 0.189 |
| 1 | 0.802 | -0.085 | |
| 42 | 0.145 | 0.126 | |
| Cont | 0 | 0.187 | 0.178 |
| 1 | 0.089 | 0.252 | |
| 42 | 0.036 | 0.293 | |
| NotM | 0 | 0.554 | 0.034 |
| 1 | 0.899 | -0.533 | |
| 42 | 0.145 | 0.468 |
(b) Maximum negative token log-probability
Table 34: Qwen-3.6 35B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with only the label logits.
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.072 | 0.189 |
| 1 | 0.79 | -0.085 | |
| 42 | 0.14 | 0.126 | |
| Cont | 0 | 0.18 | 0.178 |
| 1 | 0.087 | 0.252 | |
| 42 | 0.035 | 0.293 | |
| NotM | 0 | 0.538 | 0.034 |
| 1 | 0.889 | -0.533 | |
| 42 | 0.14 | 0.468 |
(a) Average negative log-probability
| Label | Seed | Effect size | |
|---|---|---|---|
| Ent | 0 | 0.072 | 0.189 |
| 1 | 0.79 | -0.085 | |
| 42 | 0.14 | 0.126 | |
| Cont | 0 | 0.18 | 0.178 |
| 1 | 0.087 | 0.252 | |
| 42 | 0.035 | 0.293 | |
| NotM | 0 | 0.538 | 0.034 |
| 1 | 0.889 | -0.533 | |
| 42 | 0.14 | 0.468 |
(b) Maximum negative token log-probability
Table 35: Qwen-3.6 35B Mann-Whitney U Test results and effect sizes for uncertainty metrics calculated with the first token of the predicted label.
G NLI4Wills results
G.1 NLI4Wills-Idaho
| Model | Precision | Recall | F1 | Accuracy | Invalid Rate |
|---|---|---|---|---|---|
| Majority | 0.197 | 0.333 | 0.248 | 0.591 | — |
| Gemma-4 E2B | 0.766 ± 0.011 | 0.722 ± 0.023 | 0.713 ± 0.025 | 0.786 ± 0.016 | 0.0 ± 0.0 |
| Gemma-4 E4B | 0.808 ± 0.011 | 0.751 ± 0.010 | 0.768 ± 0.015 | 0.840 ± 0.006 | 0.0 ± 0.0 |
| Gemma-4 26B * | 0.591 ± 0.014 | 0.590 ± 0.001 | 0.584 ± 0.007 | 0.766 ± 0.005 | 0.1 ± 0.0 |
| Ministral-3 3B | 0.618 ± 0.028 | 0.598 ± 0.017 | 0.516 ± 0.026 | 0.526 ± 0.028 | 0.0 ± 0.0 |
| Ministral-3 8B | 0.795 ± 0.006 | 0.806 ± 0.009 | 0.800 ± 0.008 | 0.848 ± 0.006 | 0.0 ± 0.0 |
| Ministral-3 14B | 0.804 ± 0.031 | 0.789 ± 0.026 | 0.785 ± 0.029 | 0.842 ± 0.021 | 0.0 ± 0.0 |
| Qwen-3.5 4B | 0.775 ± 0.071 | 0.765 ± 0.058 | 0.768 ± 0.063 | 0.883 ± 0.028 | 0.0 ± 0.0 |
| Qwen-3.5 9B | 0.861 ± 0.018 | 0.824 ± 0.025 | 0.830 ± 0.024 | 0.874 ± 0.017 | 0.0 ± 0.0 |
| Qwen-3.5 27B | 0.763 ± 0.110 | 0.699 ± 0.109 | 0.722 ± 0.111 | 0.900 ± 0.012 | 0.0 ± 0.0 |
| Qwen-3.6 35B | 0.884 ± 0.005 | 0.864 ± 0.009 | 0.873 ± 0.006 | 0.903 ± 0.000 | 0.0 ± 0.0 |
- Reasoning enabled
† Output structure applied
Table 36: NLI4Wills Idaho results. Each metric reports the average and standard deviation across three seeds. Boldface indicates the best-performing model per metric, and the “Invalid Rate (%)” column indicates the average percentage of answers outputted by the LLM from which we were unable to retrieve a coherent label. The green row highlights the best-performing LLM. Majority baseline results are given for the unrelated label.
G.2 NLI4Wills-Tennessee
| Model | Precision | Recall | F1 | Accuracy | Invalid Rate |
|---|---|---|---|---|---|
| Majority | 0.182 | 0.333 | 0.235 | 0.545 | — |
| RoBERTa-large-mnli | 0.967 | 0.962 | 0.964 | 0.969 | — |
| Gemma-4 E2B | 0.676 ± 0.011 | 0.616 ± 0.005 | 0.616 ± 0.004 | 0.701 ± 0.008 | 0.0 ± 0.0 |
| Gemma-4 E4B | 0.785 ± 0.021 | 0.673 ± 0.014 | 0.702 ± 0.016 | 0.766 ± 0.012 | 0.0 ± 0.0 |
| Gemma-4 26B*† | 0.553 ± 0.005 | 0.497 ± 0.006 | 0.521 ± 0.005 | 0.685 ± 0.005 | 0.1 ± 0.0 |
| Ministral-3 3B | 0.560 ± 0.031 | 0.562 ± 0.035 | 0.503 ± 0.031 | 0.499 ± 0.035 | 0.0 ± 0.0 |
| Ministral-3 8B | 0.684 ± 0.009 | 0.662 ± 0.001 | 0.671 ± 0.003 | 0.720 ± 0.002 | 0.0 ± 0.0 |
| Ministral-3 14B | 0.770 ± 0.006 | 0.703 ± 0.009 | 0.728 ± 0.008 | 0.769 ± 0.003 | 0.0 ± 0.0 |
| Qwen-3.5 4B | 0.769 ± 0.012 | 0.724 ± 0.019 | 0.742 ± 0.017 | 0.779 ± 0.010 | 0.0 ± 0.0 |
| Qwen-3.5 9B | 0.789 ± 0.094 | 0.719 ± 0.088 | 0.745 ± 0.090 | 0.841 ± 0.005 | 0.0 ± 0.0 |
| Qwen-3.5 27B | 0.649 ± 0.002 | 0.547 ± 0.006 | 0.580 ± 0.005 | 0.808 ± 0.006 | 0.0 ± 0.0 * |
| Qwen-3.6 35B | 0.831 ± 0.018 | 0.771 ± 0.008 | 0.794 ± 0.010 | 0.818 ± 0.008 | 0.0 ± 0.0 * |
- Reasoning enabled
† Output structure applied
Table 37: NLI4Wills Tennessee results. Each metric reports the average and standard deviation across three seeds. Boldface indicates the best-performing model per metric, and the “Invalid Rate (%)” column indicates the average percentage of answers outputted by the LLM from which we were unable to retrieve a coherent label. The green row highlights the best-performing LLM. Majority baseline results are given for the unrelated label.
H Model-specific results
This section contains confusion matrices and ablation studies per model. We did not perform an ablation study for Ministral-3 models, as they do not have a reasoning mode.
H.1 Gemma-4
Gemma-4 E2B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning | ||||
| Structure* | ||||
| Both |
Table 38: Gemma-4 E2B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 39: Gemma-4 E2B confusion matrix for the main results (Table 2).
Gemma-4 E4B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning | ||||
| Structure* | ||||
| Both |
Table 40: Gemma-4 E4B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 41: Gemma-4 E4B confusion matrix for the main results (Table 2).
Gemma-4 26B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning* | ||||
| Structure |
Table 42: Gemma-4 26B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results. No results are presented for reasoning-enabled structured outputs, as this leads to a invalid output rate.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 43: Gemma-4 26B confusion matrix for the main results (Table 2).
H.2 Ministeral-3
Ministral-3 3B
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 44: Ministral-3 3B confusion matrix for the main results (Table 2).
Ministral-3 8B
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 45: Ministral-3 8B confusion matrix for the main results (Table 2).
Ministral-3 14B
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 46: Ministral-3 14B confusion matrix for the main results (Table 2).
H.3 Qwen-3.5
Qwen-3.5 4B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning | ||||
| Structure* | ||||
| Both |
Table 47: Qwen-3.5 4B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 48: Qwen-3.5 4B confusion matrix for the main results (Table 2).
Qwen-3.5 9B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning | ||||
| Structure* | ||||
| Both |
Table 49: Qwen-3.5 9B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 50: Qwen-3.5 9B confusion matrix for the main results (Table 2).
Qwen-3.5 27B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning | ||||
| Structure | ||||
| Both* |
Table 51: Qwen-3.5 27B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 52: Qwen-3.5 27B confusion matrix for the main results (Table 2).
H.4 Qwen-3.6
Qwen-3.6 35B
| Setting | Accuracy | F1(C) | F1(E) | Invalid Rate (%) |
|---|---|---|---|---|
| Reasoning | ||||
| Structure | ||||
| Both* |
Table 53: Qwen-3.6 35B ablation results on the ContractNLI test set. The asterisk (*) indicates the setting used in the main results.
| True \ Pred | NotMentioned | Entailment | Contradiction | InvalidAnswer |
|---|---|---|---|---|
| NotMentioned | ||||
| Entailment | ||||
| Contradiction |
Table 54: Qwen-3.6 35B confusion matrix for the main results (Table 2).
I ContractNLI class-specific metrics
| Model | P(C) | R(C) | F1(C) |
|---|---|---|---|
| Gemma-4 E2B | 0.215 ± 0.027 | 0.254 ± 0.012 | 0.254 ± 0.018 |
| Gemma-4 E4B | 0.203 ± 0.009 | 0.382 ± 0.044 | 0.343 ± 0.012 |
| Gemma-4 26B | 0.287 ± 0.013 | 0.472 ± 0.051 | 0.443 ± 0.030 |
| Ministral-3 3B | 0.124 ± 0.026 | 0.128 ± 0.062 | 0.110 ± 0.019 |
| Ministral-3 8B | 0.219 ± 0.040 | 0.427 ± 0.029 | 0.325 ± 0.045 |
| Ministral-3 14B | 0.190 ± 0.006 | 0.558 ± 0.009 | 0.372 ± 0.008 |
| Qwen-3.5 4B | 0.208 ± 0.021 | 0.407 ± 0.019 | 0.370 ± 0.025 |
| Qwen-3.5 9B | 0.187 ± 0.002 | 0.377 ± 0.008 | 0.330 ± 0.002 |
| Qwen-3.5 27B | 0.255 ± 0.020 | 0.534 ± 0.026 | 0.422 ± 0.024 |
| Qwen-3.6 35B | 0.156 ± 0.003 | 0.534 ± 0.004 | 0.330 ± 0.005 |
Table 55: Contradiction class metrics on the main results (Table 2). Boldface indicates the best-performing model per metric. All scores are micro averaged over documents, then macro averaged over labels.
| Model | P(E) | R(E) | F1(E) |
|---|---|---|---|
| Gemma-4 E2B | 0.601 ± 0.002 | 0.837 ± 0.006 | 0.681 ± 0.001 |
| Gemma-4 E4B | 0.708 ± 0.007 | 0.868 ± 0.005 | 0.753 ± 0.005 |
| Gemma-4 26B | 0.781 ± 0.005 | 0.867 ± 0.002 | 0.808 ± 0.003 |
| Ministral-3 3B | 0.541 ± 0.001 | 0.866 ± 0.008 | 0.628 ± 0.001 |
| Ministral-3 8B | 0.639 ± 0.011 | 0.830 ± 0.007 | 0.691 ± 0.009 |
| Ministral-3 14B | 0.672 ± 0.004 | 0.851 ± 0.001 | 0.728 ± 0.002 |
| Qwen-3.5 4B | 0.730 ± 0.009 | 0.796 ± 0.006 | 0.742 ± 0.006 |
| Qwen-3.5 9B | 0.757 ± 0.002 | 0.804 ± 0.003 | 0.749 ± 0.002 |
| Qwen-3.5 27B | 0.781 ± 0.003 | 0.821 ± 0.008 | 0.783 ± 0.006 |
| Qwen-3.6 35B | 0.747 ± 0.006 | 0.860 ± 0.010 | 0.780 ± 0.008 |
Table 56: Entailment class metrics on the main results (Table 2). Boldface indicates the best-performing model per metric. All scores are micro averaged over documents, then macro averaged over labels.
| Model | P(N) | R(N) | F1(N) |
|---|---|---|---|
| Gemma-4 E2B | 0.779 ± 0.019 | 0.430 ± 0.004 | 0.511 ± 0.004 |
| Gemma-4 E4B | 0.844 ± 0.010 | 0.491 ± 0.009 | 0.575 ± 0.007 |
| Gemma-4 26B | 0.887 ± 0.006 | 0.657 ± 0.004 | 0.718 ± 0.003 |
| Ministral-3 3B | 0.649 ± 0.041 | 0.292 ± 0.005 | 0.369 ± 0.011 |
| Ministral-3 8B | 0.741 ± 0.031 | 0.431 ± 0.012 | 0.496 ± 0.016 |
| Ministral-3 14B | 0.726 ± 0.047 | 0.394 ± 0.007 | 0.467 ± 0.014 |
| Qwen-3.5 4B | 0.772 ± 0.015 | 0.538 ± 0.017 | 0.597 ± 0.015 |
| Qwen-3.5 9B | 0.788 ± 0.034 | 0.624 ± 0.007 | 0.657 ± 0.012 |
| Qwen-3.5 27B | 0.821 ± 0.033 | 0.630 ± 0.016 | 0.676 ± 0.018 |
| Qwen-3.6 35B | 0.880 ± 0.007 | 0.498 ± 0.011 | 0.582 ± 0.013 |
Table 57: NotMentioned class metrics on the main results (Table 2). Boldface indicates the best-performing model per metric. All scores are micro averaged over documents, then macro averaged over labels.