Skip to main content
QUICK REVIEW

[论文解读] Non-Determinism of "Deterministic" LLM Settings

Berk Atil, Aykent, Sarp|arXiv (Cornell University)|Aug 6, 2024
Iterative Learning Control SystemsEngineering被引用 11
一句话总结

本论文分析在固定输入和确定性超参数下,大型语言模型如何仍然具有非确定性,展示在多次运行和多种任务中的原始输出和解析答案的变异性。

ABSTRACT

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.

研究动机与目标

  • 量化在重复相同运行中,LLM响应的变异程度。
  • 评估最终解析答案相对于原始模型输出的稳定性。
  • 调查稳定性、准确性、输入长度和输出长度之间的相关性。
  • 为LLM应用中的基准测试、部署和解析管道提供见解。

提出的方法

  • 在多任务和多模型中使用不带链式推理的少量示例提示。
  • 将温度设为0,top-p设为1,固定种子,每个设置进行5次相同的运行。
  • Evaluate on BBH and MMLU benchmark tasks using GPT-3.5 Turbo, GPT-4o, Llama-3-70B-Instruct, Llama-3-8B-Instruct, and Mixtral-8x7B-Instruct.
Figure 1: Accuracy over 20 identical runs on college math, temperature=0, top-p=0. Median in blue, mean in black with dashed 5% and 95% quantiles.
Figure 1: Accuracy over 20 identical runs on college math, temperature=0, top-p=0. Median in blue, mean in black with dashed 5% and 95% quantiles.

实验结果

研究问题

  • RQ1在具有相同输入和设置的重复运行中,LLM最终性能的变异程度有多大?
  • RQ2原始输出与解析答案在不同运行中有何差异,这如何影响稳定性?
  • RQ3稳定性和准确性是否相关,输入长度和输出长度如何影响稳定性?
  • RQ4稳定性是否因任务和模型类型而异?

主要发现

  • 即使在确定性设置下,模型在原始输出层面也很少具有确定性。
  • 解析结果的稳定性(TARa)高于原始输出的稳定性(TARr),但对于任何模型/任务也都不是100%。
  • 稳定性和准确性随任务而异,大学数学尤为不稳定,欧洲历史相对稳定。
  • 输出长度与TARa和TARr均呈负相关,表明较长的输出降低稳定性。
  • 准确性与TARa呈正相关,而TARr与准确性没有明显相关性。
Figure 2: The difference between the maximum and minimum accuracy over 5 runs for each model and task in terms of %.
Figure 2: The difference between the maximum and minimum accuracy over 5 runs for each model and task in terms of %.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。