大语言模型已具备置信度感知能力,可用作零样本分类器
摘要
该论文评估了十一个开放权重的大语言模型(1B–32B)作为零样本文本分类器的表现,结果表明,基于 logit 的置信度方法的区分能力(AUROC 为 0.74–0.77)远优于黑盒方法(0.57–0.66),并提出了一种仅基于决策的评分技术,可将解码步数减少 88–96%,同时保持与商业分类器相媲美的性能。
arXiv:2611.25289v1 Announce Type: new
Abstract: Zero-shot large language models (LLMs) are increasingly used as text classifiers, but their labels are only useful when we know to what extent we can trust them. We compare black-box methods (verbalised confidence and sampling) with white-box methods that read token probabilities (P(True), and multiple logit-scoring methods using constrained generation). We evaluate eleven open-weight LLMs (1B-32B parameters) on five classification datasets with 3 to 151 labels, measuring classification performance (accuracy, F1-macro), discrimination (AUROC), and calibration (ECE and Brier score). The choice of confidence method rarely impacts accuracy significantly, but logit-based scoring methods lead to much better discrimination (AUROC 0.74-0.77) than black-box methods (AUROC 0.57-0.66). Replacing labels with single-token identifiers preserves discrimination but costs 3-6 accuracy points on average. We also introduce decision-only scoring, which only scores positions where labels diverge in the prefix tree (trie). It reduces decode steps by 88-96% on the three largest label sets and performs comparably to full-label scoring. The best open-weight model-method configurations (Gemma 4 31B and Qwen 3.5 9B) are competitive with the commercial Jev 1.13.0 classifier.
查看缓存全文
缓存时间: 2026/11/20 09:06
# LLMs Are Already Confidence-Aware Zero-Shot Classifiers
Source: [https://arxiv.org/html/2611.25289](https://arxiv.org/html/2611.25289)
Xingyi SongAffiliation:University of SheffieldAffiliation:Department of Computer ScienceAffiliation:oscook1@sheffield\.ac\.uk,x\.song@sheffield\.ac\.uk
###### Abstract
Zero\-shot large language models \(LLMs\) are increasingly used as text classifiers, but their labels are only useful when we know to what extent we can trust them\. We compare black\-box methods \(verbalised confidence and sampling\) with white\-box methods that read token probabilities \(P\(True\), and multiple logit\-scoring methods using constrained generation\)\. We evaluate eleven open\-weight LLMs \(1B–32B parameters\) on five classification datasets with 3 to 151 labels, measuring classification performance \(accuracy, F1\-macro\), discrimination \(AUROC\), and calibration \(ECE and Brier score\)\. The choice of confidence method rarely impacts accuracy significantly, but logit\-based scoring methods lead to much better discrimination \(AUROC 0\.74–0\.77\) than black\-box methods \(AUROC 0\.57–0\.66\)\. Replacing labels with single\-token identifiers preserves discrimination but costs 3–6 accuracy points on average\. We also introduce decision\-only scoring, which only scores positions where labels diverge in the prefix tree \(trie\)\. It reduces decode steps by 88–96% on the three largest label sets and performs comparably to full\-label scoring\. The best open\-weight model\-method configurations \(Gemma 4 31B and Qwen 3\.5 9B\) are competitive with the commercial Jev 1\.13\.0 classifier\.
## 1Introduction
Large language models \(LLMs\), now most commonly used as chatbots or coding agents, have a range of other emergent abilities, including classification\([Wei et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib1)\)\. As their performance as zero\-shot classifiers across a range of domains has improved, LLMs have been increasingly considered for adoption across a number of high\-stakes industries such as politics\([Chatrath et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib4);[Burnham et al\., 2026](https://arxiv.org/html/2611.25289#bib.bib2)\), healthcare\([Artsi et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib49);[Sakai and Lam, 2026](https://arxiv.org/html/2611.25289#bib.bib3)\), and business\([Li et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib50)\)\. With this, it is increasingly important to understand when we can trust their outputs, and to what extent, using the model’s confidence as an indicator\.
While there is evidence that smaller fine\-tuned language models with a classification head often outperform higher\-parameter zero\-shot LLMs\([Bucher and Martini, 2024](https://arxiv.org/html/2611.25289#bib.bib5)\), fine\-tuning such a model is not always possible\. Although zero\-shot classification with LLMs is not necessarily an optimal solution, it provides more flexibility and can be much more cost\-effective, and the gap between zero\-shot and fine\-tuned classifiers is decreasing\. Zero\-shot classification can be particularly beneficial in data\-scarce environments\([Zhang et al\., 2026](https://arxiv.org/html/2611.25289#bib.bib6)\), where data annotation costs are high, and when label sets may change often, meaning new classifiers do not need to be trained after each change\([Meyuhas et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib7)\)\. Semi\-automated data labelling with LLMs is also growing in popularity\([Calderon et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib9);[Gilardi et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib8)\); ensuring the quality of annotations, and good confidence calibration is particularly important in this setting, enabling efficient use of human annotators, without negatively impacting dataset quality\([Wang et al\., 2024b](https://arxiv.org/html/2611.25289#bib.bib10)\)\.
Confidence can be extracted from LLMs in multiple ways\. Common strategies include asking the model to verbalise its confidence\([Tian et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib22)\), sampling multiple responses with a given temperature\([Wang et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib45);[Xiong et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib44)\), asking whether its answer is correct\([Kadavath et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib26)\), and scoring labels using token probabilities\([Zhao et al\., 2021](https://arxiv.org/html/2611.25289#bib.bib27);[Fadeeva et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib30);[Kuhn et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib32)\)\. These confidence extraction methods are rarely compared under the same conditions\. The majority of studies investigating confidence extraction focus on question answering \(QA\) tasks, where knowledge is the key cause of uncertainty\. In classification tasks, this is not the case; here uncertainty is much more likely to arise from task ambiguity rather than knowledge issues\. In classification problems, labels are often many tokens long and they share decoding paths, so aggregations must represent the full label\. To aggregate label probabilities, outputs must be constrained but the model’s first token may be a preamble to the label rather than the answer itself\([Wang et al\., 2024a](https://arxiv.org/html/2611.25289#bib.bib35)\)\.
This work provides empirical evidence for the most effective ways of using decoder\-only LLMs as zero\-shot classifiers, placing particular importance on each method’s discriminative abilities and confidence calibration as well as pure classification performance \(accuracy, F1\-macro\)\. We test using popular classification datasets with labels containing overlapping decoding paths to better test the full\-label aggregation methods and ensure they are robust to edge cases; an example of label overlap in SST\-5 with the Gemma 4 tokeniser would be: “very” “positive” and “very” “negative”\. For this, we investigate a number of logit\-score aggregation methods\.
With the relatively recent release and popularity of Jev\-style models, transformer\-based classification models that provide a distribution over the whole label set, we use TypeSafe AI’s Jev \(1\.13\.0\)111https://docs\.typesafe\.ai/modelsas a reference point\. Zero\-shot model\-method combinations in this study are competitive with Jev 1\.13\.0, performing comparably in terms of accuracy and AUROC, but generally worse in terms of raw calibration\.
##### Contributions:
- •We provide a systematic overview of zero\-shot classification with LLMs, focusing on the discrimination and calibration across a range of models for classification tasks\.
- •We introduce a simple scoring rule that only scores and length normalises over decision points in the decode trie, reducing the number of decode steps by 96% on Banking77, 92% on CLINC150, and 88% on 20NG \(with the Gemma 4 tokeniser\); these reductions in decode steps will not match exactly with the time saved due to overheads\.
- •
##### Key Findings:
- •Zero\-shot LLMs are natural classifiers that can discriminate relatively well, achieving a mean AUROC of up to 0\.802 \(Qwen 3\.5 9B, constrained with Google length normalisation\)\.
- •Reducing labels to single tokens often causes lower classification performance but retains discriminative abilities\.
- •Verbalised confidence, or constrained decoding and the choice of scoring methods rarely statistically significantly impact the accuracy of zero\-shot LLM classifiers\.
- •Verbalised confidence \(on a Likert\-scale\) achieves the highest calibration overall but is significantly worse in terms of discrimination; methods should not be chosen on calibration alone\.
## 2Related Work
### 2\.1Constrained Decoding
As modern LLMs are generally successful at following output constraints, it is common to obtain labels through regex or simple string matching\([Biderman et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib11)\)\. Frameworks such as Outlines\([Willard and Louf, 2023](https://arxiv.org/html/2611.25289#bib.bib19)\), Guidance\([Lundberg et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib20)\), and XGrammar\([Dong et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib21)\)restrict output by programmatically conforming to a regular expression or grammar, masking disallowed tokens at each decoding step\. While constrained decoding can ensure we get an answer that fits a specific format, it can distort the LLM’s output distribution\([Park et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib12)\)\.
### 2\.2Extracting Confidence from LLMs
Confidence can be extracted from LLMs with black\-box methods, which have no access to model internals, or white\-box methods which have total access\.
##### Unconstrained approaches\.
Instruction tuning has been reported to degrade token probability calibration relative to base variants\([Kadavath et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib26)\), motivating the use of verbal approaches\([Tian et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib22)\)\. Confidence can be verbalised either on a Likert\-scale or numerically\([Tian et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib22);[Farr et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib33)\)\. Using an LLM\-as\-a\-judge approach, where the model verbalises its confidence separately to the classification label is also reported to be effective\([Liu et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib34)\)\.
Another way to calculate confidence is to run inference with a set temperature a number of times; the more times inference is run, the closer the output distribution should be to the model’s true answer distribution\([Wang et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib45);[Xiong et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib44)\)\. The majority decision is chosen as the label, with the confidence equal to the proportion of decisions that were the majority label\.
The P\(True\) method\([Kadavath et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib26)\)uses the answer generated as input to asking the model whether it believes that answer is true or false\. The log likelihoods of the first tokens are then softmaxed to obtain the probabilities\.
##### Scoring multi\-token labels\.
Many white\-box methods focus on token\-level probabilities\([Geng et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib24)\)\. Confidence is often simply represented by the likelihood of the whole sequence \(calculated by summing the log probabilities of each token\)\([Fadeeva et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib30);[Kuhn et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib32)\)or a length\-normalised likelihood\([Zhao et al\., 2021](https://arxiv.org/html/2611.25289#bib.bib27);[Gu et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib31)\)\. These methods are mostly applied to QA datasets\. This length normalisation is often simple token length\.[Wu et al\. \(2016\)](https://arxiv.org/html/2611.25289#bib.bib29)apply an alternative length normalisation penalty that has not yet been applied to multi\-token label scoring for classification\.
For classification tasks specifically, some approaches also normalise the likelihood based on a prior for each label, found by inspecting token probabilities after a blank input\([Zhao et al\., 2021](https://arxiv.org/html/2611.25289#bib.bib27);[Sanz\-Guerrero and von der Wense, 2025](https://arxiv.org/html/2611.25289#bib.bib25)\)\.[Kumar et al\. \(2024\)](https://arxiv.org/html/2611.25289#bib.bib28)flip this approach with Gen\-Z by asking what the likelihood of the input is given each possible output label, removing the requirement of length normalisation due to a constant output size\.
A common way to avoid multi\-token scoring is to replace full labels with single\-token identifiers \(often letters\), but LLMs can show systematic preferences for particular option identifiers\([Zheng et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib52);[Pezeshkpour and Hruschka, 2024](https://arxiv.org/html/2611.25289#bib.bib53)\)\. Despite this, some open\-source Jev\-style methods\([Geuter et al\., 2026](https://arxiv.org/html/2611.25289#bib.bib46);[Li and Wagle, 2026](https://arxiv.org/html/2611.25289#bib.bib23)\)take this kind of approach\.
TypeSafe AI’s Jev API model, trained using Reinforcement Learning for Calibrated Decisions \(RLCD\)\([TypeSafe AI, 2026](https://arxiv.org/html/2611.25289#bib.bib47)\), supports 255 output classes\. It returns a top class label along with a full probability distribution across all labels\.
## 3Methodology
In this study, we consider classification tasks with a static label set\. Although each method can be used in cases where the label set is constantly changing, using a static label set simplifies the evaluation and enables us to analyse the performance differences at the class level \(F1\-macro\)\.
Much of the prior work on short\-sequence model confidence calibration focuses on the question answering \(QA\) task\([Tian et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib22);[Xiong et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib44)\)\. QA relies heavily on recalling knowledge; the classification datasets we use do not rely on recall, so the model’s uncertainty reflects the difficulty of assigning a label to a given input, rather than how well the model “knows” a fact\.
### 3\.1Datasets
We evaluate on text\-classification datasets spanning a number of tasks, including topic classification, intent classification, sentiment detection, and fact\-checking\. We mainly focus on datasets that have labels of varying lengths and that contain overlapping token paths to investigate the issues of length normalisation and the difficulty of extracting full distributions across the label space\. These datasets are: Banking77\([Casanueva et al\., 2020](https://arxiv.org/html/2611.25289#bib.bib36)\), CLINC150\([Larson et al\., 2019](https://arxiv.org/html/2611.25289#bib.bib39)\), 20 Newsgroups\([Lang, 1995](https://arxiv.org/html/2611.25289#bib.bib40)\), and SST\-5\([Socher et al\., 2013](https://arxiv.org/html/2611.25289#bib.bib38)\)\. FEVER\([Thorne et al\., 2018](https://arxiv.org/html/2611.25289#bib.bib37)\), a fact\-checking dataset, is used to evaluate cases where all labels diverge at the first token with labels “SUPPORTS”, “REFUTES”, and “NOT ENOUGH INFO”\.
Banking77 and CLINC150 are both intent datasets and have the largest number of classes at 77 and 151 \(including out\-of\-scope\) respectively, with a number of overlapping tokens within the labels\. 20 Newsgroups, a topic classification dataset, contains overlapping labels that are organised into topics and subtopics; labels with the same parent topic will therefore share decoding paths\. SST\-5 provides a case where the two labels that share token paths are total opposites \(“very positive” and “very negative”\)\.
### 3\.2Large Language Models
In this study, we use only open\-weight language models available on HuggingFace, using the Transformers library\([Wolf et al\., 2020](https://arxiv.org/html/2611.25289#bib.bib13)\)\. We cover a range of model families and sizes \(1B to 32B parameters\)\. These models include Gemma 4 E2B, Gemma 4 E4B, and Gemma 4 31B\([Gemma Team et al\., 2026](https://arxiv.org/html/2611.25289#bib.bib14)\); Llama 3\.2 1B and 3B\([Grattafiori et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib15)\); Qwen 2\.5 7B\([Qwen Team et al\., 2025b](https://arxiv.org/html/2611.25289#bib.bib16)\); Qwen 3 8B, Qwen 3 14B, and Qwen 3 32B\([Qwen Team et al\., 2025a](https://arxiv.org/html/2611.25289#bib.bib17)\); Qwen 3\.5 4B, and Qwen 3\.5 9B\([Qwen Team, 2026](https://arxiv.org/html/2611.25289#bib.bib18)\)\. For all models, we are only testing their abilities without chain\-of\-thought; in most practical classification scenarios, chain\-of\-thought would significantly increase computational cost\.
### 3\.3Decoding Methods
Unconstrained decoding represents a simpler chatbot setup where answers are extracted after generation using only the output text\. With constrained methods, we access the individual token probabilities at each decode step\.
#### 3\.3\.1Unconstrained Generation
##### Simple inference methods\.
For the unconstrained generation, we test a number of prompting strategies to extract the answer from the LLM in different formats\. These formats include: 1\) plaintext label only \(“Unconstrained \(no conf\)”\), 2\) JSON format with only the label \(“Unconstrained JSON \(no conf\)”\), 3\) JSON format with confidence before the label \(“Unconstrained JSON verbal \(pre\)”\), and 4\) JSON format with confidence after the label \(“Unconstrained JSON verbal \(post\)”\)\. We also test single\-token substitutions for labels – “ABC” in Table[1](https://arxiv.org/html/2611.25289#S5.T1)– and Likert\-scaled confidence instead of percentage \(“Likert”\)\. This Likert scale is “Not at all confident”, “Slightly confident”, “Moderately confident”, “Very confident”, and “Completely confident”, equating to 20%, 40%, 60%, 80%, and 100%\.
By using the JSON format for confidence extraction, we are using a structure that is easy to obtain both the answer and confidence from and that language models are often post\-trained on for tool calling\([Grattafiori et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib15);[Qwen Team et al\., 2025a](https://arxiv.org/html/2611.25289#bib.bib17)\)\. For the plaintext label only, we use regular expressions to extract the largest label first \(to prevent cases where “positive” may be matched before “very positive”\)\. We again use regular expressions to extract the JSON object, greedily extracting everything from the first “\{” to the final “\}”\. If there is more than one JSON object, this will be picked up as a generation error once parsed\. We use thejsonmodule to parse JSON output\.
##### Sampling with temperature\.
As an extension to simple plaintext labels, we obtain a confidence estimate by sampling a number of language model outputs using a given temperature score\([Wang et al\., 2022](https://arxiv.org/html/2611.25289#bib.bib45);[Xiong et al\., 2024](https://arxiv.org/html/2611.25289#bib.bib44)\)\. To test this method, we use a temperature of 0\.5, which[Kuhn et al\. \(2023\)](https://arxiv.org/html/2611.25289#bib.bib32)found to be optimal for sampling\-based uncertainty estimation \(from a range of 0\.25 to 1\.5\); we sample 10 times per data point\. Any output errors here will be removed completely, so if there are 2 errors, we will divide the number of occurrences of each label by 8 rather than 10\. We do note that a resolution of 10% in confidence may impact the results\. In all results, this method is referenced as “Unconstrained \(10 samples\)”\.
#### 3\.3\.2Constrained Decoding
With constrained decoding, it is possible to obtain a probability distribution over the full label set\. We constrain the decoding process using a trie data structure\([De Cao et al\., 2020](https://arxiv.org/html/2611.25289#bib.bib48);[Li and Wagle, 2026](https://arxiv.org/html/2611.25289#bib.bib23)\)\.
##### Tree Construction\.
We represent the constrained decoding process using the trie data structure, using a depth\-first approach in its generation\. By using the trie, we can optimise the use of the KV\-cache for efficient computation\. At each decode step, we softmax over the whole vocabulary and then mask the output to only contain the valid next tokens\.
\{forest\}Figure 1:Example trie from SST\-5 \(Gemma 4 31B\)\. Each node shows the token withlog\-probability / probability, where the log\-probability is over the whole vocabulary and probability is between siblings\. Shaded tokens are decision tokens; dashed tokens are forced and are skipped by the decision\-only and probability methods\. For other datasets, non\-decision tokens can be in the middle of labels\.A trie is constructed for each prompt and each prompt corresponds to an individual data point\. At the end of each label, we calculate the joint likelihood of “end\-of\-answer” tokens\. This may be only the EOS token for some models; in other instruction\-tuned models, there are specialised end\-of\-turn tokens \(such as<turn\|\><turn\|\>for Gemma 4\)\. For the JSON output specifically, the tokens"and"\}are also added\. In the trie, we represent the combined “end\-of\-answer” tokens as token ID “−1\-1”\. An example of the trie structure can be seen in Figure[1](https://arxiv.org/html/2611.25289#S3.F1)\. In our experiments, we run trie construction for each model\-dataset combination and label aggregation is performed on the saved tries afterwards\.
For JSON responses, we prefill the beginning of the JSON output \(for example “\{"label": "”\)\. The exact prefill token sequence was obtained through three example outputs by each model\.
##### Tree aggregation\.
For a labelyywith tokenst1,…,tnt\_\{1\},\\dots,t\_\{n\}, letℓi=logpθ\(ti∣x,t<i\)\\ell\_\{i\}=\\log p\_\{\\theta\}\(t\_\{i\}\\mid x,t\_\{<i\}\), given inputxx\. Most methods assign a scores\(y\)s\(y\), from which we obtain a distribution over all labels and confidence:
p^\(y∣x\)\\displaystyle\\hat\{p\}\(y\\mid x\)=exps\(y\)∑y′∈𝒴exps\(y′\),\\displaystyle=\\frac\{\\exp s\(y\)\}\{\\sum\_\{y^\{\\prime\}\\in\\mathcal\{Y\}\}\\exp s\(y^\{\\prime\}\)\},\(1\)conf\(x\)\\displaystyle\\mathrm\{conf\}\(x\)=maxy∈𝒴p^\(y∣x\)\.\\displaystyle=\\max\_\{y\\in\\mathcal\{Y\}\}\\hat\{p\}\(y\\mid x\)\.Some methods redefinep^\(y∣x\)\\hat\{p\}\(y\\mid x\)directly\.
##### Greedy constrained decoding\.
To directly compare constrained generation against unconstrained generation, we simply use the greedy approach, assigning 100% confidence to the greedy\-decoded output\. In this instancep^\(y∣x\)=1\\hat\{p\}\(y\\mid x\)=1if the greedy path chooses labelyy, otherwisep^\(y∣x\)=0\\hat\{p\}\(y\\mid x\)=0\.
##### Total log likelihood and length normalisation\.
The simplest scoring method is a total log likelihood sum for each label \(sTL\(y\)s\_\{\\text\{TL\}\}\(y\)\)\([Fadeeva et al\., 2023](https://arxiv.org/html/2611.25289#bib.bib30)\)\. A simple extension to this is to normalise the label likelihoods by label length in tokens \(sLN\(y\)s\_\{\\text\{LN\}\}\(y\)\)\([Zhao et al\., 2021](https://arxiv.org/html/2611.25289#bib.bib27);[Gu et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib31)\)\. As well as simple token\-length normalisation, we also test the length normalisation penalty proposed by Google for machine translation \(sGLN\(y\)s\_\{\\text\{GLN\}\}\(y\)\)\([Wu et al\., 2016](https://arxiv.org/html/2611.25289#bib.bib29)\)\. These scoring rules \(Equation[2](https://arxiv.org/html/2611.25289#S3.E2)\) are used in Equation[1](https://arxiv.org/html/2611.25289#S3.E1)to obtain the distribution and confidence\.
sTL\(y\)\\displaystyle s\_\{\\text\{TL\}\}\(y\)=∑i=1nℓi,\\displaystyle=\\textstyle\\sum\_\{i=1\}^\{n\}\\ell\_\{i\},\(2\)sLN\(y\)\\displaystyle s\_\{\\text\{LN\}\}\(y\)=sTL\(y\)/n,\\displaystyle=s\_\{\\text\{TL\}\}\(y\)\\,/\\,n,sGLN\(y\)\\displaystyle s\_\{\\text\{GLN\}\}\(y\)=sTL\(y\)/\(5\+n6\)α,\\displaystyle=s\_\{\\text\{TL\}\}\(y\)\\,\\big/\\,\\bigl\(\\tfrac\{5\+n\}\{6\}\\bigr\)^\{\\alpha\},wherennis the label sequence length in tokens and in our experiments,α=0\.6\\alpha=0\.6following[Vaswani et al\. \(2017\)](https://arxiv.org/html/2611.25289#bib.bib51)\.
##### Decision\-only methods\.
Decoding each full label, particularly for datasets with large label sets, can be computationally expensive\. We propose performing the same calculations introduced above, but applying them to only decision tokens\. A decision token is one with siblings, meaning it was not the only choice available \(highlighted in Figure[1](https://arxiv.org/html/2611.25289#S3.F1)\)\. LetD\(y\)D\(y\)be the set of positions of the decision tokens on the path to labelyy\. The decision\-only scoring functions are
sTLD\(y\)\\displaystyle s^\{D\}\_\{\\text\{TL\}\}\(y\)=∑i∈D\(y\)ℓi,\\displaystyle=\\textstyle\\sum\_\{i\\in D\(y\)\}\\ell\_\{i\},\(3\)sLND\(y\)\\displaystyle s^\{D\}\_\{\\text\{LN\}\}\(y\)=sTLD\(y\)/m,\\displaystyle=s^\{D\}\_\{\\text\{TL\}\}\(y\)\\,/\\,m,sGLND\(y\)\\displaystyle s^\{D\}\_\{\\text\{GLN\}\}\(y\)=sTLD\(y\)/\(5\+m6\)α,\\displaystyle=s^\{D\}\_\{\\text\{TL\}\}\(y\)\\,\\big/\\,\\bigl\(\\tfrac\{5\+m\}\{6\}\\bigr\)^\{\\alpha\},wherem=\|D\(y\)\|m=\|D\(y\)\|is the number of decision tokens on the path toyy, and these scores are used in Equation[1](https://arxiv.org/html/2611.25289#S3.E1)as before\. By removing forced tokens, as well as improving computational efficiency, we may also reduce the bias introduced by length normalisation\.
##### Probability tree\.
We could not find any direct examples of probability trees being used to represent full\-label decoding for classification\. For the probability tree method, rather than softmaxing after all labels have been decoded, we softmax all sibling nodes at each step and multiply the probabilities of each token at the end:
p^\(y∣x\)=∏i=1npθ\(ti∣x,t<i\)∑c∈𝒞\(t<i\)pθ\(c∣x,t<i\),\\hat\{p\}\(y\\mid x\)=\\prod\_\{i=1\}^\{n\}\\frac\{p\_\{\\theta\}\(t\_\{i\}\\mid x,t\_\{<i\}\)\}\{\\sum\_\{c\\in\\mathcal\{C\}\(t\_\{<i\}\)\}p\_\{\\theta\}\(c\\mid x,t\_\{<i\}\)\},\(4\)where𝒞\(t<i\)\\mathcal\{C\}\(t\_\{<i\}\)is the set of valid next tokens \(siblings oftit\_\{i\}\) after the previous tokenst<it\_\{<i\}\. Figure[1](https://arxiv.org/html/2611.25289#S3.F1)visualises the probability tree\. When all labels diverge at the first token, the probability tree method reduces to a probability distribution over single\-token identifiers\. In constrained methods where we replace labels with single tokens \(“Constrained \(ABC\)” and “Constrained JSON \(ABC\)”\), we use the probability tree\.
The P\(True\) method also makes use of the probability tree to get the probability of “True” vs\. “False” on already classified data points\.
### 3\.4Evaluation
For every method and model\-dataset pair we compute accuracy and F1\-macro \(classification performance\), AUROC \(discrimination\)\([Hendrycks and Gimpel, 2016](https://arxiv.org/html/2611.25289#bib.bib54)\), and ECE\([Naeini et al\., 2015](https://arxiv.org/html/2611.25289#bib.bib55);[Guo et al\., 2017](https://arxiv.org/html/2611.25289#bib.bib58)\)and top\-label Brier score \(calibration\)\([Brier, 1950](https://arxiv.org/html/2611.25289#bib.bib56);[Gupta and Ramdas, 2021](https://arxiv.org/html/2611.25289#bib.bib57)\)\(Brier score applied to the confidence in the predicted label\)\. We also investigate the number of label generation errors per model\.
From these results, we report means over all model\-dataset pairs for each method\. We use the method with the highest mean rank for each metric as the reference and we compare every other method against it using a two\-sided Wilcoxon signed\-rank test\([Wilcoxon, 1945](https://arxiv.org/html/2611.25289#bib.bib59)\)paired over model\-dataset pairs, with Holm correction\([Holm, 1979](https://arxiv.org/html/2611.25289#bib.bib60)\)within each metric \(α=0\.05\\alpha=0\.05\)\. Individual model results \(Appendix[C](https://arxiv.org/html/2611.25289#A3)\) are reported without tests, asn=5n=5cannot reachp<0\.05p<0\.05\.
We then compare the highest performing model\-method combinations against Jev 1\.13\.0 using the same metrics\.
##### Unconstrained evaluation edge cases\.
When evaluating unconstrained outputs, unparsable errors are treated as incorrect answers\. In our F1\-macro calculations, we assign invalid predictions to incorrect classes as evenly as possible \(the gold label is excluded from this assignment\) using a round\-robin approach\. In each round, we prioritise adding incorrect predictions to the largest class to cause a lower impact on the result\. When a method does not provide a confidence score, or confidence is unparsable, we assume 100% certainty\. For constrained outputs, this does not apply as it is impossible to obtain a label outside the label set\.
## 4Experimental Setup
### 4\.1Key Comparisons
In our experiments, we test a number of decoding methods on 5 datasets \(Banking77, CLINC150, FEVER, SST\-5, 20NG\) using 11 models \(see Section[3\.2](https://arxiv.org/html/2611.25289#S3.SS2)\)\. Our main comparisons are constrained vs\. unconstrained output, single token output vs\. full\-label output, JSON format vs\. plaintext output, verbal confidence vs\. sampling confidence vs\. logit\-based confidence vs\. post\-hoc P\(True\) confidence\.
The different decoding methods we compare are described in Section[3\.3](https://arxiv.org/html/2611.25289#S3.SS3)\.
### 4\.2Prompting Methodology
When prompting the models, we follow the COSTAR\-A\([Ohalete et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib41)\)prompting style\. This format includes “Context”, “Objective”, “Style”, “Tone”, “Audience”, “Response”, and “Answer”\.
For our prompts, we adapt COSTAR\-A as follows: style and tone are merged into a single section; audience is omitted; and response is replaced by a “Format” section that describes both the structure of the input and the permitted output labels\. We also add an “Input” section containing the instance to be classified\. The “Context”, “Style & Tone”, and “Format” sections are included in the system prompt, and the “Objective”, “Input”, and “Answer” sections form the user prompt which varies per data point\.
With modern LLMs proficient in markdown\([Chen et al\., 2025](https://arxiv.org/html/2611.25289#bib.bib43);[Freeburg, 2026](https://arxiv.org/html/2611.25289#bib.bib42)\)and XML\([Anthropic, 2026](https://arxiv.org/html/2611.25289#bib.bib61)\), all prompts use the markdown format for the above sections and inputs are provided inside XML tags\.
Example prompts can be found in Appendix[D](https://arxiv.org/html/2611.25289#A4)\.
### 4\.3Model Settings
For all models, we use 16\-bit precision and we use greedy decoding in all instances \(other than for the sampling inference method\)\. We use greedy decoding to provide near\-deterministic results that may only differ due to hardware\-based floating point calculation differences; we generate with a batch size of 1 to mitigate this further and eliminate padding differences\.
## 5Results & Discussion
Table 1:Mean score over all model–dataset pairs \(excluding Llama 3\.2 1B, Llama 3\.2 3B\)\.Boldindicates the best mean\.∗indicates a method is not significantly different from the method with the best mean rank \(two\-sided Wilcoxon signed\-rank test paired over model\-dataset pairs, Holm\-adjustedp\>0\.05p\>0\.05\)\.MethodAccuracyF1\-macroAUROCECEBrierUnconstrained \(no conf\)0\.724∗0\.715∗0\.5000\.2760\.276Unconstrained \(no conf ABC\)0\.6710\.6630\.5000\.3290\.329Unconstrained \(10 samples\)0\.724∗0\.715∗0\.5690\.2540\.255Unconstrained \+ P\(True\)0\.724∗0\.715∗0\.741∗0\.2270\.235Unconstrained JSON \(no conf\)0\.723∗0\.718∗0\.5000\.2770\.277Unconstrained JSON \(no conf ABC\)0\.6860\.6800\.5000\.3140\.314Unconstrained JSON verbal \(pre\)0\.719∗0\.718∗0\.6180\.2170\.241∗Unconstrained JSON verbal \(post\)0\.722∗0\.719∗0\.6580\.2120\.231∗Unconstrained JSON verbal \(pre, Likert\)0\.721∗0\.716∗0\.6060\.167∗0\.222∗Unconstrained JSON verbal \(post, Likert\)0\.723∗0\.720∗0\.6360\.150∗0\.202∗Unconstrained JSON verbal \(pre, ABC\)0\.6790\.6760\.5920\.2620\.280Unconstrained JSON verbal \(post, ABC\)0\.6810\.6750\.6240\.2480\.263Constrained \(greedy\)0\.7230\.714∗0\.5000\.2770\.277Constrained \(total likelihood\)0\.723∗0\.715∗0\.764∗0\.2230\.232Constrained \(total likelihood, decision\-only\)0\.723∗0\.715∗0\.764∗0\.2230\.232Constrained \(length norm\)0\.723∗0\.715∗0\.759∗0\.213∗0\.227∗Constrained \(length norm, decision\-only\)0\.723∗0\.715∗0\.7540\.185∗0\.211∗Constrained \(Google length norm\)0\.723∗0\.715∗0\.764∗0\.2080\.222Constrained \(Google length norm, decision\-only\)0\.723∗0\.715∗0\.763∗0\.2200\.229Constrained \(probability tree\)0\.723∗0\.714∗0\.763∗0\.2230\.232Constrained \(ABC\)0\.6670\.6620\.758∗0\.2560\.266Constrained JSON \(greedy\)0\.7150\.7070\.5000\.2850\.285Constrained JSON \(total likelihood\)0\.7130\.7060\.760∗0\.2220\.234Constrained JSON \(total likelihood, decision\-only\)0\.7160\.7070\.763∗0\.2220\.234Constrained JSON \(length norm\)0\.6810\.6790\.7380\.249∗0\.264∗Constrained JSON \(length norm, decision\-only\)0\.7150\.7080\.746∗0\.185∗0\.213∗Constrained JSON \(Google length norm\)0\.7080\.7020\.760∗0\.2030\.225Constrained JSON \(Google length norm, decision\-only\)0\.7160\.7080\.762∗0\.2180\.231Constrained JSON \(probability tree\)0\.7150\.7070\.762∗0\.2220\.234Constrained JSON \(ABC\)0\.6830\.6800\.766∗0\.2470\.254
Table 2:Best model–method combinations for each metric, best constrained method \(accuracy\), best ABC\-logit method \(accuracy\), compared against Jev 1\.13\.0\. Scores are means across all datasets\.ModelMethodAccuracyF1\-macroAUROCECEBrierGemma 4 31BUnconstrained JSON verbal\(pre, Likert\)0\.8030\.7960\.6420\.1200\.145Gemma 4 31BUnconstrained JSON verbal\(post, Likert\)0\.8020\.7960\.6730\.1070\.140Qwen 3\.5 9BConstrained\(Google length norm\)0\.7500\.7410\.8020\.1070\.153Qwen 3\.5 9BConstrained\(length norm, decision\-only\)0\.7510\.7440\.7930\.0530\.142Gemma 4 31BConstrained JSON\(Google length norm,decision\-only\)0\.8020\.7950\.7750\.1900\.190Gemma 4 31BConstrained JSON\(ABC\)0\.7980\.7900\.7720\.1960\.196Jev 1\.13\.0Jev0\.7880\.7800\.8010\.0860\.134##### Smaller models generally produce more generation errors\.
Figure 2:Rate of errors made by each model \(all unconstrained inference methods: plaintext, JSON with no confidence, verbal pre and post, Likert and percentage\) plotted against number of model parameters \(in billions\) and grouped by model family\.As shown in Figure[2](https://arxiv.org/html/2611.25289#S5.F2), the number of generation errors generally increases as the number of model parameters decreases\. While the general trend is clear from looking at all models, it is most visible within the Gemma 4 family of models where the error rate decreases from 0\.22% with Gemma 4 E2B to 0\.01% for the 31 billion parameter variant\. The mid\-sized Qwen 3 and Qwen 3\.5 models, however, show that this is not always the case\.
##### Despite constrained decoding preventing generation errors, it can harm model performance\.
It is well\-investigated that constrained decoding can often distort an LLM’s output distribution, in that it is forced to choose between a set of tokens where all of them have extremely low likelihoods\([Wang et al\., 2024a](https://arxiv.org/html/2611.25289#bib.bib35)\)\. The alternative formats the unconstrained models used include bullet pointing, prepending with “Answer: ”, and using markdown formatting\. For the full results, see Table[3](https://arxiv.org/html/2611.25289#A2.T3)and Table[4](https://arxiv.org/html/2611.25289#A2.T4)\.
##### The confidence extraction method rarely significantly impacts classification performance\.
Post\-hoc confidence methods like P\(True\) do not change the accuracy at all, as they are extensions of greedy inference with no confidence\. Other greedy generation methods all use JSON\-formatted outputs, and the accuracy is only statistically significantly worse than the best performing method \(unconstrained output with no confidence\) when labels are reduced to single\-token replacements\. The averaged constrained JSON methods perform statistically worse than the best performing method, but some of the highest performing model\-method combinations do use constrained JSON output, indicating that the preferred format is model\-dependent \(see Table[2](https://arxiv.org/html/2611.25289#S5.T2)\)\.
##### In terms of raw calibration, verbal confidence performs well\. Likert\-scale confidence is better calibrated but leads to worse discriminative abilities\.
For verbal confidence, asking models for JSON output with answer first and confidence second performed the best in terms of ECE and top\-label Brier score \(shown in Table[1](https://arxiv.org/html/2611.25289#S5.T1)\)\. While asking for confidence in a Likert scale provides better raw calibration, it leads to a poorer AUROC, most likely due to the significantly lower resolution of the Likert scale compared to percentage output\.
##### Methods that reduce the labels to single tokens often lead to reductions in accuracy and calibration, but perform well discriminatively and are more computationally efficient\.
Overall \(see Table[1](https://arxiv.org/html/2611.25289#S5.T1)\), all methods that reduce labels to single tokens perform significantly worse than the highest ranking method on average in terms of accuracy, F1\-macro, ECE and top\-label Brier score\. While the accuracy is lower, they perform well on discrimination \(AUROC\) with “Constrained JSON \(ABC\)” achieving the highest average score\. The constrained single\-token methods also require only one decode step per data point, making these methods quick and resource\-efficient when compared to methods requiring the full decoding of each label\.
##### Tree\-based decoding and logit scoring lead to significantly better classifiers in terms of discrimination\.
As shown in Table[1](https://arxiv.org/html/2611.25289#S5.T1), the constrained logit\-based methods perform well, with only two trie\-based methods \(excluding “greedy”\) performing statistically significantly worse on average than the best performing method “Constrained JSON \(ABC\)” in terms of AUROC\. While calibration scores in logit\-based methods are not quite as low as some of the verbalised confidence methods overall, the best performing model and method combination for ECE is Qwen 3\.5 9B constrained with length normalisation \(decision tokens only\)\. Calibration scores could be improved using a small validation set and temperature scaling\([Guo et al\., 2017](https://arxiv.org/html/2611.25289#bib.bib58)\)\.
The P\(True\) method, which is also a logit\-based method, is not statistically significantly worse than other logit\-based methods in terms of discrimination and maintains the benefits of unconstrained generation for classification performance\. Using P\(True\), however, does not produce a confidence distribution over all labels as other logit\-scoring methods do\.
##### Open\-weight instruction\-tuned models are competitive with Jev 1\.13\.0\.
Of the best performing methods in Table[2](https://arxiv.org/html/2611.25289#S5.T2), Jev 1\.13\.0 only wins on the top\-label Brier score but no model\-method combination beats Jev on classification performance and discrimination combined\. The model\-method combination with the highest accuracy and F1\-macro is Gemma 4 31B using unconstrained JSON generation with Likert\-scale confidence; this does come at a large cost in discrimination\. Gemma 4 31B constrained with JSON output and Google length normalisation on decision tokens only, as well as Gemma 4 31B with constrained single\-token JSON output, achieves an accuracy and F1\-macro higher than Jev, but performs worse in terms of AUROC, ECE, and top\-label Brier\. The best performing Qwen 3\.5 9B method combinations perform similarly or better in terms of AUROC but do lose on raw classification performance\. While the Jev API may be a viable option for those without extensive privacy concerns, open\-weight alternatives with no extra training are competitive\.
## 6Conclusion
Open\-weight zero\-shot LLMs are effective classifiers that are competitive with current commercial classification models in terms of accuracy and discrimination\. While the raw calibration is not always as strong, it could likely be improved with temperature scaling\([Guo et al\., 2017](https://arxiv.org/html/2611.25289#bib.bib58)\)\. Unconstrained outputs using verbalised confidence have been shown to perform well in terms of accuracy, but methods that use logit scores are shown to be significantly better at providing confidence scores that discriminate between correct and incorrect answers\.
Open\-weight models can perform very well in terms of classification score, discrimination, and calibration using logit\-based methods\. Of the models tested, Gemma 4 31B is the most accurate \(constrained and unconstrained\), but the relatively small Qwen 3\.5 9B achieved the best AUROC and ECE scores, with a slightly lower, but still competitive, accuracy and F1\-macro of≈0\.75\\approx 0\.75and≈0\.74\\approx 0\.74\.
The decision for which model and method to use likely depends on hardware, time or throughput, and privacy requirements\. If there are no privacy requirements, commercial models like Jev can be a good option for quick, high\-quality classification results; there is also no need for a GPU\. If time and throughput are not a large concern, decoding full labels can be beneficial; depending on the label set, this can be more costly\. By reducing computations to decision\-only steps \(see Section[3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.Px5)\), it is possible to save computation, achieving similar results to full decoding\. If time is limited and/or there is a very high throughput required, reducing the label set to single tokens can save a lot of time, but it does come at the expense of accuracy\. Depending on the model, it may be better to constrain the output to JSON or natural text; a small validation set may be used to test this and which trie\-based method to use\.
## Limitations
Jev’s architecture and training data are not publicly documented, so we cannot be sure whether or not it was trained on the public datasets we have used\. The same applies to the open\-weight models\.
In this study, we do not investigate the impact of temperature scaling on the calibration of our logit\-based methods\. Temperature scaling\([Guo et al\., 2017](https://arxiv.org/html/2611.25289#bib.bib58)\), fit on a small labelled validation set, is likely to improve calibration \(ECE and top\-label Brier score\), while maintaining the same discriminative abilities\.
All experiments are zero\-shot only\. Few\-shot prompting may improve classification results further but come at some computational cost\. Investigation of this trade\-off could be interesting\.
Our experiments use a single prompt per method\-dataset pair, meaning we do not test for prompt variability\. All datasets and prompts are also in English, meaning we cannot confidently draw conclusions on zero\-shot LLM classification in other languages, although we expect the same conclusions to hold\.
For the “Google length norm” methods, we do not tune theα\\alphaparameter\. This could potentially affect classification accuracy, discrimination, and calibration\. Sampling also only uses a single setting: 10 samples at temperature 0\.5\. Testing sampling with a higher resolution and different temperatures could improve calibration for this method\.
Experiments use 16\-bit precision across four GPU types\. Despite greedy decoding and a batch size of 1, floating\-point differences could cause small variations in results\.
## Acknowledgments
We acknowledge the IT Services at The University of Sheffield, utilising their High Performance Computing clusters in our experiments\.
## References
- Anthropic \(2026\)AnthropicPrompting best practices\.\.Note:[https://docs\.anthropic\.com/en/docs/build\-with\-claude/prompt\-engineering/use\-xml\-tags](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags)Claude documentation, accessed 9 November 2026Cited by:[§4\.2](https://arxiv.org/html/2611.25289#S4.SS2.p3.1)\.
- Artsiet al\.\(2025\)Y\. Artsi, V\. Sorin, B\. S\. Glicksberg, P\. Korfiatis, G\. N\. Nadkarni, and E\. KlangLarge language models in real\-world clinical workflows: a systematic review of applications and implementation\.Frontiers in Digital Health7,pp\. 1659134\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p1.1)\.
- Bidermanet al\.\(2024\)S\. Biderman, H\. Schoelkopf, L\. Sutawika, L\. Gao, J\. Tow, B\. Abbasi, A\. F\. Aji, P\. S\. Ammanamanchi, S\. Black, J\. Clive,et al\.Lessons from the trenches on reproducible evaluation of language models\.arXiv preprint arXiv:2405\.14782\.Cited by:[§2\.1](https://arxiv.org/html/2611.25289#S2.SS1.p1.1)\.
- Brier \(1950\)G\. W\. BrierVerification of forecasts expressed in terms of probability\.Monthly weather review78\(1\),pp\. 1–3\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p1.1)\.
- Bucher and Martini \(2024\)M\. J\. J\. Bucher and M\. MartiniFine\-tuned’small’llms \(still\) significantly outperform zero\-shot generative ai models in text classification\.arXiv preprint arXiv:2406\.08660\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p2.1)\.
- Burnhamet al\.\(2026\)M\. Burnham, K\. Kahn, R\. Y\. Wang, and R\. X\. PengPolitical debate: efficient zero\-shot and few\-shot classifiers for political text\.Political Analysis34\(3\),pp\. 329–343\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p1.1)\.
- Calderonet al\.\(2025\)N\. Calderon, R\. Reichart, and R\. DrorThe alternative annotator test for llm\-as\-a\-judge: how to statistically justify replacing human annotators with llms\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 16051–16081\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p2.1)\.
- Casanuevaet al\.\(2020\)I\. Casanueva, T\. Temčinas, D\. Gerz, M\. Henderson, and I\. VulićEfficient intent detection with dual sentence encoders\.InProceedings of the 2nd workshop on natural language processing for conversational AI,pp\. 38–45\.Cited by:[§3\.1](https://arxiv.org/html/2611.25289#S3.SS1.p1.1)\.
- Chatrathet al\.\(2024\)V\. Chatrath, M\. Lotif, and S\. RazaFact or fiction? can llms be reliable annotators for political truths?\.arXiv preprint arXiv:2411\.05775\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p1.1)\.
- Chenet al\.\(2025\)Z\. Chen, Y\. Liu, L\. Shi, Z\. Wang, X\. Chen, Y\. Zhao, and F\. RenMDEval: evaluating and enhancing markdown awareness in large language models\.InProceedings of the ACM on Web Conference 2025,pp\. 2981–2991\.Cited by:[§4\.2](https://arxiv.org/html/2611.25289#S4.SS2.p3.1)\.
- De Caoet al\.\(2020\)N\. De Cao, G\. Izacard, S\. Riedel, and F\. PetroniAutoregressive entity retrieval\.arXiv preprint arXiv:2010\.00904\.Cited by:[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.p1.1)\.
- Donget al\.\(2025\)Y\. Dong, C\. F\. Ruan, Y\. Cai, Z\. Xu, Y\. Zhao, R\. Lai, and T\. ChenXgrammar: flexible and efficient structured generation engine for large language models\.Proceedings of Machine Learning and Systems7\.Cited by:[§2\.1](https://arxiv.org/html/2611.25289#S2.SS1.p1.1)\.
- Fadeevaet al\.\(2023\)E\. Fadeeva, R\. Vashurin, A\. Tsvigun, A\. Vazhentsev, S\. Petrakov, K\. Fedyanin, D\. Vasilev, E\. Goncharova, A\. Panchenko, M\. Panov, T\. Baldwin, and A\. ShelmanovLM\-polygraph: uncertainty estimation for language models\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Demonstrations,Y\. Feng and E\. Lefever \(Eds\.\),Singapore,pp\. 446–461\.External Links:[Link](https://aclanthology.org/2023.emnlp-demo.41/),[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-demo.41)Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p1.1),[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.Px4.p1.2)\.
- Farret al\.\(2024\)D\. Farr, I\. Cruickshank, N\. Manzonelli, N\. Clark, K\. Starbird, and J\. WestLlm confidence evaluation measures in zero\-shot css classification\.arXiv preprint arXiv:2410\.13047\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p1.1)\.
- Freeburg \(2026\)E\. FreeburgThe last fingerprint: how markdown training shapes llm prose\.arXiv preprint arXiv:2603\.27006\.Cited by:[§4\.2](https://arxiv.org/html/2611.25289#S4.SS2.p3.1)\.
- Gemma Teamet al\.\(2026\)Gemma Team, S\. E\. Abd, V\. Aggarwal, R\. Algayres, A\. Andreev, O\. Bachem, I\. Ballantyne, C\. Brick, V\. Cărbune, M\. Casbon,et al\.Gemma 4 technical report\.arXiv preprint arXiv:2607\.02770\.Cited by:[§3\.2](https://arxiv.org/html/2611.25289#S3.SS2.p1.1)\.
- Genget al\.\(2024\)J\. Geng, F\. Cai, Y\. Wang, H\. Koeppl, P\. Nakov, and I\. GurevychA survey of confidence estimation and calibration in large language models\.InProceedings of the 2024 conference of the north American chapter of the association for computational linguistics: human language technologies \(volume 1: long papers\),pp\. 6577–6595\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p1.1)\.
- Geuteret al\.\(2026\)J\. Geuter, A\. Cheng, and D\. Alvarez\-MelisReleasing the inner jev: a simple recipe for open decision models\.arXiv preprint arXiv:2610\.17205\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p3.1)\.
- Gilardiet al\.\(2023\)F\. Gilardi, M\. Alizadeh, and M\. KubliChatGPT outperforms crowd workers for text\-annotation tasks\.Proceedings of the National Academy of Sciences120\(30\),pp\. e2305016120\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p2.1)\.
- Grattafioriet al\.\(2024\)A\. Grattafiori, A\. Dubey, A\. Jauhri, A\. Pandey, A\. Kadian, A\. Al\-Dahle, A\. Letman, A\. Mathur, A\. Schelten, A\. Vaughan,et al\.The llama 3 herd of models\.arXiv preprint arXiv:2407\.21783\.Cited by:[§3\.2](https://arxiv.org/html/2611.25289#S3.SS2.p1.1),[§3\.3\.1](https://arxiv.org/html/2611.25289#S3.SS3.SSS1.Px1.p2.1)\.
- Guet al\.\(2025\)Y\. Gu, O\. Tafjord, B\. Kuehl, D\. Haddad, J\. Dodge, and H\. HajishirziOlmes: a standard for language model evaluations\.InFindings of the Association for Computational Linguistics: NAACL 2025,pp\. 5020–5048\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p1.1),[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.Px4.p1.2)\.
- Guoet al\.\(2017\)C\. Guo, G\. Pleiss, Y\. Sun, and K\. Q\. WeinbergerOn calibration of modern neural networks\.InInternational conference on machine learning,pp\. 1321–1330\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p1.1),[§5](https://arxiv.org/html/2611.25289#S5.SS0.SSS0.Px6.p1.1),[§6](https://arxiv.org/html/2611.25289#S6.p1.1),[Limitations](https://arxiv.org/html/2611.25289#Sx1.p2.1)\.
- Gupta and Ramdas \(2021\)C\. Gupta and A\. RamdasTop\-label calibration and multiclass\-to\-binary reductions\.arXiv preprint arXiv:2107\.08353\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p1.1)\.
- Hendrycks and Gimpel \(2016\)D\. Hendrycks and K\. GimpelA baseline for detecting misclassified and out\-of\-distribution examples in neural networks\.arXiv preprint arXiv:1610\.02136\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p1.1)\.
- Holm \(1979\)S\. HolmA simple sequentially rejective multiple test procedure\.Scandinavian journal of statistics,pp\. 65–70\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p2.1)\.
- Kadavathet al\.\(2022\)S\. Kadavath, T\. Conerly, A\. Askell, T\. Henighan, D\. Drain, E\. Perez, N\. Schiefer, Z\. Hatfield\-Dodds, N\. DasSarma, E\. Tran\-Johnson,et al\.Language models \(mostly\) know what they know\.arXiv preprint arXiv:2207\.05221\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p1.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p3.1)\.
- Kuhnet al\.\(2023\)L\. Kuhn, Y\. Gal, and S\. FarquharSemantic uncertainty: linguistic invariances for uncertainty estimation in natural language generation\.arXiv preprint arXiv:2302\.09664\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p1.1),[§3\.3\.1](https://arxiv.org/html/2611.25289#S3.SS3.SSS1.Px2.p1.1)\.
- Kumaret al\.\(2024\)S\. Kumar, C\. Y\. Park, and Y\. TsvetkovGen\-z: generative zero\-shot text classification with contextualized label descriptions\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 40169–40192\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p2.1)\.
- Lang \(1995\)K\. LangNewsweeder: learning to filter netnews\.InMachine learning proceedings 1995,pp\. 331–339\.Cited by:[§3\.1](https://arxiv.org/html/2611.25289#S3.SS1.p1.1)\.
- Larsonet al\.\(2019\)S\. Larson, A\. Mahendran, J\. J\. Peper, C\. Clarke, A\. Lee, P\. Hill, J\. K\. Kummerfeld, K\. Leach, M\. A\. Laurenzano, L\. Tang, and J\. MarsAn evaluation dataset for intent classification and out\-of\-scope prediction\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),K\. Inui, J\. Jiang, V\. Ng, and X\. Wan \(Eds\.\),Hong Kong, China,pp\. 1311–1316\.External Links:[Link](https://aclanthology.org/D19-1131/),[Document](https://dx.doi.org/10.18653/v1/D19-1131)Cited by:[§3\.1](https://arxiv.org/html/2611.25289#S3.SS1.p1.1)\.
- Liet al\.\(2023\)X\. Li, S\. Chan, X\. Zhu, Y\. Pei, Z\. Ma, X\. Liu, and S\. ShahAre chatgpt and gpt\-4 general\-purpose solvers for financial text analytics? a study on several typical tasks\.InProceedings of the 2023 conference on empirical methods in natural language processing: industry track,pp\. 408–422\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p1.1)\.
- Li and Wagle \(2026\)Y\. Li and J\. WagleLLM\-as\-jev: llms are already jev\-style decision models – when and how to fine\-tune them\.External Links:2610\.02076,[Link](https://arxiv.org/abs/2610.02076)Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p3.1),[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.p1.1)\.
- Liuet al\.\(2025\)X\. Liu, T\. Chen, L\. Da, C\. Chen, Z\. Lin, and H\. WeiUncertainty quantification and confidence calibration in large language models: a survey\.InProceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V\. 2,pp\. 6107–6117\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p1.1)\.
- Lundberget al\.\(2022\)S\. Lundberg, H\. Nori, and M\. T\. RibeiroGuidance\.\.GitHub\.Note:[https://github\.com/guidance\-ai/guidance](https://github.com/guidance-ai/guidance)Cited by:[§2\.1](https://arxiv.org/html/2611.25289#S2.SS1.p1.1)\.
- Meyuhaset al\.\(2024\)B\. Meyuhas, A\. Bremler\-Barr, and T\. ShapiraIoT device labeling using large language models\.arXiv preprint arXiv:2403\.01586\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p2.1)\.
- Naeiniet al\.\(2015\)M\. P\. Naeini, G\. Cooper, and M\. HauskrechtObtaining well calibrated probabilities using bayesian binning\.InProceedings of the AAAI conference on artificial intelligence,Vol\.29\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p1.1)\.
- Ohaleteet al\.\(2025\)N\. C\. Ohalete, K\. B\. Gittner, and L\. M\. MathenyCOSTAR\-a: a prompting framework for enhancing large language model performance on point\-of\-view questions\.arXiv preprint arXiv:2510\.12637\.Cited by:[§4\.2](https://arxiv.org/html/2611.25289#S4.SS2.p1.1)\.
- Parket al\.\(2024\)K\. Park, J\. Wang, T\. Berg\-Kirkpatrick, N\. Polikarpova, and L\. D’AntoniGrammar\-aligned decoding\.Advances in Neural Information Processing Systems37,pp\. 24547–24568\.Cited by:[§2\.1](https://arxiv.org/html/2611.25289#S2.SS1.p1.1)\.
- Pezeshkpour and Hruschka \(2024\)P\. Pezeshkpour and E\. HruschkaLarge language models sensitivity to the order of options in multiple\-choice questions\.InFindings of the Association for Computational Linguistics: NAACL 2024,pp\. 2006–2017\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p3.1)\.
- Qwen Teamet al\.\(2025a\)Qwen Team, A\. Yang, A\. Li, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Gao, C\. Huang, C\. Lv,et al\.Qwen3 technical report\.arXiv preprint arXiv:2505\.09388\.Cited by:[§3\.2](https://arxiv.org/html/2611.25289#S3.SS2.p1.1),[§3\.3\.1](https://arxiv.org/html/2611.25289#S3.SS3.SSS1.Px1.p2.1)\.
- Qwen Teamet al\.\(2025b\)Qwen Team, A\. Yang, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Li, D\. Liu, F\. Huang, H\. Wei, H\. Lin, J\. Yang, J\. Tu, J\. Zhang, J\. Yang, J\. Yang, J\. Zhou, J\. Lin, K\. Dang, K\. Lu, K\. Bao, K\. Yang, L\. Yu, M\. Li, M\. Xue, P\. Zhang, Q\. Zhu, R\. Men, R\. Lin, T\. Li, T\. Tang, T\. Xia, X\. Ren, X\. Ren, Y\. Fan, Y\. Su, Y\. Zhang, Y\. Wan, Y\. Liu, Z\. Cui, Z\. Zhang, and Z\. QiuQwen2\.5 technical report\.External Links:2412\.15115,[Link](https://arxiv.org/abs/2412.15115)Cited by:[§3\.2](https://arxiv.org/html/2611.25289#S3.SS2.p1.1)\.
- Qwen Team \(2026\)Qwen TeamQwen3\.5\.Note:[https://huggingface\.co/collections/Qwen/qwen35](https://huggingface.co/collections/Qwen/qwen35)Hugging Face model collection\. Models used: Qwen/Qwen3\.5\-4B and Qwen/Qwen3\.5\-9B\. Accessed 2 November 2026Cited by:[§3\.2](https://arxiv.org/html/2611.25289#S3.SS2.p1.1)\.
- Sakai and Lam \(2026\)H\. Sakai and S\. S\. LamLarge language models for health care text classification: systematic review\.Jmir Ai5\(1\),pp\. e79202\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p1.1)\.
- Sanz\-Guerrero and von der Wense \(2025\)M\. Sanz\-Guerrero and K\. von der WenseMitigating label length bias in large language models\.InProceedings of the 14th International Joint Conference on Natural Language Processing and the 4th Conference of the Asia\-Pacific Chapter of the Association for Computational Linguistics,pp\. 1404–1420\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p2.1)\.
- Socheret al\.\(2013\)R\. Socher, A\. Perelygin, J\. Wu, J\. Chuang, C\. D\. Manning, A\. Y\. Ng, and C\. PottsRecursive deep models for semantic compositionality over a sentiment treebank\.InProceedings of the 2013 conference on empirical methods in natural language processing,pp\. 1631–1642\.Cited by:[§3\.1](https://arxiv.org/html/2611.25289#S3.SS1.p1.1)\.
- Thorneet al\.\(2018\)J\. Thorne, A\. Vlachos, C\. Christodoulopoulos, and A\. MittalFEVER: a large\-scale dataset for fact extraction and verification\.InProceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 \(Long Papers\),pp\. 809–819\.Cited by:[§3\.1](https://arxiv.org/html/2611.25289#S3.SS1.p1.1)\.
- Tianet al\.\(2023\)K\. Tian, E\. Mitchell, A\. Zhou, A\. Sharma, R\. Rafailov, H\. Yao, C\. Finn, and C\. D\. ManningJust ask for calibration: strategies for eliciting calibrated confidence scores from language models fine\-tuned with human feedback\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,pp\. 5433–5442\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p1.1),[§3](https://arxiv.org/html/2611.25289#S3.p2.1)\.
- TypeSafe AI \(2026\)TypeSafe AIIntroducing system one models & Jev\.Note:TypeSafe AI Blog\.[https://typesafe\.ai/blog/introducing\-system\-one\-models\-and\-jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev)We evaluate Jev 1\.13\.0, accessed via the API in October 2026Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p4.1)\.
- Vaswaniet al\.\(2017\)A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, Ł\. Kaiser, and I\. PolosukhinAttention is all you need\.Advances in neural information processing systems30\.Cited by:[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.Px4.p1.3)\.
- Wanget al\.\(2024a\)X\. Wang, B\. Ma, C\. Hu, L\. Weber\-Genzel, P\. Röttger, F\. Kreuter, D\. Hovy, and B\. Plank“My answer is c”: first\-token probabilities do not match text answers in instruction\-tuned language models\.InFindings of the Association for Computational Linguistics: ACL 2024,pp\. 7407–7416\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§5](https://arxiv.org/html/2611.25289#S5.SS0.SSS0.Px2.p1.1)\.
- Wanget al\.\(2024b\)X\. Wang, H\. Kim, S\. Rahman, K\. Mitra, and Z\. MiaoHuman\-llm collaborative annotation through effective verification of llm labels\.InProceedings of the 2024 CHI conference on human factors in computing systems,pp\. 1–21\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p2.1)\.
- Wanget al\.\(2022\)X\. Wang, J\. Wei, D\. Schuurmans, Q\. Le, E\. Chi, S\. Narang, A\. Chowdhery, and D\. ZhouSelf\-consistency improves chain of thought reasoning in language models\.arXiv preprint arXiv:2203\.11171\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p2.1),[§3\.3\.1](https://arxiv.org/html/2611.25289#S3.SS3.SSS1.Px2.p1.1)\.
- Weiet al\.\(2022\)J\. Wei, Y\. Tay, R\. Bommasani, C\. Raffel, B\. Zoph, S\. Borgeaud, D\. Yogatama, M\. Bosma, D\. Zhou, D\. Metzler,et al\.Emergent abilities of large language models\.arXiv preprint arXiv:2206\.07682\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p1.1)\.
- Wilcoxon \(1945\)F\. WilcoxonIndividual comparisons by ranking methods\.Biometrics bulletin1\(6\),pp\. 80–83\.Cited by:[§3\.4](https://arxiv.org/html/2611.25289#S3.SS4.p2.1)\.
- Willard and Louf \(2023\)B\. T\. Willard and R\. LoufEfficient guided generation for large language models\.arXiv preprint arXiv:2307\.09702\.Cited by:[§2\.1](https://arxiv.org/html/2611.25289#S2.SS1.p1.1)\.
- Wolfet al\.\(2020\)T\. Wolf, L\. Debut, V\. Sanh, J\. Chaumond, C\. Delangue, A\. Moi, P\. Cistac, T\. Rault, R\. Louf, M\. Funtowicz, J\. Davison, S\. Shleifer, P\. von Platen, C\. Ma, Y\. Jernite, J\. Plu, C\. Xu, T\. Le Scao, S\. Gugger, M\. Drame, Q\. Lhoest, and A\. RushTransformers: state\-of\-the\-art natural language processing\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations,Q\. Liu and D\. Schlangen \(Eds\.\),Online,pp\. 38–45\.External Links:[Link](https://aclanthology.org/2020.emnlp-demos.6/),[Document](https://dx.doi.org/10.18653/v1/2020.emnlp-demos.6)Cited by:[§3\.2](https://arxiv.org/html/2611.25289#S3.SS2.p1.1)\.
- Wuet al\.\(2016\)Y\. Wu, M\. Schuster, Z\. Chen, Q\. V\. Le, M\. Norouzi, W\. Macherey, M\. Krikun, Y\. Cao, Q\. Gao, K\. Macherey,et al\.Google’s neural machine translation system: bridging the gap between human and machine translation\.arXiv preprint arXiv:1609\.08144\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p1.1),[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.Px4.p1.2)\.
- Xionget al\.\(2024\)M\. Xiong, Z\. Hu, X\. Lu, Y\. Li, J\. Fu, J\. He, and B\. HooiCan llms express their uncertainty? an empirical evaluation of confidence elicitation in llms\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 23650–23678\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px1.p2.1),[§3\.3\.1](https://arxiv.org/html/2611.25289#S3.SS3.SSS1.Px2.p1.1),[§3](https://arxiv.org/html/2611.25289#S3.p2.1)\.
- Zhanget al\.\(2026\)Z\. Zhang, L\. Ge, R\. Hu, and Y\. WangA zero\-shot prompt learning approach on fine\-grained text classification\.Scientific Reports16\(1\),pp\. 5260\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p2.1)\.
- Zhaoet al\.\(2021\)Z\. Zhao, E\. Wallace, S\. Feng, D\. Klein, and S\. SinghCalibrate before use: improving few\-shot performance of language models\.InInternational conference on machine learning,pp\. 12697–12706\.Cited by:[§1](https://arxiv.org/html/2611.25289#S1.p3.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p1.1),[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p2.1),[§3\.3\.2](https://arxiv.org/html/2611.25289#S3.SS3.SSS2.Px4.p1.2)\.
- Zhenget al\.\(2024\)C\. Zheng, H\. Zhou, F\. Meng, J\. Zhou, and M\. HuangLarge language models are not robust multiple choice selectors\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 19426–19454\.Cited by:[§2\.2](https://arxiv.org/html/2611.25289#S2.SS2.SSS0.Px2.p3.1)\.
## Appendix AAdditional Experimental Details
### A\.1Dataset Usage
In all cases other than for Banking77, all dataset labels are left untouched\. For Banking77, we changed “Refund\_not\_showing\_up” to “refund\_not\_showing\_up” and “reverted\_card\_payment?” to “reverted\_card\_payment” to be more consistent with the rest of the formatting of the labels, as these are known mistakes within the label set\. We expect label outputs to exactly match those of the dataset to be considered correct\. For all other datasets, we left label names untouched\. For example, all FEVER labels remain in upper case and underscores or dots are left between categories and words for other datasets\.
To ensure that out\-of\-memory errors never occur, we only use examples with an input text of 2048 tokens or under\. Only FEVER and 20 Newsgroups are affected, with FEVER reduced from 9,999 examples to 9,975 and 20 Newsgroups reduced from 7,317 to 7,121\.
### A\.2Hardware
Experiments were run across 4 different GPU models: NVIDIA A100 with 40GB of VRAM, NVIDIA A100 with 80GB of VRAM, NVIDIA H100 with 80GB of VRAM, and the NVIDIA GH200 with∼\\sim96GB HBM3\.
## Appendix BConstrained vs\. Unconstrained
Table 3:The percentage of data points on which constrained plaintext generation helps \(\+\+\) \(constrained output is correct, unconstrained output is either incorrect or unparsable\) and hinders \(−\-\) \(unconstrained output is correct, constrained output is incorrect\) classification performance by model and dataset\. Both constrained and unconstrained generation use greedy decoding\.Banking77CLINC150FEVERSST\-520NGLlama 3\.2 1B\+1\.66% / \-11\.59%\+3\.00% / \-6\.07%\+1\.13% / \-0\.19%\+0\.00% / \-0\.00%\+0\.10% / \-0\.13%Llama 3\.2 3B\+0\.55% / \-0\.39%\+2\.56% / \-1\.82%\+0\.59% / \-0\.15%\+0\.09% / \-0\.18%\+0\.21% / \-0\.13%Gemma 4 E2B\+0\.16% / \-0\.03%\+0\.31% / \-2\.78%\+0\.00% / \-0\.10%\+0\.00% / \-0\.00%\+0\.11% / \-0\.83%Gemma 4 E4B\+0\.03% / \-0\.03%\+0\.04% / \-0\.02%\+0\.00% / \-0\.00%\+0\.00% / \-0\.00%\+0\.00% / \-0\.00%Gemma 4 31B\+0\.00% / \-0\.00%\+0\.04% / \-0\.00%\+0\.01% / \-0\.01%\+0\.00% / \-0\.05%\+0\.03% / \-0\.00%Qwen2\.5 7B\+0\.26% / \-0\.36%\+0\.05% / \-0\.05%\+0\.15% / \-0\.06%\+0\.05% / \-0\.00%\+0\.07% / \-0\.00%Qwen3 8B\+0\.03% / \-0\.00%\+0\.02% / \-0\.05%\+0\.00% / \-0\.00%\+0\.00% / \-0\.05%\+0\.06% / \-0\.01%Qwen3 14B\+0\.00% / \-0\.03%\+0\.15% / \-0\.09%\+0\.00% / \-0\.00%\+0\.00% / \-0\.00%\+0\.10% / \-0\.00%Qwen3 32B\+0\.10% / \-0\.00%\+0\.05% / \-0\.09%\+0\.00% / \-0\.00%\+0\.05% / \-0\.00%\+0\.07% / \-0\.01%Qwen3\.5 4B\+0\.13% / \-0\.00%\+0\.04% / \-0\.02%\+0\.00% / \-0\.00%\+0\.05% / \-0\.00%\+0\.04% / \-0\.04%Qwen3\.5 9B\+0\.03% / \-0\.00%\+0\.00% / \-0\.02%\+0\.01% / \-0\.01%\+0\.05% / \-0\.00%\+0\.00% / \-0\.06%Table 4:The percentage of data points on which constrained JSON generation helps \(\+\+\) \(constrained output is correct, unconstrained output is either incorrect or unparsable\) and hinders \(−\-\) \(unconstrained output is correct, constrained output is incorrect\) classification performance by model and dataset\. Both constrained and unconstrained generation use greedy decoding\.Banking77CLINC150FEVERSST\-520NGLlama 3\.2 1B\+4\.22% / \-20\.13%\+18\.20% / \-8\.62%\+32\.25% / \-35\.92%\+11\.22% / \-24\.75%\+3\.93% / \-3\.13%Llama 3\.2 3B\+2\.63% / \-1\.40%\+3\.11% / \-3\.56%\+4\.45% / \-1\.48%\+2\.44% / \-3\.57%\+2\.09% / \-5\.25%Gemma 4 E2B\+0\.75% / \-0\.91%\+0\.58% / \-0\.91%\+1\.01% / \-7\.62%\+3\.35% / \-5\.29%\+1\.24% / \-2\.27%Gemma 4 E4B\+0\.29% / \-0\.49%\+0\.62% / \-3\.98%\+0\.33% / \-1\.00%\+1\.49% / \-1\.86%\+0\.59% / \-1\.28%Gemma 4 31B\+0\.29% / \-0\.19%\+0\.09% / \-0\.13%\+0\.11% / \-0\.06%\+1\.49% / \-0\.81%\+0\.10% / \-0\.15%Qwen2\.5 7B\+1\.92% / \-2\.79%\+3\.56% / \-3\.80%\+0\.93% / \-0\.86%\+1\.76% / \-2\.81%\+1\.80% / \-1\.57%Qwen3 8B\+2\.11% / \-1\.17%\+0\.91% / \-3\.15%\+0\.33% / \-0\.78%\+4\.66% / \-5\.02%\+1\.22% / \-2\.36%Qwen3 14B\+0\.81% / \-1\.07%\+0\.89% / \-3\.27%\+0\.11% / \-1\.24%\+7\.47% / \-8\.91%\+1\.33% / \-2\.37%Qwen3 32B\+1\.30% / \-1\.33%\+1\.95% / \-2\.35%\+0\.83% / \-0\.76%\+3\.26% / \-2\.13%\+1\.57% / \-1\.90%Qwen3\.5 4B\+1\.17% / \-1\.66%\+1\.55% / \-2\.07%\+0\.16% / \-1\.04%\+2\.08% / \-3\.35%\+1\.67% / \-1\.85%Qwen3\.5 9B\+0\.78% / \-0\.94%\+2\.16% / \-1\.27%\+0\.05% / \-2\.28%\+3\.98% / \-6\.56%\+1\.24% / \-1\.29%
## Appendix CResults By Model
Table 5:Accuracy \(mean score\) across datasets, by model\.Boldscore represents the best performing for that model\. Significance not tested as there are too few cells for the test to reach significance\.MethodLlama 3\.2 1BLlama 3\.2 3BGemma 4 E2BGemma 4 E4BGemma 4 31BQwen2\.5 7BQwen3 8BQwen3 14BQwen3 32BQwen3\.5 4BQwen3\.5 9BUnconstrained \(no conf\)0\.2450\.4870\.6450\.7280\.8010\.6810\.7060\.7310\.7490\.7200\.751Unconstrained \(no conf ABC\)0\.1620\.3410\.5520\.6770\.7950\.6070\.6190\.7020\.7160\.6580\.710Unconstrained \(10 samples\)0\.2450\.4900\.6460\.7290\.8010\.6800\.7070\.7310\.7490\.7200\.751Unconstrained \+ P\(True\)0\.2450\.4870\.6450\.7280\.8010\.6810\.7060\.7310\.7490\.7200\.751Unconstrained JSON \(no conf\)0\.2730\.5150\.6560\.7250\.8000\.6690\.7090\.7330\.7410\.7180\.752Unconstrained JSON \(no conf ABC\)0\.1600\.4210\.6040\.6940\.7980\.6040\.6580\.7150\.7200\.6690\.713Unconstrained JSON verbal \(pre\)0\.2950\.5060\.6570\.7160\.8000\.6650\.7070\.7110\.7410\.7240\.753Unconstrained JSON verbal \(post\)0\.2700\.4930\.6530\.7200\.8020\.6710\.7160\.7290\.7430\.7200\.747Unconstrained JSON verbal \(pre, Likert\)0\.1850\.5140\.6610\.7240\.8030\.6740\.7010\.7250\.7370\.7140\.750Unconstrained JSON verbal \(post, Likert\)0\.2580\.4940\.6570\.7190\.8020\.6740\.7120\.7300\.7470\.7180\.746Unconstrained JSON verbal \(pre, ABC\)0\.1010\.4120\.6030\.6890\.7960\.5960\.6370\.7010\.7120\.6680\.706Unconstrained JSON verbal \(post, ABC\)0\.1420\.3870\.6060\.6900\.7970\.5960\.6410\.7140\.7140\.6680\.705Constrained \(greedy\)0\.2200\.4900\.6390\.7280\.8010\.6810\.7060\.7310\.7490\.7210\.751Constrained \(total likelihood\)0\.2200\.4940\.6390\.7290\.8010\.6820\.7060\.7310\.7500\.7220\.751Constrained \(total likelihood, decision\-only\)0\.2200\.4940\.6390\.7280\.8010\.6820\.7060\.7310\.7500\.7210\.751Constrained \(length norm\)0\.1820\.4840\.6360\.7270\.8010\.6820\.7070\.7310\.7490\.7210\.752Constrained \(length norm, decision\-only\)0\.2180\.4900\.6360\.7270\.8010\.6810\.7060\.7310\.7490\.7210\.751Constrained \(Google length norm\)0\.2100\.4930\.6390\.7280\.8010\.6820\.7060\.7310\.7500\.7220\.750Constrained \(Google length norm, decision\-only\)0\.2200\.4940\.6390\.7290\.8010\.6820\.7060\.7310\.7500\.7220\.751Constrained \(probability tree\)0\.2200\.4930\.6390\.7280\.8010\.6810\.7060\.7310\.7500\.7210\.751Constrained \(ABC\)0\.1910\.3410\.5450\.6710\.7950\.5970\.6160\.7020\.7180\.6530\.710Constrained JSON \(greedy\)0\.2280\.5140\.6360\.7150\.8020\.6650\.7030\.7210\.7420\.7110\.744Constrained JSON \(total likelihood\)0\.1100\.5000\.6360\.6960\.8020\.6650\.7030\.7200\.7420\.7130\.744Constrained JSON \(total likelihood, decision\-only\)0\.2300\.5170\.6360\.7150\.8020\.6660\.7030\.7220\.7420\.7120\.744Constrained JSON \(length norm\)0\.1150\.4620\.6360\.5080\.8020\.6640\.6400\.6810\.7430\.7120\.744Constrained JSON \(length norm, decision\-only\)0\.2090\.5060\.6360\.7130\.8020\.6640\.7040\.7210\.7400\.7110\.744Constrained JSON \(Google length norm\)0\.1160\.4950\.6360\.6550\.8020\.6650\.7030\.7150\.7430\.7120\.744Constrained JSON \(Google length norm, decision\-only\)0\.2380\.5160\.6360\.7150\.8020\.6650\.7030\.7230\.7420\.7120\.744Constrained JSON \(probability tree\)0\.2270\.5180\.6360\.7150\.8020\.6650\.7030\.7210\.7420\.7120\.744Constrained JSON \(ABC\)0\.1140\.4220\.5950\.6830\.7980\.6030\.6560\.7150\.7180\.6680\.714
Table 6:F1\-macro \(mean score\) across datasets, by model\.Boldscore represents the best performing for that model\. Significance not tested as there are too few cells for the test to reach significance\.MethodLlama 3\.2 1BLlama 3\.2 3BGemma 4 E2BGemma 4 E4BGemma 4 31BQwen2\.5 7BQwen3 8BQwen3 14BQwen3 32BQwen3\.5 4BQwen3\.5 9BUnconstrained \(no conf\)0\.1750\.4700\.6370\.7230\.7950\.6650\.6930\.7320\.7460\.7010\.741Unconstrained \(no conf ABC\)0\.1340\.3150\.5460\.6810\.7890\.5880\.6030\.6950\.7100\.6480\.703Unconstrained \(10 samples\)0\.1890\.4780\.6370\.7230\.7950\.6650\.6940\.7320\.7460\.7000\.741Unconstrained \+ P\(True\)0\.1750\.4700\.6370\.7230\.7950\.6650\.6930\.7320\.7460\.7010\.741Unconstrained JSON \(no conf\)0\.2350\.5030\.6610\.7210\.7930\.6630\.7010\.7380\.7390\.6970\.748Unconstrained JSON \(no conf ABC\)0\.0980\.3890\.6090\.6980\.7900\.5900\.6500\.7100\.7150\.6570\.703Unconstrained JSON verbal \(pre\)0\.2770\.4810\.6610\.7200\.7950\.6620\.7020\.7240\.7430\.7110\.748Unconstrained JSON verbal \(post\)0\.2530\.4760\.6580\.7170\.7960\.6660\.7060\.7350\.7420\.7060\.743Unconstrained JSON verbal \(pre, Likert\)0\.1350\.4950\.6640\.7220\.7960\.6640\.6930\.7300\.7390\.6910\.746Unconstrained JSON verbal \(post, Likert\)0\.2300\.4790\.6630\.7170\.7960\.6720\.7050\.7340\.7470\.7070\.742Unconstrained JSON verbal \(pre, ABC\)0\.0590\.3730\.6090\.6980\.7900\.5810\.6330\.7020\.7090\.6560\.701Unconstrained JSON verbal \(post, ABC\)0\.1030\.3580\.6120\.6950\.7910\.5790\.6320\.7080\.7090\.6550\.697Constrained \(greedy\)0\.1500\.4760\.6320\.7230\.7950\.6650\.6930\.7320\.7470\.7010\.741Constrained \(total likelihood\)0\.1440\.4810\.6320\.7230\.7950\.6670\.6940\.7320\.7470\.7020\.741Constrained \(total likelihood, decision\-only\)0\.1480\.4810\.6320\.7230\.7950\.6660\.6940\.7320\.7470\.7020\.741Constrained \(length norm\)0\.1160\.4690\.6290\.7220\.7950\.6670\.6950\.7330\.7470\.7030\.743Constrained \(length norm, decision\-only\)0\.1530\.4790\.6290\.7220\.7950\.6660\.6940\.7330\.7470\.7050\.744Constrained \(Google length norm\)0\.1370\.4800\.6310\.7230\.7950\.6660\.6940\.7320\.7470\.7030\.741Constrained \(Google length norm, decision\-only\)0\.1500\.4820\.6320\.7230\.7950\.6660\.6940\.7320\.7470\.7030\.742Constrained \(probability tree\)0\.1490\.4800\.6320\.7230\.7950\.6650\.6940\.7320\.7470\.7020\.741Constrained \(ABC\)0\.1510\.3160\.5430\.6790\.7890\.5870\.6010\.6950\.7130\.6460\.703Constrained JSON \(greedy\)0\.1500\.5070\.6400\.7060\.7950\.6540\.6870\.7250\.7380\.6870\.731Constrained JSON \(total likelihood\)0\.0680\.4880\.6400\.6920\.7950\.6550\.6890\.7290\.7380\.6890\.731Constrained JSON \(total likelihood, decision\-only\)0\.1480\.5100\.6400\.7070\.7950\.6550\.6880\.7250\.7380\.6890\.731Constrained JSON \(length norm\)0\.0590\.4350\.6400\.5100\.7950\.6530\.6460\.7020\.7390\.6900\.732Constrained JSON \(length norm, decision\-only\)0\.1610\.4970\.6400\.7060\.7950\.6540\.6890\.7250\.7380\.6910\.734Constrained JSON \(Google length norm\)0\.0950\.4800\.6400\.6540\.7950\.6540\.6900\.7290\.7390\.6890\.731Constrained JSON \(Google length norm, decision\-only\)0\.1610\.5090\.6400\.7070\.7950\.6550\.6880\.7250\.7380\.6890\.732Constrained JSON \(probability tree\)0\.1460\.5120\.6400\.7060\.7950\.6550\.6870\.7250\.7380\.6880\.731Constrained JSON \(ABC\)0\.0560\.3910\.6020\.6940\.7900\.5920\.6500\.7100\.7140\.6590\.704
Table 7:AUROC \(mean score\) across datasets, by model\.Boldscore represents the best performing for that model\. Significance not tested as there are too few cells for the test to reach significance\.MethodLlama 3\.2 1BLlama 3\.2 3BGemma 4 E2BGemma 4 E4BGemma 4 31BQwen2\.5 7BQwen3 8BQwen3 14BQwen3 32BQwen3\.5 4BQwen3\.5 9BUnconstrained \(no conf\)0\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.500Unconstrained \(no conf ABC\)0\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.500Unconstrained \(10 samples\)0\.5810\.6540\.5250\.5590\.5150\.5390\.5320\.5350\.5810\.6730\.659Unconstrained \+ P\(True\)0\.4730\.7540\.6850\.7190\.7670\.7240\.7260\.7510\.7860\.7490\.759Unconstrained JSON \(no conf\)0\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.500Unconstrained JSON \(no conf ABC\)0\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.500Unconstrained JSON verbal \(pre\)0\.4840\.5550\.6300\.7060\.6840\.5450\.5860\.6440\.6700\.5110\.590Unconstrained JSON verbal \(post\)0\.5240\.5680\.6410\.7480\.6880\.6810\.6360\.6580\.7030\.5310\.636Unconstrained JSON verbal \(pre, Likert\)0\.5310\.5500\.5810\.6570\.6420\.5940\.5550\.6410\.6180\.5760\.587Unconstrained JSON verbal \(post, Likert\)0\.5220\.5790\.6030\.6860\.6730\.6200\.5820\.6530\.6820\.5590\.668Unconstrained JSON verbal \(pre, ABC\)0\.3790\.5520\.6080\.6970\.6680\.5380\.5950\.6120\.5960\.4780\.541Unconstrained JSON verbal \(post, ABC\)0\.3740\.5230\.6250\.7230\.6840\.6330\.6160\.6120\.6590\.5070\.554Constrained \(greedy\)0\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.500Constrained \(total likelihood\)0\.6060\.7340\.7190\.7870\.7630\.7360\.7390\.7740\.7720\.7860\.798Constrained \(total likelihood, decision\-only\)0\.6050\.7330\.7200\.7870\.7640\.7350\.7380\.7740\.7710\.7860\.797Constrained \(length norm\)0\.6930\.7480\.7390\.7760\.7060\.7380\.7440\.7870\.7720\.7810\.792Constrained \(length norm, decision\-only\)0\.6830\.7430\.7150\.7790\.7360\.7310\.7230\.7650\.7620\.7850\.793Constrained \(Google length norm\)0\.6370\.7390\.7270\.7870\.7450\.7380\.7390\.7770\.7730\.7890\.802Constrained \(Google length norm, decision\-only\)0\.6070\.7340\.7190\.7860\.7630\.7350\.7360\.7750\.7710\.7860\.798Constrained \(probability tree\)0\.6050\.7310\.7200\.7860\.7640\.7340\.7370\.7740\.7720\.7860\.797Constrained \(ABC\)0\.6560\.7350\.6980\.7910\.7620\.7560\.7450\.7580\.7660\.7640\.779Constrained JSON \(greedy\)0\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.5000\.500Constrained JSON \(total likelihood\)0\.4610\.7050\.7440\.7650\.7760\.7280\.7560\.7300\.7800\.7760\.788Constrained JSON \(total likelihood, decision\-only\)0\.5450\.7210\.7440\.7890\.7760\.7270\.7550\.7320\.7810\.7770\.787Constrained JSON \(length norm\)0\.4960\.7430\.7360\.7620\.7240\.7350\.7700\.6960\.7090\.7450\.766Constrained JSON \(length norm, decision\-only\)0\.6120\.7290\.7330\.7780\.7460\.7210\.7360\.7060\.7530\.7610\.779Constrained JSON \(Google length norm\)0\.4870\.7160\.7440\.7600\.7660\.7310\.7570\.7400\.7790\.7770\.788Constrained JSON \(Google length norm, decision\-only\)0\.5550\.7220\.7430\.7890\.7750\.7270\.7530\.7310\.7790\.7760\.787Constrained JSON \(probability tree\)0\.5370\.7200\.7440\.7840\.7760\.7260\.7550\.7270\.7810\.7760\.786Constrained JSON \(ABC\)0\.6200\.7290\.7330\.7820\.7720\.7440\.7620\.7760\.7860\.7640\.776
Table 8:ECE \(mean score\) across datasets, by model\.Boldscore represents the best performing for that model\. Significance not tested as there are too few cells for the test to reach significance\.MethodLlama 3\.2 1BLlama 3\.2 3BGemma 4 E2BGemma 4 E4BGemma 4 31BQwen2\.5 7BQwen3 8BQwen3 14BQwen3 32BQwen3\.5 4BQwen3\.5 9BUnconstrained \(no conf\)0\.7550\.5130\.3550\.2720\.1990\.3190\.2940\.2690\.2510\.2800\.249Unconstrained \(no conf ABC\)0\.8380\.6590\.4480\.3230\.2050\.3930\.3810\.2980\.2840\.3420\.290Unconstrained \(10 samples\)0\.4950\.3860\.3440\.2530\.1960\.3020\.2810\.2570\.2310\.2210\.201Unconstrained \+ P\(True\)0\.3310\.3230\.3330\.2250\.1870\.2730\.2660\.2290\.1900\.1790\.158Unconstrained JSON \(no conf\)0\.7270\.4850\.3440\.2750\.2000\.3310\.2910\.2670\.2590\.2820\.248Unconstrained JSON \(no conf ABC\)0\.8400\.5790\.3960\.3060\.2020\.3960\.3420\.2850\.2800\.3310\.287Unconstrained JSON verbal \(pre\)0\.5380\.3940\.2490\.2160\.1520\.2540\.2150\.2360\.1880\.2380\.209Unconstrained JSON verbal \(post\)0\.4700\.4340\.3010\.2100\.1460\.2070\.2140\.2300\.1740\.2270\.203Unconstrained JSON verbal \(pre, Likert\)0\.4940\.2700\.1800\.1940\.1200\.1620\.1740\.1880\.1460\.1800\.160Unconstrained JSON verbal \(post, Likert\)0\.3860\.2810\.1910\.1880\.1070\.1410\.1380\.1920\.1210\.1520\.120Unconstrained JSON verbal \(pre, ABC\)0\.6820\.4790\.2770\.2370\.1560\.3160\.2950\.2460\.2660\.3200\.247Unconstrained JSON verbal \(post, ABC\)0\.7640\.4850\.3140\.2410\.1510\.2740\.2860\.2390\.2020\.2830\.245Constrained \(greedy\)0\.7800\.5100\.3610\.2720\.1990\.3190\.2940\.2690\.2510\.2790\.249Constrained \(total likelihood\)0\.3560\.2380\.3290\.2280\.1920\.2650\.2670\.2420\.2040\.1430\.138Constrained \(total likelihood, decision\-only\)0\.3460\.2370\.3290\.2280\.1920\.2650\.2670\.2420\.2040\.1430\.138Constrained \(length norm\)0\.0880\.1960\.2170\.2310\.1960\.1600\.1500\.1180\.1670\.3460\.328Constrained \(length norm, decision\-only\)0\.1400\.0940\.3120\.1980\.1870\.2170\.2430\.2230\.1640\.0660\.053Constrained \(Google length norm\)0\.2680\.1750\.3200\.2140\.1900\.2500\.2600\.2360\.1910\.1030\.107Constrained \(Google length norm, decision\-only\)0\.3140\.2200\.3280\.2260\.1910\.2620\.2650\.2410\.2010\.1320\.131Constrained \(probability tree\)0\.3350\.2360\.3290\.2280\.1920\.2660\.2670\.2420\.2040\.1420\.138Constrained \(ABC\)0\.3570\.1890\.4140\.2700\.1990\.3160\.3450\.2700\.2170\.1250\.148Constrained JSON \(greedy\)0\.7720\.4860\.3640\.2850\.1980\.3350\.2970\.2790\.2580\.2890\.256Constrained JSON \(total likelihood\)0\.3520\.2160\.3400\.2320\.1900\.2780\.2600\.2330\.1700\.1510\.142Constrained JSON \(total likelihood, decision\-only\)0\.3350\.2080\.3400\.2360\.1900\.2780\.2600\.2320\.1700\.1500\.142Constrained JSON \(length norm\)0\.1980\.2280\.2200\.1570\.1970\.1910\.1130\.1840\.3790\.3870\.411Constrained JSON \(length norm, decision\-only\)0\.1880\.0980\.3220\.1980\.1840\.2210\.2250\.1950\.0910\.1230\.110Constrained JSON \(Google length norm\)0\.2730\.1450\.3320\.2160\.1870\.2620\.2480\.2250\.1380\.1120\.106Constrained JSON \(Google length norm, decision\-only\)0\.3040\.1930\.3380\.2330\.1900\.2740\.2570\.2300\.1630\.1400\.134Constrained JSON \(probability tree\)0\.3320\.2060\.3400\.2370\.1900\.2780\.2600\.2340\.1700\.1490\.141Constrained JSON \(ABC\)0\.1980\.1900\.3740\.2610\.1960\.3120\.3090\.2560\.2070\.1550\.155
Table 9:Top\-label Brier \(mean score\) across datasets, by model\.Boldscore represents the best performing for that model\. Significance not tested as there are too few cells for the test to reach significance\.MethodLlama 3\.2 1BLlama 3\.2 3BGemma 4 E2BGemma 4 E4BGemma 4 31BQwen2\.5 7BQwen3 8BQwen3 14BQwen3 32BQwen3\.5 4BQwen3\.5 9BUnconstrained \(no conf\)0\.7550\.5130\.3550\.2720\.1990\.3190\.2940\.2690\.2510\.2800\.249Unconstrained \(no conf ABC\)0\.8380\.6590\.4480\.3230\.2050\.3930\.3810\.2980\.2840\.3420\.290Unconstrained \(10 samples\)0\.4560\.3720\.3440\.2540\.1960\.3020\.2820\.2580\.2310\.2260\.206Unconstrained \+ P\(True\)0\.3080\.3050\.3350\.2320\.1870\.2770\.2670\.2310\.1980\.2060\.182Unconstrained JSON \(no conf\)0\.7270\.4850\.3440\.2750\.2000\.3310\.2910\.2670\.2590\.2820\.248Unconstrained JSON \(no conf ABC\)0\.8400\.5790\.3960\.3060\.2020\.3960\.3420\.2850\.2800\.3310\.287Unconstrained JSON verbal \(pre\)0\.5050\.3980\.2700\.2290\.1620\.3060\.2480\.2680\.2140\.2560\.221Unconstrained JSON verbal \(post\)0\.4390\.4410\.3070\.2220\.1580\.2380\.2330\.2630\.1960\.2440\.213Unconstrained JSON verbal \(pre, Likert\)0\.4890\.3130\.2530\.2350\.1450\.2500\.2370\.2270\.2150\.2430\.190Unconstrained JSON verbal \(post, Likert\)0\.3550\.3230\.2510\.2180\.1400\.2140\.2040\.2140\.1780\.2280\.173Unconstrained JSON verbal \(pre, ABC\)0\.5940\.4690\.2930\.2460\.1670\.3520\.3050\.2770\.2870\.3310\.258Unconstrained JSON verbal \(post, ABC\)0\.7380\.4910\.3160\.2520\.1620\.2980\.2970\.2680\.2250\.2950\.256Constrained \(greedy\)0\.7800\.5100\.3610\.2720\.1990\.3190\.2940\.2690\.2510\.2790\.249Constrained \(total likelihood\)0\.2970\.2580\.3290\.2310\.1920\.2700\.2680\.2430\.2080\.1790\.167Constrained \(total likelihood, decision\-only\)0\.2880\.2580\.3290\.2310\.1920\.2710\.2680\.2430\.2080\.1780\.167Constrained \(length norm\)0\.1280\.2530\.2500\.2330\.1850\.2150\.1940\.1770\.1770\.3220\.294Constrained \(length norm, decision\-only\)0\.1510\.1990\.3110\.2080\.1880\.2390\.2470\.2260\.1830\.1550\.142Constrained \(Google length norm\)0\.2160\.2270\.3200\.2190\.1900\.2590\.2610\.2370\.1980\.1640\.153Constrained \(Google length norm, decision\-only\)0\.2570\.2480\.3270\.2290\.1920\.2680\.2660\.2420\.2050\.1740\.163Constrained \(probability tree\)0\.2780\.2580\.3290\.2310\.1920\.2710\.2680\.2430\.2080\.1780\.167Constrained \(ABC\)0\.2740\.1860\.4100\.2700\.1990\.3090\.3390\.2690\.2260\.1890\.183Constrained JSON \(greedy\)0\.7720\.4860\.3640\.2850\.1980\.3350\.2970\.2790\.2580\.2890\.256Constrained JSON \(total likelihood\)0\.2370\.2620\.3380\.2430\.1910\.2830\.2610\.2400\.1890\.1900\.177Constrained JSON \(total likelihood, decision\-only\)0\.2700\.2520\.3380\.2390\.1910\.2830\.2610\.2380\.1880\.1890\.177Constrained JSON \(length norm\)0\.1440\.2690\.2530\.2040\.1860\.2310\.1850\.2180\.3520\.3720\.370Constrained JSON \(length norm, decision\-only\)0\.1650\.2080\.3200\.2120\.1850\.2450\.2340\.2140\.1650\.1780\.164Constrained JSON \(Google length norm\)0\.1760\.2320\.3300\.2400\.1880\.2700\.2500\.2310\.1740\.1740\.164Constrained JSON \(Google length norm, decision\-only\)0\.2500\.2440\.3360\.2370\.1900\.2790\.2580\.2360\.1850\.1850\.174Constrained JSON \(probability tree\)0\.2640\.2520\.3380\.2400\.1910\.2820\.2610\.2400\.1880\.1890\.177Constrained JSON \(ABC\)0\.1280\.2370\.3660\.2610\.1960\.3050\.3060\.2540\.2160\.1960\.186
## Appendix DPrompts
<bos\><\|turn\>system
\#CONTEXT
Youareanexpertfact\-checker\.Youspecializeinanalyzingclaimswithprovidedevidenceanddecidingwhethertheevidencesupportstheclaim,refutestheclaim,orthereisnotenoughevidencetomakeacleardecision\.
\#STYLE&TONE
Favorcompletebrevity\.Youneednotrespondwithanyreasoning,justtheanswer\.
\#FORMAT
\*Youwillbeprovidedwiththeclaiminside<claim\></claim\>tags\.
\*Evidencewillbeprovidedwithinthe<evidence\></evidence\>tags\.
\*Youwillbeprovidedwitheachsetofevidenceinside<evidence\_set\></evidence\_set\>tags\.
\*Withintheevidencetags,youwillbeprovidedeachpieceofevidenceinside<evidence\_piecetitle=\[TITLE\]\></evidence\_piece\>tags,wherethetitleofthewikipagesarticleisprovidedinthefirsttag\.
\*RespondwithONLYtheanswerfromoneoftheseoptions:
\-SUPPORTS
\-REFUTES
\-NOTENOUGHINFO<turn\|\>
<\|turn\>user
\#OBJECTIVE
ClassifywhethertheprovidedevidenceSUPPORTSorREFUTESthegivenclaim,orwhetherthereisNOTENOUGHINFO\.RelyONLYontheevidenceprovidedanduseanycombinationofthepiecesofevidenceprovided\.
\#INPUT
<claim\>
ArubaistheonlyABCIsland\.
</claim\>
<evidence\>
<evidence\_set\>
<evidence\_piecetitle=ABCislands\(LesserAntilles\)\>
TheABCislandsarethethreewestern\-mostislandsoftheLeewardAntillesintheCaribbeanSeathatlienorthofFalcónState,Venezuela\.
</evidence\_piece\>
</evidence\_set\>
<evidence\_set\>
<evidence\_piecetitle=ABCislands\(LesserAntilles\)\>
Fromwesttoeasttheyare,inorderAruba,Curaçao,andBonaire\.
</evidence\_piece\>
</evidence\_set\>
</evidence\>
\#ANSWER
Answer\(choosebetweenSUPPORTS,REFUTES,NOTENOUGHINFO\):<turn\|\>
<\|turn\>model
<\|channel\>thought
<channel\|\>
<bos\><\|turn\>system
\#CONTEXT
Youareanexpertcustomersupportanalystforonlinebanking\.Youspecializeinanalyzingcustomerqueriesandclassifyingthemintooneof77intentclasses\.
\#STYLE&TONE
Favorcompletebrevity\.Youneednotrespondwithreasoning,justtheanswer\.
\#FORMAT
\*Thecustomerquerywillbeprovidedinside<query\></query\>tags\.
\*YourresponseMUSTbeinJSONformat,withtheintentlabelFIRSTandconfidenceSECOND\.
\*The"label"keyinyouranswermustbeonlyONEofthefollowingintents:
\-activate\_my\_card
\-age\_limit
\-…
\*The"confidence"keyinyouranswerMUSTbeprovidedasapercentagetoreflectyourconfidenceinthelabelyouareabouttoprovide\.
\*ReturnONLYtheJSONobject\.NOOTHERTEXT\.
\*Exampleformat:
\{
"label":"\[INTENT\]",
"confidence":"X%"
\}<turn\|\>
<\|turn\>user
\#OBJECTIVE
Provideconfidenceaboutyourabilitytoclassifytheintentofthecustomerqueryandclassifythecustomer’sintentwiththeirquery\.Choosethemostspecificintentthatbestmatchestheirquery\.
\#INPUT
<query\>
HowdoIlocatemycard?
</query\>
\#ANSWER
JSONoutputwiththeintentlabelFIRSTandconfidenceSECOND\(\{"label":"\[choosebetweenactivate\_my\_card,age\_limit,…\]","confidence":"\[PERCENTAGE\]%"\}\):<turn\|\>
<\|turn\>model
<\|channel\>thought
<channel\|\>
<bos\><\|turn\>system
\#CONTEXT
Youareanexpertvirtualassistantanalyst\.Youspecializeinanalyzinguserqueriesandclassifyingthemintooneof150intentclasses\.
\#STYLE&TONE
Favorcompletebrevity\.Youneednotrespondwithreasoning,justtheanswer\.
\#FORMAT
\*Theuserquerywillbeprovidedinside<query\></query\>tags\.
\*YourresponseMUSTbeinJSONformat,withconfidenceFIRSTandtheintentlabelSECOND\.
\*The"confidence"keyinyouranswerMUSTbeoneofthefollowinglabelstoreflectyourconfidenceinthelabelyouareabouttoprovide:
\-Notatallconfident
\-Slightlyconfident
\-Moderatelyconfident
\-Veryconfident
\-Completelyconfident
\*The"label"keyinyouranswermustbeonlyONEofthefollowingintents:
\-accept\_reservations
\-account\_blocked
\-alarm
\-…
\*Exampleformat:
\{
"confidence":"Notatallconfident"\|"Slightlyconfident"\|"Moderatelyconfident"\|"Veryconfident"\|"Completelyconfident",
"label":"\[INTENT\]"
\}<turn\|\>
<\|turn\>user
\#OBJECTIVE
Classifytheuser’sintentwiththeirquery\.Choosethemostspecificintentthatbestmatchestheirquery\.Ifthequerydoesnotbelongtoanylistedintent,answeroos\.
\#INPUT
<query\>
howwouldyousayflyinitalian
</query\>
\#ANSWER
JSONoutputwithconfidenceFIRSTandintentlabelSECOND\(\{"confidence":"\[choosebetweenNotatallconfident,Slightlyconfident,Moderatelyconfident,Veryconfident,Completelyconfident\]","label":"\[choosebetweenrestaurant\_reviews,nutrition\_info,…\]"\}\):<turn\|\>
<\|turn\>model
<\|channel\>thought
<channel\|\>
<bos\><\|turn\>system
\#CONTEXT
Youareanexpertsentimentanalysisanalystformoviereviews\.Youspecializeinanalyzingreviewexcerptsandclassifyingthemintooneof5sentimentclasses\.
\#STYLE&TONE
Favorcompletebrevity\.Youneednotrespondwithanyreasoning,justtheanswer\.
\#FORMAT
\*Youwillbeprovidedwiththeinstructionsgiventotheannotatorandtheannotator’sresponse\.
\*Youmustrespondwithwhethertheannotatoriscorrectornot\("True"or"False"\)\.
\*YoumustONLYrespondwithTrueorFalse,noothertext\.<turn\|\>
<\|turn\>user
\#OBJECTIVE
Judgewhethertheresponseprovidedbyanannotatoriscorrect\(TrueorFalse\)\.Theyweretaskedtoclassifythesentimentofthereviewexcerpt,choosingthesentimentthatbestmatchestheoveralltonefromthelistof5validsentiments\.
\#INPUT&ANNOTATORRESPONSE
"""
\#INPUT
\#CONTEXT
Youareanexpertsentimentanalysisanalystformoviereviews\.Youspecializeinanalyzingreviewexcerptsandclassifyingthemintooneof5sentimentclasses\.
\#STYLE&TONE
Favorcompletebrevity\.Youneednotrespondwithreasoning,justtheanswer\.
\#FORMAT
\*Thereviewexcerptwillbeprovidedinside<review\></review\>tags\.
\*RespondwithONLYtheanswerfromthelistofvalidsentimentsprovided:
\-verynegative
\-negative
\-neutral
\-positive
\-verypositive
\#OBJECTIVE
Classifythesentimentofthereviewexcerpt\.Choosethesentimentthatbestmatchestheoveralltone\.
\#INPUT
<review\>
nomovement,noyuks,notmuchofanything\.
</review\>
\#ANSWER
Answer\(choosefrom:verynegative,negative,neutral,positive,verypositive\):
\#RESPONSE
negative
"""
\#ANSWER
Correct?\(True\|False\):<turn\|\>
<\|turn\>model
<\|channel\>thought
<channel\|\>
<bos\><\|turn\>system
\#CONTEXT
Youareanexperttextclassificationanalystforonlinediscussionforums\.Youspecializeinanalyzingnewsgrouppostsandclassifyingthemintooneof20topiccategories\.
\#STYLE&TONE
Favorcompletebrevity\.Youneednotrespondwithreasoning,justtheanswer\.
\#FORMAT
\*Thenewsgrouppostwillbeprovidedinside<post\></post\>tags\.
\*YourresponseMUSTbeinJSONformat,containingonlythecategorylabel\.
\*RespondwithONLYtheanswerfromthelistofvalidcategoriesprovided:
\-A\(alt\.atheism\)
\-B\(comp\.graphics\)
\-C\(comp\.os\.ms\-windows\.misc\)
\-D\(comp\.sys\.ibm\.pc\.hardware\)
\-E\(comp\.sys\.mac\.hardware\)
\-F\(comp\.windows\.x\)
\-G\(misc\.forsale\)
\-H\(rec\.autos\)
\-I\(rec\.motorcycles\)
\-J\(rec\.sport\.baseball\)
\-K\(rec\.sport\.hockey\)
\-L\(sci\.crypt\)
\-M\(sci\.electronics\)
\-N\(sci\.med\)
\-O\(sci\.space\)
\-P\(soc\.religion\.christian\)
\-Q\(talk\.politics\.guns\)
\-R\(talk\.politics\.mideast\)
\-S\(talk\.politics\.misc\)
\-T\(talk\.religion\.misc\)
\*Exampleformat:
\{
"label":"\[CATEGORY\_LETTER\]"
\}<turn\|\>
<\|turn\>user
\#OBJECTIVE
Classifythenewsgrouppostintoitstopiccategory\.ChoosetheLETTERthatrepresentsthemostspecificcategorythatbestmatchesthepost’scontent\.
\#INPUT
<post\>
Iamalittleconfusedonallofthemodelsofthe88\-89bonnevilles\.
IhaveheardoftheLESELSESSESSEI\.Couldsomeonetellmethe
differencesarefarasfeaturesorperformance\.Iamalsocuriousto
knowwhatthebookvalueisforprefereablythe89model\.Andhowmuch
lessthanbookvaluecanyouusuallygetthemfor\.Inotherwordshow
mucharetheyindemandthistimeofyear\.Ihaveheardthatthemid\-spring
earlysummeristhebesttimetobuy\.
</post\>
\#ANSWER
JSONoutputcontainingonlythecategorylabel\(\{"label":"choosebetweenA,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T"\}\):<turn\|\>
<\|turn\>model
<\|channel\>thought
<channel\|\>“‘json
\{"label":"相似文章
LLM置信度估计的不同方法基准测试
本文对LLM置信度估计的各种黑盒与白盒方法进行了基准测试,包括口头化置信度、语言不确定性、推理长度、P(Answer)、P(True)和自我一致性,比较它们在主动学习和安全分类等任务中的有效性。
不要让LLM说话,直接探测它(8分钟阅读)
本文介绍了一种技术,该技术从LLM的最后一个提示标记处提取隐藏状态,无需文本生成即可进行分类,使用一个小型MLP读取模型的内部决策,从而实现快速且廉价的零样本分类器。
LLM作为评判者在16次评估中有10次固定在一个置信值上。要求提供标签解决了这个问题。
一个LLM评判者在评估中持续返回固定的置信分数0.72,但切换到分类标签改善了分数分布,表明模型在分类方面比数值估计更适合评估。
基于有界劣质评判者的稳健大语言模型评估:一种约束最大似然方法
该论文提出了一种用于大语言模型评估的约束最大似然估计(CMLE)方法,在数据驱动的约束下,通过真阳性率和假阳性率对代理评判器的误差进行建模,以可控的偏差换取方差的降低。其分层变体(SCMLE)的均方误差(MSE)相比最强基线最多降低约 30%,在标注数据较少的情况下收益最大。
面向可靠LLM判断的边际自适应置信度排序
本文提出了一种针对LLM作为评判系统的基于边际的置信度排序方法,通过学习专用估计器来确保置信度与人类分歧风险之间的单调性,具有泛化保证,并在多个数据集上提高了排序准确性。