Abstract
Large language models (LLMs) have become increasingly prevalent in our daily lives, leading to an expectation for LLMs to be trustworthy —- both accurate and well-calibrated (the prediction confidence should align with its ground truth correctness likelihood). Nowadays, fine-tuning has become the most popular method for adapting a model to practical usage by significantly increasing accuracy on downstream tasks. Despite the great accuracy it achieves, we found fine-tuning is still far away from satisfactory trustworthiness due to “tuning-induced mis-calibration”. In this paper, we delve deeply into why and how mis-calibration exists in fine-tuned models, and how distillation can alleviate the issue. Then we further propose a brand new method named Efficient Trustworthy Distillation (FIRST), which utilizes a small portion of teacher’s knowledge to obtain a reliable language model in a cost-efficient way. Specifically, we identify the “concentrated knowledge” phenomenon during distillation, which can significantly reduce the computational burden. Then we apply a “trustworthy maximization” process to optimize the utilization of this small portion of concentrated knowledge before transferring it to the student. Experimental results demonstrate the effectiveness of our method, where better accuracy (+2.3%) and less mis-calibration (-10%) are achieved on average across both in-domain and out-of-domain scenarios, indicating better trustworthiness.
Introduction
In the race for higher benchmarks, a critical flaw has been overlooked: mis-calibration. Standard fine-tuning using cross-entropy loss often trains models to be "arrogant," forcing them to assign near-absolute probability to ground-truth tokens. This "tuning-induced mis-calibration" results in models providing incorrect answers with extremely high confidence, which is dangerous for real-world deployment and complicates hallucination detection. While knowledge distillation can alleviate this, transferring full probability distributions is computationally prohibitive.
Methods: Efficient Trustworthy Distillation (FIRST)
The authors propose FIRST (EFfIcient TRustworthy DiSTillation), a three-stage pipeline designed to create reliable language models cost-efficiently.
1. Efficient Knowledge Selection
The researchers identified a "concentrated knowledge" phenomenon: in an LLM's output, the top-5 tokens typically account for over 95% of the total probability mass. By distilling only these top-5 tokens, storage requirements are reduced from over 100 TB to approximately 1.2 GB for standard datasets.
2. Trustworthy Maximization
Before distillation, the teacher model is re-calibrated. The authors found that Temperature Scaling (TS) is superior to Label Smoothing because it preserves token rankings while smoothing the distribution, aligning the teacher's confidence with its actual validation accuracy.
3. Knowledge Matching
The student model is trained to match the re-calibrated top-5 distribution of the teacher using Kullback–Leibler (KL) divergence. To evaluate performance, a Trust Score ($Accuracy - ECE$) is introduced to penalize both inaccuracy and mis-calibration.
Results and Analysis
FIRST consistently achieves superior trustworthiness across various model families and tasks.
Calibration and Accuracy Improvements
Experimental results demonstrate that FIRST improves raw accuracy by an average of 2.3% and reduces mis-calibration by 10%. The benefits are particularly pronounced in out-of-domain (OOD) scenarios. For instance, on the OpenBookQA (OBQA) task, FIRST improved the Trust Score by 18.6 points over standard fine-tuning.
Key Insights
- Fine-tuning as a Calibration Killer: Standard fine-tuning on OpenLlama 7B led to an ECE of 21.6% on OOD tasks, highlighting the severity of tuning-induced mis-calibration.
- Rank Preservation: Temperature scaling is critical for maintaining the relative importance of tokens during the re-calibration process.
Conclusion
FIRST provides a scalable and efficient path toward more reliable LLMs. By focusing on concentrated knowledge and proper teacher calibration, it produces student models that are both more accurate and better calibrated. Future work will explore scaling this method to 70B+ parameter models and assessing its performance on more diverse generative tasks.
Summary updated