NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Engineering of Hallucination in Generative AI: It's not a Bug, it's a Feature

Tim Fingscheidt, Patrick Blumenberg, Björn MöllerarXiv 2026

TL;DR

This paper argues that "hallucination" in generative AI is not a flaw, but a fundamental feature required for functional output. By analyzing large language models (LLMs) and video generation systems, the authors demonstrate how strict error minimization (like argmax decoding) leads to degenerate, frozen states, whereas probability engineering via sampling hyperparameters unlocks useful creativity and even self-reflection.

What Problem Does This Paper Address?

Hallucination is widely viewed as a major flaw in generative AI, especially when truthfulness is paramount. However, the authors address a fundamental paradox: if you completely eliminate hallucination by forcing models to always pick the mathematically "most likely" next token (minimizing error via argmax decoding), the models perform poorly or fail entirely.

In language models, strict error minimization lacks flavor or gets stuck; in video generation, it causes the video to completely freeze. The paper explores how to balance truthfulness and utility by treating hallucination as a tunable feature controlled through probability engineering rather than a bug to be eradicated.

Methods

The authors review the standard autoregressive decoding pipeline used in attention-based transformer decoders for both text (LLMs) and video (such as GAIA-1). They break down the "probability engineering" pipeline that replaces the strict argmax operator during inference to introduce controlled fantasy:

  1. Softmax with Temperature ($T$): Adjusts the flatness of the logit distribution. Higher $T$ increases entropy and fantasy, while $T \to 0$ collapses the distribution back to argmax.
  2. Top-$k$ Selection: Restricts sampling to the top $k$ highest-probability tokens.
  3. Top-$P$ (Nucleus) Sampling: Keeps the smallest set of tokens whose cumulative probability exceeds $P$.
  4. Min-$P$ Sampling: Discards tokens whose probability falls below a specific percentage of the top token's probability.
  5. Random Sampling: Draws the final token randomly from this pruned and renormalized distribution.
Figure 4: Softmax in an LLM with illustration of the effect of temperature T.
Figure 5: Steps contained in the sampling procedure.

The authors apply these concepts qualitatively to a Llama 3 3B language model and an in-house automotive video generation model inspired by GAIA-1 to observe behavioral shifts as these hyperparameters change.

Datasets

The paper does not introduce new public datasets or perform large-scale benchmark evaluations. For the video generation experiments, the authors utilize an in-house automotive video generation system operating at 4 frames per second (fps) on quadratic 256x256 videos. This system shares a 13-bit image patch tokenization scheme with the GAIA-1 architecture.

Key Insights and Ideas

  • The "Freezing" Effect of Argmax: When predicting future video frames with $k=1$ (equivalent to argmax), the model minimizes Mean Squared Error (MSE). Because future information is highly uncertain, the mathematical minimum error solution is the conditional mean. On a pixel level, this translates to repeating the exact same pixel values, causing the video to freeze.
  • Dictation Mode vs. Writing Mode: The authors hypothesize that vanilla decoder-based LLMs operate in a "dictation mode." They cannot erase a word once generated; instead, they append it to their input buffer and "listen" to what they just said.
  • Self-Reflection via Autoregressive Feedback: Because the model "listens" to its own output, a controlled amount of sampling variety allows it to catch its own mistakes. For example, when prompted about a river in Braunschweig, Germany, the model generated a wrong answer ("Oder River") but immediately followed up with a correction ("however, the Oder River does not flow through Braunschweig") because the wrong answer in its context buffer triggered a new, truthful prediction.
  • The Biblical Analogy: The authors draw a parallel between an LLM's self-correction and Apostle Paul's dictation style in 1 Corinthians 1:14-16. Paul dictates that he baptized no one, but immediately corrects himself with exceptions as he reflects on his own spoken words residing in his auditory buffer.

Key Results

  • LLM Sampling (Llama 3 3B): Setting Min-P to 0 or low values resulted in spelling errors ("Ocker" instead of "Oker") or incorrect facts ("Oste river"). Increasing Min-P to 0.15 restricted the distribution enough to trigger the logical self-reflection and negation behavior ("Oder River, however...").
  • Video Generation:
  • $k=1$ (Argmax): The video completely freezes after 4 frames (1 second).
  • $k=50$ (Default): Realistic generation; a crossing car turns left and naturally disappears.
  • $k=200$: High hallucination; introduces a pedestrian with a backpack crossing the street.
  • $k=500$: Extreme fantasy; generates a pedestrian crossing the street with a horse and then mounting it.

Limitations and Future Work

  • Lack of True Correction: While autoregressive models can negate or comment on their previous errors (self-reflection), vanilla decoders cannot retroactively erase or rewrite a bad token once it is output.
  • Supernatural Artifacts: High values of $k$ (e.g., $k=200$) can generate useful corner cases for testing autonomous driving (like traffic accidents) but also introduce physically impossible elements, such as skyscrapers spontaneously appearing on the horizon and turning into poles.
  • Future Directions: The authors point to recent post-training reinforcement learning techniques (such as DeepSeek-R1) that incentivize step-by-step reasoning and explicit self-verification to overcome the rigid limitations of pure autoregressive generation.

Summary updated

BibTeX
@misc{fingscheidt2026engineering,
  author = {Tim Fingscheidt and Patrick Blumenberg and Björn Möller},
  title = {{Engineering of Hallucination in Generative AI: It's not a Bug, it's a Feature}},
  year = {2026},
  eprint = {2601.07046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.07046},
}
Figure