Manuscript Offprint

arXiv:2609.10122

ProbPlug: A Plugin Uncertainty Network for Reliable Confidence in LLM Binary Classification

Jianzong Wang, Chuhang Liu, Botao Zhao, Zuheng Kang, Xulong Zhang, Xiaoyang Qu, Junqing Peng, Zhiewei Ye, Yayun He

Jianzong Wang1†^{1\dagger}, Chuhang Liu1,2†^{1,2\dagger}, Botao Zhao1^{1}, Zuheng Kang1^{1}, Xulong Zhang1^{1}, Xiaoyang Qu1^{1}, Junqing Peng1^{1}, Zhiewei Ye3^{3}, and Yayun He1(Ξ)^{1(\Xi)}

1^{1} Ping An Technology (Shenzhen) Co., Ltd., Shenzhen, China,

2^{2} Tsinghua Shenzhen International Graduate School, Shenzhen, China,

3^{3} Hubei University of Technology, Hubei, China

heyayun0618@163.com

Abstract. Large language models (LLMs) have achieved strong performance across a broad range of classification settings, yet the reliability of their predictions remains a major obstacle to deployment in high-stakes scenarios. Although confidence estimation for LLMs has been widely studied, confidence calibration for LLM-based classification remains underexplored. We introduce ProbPlug, a lightweight confidence estimation framework for LLM-based binary classification, which predicts whether an output is correct using internal token features extracted from a frozen LLM. ProbPlug employs a self-attention module to aggregate hidden representations and can be integrated into the original inference pipeline without modifying the base model. Experiments across multiple tasks involving both text-based and multimodal large models show that ProbPlug provides more reliable confidence estimates, improves classification performance with negligible additional overhead, and exhibits strong generalization across tasks. These results indicate that ProbPlug serves as a practical solution for confidence estimation in LLM-based classification. Our code is publicly available at this repository.

Keywords: Model Confidence · Multimodal Large Models · Text Classification · Speech Emotion Classification.

1 Introduction

Large language models (LLMs) have achieved promising results across both textual and multimodal classification tasks. [1], they can still produce misleading or incorrect predictions. Unlike conventional classifiers, which provide probability scores that can be used to adjust precision-recall trade-offs, LLM-based methods often lack reliable confidence estimates. This limitation hinders their use in reliability-sensitive applications. Therefore, accurately estimating model confidence is crucial for practical deployment.

1^{1} † These authors contributed equally to this work.

J. Wang et al.

In recent years, researchers have explored various approaches to solve the confidence estimation problem for LLMs [2], including: (1) Verbalization: enabling LLMs to directly output confidence scores [3]; (2) Logit-based methods: leveraging the probability distributions of generated tokens [4], with recent work such as LogTokU [5] further analyzing token-level logit uncertainty for confidence estimation; (3) Self-consistency: taking the consistency of results from multiple repeated queries as the confidence metric [6], as exemplified by SelfCheckGPT [7]; (4) Trained probes: employing probabilities output by pre-trained classifiers as confidence estimates [8]; (5) Hybrid methods: integrating two or more of the aforementioned approaches (e.g., CISC [9]). Directly applying these existing methods to LLM-based classification tasks is undoubtedly a simple and feasible approach. However, since these methods are not specifically designed for this scenario, their performance fails to reach an optimal level. Accordingly, this work focuses on confidence estimation for LLM-based binary classification.

Inspired by findings in neuroscience [10], we note that during the human brain's decision-making process, signals flow between different brain regions. For instance, when the human ear perceives a question, sensory organs first receive the information; the signal then propagates from lower-level brain regions to higher-order cortices, where comprehension occurs in Wernicke's Area, analysis in the prefrontal cortex, answer generation in Broca's Area, and finally output via the motor cortex. Notably, the resulting answer and its confidence are associated with each step of this process.

Drawing on this insight, we hypothesize that LLM decision-making is closely related to representations across Transformer layers. Accordingly, we propose ProbPlug, a confidence network that takes layer-wise outputs as input and predicts confidence scores. To improve generalization, we focus on binary classification with Yes"/No" outputs and use only newly generated tokens as input. Experiments show that ProbPlug provides reliable confidence estimation while maintaining strong task performance and cross-task generalization, combining the generalization strength of LLM-based methods with the calibration ability of non-LLM-based approaches. The main contributions of this work are summarized below:

– We investigate the problem of confidence estimation in LLM-based classification and highlight that unreliable confidence remains a major obstacle to deploying LLMs in risk-sensitive scenarios.

– We propose ProbPlug, a lightweight plug-and-play framework that derives confidence scores from hidden representations of a frozen LLM, enabling estimation of prediction correctness without altering the base model.

– Extensive experiments on multiple benchmarks show that ProbPlug provides better-calibrated confidence estimates, improves downstream classification performance with negligible additional inference overhead, and demonstrates promising cross-task generalization ability.

References (22)

  • Pushing the limit of LLM capacity for text classification
  • Factual confidence of LLMs: on reliability and robustness of current estimators
  • Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback
  • Do large language models know what they dont know? In: Findings of the Association for Computational Linguistics: ACL 2023, pp. 8653–8665
  • Estimating LLM uncertainty with evidence (opens arXiv in a new tab)
  • Self-consistency improves chain of thought reasoning in language models
  • SelfCheckGPT: Zero-resource black-box hallucination detection for generative large language models
  • The internal state of an LLM knows when its lying
  • Confidence improves self-consistency in LLMs
  • How does the brain process music? Clinical Medicine 8(1), 32–36
  • Contributions to the study of SMS spam filtering: new collection and results
  • Recursive deep models for semantic compositionality over a sentiment treebank
  • Nuanced metrics for measuring unintended bias with real data for text classification
  • Character-level convolutional networks for text classification
  • Qwen3 technical report
  • IEMOCAP: Interactive emotional dyadic motion capture database
  • Qwen2-Audio technical report (opens arXiv in a new tab)
  • EmoBox: Multilingual multi-corpus speech emotion recognition toolkit and benchmark
  • Language Models (Mostly) Know What They Know
  • Efficient self-supervised learning with contextualized target representations for vision, speech and language
  • Robust speech recognition via large-scale weak supervision
  • Emotion2Vec: Self-supervised pre-training for speech emotion representation