1. Manifold Drift & Error Accumulation
Transformers generate output autoregressively ($P(x_t \mid x_{
PCA Projection of Layer-32 Residual Stream Vector Trajectory
Attention weight allocation across context tokens for the currently decoded token
Probability $P(w_{t+1} \mid w_{
Adjust parameters to witness or eliminate hallucination triggers
Higher $T$ flattens probability distributions, allowing low-likelihood confabulated tokens to be sampled.
Cuts off the long tail of low-probability hallucination tokens when constrained to smaller values.
Injects external verified context embeddings to force attention back onto factual truth anchors.
Subtracts logits of an ungrounded amateur model to penalize superficial, repetitive, or hallucinated tropes.
Why auto-regressive statistical sequence prediction produces convincing falsehoods
Transformers generate output autoregressively ($P(x_t \mid x_{
As context length expands, Softmax attention weights ($\text{softmax}(QK^T / \sqrt{d})$) disperse across hundreds of prior tokens. When attention loses focus on the initial factual premise, generation becomes driven by local n-gram fluency rather than global factual veracity.
Language models are trained on cross-entropy loss to maximize grammatical and semantic plausibility. Fictitious citations, non-existent proteins, and invented historical events often possess higher surface-form probability than saying "I do not know."
Standard temperature sampling ($T > 0$) draws from the full vocabulary support. In low-certainty regimes where the model lacks direct factual memorization, high entropy distributes probability across countless hallucinated options.