TL;DR
D-Score is a novel spectral statistic designed to detect hallucinations in large language models by analyzing hidden activations. It effectively identifies inconsistencies in generated text without requiring external verification or multiple outputs.
✦ Why It Matters
Implement D-Score in your LLM applications to enhance the accuracy of generated content today.
Key Takeaways
How It Works
D-Score analyzes the hidden activation matrix of a language model during a forward pass. It counts the number of singular directions with values close to the leading singular value, which indicates the model's confidence in its output.
When the model generates text that conflicts with its internal knowledge, the hidden representation diverges, leading to a higher D-Score, signaling potential hallucinations.
Related