Introduction
As Large Language Models (LLMs) are increasingly integrated into high-stakes domains such as medicine, law, and engineering, the reliability of their outputs becomes paramount. A significant hurdle to widespread adoption is the tendency of these models to "hallucinate"—generating incorrect information with high levels of confidence. To mitigate this, researchers have focused on selective prediction, the capability of a model to abstain from answering (i.e., outputting "I don't know") when its internal confidence is low.
Traditional approaches to selective prediction generally fall into two categories: heuristic prompting and sampling-based methods. Heuristic prompting, which involves asking the model if its answer is correct, is often brittle and fails to generalize across different architectures. Sampling-based methods, which generate multiple responses to measure consistency or entropy, are more robust but computationally expensive and slow for real-time applications. This paper introduces ASPIRE (Adaptation with Self-Evaluation to Improve Selective Prediction), a framework designed to teach LLMs to recognize their own knowledge gaps efficiently.
The ASPIRE Framework
ASPIRE utilizes parameter-efficient fine-tuning (PEFT), specifically soft prompt tuning, to enhance a model's self-awareness without the overhead of full fine-tuning. The framework operates in two distinct stages:
- Task-Specific Tuning: The model is first adapted to a specific target task (e.g., question answering) by training a set of learnable prompt vectors ($\theta_p$). This ensures the model is proficient in the domain before it is taught to evaluate its own performance.
- Self-Evaluation Learning: This is the core innovation of ASPIRE. The tuned model generates several high-likelihood answers for a training set. A second set of soft prompts ($\theta_s$) is then trained specifically to distinguish between the model's correct and incorrect outputs. By training on its own errors, the model learns the subtle characteristics of answers likely to be hallucinations.
During inference, the model generates an answer and calculates a "selection score." This score is a weighted combination of the answer's normalized likelihood and the learned self-evaluation score. If the score falls below a predefined threshold, the model abstains from providing an answer.
Experimental Evaluation
ASPIRE was evaluated across three prominent Question Answering (QA) benchmarks: CoQA (conversational QA), TriviaQA (word-game style questions), and SQuAD (reading comprehension). The researchers tested the framework on various model sizes, including GPT-2 (Medium to XL) and the OPT family (350M to 30B parameters).
Key Results
ASPIRE consistently outperformed standard baselines such as Perplexity, Predictive Entropy, and "P(True)" prompting across all datasets. Notable performance metrics include:
- CoQA Benchmark: Using the OPT-2.7B model, ASPIRE improved the Area Under the Receiver Operating Characteristic curve (AUROC) from 74.61% to 80.25%.
- AUACC Improvements: The Area Under Accuracy-Coverage Curve (AUACC), which measures accuracy as the model is allowed to abstain, saw significant gains. For instance, on SQuAD with an adapted GPT2-XL, ASPIRE reached 89.86%, surpassing the next best baseline of 88.73%.
- Computational Efficiency: Unlike sampling-based methods that require multiple generation passes (complexity $O(m \cdot l_{max})$), ASPIRE requires only one additional forward pass to generate the self-evaluation score, maintaining a complexity of $O(l_{max})$.
Discussion and Insights
One of the most compelling findings of the study is that "self-awareness" can be taught. A smaller model (e.g., OPT-2.7B) tuned with ASPIRE can exhibit superior selective prediction performance compared to a much larger pre-trained model (e.g., OPT-30B). This suggests that the ability to know what one does not know is a skill that can be acquired through targeted adaptation rather than being a purely emergent property of scale.
Limitations and Future Work
While ASPIRE shows great promise, the study primarily focused on short-form Question Answering. Future research is needed to determine how well the framework adapts to long-form creative writing or complex multi-step reasoning where correctness is less binary. Additionally, while soft prompt tuning was the primary mechanism used, other PEFT methods like LoRA (Low-Rank Adaptation) could be explored to see if they offer further improvements in self-evaluation capabilities.
Conclusion
ASPIRE provides a computationally efficient and robust framework for improving selective prediction in LLMs. By training models to recognize their own failure modes through soft prompt tuning, ASPIRE bridges the gap between the speed of simple prompting and the accuracy of expensive sampling methods, moving LLMs closer to reliable deployment in critical fields.
Summary updated