CLSGen: A Dual-Head Fine-Tuning Framework for Joint Probabilistic Classification and Verbalized Explanation
Authors: WonJin Yoon, Kangyu Zhu, Ian Bulovic, Autumn Sehy, Yanjun Gao, Dmitriy Dligach, Majid Afshar, Timothy A. Miller
Organizations: Boston Children’s Hospital · Harvard Medical School · University of Colorado Anschutz Medical Campus · Loyola University Chicago · University of Wisconsin Madison
With the recent progress of Large Language Models (LLMs), there is a growing interest in applying these models to solve complex and challenging problems. Modern LLMs, capable of processing long contexts and generating verbalized explanations, offer significant potential in addressing real-world applications. However, a critical hurdle in deploying LLMs for practical decision-making is their inability to provide reliable, quantitative probabilities. While task-specific fine-tuning of LLMs using traditional discriminative objectives (similar to encoder-only models) can yield probability estimates, this often leads to catastrophic forgetting and linguistic collapse. Consequently, the model loses its ability to generate explanations, severely undermining its interpretability and usability. To address this challenge, we propose CLSGen, a novel LLM fine-tuning framework designed for binary classification tasks. The CLSGen framework encompasses a new model architecture, training methodology, and data construction strategy to enable robust probability estimation without sacrificing the model's inherent explanation-generation capabilities. Experimental results across multiple benchmark datasets demonstrate that models fine-tuned with CLSGen outperform existing baselines in classification metrics (AUROC and F1-score). Regarding explanation, the results showed strong alignment between predicted labels and generated justifications, as well as high readability.
Figures & tables
Figure 1: Classification and generation quality during classification-only training.
Figure 2: Diagram of data construction pipeline (left) and CLSGen fine-tuning (right).
Dataset
Train
Dev.
Test
Total
LCD benchmark
34,759
7,505
7,568
49,832
CliniFact
1,260
316
394
1,970
Table 1: Dataset statistics. Both 30 and 90 days tasks of the LCD benchmark have identical splits.
Inference-only methods
Traditional
CLSGen (Ours)
Dataset/task
Metric
Verb prob
Label pred
Self cons
CNN
Default
Threshold
LCD benchmark 30 days
AUROC
0.6598
N/A
0.7455
0.8582
0.8586
F1
0.1409
0.2023
0.2853
0.2182
0.2263
0.2455
Prec.
0.0809
0.1443
0.2315
0.5889
0.5606
0.5616
Recall
0.5467
0.3383
0.3716
0.1364
0.1418
0.1571
Parsable
0.8098
0.8660
0.9432
N/A
0.9991
Table 2: Performance comparison across datasets and methods. Default uses a fixed threshold of 0.5, while Threshold uses thresholds tuned on the development set. Standard deviations are provided in Appendix A.1 (Table 4 ).
Threshold-free
Cohen’s Kappa
LLM-as-a-Judge
Dataset
AUROC-Align
Default
Threshold
RLI
R-L Kappa ( κRL )
Readability
LCD 30 days
0.9841
0.6074
0.6187
0.0003
0.9872
0.9996
LCD 90 days
0.9597
0.6060
0.6014
0.0018
0.9751
0.9937
CliniFact
0.9891
0.8709
0.8802
0.0482
0.8910
1.0000
Table 3: Evaluation of classification-generated text consistency metrics. RLI stands for Rationale-Label Inconsistency, and R-L Kappa stands for Rationale-Label Kappa metric.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Dataset/task
Metric
Verb prob
Label pred
CNN
LCD benchmark 30 days
AUROC
0.0124
N/A
0.0015
F1
0.0047
0.0123
0.0457
Prec.
0.0027
0.0097
0.0315
Recall
0.0173
0.0169
0.0354
Parsable
0.0021
0.0025
N/A
LCD benchmark 90 days
AUROC
0.0110
N/A
0.0049
Appendix
Table 4: Standard deviations for the performance results in Table 2 , computed over 10 independent runs. AUROC is unavailable for label prediction, and parsability is not applicable to CNN.
Hyperparameter
Value
Base Model
Llama-3.1-8B-Instruct
Max Token Length (Input / Output)
7,040 / 384
Training Epochs
20 (LCD) / 20 (CliniFact)
Batch Size (per GPU)
1
Gradient Accumulation Steps
8
Effective Batch Size
32
Appendix
Table 5: Hyperparameters for CLSGen fine-tuning.
Configuration
Value
Grid Search
Learning Rate
{5e-4, 1e-4, 5e-5}
Fixed Hyperparameters
Batch Size
16
Max Epochs
10
Optimizer
AdamW
Appendix
Table 6: Hyperparameters and architecture for the CNN baseline.
Dataset
Status
False
True
True / Total
LCD-bench 30 days (Dev)
Original dataset
7,203
302
4.0%
Successfully generated
7,102
164
2.3%
Failed to generate
101
138
57.7%
LCD-bench 90 days (Dev)
Original dataset
7,203
302
4.0%
Successfully generated
6,950
198
2.8%
Failed to generate
253
104
29.1%
Appendix
Table 7: Development dataset data processing pipeline statistics.
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 Github.
Jianzong Wang, Chuhang Liu, Botao Zhao +6
Ping An Technology (Shenzhen) Co., Ltd., Shenzhen, China · Tsinghua Shenzhen International Graduate School, Shenzhen, China · Hubei University of Technology, Hubei, China
LLMs have advanced text classification, yet existing paradigms face a trade-off: supervised (label only) fine-tuning is scalable but offers limited reasoning on complex text and lacks broader model transparency, while discrete prompt optimization offers human-readable instructions but struggles with performance and scalability. We introduce eXTC (eXplainable Text Classifier) with three progressive stages: (1) learning a Standard Operating Procedure (SOP, or rulebook) in natural language via a new Structured Prompt Optimization algorithm; (2) SOP-grounded reasoning distillation from a large teacher LLM into a compact LM; and (3) expanding reasoning capabilities beyond the initial SOP via reinforcement learning. This design enables eXTC to provide (i) fast inference via a compact LM, with (ii) inference-time local reasoning traces, alongside a global, modular explanation of its learned domain rules, while (iii) significantly outperforming existing paradigms across diverse benchmarks in both classification performance and explanation quality, with stage-by-stage gains.
Tianyang Zhou, Wenbo Chen, Pierre Jinghong Liang +1
Large language models (LLMs) have demonstrated strong capabilities in complex reasoning tasks, yet their decision-making processes remain difficult to interpret. Existing explanation methods often lack trustworthy structural insight and are limited to single-instance analysis, failing to reveal reasoning stability and systematic failure mechanisms. To address these limitations, we propose the Trustworthy Unified Explanation Framework (TRUE), which integrates executable reasoning verification, feasible-region directed acyclic graph (DAG) modeling, and causal failure mode analysis. At the instance level, we redefine reasoning traces as executable process specifications and introduce blind execution verification to assess operational validity. At the local structural level, we construct feasible-region DAGs via structure-consistent perturbations, enabling explicit characterization of reasoning stability and the executable region in the local input space. At the class level, we introduce a causal failure mode analysis method that identifies recurring structural failure patterns and quantifies their causal influence using Shapley values. Extensive experiments across multiple reasoning benchmarks demonstrate that the proposed framework provides multi-level, verifiable explanations, including executable reasoning structures for individual instances, feasible-region representations for neighboring inputs, and interpretable failure modes with quantified importance at the class level. These results establish a unified and principled paradigm for improving the interpretability and reliability of LLM reasoning systems.