From Confidence to Collapse in LLM Factual Robustness
Alina Fastowski, Bardh Prenkaj, Gjergji Kasneci
TL;DR
This work targets the robustness of factual knowledge in LLMs by moving beyond accuracy at a fixed decoding condition. It introduces the Factual Robustness Score (FRS), which combines intrinsic uncertainty via entropy with decoding perturbations measured by a breaking temperature $t_b$, yielding a single metric that reflects both initial confidence and resilience to temperature shifts. Across five LLMs and three closed-book QA datasets, FRS reveals that robustness is not solely a function of size; numerical facts tend to be more stable, while some knowledge types remain fragile under perturbation. The results underscore the need for robustness-aware evaluation and offer a foundation for targeted training or retrieval strategies to improve factual retention in real-world deployments.
Abstract
Ensuring the robustness of factual knowledge in LLMs is critical for reliable applications in tasks such as question answering and reasoning. However, existing evaluation methods predominantly focus on performance-based metrics, often investigating from the perspective of prompt perturbations, which captures only the externally triggered side of knowledge robustness. To bridge this gap, we introduce a principled approach to measure factual robustness from the perspective of the generation process by analyzing token distribution entropy in combination with temperature scaling sensitivity. These two factors build the Factual Robustness Score (FRS), a novel metric which quantifies the stability of a fact against perturbations in decoding conditions, given its initial uncertainty. To validate our approach, we conduct extensive experiments on 5 LLMs across 3 closed-book QA datasets (SQuAD, TriviaQA, and HotpotQA). We show that factual robustness varies significantly -- smaller models report an FRS of $0.76$, larger ones $0.93$ -- with accuracy degrading by ~$60\%$ under increased uncertainty. These insights demonstrate how entropy and temperature scaling impact factual accuracy, and lay a foundation for developing more robust knowledge retention and retrieval in future models.
