TL;DR
This paper presents the first systematic evaluation of how well Large Language Models (LLMs) can estimate their own uncertainty when following instructions. The authors reveal that current models and estimation methods struggle significantly, often performing near chance levels on existing benchmarks due to confounding factors like response length and task quality.
What Problem Does This Paper Address?
As LLMs transition into autonomous agents for high-stakes domains like healthcare or counseling, their ability to strictly follow complex instructions (e.g., "do not mention specific body organs") is paramount. However, LLMs frequently fail these constraints. To be trustworthy, a model must "know what it doesn't know"—it needs to accurately signal uncertainty when it is likely to have violated an instruction.
The authors identify a major gap: most existing uncertainty research focuses on factuality (is the statement true?), whereas instruction-following (did the model obey the formatting/constraint rules?) is a distinct source of uncertainty. Furthermore, existing benchmarks like IFEval are "entangled" with confounding signals. For instance, in many datasets, incorrect responses are naturally longer than correct ones, allowing simple metrics like sequence probability to "cheat" by using length as a proxy for error.
Methods
The researchers evaluated four popular LLMs (LLaMA2-7B/13B, Mistral-7B, and Phi-3-mini) using six baseline uncertainty estimation methods:
- Verbalized Confidence: Asking the model to rate its own confidence from 0-9.
- p(true) / Normalized p(true): Calculating the probability the model assigns to a "True/Follows instructions" token.
- Logit-based metrics: Perplexity, sequence probability, and mean token entropy.
- Probing: Training a separate linear classifier on the model's internal hidden states to predict whether an instruction was followed.
To ensure a fair test, they used GPT-4 to filter out responses with poor "task quality" (e.g., a bad summary), ensuring the uncertainty measured was purely about the instruction constraint (e.g., "don't use the word 'the'").
Datasets
The study utilized the IFEval dataset but found it limited by length bias. To solve this, the authors introduced a new benchmark with two versions:
- Controlled Version: Neutralizes length bias by generating correct and incorrect responses of similar lengths. It includes two difficulty tiers: Controlled-Easy (obvious errors) and Controlled-Hard (subtle, off-target errors).
- Realistic Version: Uses naturally generated LLM responses to reflect real-world performance while still controlling for task execution quality.
Key Insights and Ideas
- The Length Trap: In standard datasets, incorrect responses are consistently longer. This means logit-based methods often appear to work well simply because they are sensitive to sequence length, not because they understand instruction adherence.
- Internal States Know More: Probing the internal layers of a model (specifically the middle layers) consistently outperformed the model's own verbalized confidence. This suggests that LLMs "know" they've made a mistake internally, but this information isn't effectively communicated in their final text output.
- Smaller Models Can Be More "Self-Aware": Surprisingly, smaller models like Mistral-7B and Phi-3-mini sometimes outperformed the larger LLaMA2-13B in verbalized confidence and normalized p(true), suggesting that architecture and tuning matter more than raw parameter count for self-calibration.
- Subtle Errors are the "Final Boss": All methods, including internal probing, failed significantly on the "Controlled-Hard" tasks. When a model makes a subtle mistake (e.g., including 8 placeholders instead of the requested 10), it is almost entirely unable to detect its own failure.
Key Results
- Baseline Failure: On the standard IFEval dataset, average AUROC values for uncertainty methods hovered between 0.43 and 0.53, which is essentially no better than a random guess (0.5).
- Probing Success: In the Controlled-Easy setting, Probing achieved AUROCs between 0.72 and 0.80, significantly outperforming verbalized methods (~0.64-0.71).
- The Hard Task Drop: In the Controlled-Hard setting, performance for all methods plummeted, with even the best Probes dropping below 0.60 AUROC.
Limitations and Future Work
The authors acknowledge that their benchmark covers a narrow scope of instruction types and domains. There is also a persistent risk of "data leakage," where models might have seen similar instruction-following tasks during their pre-training.
Future research should focus on extracting more refined signals from the middle layers of LLMs to improve self-evaluation and developing more sophisticated methods to detect the "subtle" errors that currently bypass all existing uncertainty estimators. This is a critical step toward building AI agents that can safely operate in high-stakes environments.
Summary updated