LLM Stability: A detailed analysis with some surprises

Berk Atil,Alexa Chittams,Liseng Fu,Ferhan Ture,Lixinyu Xu,Breck Baldwin
2024-09-13
Abstract:LLM (large language model) practitioners commonly notice that outputs can vary for the same inputs, but we have been unable to find work that evaluates LLM stability as the main objective. In our study of 6 deterministically configured LLMs across 8 common tasks with 5 identical runs, we see accuracy variations up to 10\%. In addition, no LLM consistently delivers repeatable accuracy across all tasks. We also show examples of variation that are not normally distributed and compare configurations with zero-shot/few-shot prompting and fine-tuned examples. To better quantify what is going on, we introduce metrics focused on stability: TARr@N for the total agreement rate at N runs over raw output, and TARa@N for total agreement over parsed-out answers. We suggest that stability metrics be integrated into leader boards and research results going forward.
Computation and Language,Artificial Intelligence,Machine Learning,Software Engineering
What problem does this paper attempt to address?
This paper attempts to address the issue of output stability in large language models (LLMs). Specifically, the authors found that even under the same input conditions, the output of LLMs can vary, and this instability can affect the performance evaluation of the models. The main objectives of the paper are: 1. **Quantify the stability of LLMs**: Evaluate the output variations of different LLMs under the same input by running the same task multiple times. 2. **Introduce new stability metrics**: Propose two new metrics—Total Agreement Rate@N (TAR@N), to measure the proportion of completely consistent answers or original outputs in N runs. 3. **Analyze the impact of different configurations**: Compare the stability performance of zero-shot, few-shot, and fine-tuned models. 4. **Explore factors affecting stability**: Analyze the impact of factors such as task difficulty, input length, and output length on the stability of LLMs. Through these studies, the authors hope that future research and evaluations will pay more attention to the stability of LLMs and incorporate stability metrics into performance evaluation standards.