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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ivgi, Maor, Yoran, Ori, Berant, Jonathan, Geva, Mor
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910818883338240
author Ivgi, Maor
Yoran, Ori
Berant, Jonathan
Geva, Mor
author_facet Ivgi, Maor
Yoran, Ori
Berant, Jonathan
Geva, Mor
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_06071
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle From Loops to Oops: Fallback Behaviors of Language Models Under Uncertainty
Ivgi, Maor
Yoran, Ori
Berant, Jonathan
Geva, Mor
Computation and Language
Artificial Intelligence
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.
title From Loops to Oops: Fallback Behaviors of Language Models Under Uncertainty
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2407.06071