Do LLMs estimate uncertainty well in instruction-following?

Juyeon Heo, Miao Xiong, Christina Heinze-Deml, Jaya Narain

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.

Figure 1: Why evaluating uncertainty estimation ability in instruction-following matters. Un- certainty in instruction-following distinct from factual correctness, as illustrated by this example. While both responses shown are factually correct, the first fails to follow the instruction, resulting in high uncertainty from instruction-following despite low uncertainty from factuality. The second response adheres to the instruction, with low uncertainty in both areas. Prior work on uncertainty has focused primarily on factual correctness, underscoring the need for an evaluation framework for instruction-following tasks.

Methods

The researchers evaluated four popular LLMs (LLaMA2-7B/13B, Mistral-7B, and Phi-3-mini) using six baseline uncertainty estimation methods:

  1. Verbalized Confidence: Asking the model to rate its own confidence from 0-9.
  2. p(true) / Normalized p(true): Calculating the probability the model assigns to a "True/Follows instructions" token.
  3. Logit-based metrics: Perplexity, sequence probability, and mean token entropy.
  4. 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.
Token length distributions in IFEval show that incorrect responses tend to be longer, creating a biased signal.

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.
Radar charts comparing model performance across different uncertainty metrics.

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

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.
BibTeX
@inproceedings{heo2025do,
  author = {Juyeon Heo and Miao Xiong and Christina Heinze-Deml and Jaya Narain},
  title = {{Do LLMs estimate uncertainty well in instruction-following?}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=IHp3vOVQO2},
}
Figure