LLMs Are Already Confidence-Aware Zero-Shot Classifiers

Owen Cook, Xingyi SongarXiv 2026

TL;DR

Open-weight LLMs are highly effective zero-shot classifiers, but their reliability depends heavily on how you extract their "confidence." This paper demonstrates that white-box logit scoring significantly outperforms verbalized confidence for ranking predictions and introduces a "decision-only" scoring method that slashes computational costs by up to 96% without sacrificing performance.

What Problem Does This Paper Address?

Zero-shot classification—using an LLM to categorize text without specific training—is incredibly flexible and cost-effective, especially in data-scarce environments. However, for these classifiers to be useful in high-stakes industries like healthcare or finance, we need to know when to trust their outputs.

Most existing research on LLM confidence focuses on Question Answering (QA), where uncertainty usually stems from a lack of knowledge. In classification, uncertainty is more often a result of task ambiguity. Furthermore, there hasn't been a systematic comparison between "black-box" methods (asking the model to state its confidence) and "white-box" methods (reading internal token probabilities) specifically for classification tasks. This paper fills that gap.

Methods

The authors evaluate eleven open-weight models (ranging from 1B to 32B parameters) using two main categories of confidence extraction:

  1. Black-Box Methods: These treat the model as a text-in, text-out system. They include asking the model to verbalize its confidence (e.g., on a Likert scale or as a percentage) and "sampling," which involves running the same prompt multiple times to see how often the model agrees with itself.
  2. White-Box Methods: These access the model's internal logit scores (token probabilities). The authors use constrained decoding via a trie (prefix tree) to ensure the model only considers valid labels from the dataset.

Novel Approach: Decision-Only Scoring

A key contribution of the paper is decision-only scoring. In standard logit scoring, every token in a multi-token label (like "very positive") is scored. This can penalize long labels. The authors propose scoring only "decision tokens"—the points in the trie where the model actually has to choose between different paths.

Figure 1: Example trie from SST-5 (Gemma 4 31B). Each node shows the token with log-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 proba- bility methods. For other datasets, non-decision tokens can be in the middle of labels.

Datasets

The models were evaluated on five text-classification datasets chosen for their varying label counts and overlapping token paths:

  • Banking77: 77 intent classes for online banking.
  • CLINC150: 151 intent classes, including "out-of-scope."
  • 20 Newsgroups: Topic classification across 20 categories.
  • SST-5: Five-class sentiment analysis (e.g., "very positive" vs "positive").
  • FEVER: A fact-checking dataset (Supports, Refutes, Not Enough Info).

Key Insights and Ideas

  • Logits for Discrimination, Verbal for Calibration: If your goal is to rank predictions (AUROC), white-box logit scoring is far superior. However, if you need the "raw" probability to be accurate (calibration), asking the model for a Likert-scale confidence score is surprisingly effective, though it lacks the fine-grained resolution needed for ranking.
  • The Efficiency of Decision Points: Most tokens in a label are "forced" by the previous ones. By only scoring tokens where a choice actually exists, the authors reduced decoding steps by 88–96% on the largest label sets with negligible impact on accuracy.
  • Label Identifiers are a Trade-off: Replacing full text labels with single-token identifiers (like "A, B, C") makes inference faster but typically costs 3–6 points in accuracy.
  • Scaling Reduces Errors: Larger models are significantly better at following unconstrained formatting instructions (like JSON) without making "generation errors" (see Figure 2).
Figure 2: Rate of errors made by each model (all uncon- strained 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.

Key Results

  • Superior Discrimination: Logit-based scoring led to much better discrimination (AUROC 0.74–0.77) than black-box methods (AUROC 0.57–0.66).
  • Competitive with Commercial Models: The best open-weight configurations—specifically Gemma 4 31B and Qwen 3.5 9B—performed comparably to the commercial Jev 1.13.0 classifier in terms of accuracy and AUROC.
  • Calibration Winner: Verbalized confidence on a Likert scale achieved the best overall calibration (lowest ECE), even though it was worse at ranking.
Table 1: Mean score over all model–dataset pairs (excluding Llama 3.2 1B, Llama 3.2 3B). Bold indicates 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-adjusted p > 0.05).

Limitations and Future Work

The authors acknowledge several limitations:

  • Zero-Shot Only: The study did not explore few-shot prompting, which might further improve results at a higher computational cost.
  • Language Bias: All datasets and prompts were in English.
  • Hyperparameter Tuning: They did not tune the $\alpha$ parameter for length normalization, which could potentially boost performance.
  • Temperature Scaling: They did not investigate the impact of temperature scaling on logit-based calibration, a common post-processing step that often improves reliability.

Future work could look into these areas, as well as testing prompt variability across different languages.

Summary updated

BibTeX
@misc{cook2026llms,
  author = {Owen Cook and Xingyi Song},
  title = {{LLMs Are Already Confidence-Aware Zero-Shot Classifiers}},
  year = {2026},
  eprint = {2611.25289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25289},
}
Figure