Introduction
As Large Language Models (LLMs) are increasingly integrated into high-stakes domains such as medicine and law, the ability of these models to communicate their own uncertainty—often referred to as "knowing what they don't know"—has become a critical safety requirement. For many state-of-the-art models that operate as black boxes, researchers and users rely on verbal confidence. This involves prompting the model to provide a numerical certainty score (e.g., "I am 80% sure") alongside its generated answer.
However, the reliability of these verbal scores remains an open question. This research presents the first comprehensive study of adversarial attacks on verbal confidence, investigating whether these scores are robust metrics or fragile outputs that can be manipulated through minor, meaning-preserving changes to the input prompt.
The Verbal Confidence Attack (VCA) Framework
To evaluate the stability of these scores, the authors introduced the Verbal Confidence Attack (VCA) framework. This framework targets confidence scores through two distinct vectors:
- Perturbation-based Attacks: These utilize automated tools to apply subtle modifications to the input text.
- VCA-TF (TextFooler): Replaces specific words with synonyms to alter the prompt without changing its semantic meaning.
- VCA-TB (TextBugger): Introduces character-level "bugs," such as typos or character swaps, which are often imperceptible to human readers but disruptive to model processing.
- Jailbreak-based Attacks (ConfidenceTriggers): Using a genetic algorithm, the researchers evolved "universal" strings of tokens. When appended to a system prompt, these triggers act as a catalyst, causing the model to report significantly lower confidence scores across a wide variety of queries.
Confidence Elicitation Methods (CEMs)
The study tested these attacks against four common methods used to elicit confidence from LLMs:
- Base: A direct request for an answer and a confidence score.
- Chain-of-Thought (CoT): Requiring the model to explain its reasoning before providing a score.
- Multi-Step (MS): Breaking the answer into discrete steps and providing confidence for each.
- Self-Consistency (SC): Generating multiple candidate answers and averaging the resulting confidence scores.
Experimental Setup
The framework was tested on leading models, including Llama-3 and GPT-3.5/4o, across several diverse benchmarks designed to test different reasoning capabilities:
- MedMCQA: Medical entrance exam questions requiring specialized knowledge.
- TruthfulQA: Designed to elicit human-like falsehoods or misconceptions.
- StrategyQA: Questions requiring multi-step implicit reasoning.
- AdvGLUE: A standard adversarial robustness benchmark used for baseline comparisons.
Key Insights and Analysis
The Fragility of Confidence
The study reveals that verbal confidence is the "Achilles' heel" of LLMs. While a model's actual answer might remain correct under slight perturbation, the confidence score associated with that answer is highly volatile. Minor changes that do not alter the question's meaning can lead to massive swings in reported certainty.
The "Doubt-to-Flip" Pipeline
A significant finding is the strong correlation between confidence and accuracy. The researchers observed a "Doubt-to-Flip" mechanism: if an adversarial attack successfully lowers a model's reported confidence, the model becomes significantly more likely to flip its answer from correct to incorrect in subsequent iterations. This suggests that attacking confidence is a precursor to attacking the model's fundamental accuracy.
System Prompt Vulnerability
Attacks targeting the "instructions" (system prompts) or "examples" (one-shot demonstrations) were often more effective than attacking the user's specific question. This implies that "poisoning" a few examples in a prompt template can compromise the perceived reliability of every subsequent interaction with the model.
The Internal vs. External Mismatch
Adversarial attacks create what the authors call an "honesty gap." While the model's internal token probabilities (logits) may remain high—indicating internal certainty—its verbal output becomes low-confidence. This demonstrates a breakdown in the alignment between the model's internal state and its natural language communication.
Key Results
- Significant Degradation: Adversarial attacks resulted in an average reduction in reported confidence of up to 30% across the tested datasets.
- High Flip Rates: In certain scenarios, attacks induced a 100% answer change rate in samples that the model originally answered correctly, once the confidence was successfully suppressed.
- Effectiveness of Universal Triggers: The ConfidenceTriggers method successfully lowered average confidence by nearly 30% simply by appending a single optimized string of tokens to the prompt.
- Failure of Traditional Defenses: Common adversarial defenses, such as input paraphrasing or perplexity filters (designed to catch gibberish), failed to mitigate these attacks because the perturbations were often semantically natural.
Conclusion and Future Work
The study concludes that current methods of eliciting verbal confidence are highly susceptible to adversarial manipulation. While the research focused on reducing confidence, the authors note that "overconfidence attacks"—manipulating a model to appear certain when it is actually incorrect—represent an equally dangerous frontier for future study.
Future research is needed to explore sentence-level adversarial rephrasing and to develop more robust alignment techniques that ensure a model's verbalized confidence accurately and stubbornly reflects its internal probabilistic state, even under pressure.
Summary updated