From Loops to Oops: Fallback Behaviors of Language Models Under Uncertainty

Maor Ivgi, Ori Yoran, Jonathan Berant, Mor Geva
7/8/2024
cs.CLcs.AI

No official code found. Best implementation: Mivg/fallbacks (4 stars, MIT, last commit 2025-02-08).

Abstract

Large language models (LLMs) often exhibit undesirable behaviors, such as hallucinations and sequence repetitions. We propose to view these behaviors as fallbacks that models exhibit under epistemic uncertainty, and investigate the connection between them. We categorize fallback behaviors - sequence repetitions, degenerate text, and hallucinations - and extensively analyze them in models from the same family that differ by the amount of pretraining tokens, parameter count, or the inclusion of instruction-following training. Our experiments reveal a clear and consistent ordering of fallback behaviors, across all these axes: the more advanced an LLM is (i.e., trained on more tokens, has more parameters, or instruction-tuned), its fallback behavior shifts from sequence repetitions, to degenerate text, and then to hallucinations. Moreover, the same ordering is observed during the generation of a single sequence, even for the best-performing models; as uncertainty increases, models shift from generating hallucinations to producing degenerate text and finally sequence repetitions. Lastly, we demonstrate that while common decoding techniques, such as random sampling, alleviate unwanted behaviors like sequence repetitions, they increase harder-to-detect hallucinations.

View on arXivView PDF

Code Implementations(1)

Mivg/fallbacksCommunity100%
MIT
41TeX, PythonJun 30, 20241 years agoMIT

Similar Papers

Cite this paper

@article{ivgi2024from,
  title  = {From Loops to Oops: Fallback Behaviors of Language Models Under Uncertainty},
  author = {Maor Ivgi and Ori Yoran and Jonathan Berant and Mor Geva},
  year   = {2024},
  eprint = {2407.06071},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.06071v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.06071.svg)](https://codeofpaper.com/paper/2407.06071)

Discussion