On the Robustness of Verbal Confidence of LLMs in Adversarial Attacks

Stephen Obadinma, Xiaodan Zhu

TL;DR

As Large Language Models (LLMs) are increasingly deployed in high-stakes scenarios, we frequently rely on their "verbal confidence"—asking them to state how sure they are in natural language. This paper presents the first comprehensive study showing that these confidence estimates are incredibly fragile and easily manipulated by adversarial attacks. Subtle, meaning-preserving changes to prompts can drastically tank an LLM's reported confidence and even force it to change its answers, while existing defenses remain largely ineffective.

What Problem Does This Paper Address?

When an LLM gives you an answer, how do you know whether to trust it? In an ideal world, the model would accurately communicate its uncertainty (e.g., "I am 95% sure it's A" vs. "I am 40% sure it's B"). Because many state-of-the-art models are proprietary black boxes, developers cannot access internal token probabilities (logits) and must instead rely on verbal confidence elicitation—simply asking the model to output a numeric confidence score alongside its answer.

However, the robustness of this verbalized uncertainty has been dangerously understudied. This paper tackles a critical security and reliability question: How robust is the verbal confidence of existing LLMs against adversarial manipulation? If an external adversary can subtly alter an input to make a model look completely unsure of a correct answer (or vice versa), it poses a severe threat to human-AI collaboration, safety filtering, and automated decision-making pipelines.

Methods

The authors introduce a unified framework for Verbal Confidence Attacks (VCAs) to systematically degrade an LLM's confidence score. They explore three threat vectors: attacking the user query, the system prompt, or the few-shot demonstrations.

Figure 1: (a) Demonstration of how perturbations on prompts can affect final verbal confidence (b) An overview of our proposed attack framework centered on using generated confidence scores to optimize attacks that either perturb the prompt or append a series of optimized trigger tokens that ultimately result in a reduction in confidence.

The attacks fall into two primary categories:

  1. Perturbation-Based Attacks: These methods make minor, semantic-preserving adjustments to the text. The authors adapt popular NLP attack algorithms—TextFooler (VCA-TF) and TextBugger (VCA-TB)—along with random typos and word-level swaps/removals (SubSwapRemove). Crucially, instead of optimizing to change the model's classification (as standard adversarial attacks do), these are optimized purely to minimize the verbal confidence score.
  2. Jailbreak-Based Attacks (ConfidenceTriggers): The authors design a completely black-box genetic algorithm that searches for a sequence of optimized "trigger tokens" (nonsense-looking phrases) appended to the system prompt. They also test a more naturalistic, stealthy variant called ConfidenceTriggers-AutoDAN, which uses an LLM to rephrase the adversarial instructions.

These attacks were evaluated across multiple Confidence Elicitation Methods (CEMs), including Base prompting, Chain-of-Thought (CoT), Multi-Step reasoning (MS), and Self-Consistency (SC).

Datasets

The frameworks were validated across diverse question-answering benchmarks:

  • MedMCQA (MQA): A large-scale dataset of multiple-choice medical entrance exam questions.
  • TruthfulQA (TQA): Questions crafted to mimic typical human false beliefs and misconceptions.
  • StrategyQA (SQA): Open-domain questions requiring multi-step implicit reasoning.
  • AdvGLUE (SST-2): A benchmark used to evaluate standard, confidence-agnostic adversarial text perturbations.

Key Insights and Ideas

  • Confidence is a House of Cards: LLM verbal confidence is highly sensitive to superficial text changes. Subtle, meaning-preserving perturbations can cause massive confidence drops without changing the underlying semantics.
  • The Answer-Flipping Side Effect: Even though the attacks specifically optimize for confidence reduction, they frequently cause the model to change its actual answer entirely. This reveals a tight coupling between the generation of the answer and the generation of the confidence score.
  • Defenses are Counterproductive: Standard jailbreak defenses like prompt paraphrasing or randomized character smoothing (SmoothLLM) actually disrupt the model's normal confidence calibration, making them ineffective or even harmful.
  • Exaggeration Mimicry: By analyzing real-world datasets (like Reddit and RACE), the authors found that LLMs' tendency to be wildly overconfident mirrors human conversational patterns of exaggeration rather than actual probability distributions.

Key Results

  • Severe Confidence Drops: Perturbation attacks successfully caused up to a 30% absolute reduction in average verbal confidence across user queries.
  • High Answer Flip Rates: Lowering the confidence score frequently triggered an avalanche of incorrect answers, inducing an answer flip rate of up to 100% on samples that the model originally answered correctly.
  • Universal Triggers Work: A single 20-token optimized trigger appended to the system prompt caused a massive 29.5% drop in confidence on unseen test queries for Llama-3-8B using CoT prompting.
  • Cross-Architecture Vulnerability: The vulnerability is systemic. The attacks successfully compromised models across scales and families, including Llama-3-8B, GPT-3.5-turbo, Llama-3-70B, GPT-4o, and OpenAI's recent o3-mini.

Limitations and Future Work

While comprehensive, the authors note several limitations and avenues for future exploration:

  • Computational Cost: Running genetic algorithms and iterative token perturbations requires thousands of black-box model calls, making large-scale evaluations on massive commercial models expensive.
  • Granularity of Attacks: This study primarily focused on character- and word-level modifications. Exploring sentence-level or structural prompt injections remains an open area.
  • The Path Forward: The findings highlight an urgent need to design robust confidence expression mechanisms. Future defenses must protect verbal confidence from being easily manipulated by trivial input variations, without making the model completely rigid to genuine changes in context.

Summary updated

BibTeX
@inproceedings{obadinma2025robustness,
  author = {Stephen Obadinma and Xiaodan Zhu},
  title = {{On the Robustness of Verbal Confidence of LLMs in Adversarial Attacks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=pAfdjWD9pN},
}
Figure