Abstract
Large language models (LLMs) could be valuable personal AI agents across various domains, provided they can precisely follow user instructions. However, recent studies have shown significant limitations in LLMs' instruction-following capabilities, raising concerns about their reliability in high-stakes applications. Accurately estimating LLMs' uncertainty in adhering to instructions is critical to mitigating deployment risks. We present, to our knowledge, the first systematic evaluation of the uncertainty estimation abilities of LLMs in the context of instruction-following. Our study identifies key challenges with existing instruction-following benchmarks, where multiple factors are entangled with uncertainty stems from instruction-following, complicating the isolation and comparison across methods and models. To address these issues, we introduce a controlled evaluation setup with two benchmark versions of data, enabling a comprehensive comparison of uncertainty estimation methods under various conditions. Our findings show that existing uncertainty methods struggle, particularly when models make subtle errors in instruction following. While internal model states provide some improvement, they remain inadequate in more complex scenarios. The insights from our controlled evaluation setups provide a crucial understanding of LLMs' limitations and potential for uncertainty estimation in instruction-following tasks, paving the way for more trustworthy AI agents.
Introduction
As Large Language Models (LLMs) transition from simple conversationalists to autonomous agents, their ability to adhere to strict constraints—such as specific formatting, keyword inclusion, or negative constraints—becomes paramount. For these agents to be truly reliable, they must possess "self-awareness" regarding their performance; they need to accurately estimate their own uncertainty when they might have failed to follow an instruction.
A critical distinction identified in this research is that uncertainty regarding instruction-following is fundamentally different from uncertainty regarding factuality. While a model might be certain about the facts it presents, it may be highly uncertain about whether it successfully avoided a specific constraint (e.g., "do not mention specific body organs"). Current research has largely focused on the former, leaving a significant gap in our understanding of how models perceive their own rule-following failures.
Methodology
The study evaluates six baseline uncertainty estimation methods across four models: Llama-2-7B/13B, Mistral-7B, and Phi-3-mini. The methods tested include:
- Verbalized Confidence: The model provides a numerical confidence score (0-9).
- Self-Evaluation ($p(true)$): Measuring the probability of the model answering "Yes" to whether it followed instructions.
- Logit-based Metrics: Standard statistical measures including perplexity, sequence probability, and token entropy.
- Internal Probing: Training linear classifiers on the model’s internal hidden states (activations) to detect failure signals that may not be apparent in the generated text.
To ensure a rigorous evaluation, the researchers utilized the IFEval benchmark and developed two new datasets: a Controlled Benchmark (balancing token lengths to eliminate confounding variables) and a Realistic Version (filtering for high-quality content to isolate instruction-following errors).
The Entanglement Problem and Controlled Evaluation
A major contribution of this work is identifying the "Length Bias" mirage in existing benchmarks. In natural settings, incorrect responses are often significantly longer than correct ones. Standard logit-based uncertainty metrics frequently appear successful at detecting errors, but this is often an artifact of measuring response length rather than actual instruction adherence.
As shown in the comparative analysis, the IFEval dataset exhibits a clear distribution shift where incorrect answers are longer. The authors' Controlled Benchmark addresses this by balancing token lengths across correct and incorrect samples, providing a cleaner signal for evaluating uncertainty estimation methods.
Key Results and Insights
The "Subtle Error" Wall
While internal probing of model activations showed promise in "Easy" settings (achieving an AUROC of ~0.79), performance plummeted in "Hard" settings involving subtle errors. When a model makes a nuanced mistake—such as providing eight placeholders instead of the requested ten—it appears almost entirely blind to its own failure, with detection methods performing only slightly better than random chance (AUROC ~0.58).
Internal Knowledge vs. External Expression
Probing the middle layers of LLMs yielded the most reliable uncertainty signals. This suggests that the model's internal state often contains a signal of failure that is lost during the final text generation process. This "hidden knowledge" represents a significant opportunity for future reliability improvements.
Model Size and Calibration
Interestingly, raw parameter count did not correlate with better self-calibration. Smaller models like Mistral-7B and Phi-3-mini often outperformed larger counterparts in verbalized confidence, suggesting that architecture and fine-tuning play a more dominant role in uncertainty estimation than scale alone.
Conclusion
Existing uncertainty estimation methods are currently inadequate for high-stakes instruction-following tasks, particularly when errors are subtle. While internal probing offers a path forward, LLMs remain largely unaware of their nuanced failures. Future work must focus on developing "uncertainty-aware" fine-tuning techniques that help models better communicate their internal doubts to users, ensuring the development of more trustworthy AI agents.
Summary updated