Non-Determinism of "Deterministic" LLM Settings

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Atil, Berk, Aykent, Sarp, Chittams, Alexa, Fu, Lisheng, Passonneau, Rebecca J., Radcliffe, Evan, Rajagopal, Guru Rajan, Sloan, Adam, Tudrej, Tomasz, Ture, Ferhan, Wu, Zhe, Xu, Lixinyu, Baldwin, Breck
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915223530635264
author Atil, Berk
Aykent, Sarp
Chittams, Alexa
Fu, Lisheng
Passonneau, Rebecca J.
Radcliffe, Evan
Rajagopal, Guru Rajan
Sloan, Adam
Tudrej, Tomasz
Ture, Ferhan
Wu, Zhe
Xu, Lixinyu
Baldwin, Breck
author_facet Atil, Berk
Aykent, Sarp
Chittams, Alexa
Fu, Lisheng
Passonneau, Rebecca J.
Radcliffe, Evan
Rajagopal, Guru Rajan
Sloan, Adam
Tudrej, Tomasz
Ture, Ferhan
Wu, Zhe
Xu, Lixinyu
Baldwin, Breck
contents LLM (large language model) practitioners commonly notice that outputs can vary for the same inputs under settings expected to be deterministic. Yet the questions of how pervasive this is, and with what impact on results, have not to our knowledge been systematically investigated. We investigate non-determinism in five LLMs configured to be deterministic when applied to eight common tasks in across 10 runs, in both zero-shot and few-shot settings. We see accuracy variations up to 15% across naturally occurring runs with a gap of best possible performance to worst possible performance up to 70%. In fact, none of the LLMs consistently delivers repeatable accuracy across all tasks, much less identical output strings. Sharing preliminary results with insiders has revealed that non-determinism perhaps essential to the efficient use of compute resources via co-mingled data in input buffers so this issue is not going away anytime soon. To better quantify our observations, we introduce metrics focused on quantifying determinism, TARr@N for the total agreement rate at N runs over raw output, and TARa@N for total agreement rate of parsed-out answers. Our code and data are publicly available at https://github.com/breckbaldwin/llm-stability.
format Preprint
id arxiv_https___arxiv_org_abs_2408_04667
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Non-Determinism of "Deterministic" LLM Settings
Atil, Berk
Aykent, Sarp
Chittams, Alexa
Fu, Lisheng
Passonneau, Rebecca J.
Radcliffe, Evan
Rajagopal, Guru Rajan
Sloan, Adam
Tudrej, Tomasz
Ture, Ferhan
Wu, Zhe
Xu, Lixinyu
Baldwin, Breck
Computation and Language
Artificial Intelligence
Machine Learning
Software Engineering
LLM (large language model) practitioners commonly notice that outputs can vary for the same inputs under settings expected to be deterministic. Yet the questions of how pervasive this is, and with what impact on results, have not to our knowledge been systematically investigated. We investigate non-determinism in five LLMs configured to be deterministic when applied to eight common tasks in across 10 runs, in both zero-shot and few-shot settings. We see accuracy variations up to 15% across naturally occurring runs with a gap of best possible performance to worst possible performance up to 70%. In fact, none of the LLMs consistently delivers repeatable accuracy across all tasks, much less identical output strings. Sharing preliminary results with insiders has revealed that non-determinism perhaps essential to the efficient use of compute resources via co-mingled data in input buffers so this issue is not going away anytime soon. To better quantify our observations, we introduce metrics focused on quantifying determinism, TARr@N for the total agreement rate at N runs over raw output, and TARa@N for total agreement rate of parsed-out answers. Our code and data are publicly available at https://github.com/breckbaldwin/llm-stability.
title Non-Determinism of "Deterministic" LLM Settings
topic Computation and Language
Artificial Intelligence
Machine Learning
Software Engineering
url https://arxiv.org/abs/2408.04667