TL;DR
When a Large Language Model (LLM) hallucinates or claims it is "unsure," it might actually know the right answer. This paper reveals a systematic gap between knowledge storage and expression, demonstrating that correct answers frequently hide just beneath the surface in the model's top token probabilities.
What Problem Does This Paper Address?
When LLMs fail at question-answering (QA) tasks, researchers typically assume the model simply lacks that information in its parameters, prompting a continuous push for larger models or more training data. However, this paper argues that we are overlooking a fundamental "storage-expression gap."
As shown in Figure 1, when asked for the capital of Washington State, a model might output "Seattle" via standard greedy decoding. Yet, an analysis of its internal token probability distribution (logits) reveals that it still assigns a high score to the correct answer, "Olympia". Because traditional evaluation metrics only look at the final generated text, they significantly underestimate the latent knowledge actually encoded within the model's parameters.
Methods
To uncover and quantify this hidden knowledge, the authors introduce Hits@k, a metric that evaluates whether the correct answer appears within the top-$k$ highest-probability tokens (logits) during generation, independent of the final surface-form output. To handle subword tokenization complexities, they use a string-matching protocol where a token counts as a match if it shares at least three consecutive characters with the ground truth.
Additionally, they investigate how common prompting techniques—like telling a model to say "unsure" to avoid hallucinations—can inadvertently suppress correct answers. They design an analytical probe called "Unsure" Filtering Decoding (Algorithm 1). If the model's top-1 prediction is an uninformative token (such as "unsure", a null string, or a stop word), this token is filtered out, and the highest-probability informative token is selected instead to trigger a new round of decoding.
Datasets
The authors evaluate their approach across both open-domain and domain-specific knowledge bases, further partitioning them into Head (top 10% most frequent entities), Torso, and Tail subsets to analyze popularity effects:
- DBPedia: An open-domain dataset derived from Wikipedia.
- IMDB: A domain-specific dataset focused on movie-related information.
- GoodReads: A domain-specific dataset focused on book-related information.
Key Insights and Ideas
- Size Isn't Everything for Latent Memory: While larger models generally achieve higher standard QA accuracy, increasing parameter size does not necessarily lead to a richer latent memory. For instance, LLaMA2-13B and LLaMA2-70B yielded remarkably similar Hits@k scores.
- Newer Models Remember Better: Newer architectures (like LLaMA3 vs. LLaMA2) show a massive jump in Hits@k scores across the board, regardless of model size, likely due to higher-quality and more comprehensive pre-training datasets.
- The "Unsure" Masking Effect: Standard few-shot prompts that encourage caution by allowing "unsure" responses act as a double-edged sword. They inadvertently suppress valid, low-confidence correct answers, masking the model's true internal knowledge base.
- Domain Specificity and Popularity: Models are much more prone to actual memory loss in specialized domains (IMDB, GoodReads) than in open domains, and specialized domains are far more sensitive to entity popularity (head vs. tail data).
Key Results
- Submerged Knowledge is Real: On the DBPedia-Head dataset, LLaMA3-8B achieves a meager 17.2% standard accuracy (Hits@1) but skyrockets to 57.9% at Hits@5 and 90.5% at Hits@100. This demonstrates that the model holds vastly more factual knowledge than standard benchmarks suggest.
- Altered Rankings: As shown in Figure 3, the rankings of LLMs shift dramatically when evaluated by Hits@k versus standard accuracy, proving that standard decoding dynamics heavily suppress accessible internal knowledge.
- Recovering Hidden Answers: Using the "Unsure" Filtering Decoding strategy, the authors successfully recovered previously suppressed answers. For example, LLaMA3-70B on DBPedia-Head saw an absolute accuracy improvement of +11.8% simply by bypassing the "unsure" token during decoding.
Limitations and Future Work
The authors note that their "Unsure" Filtering Decoding strategy is strictly an analytical probe meant to quantify the memory-masking effect, rather than a production-ready decoding algorithm. Fully automating the identification and filtering of incorrect answers (as opposed to just uninformative "unsure" tokens) remains a significant challenge. Future work will focus on designing practical prompt and decoding mechanisms that can safely extract this submerged knowledge without increasing the risk of hallucinations.
Summary updated