Skip to main content
QUICK REVIEW

[论文解读] Is Temperature the Creativity Parameter of Large Language Models?

Max Peeperkorn, Tom Kouwenhoven|arXiv (Cornell University)|May 1, 2024
Topic ModelingComputer Science被引用 40
一句话总结

本文通过实证研究温度是否真正决定大型语言模型生成叙事中的创造力,发现对新颖性和连贯性只有薄弱关联,并批评温度是主要创造力参数的说法。

ABSTRACT

Large language models (LLMs) are applied to all sorts of creative tasks, and their outputs vary from beautiful, to peculiar, to pastiche, into plain plagiarism. The temperature parameter of an LLM regulates the amount of randomness, leading to more diverse outputs; therefore, it is often claimed to be the creativity parameter. Here, we investigate this claim using a narrative generation task with a predetermined fixed context, model and prompt. Specifically, we present an empirical analysis of the LLM output for different temperature values using four necessary conditions for creativity in narrative generation: novelty, typicality, cohesion, and coherence. We find that temperature is weakly correlated with novelty, and unsurprisingly, moderately correlated with incoherence, but there is no relationship with either cohesion or typicality. However, the influence of temperature on creativity is far more nuanced and weak than suggested by the "creativity parameter" claim; overall results suggest that the LLM generates slightly more novel outputs as temperatures get higher. Finally, we discuss ideas to allow more controlled LLM creativity, rather than relying on chance via changing the temperature parameter.

研究动机与目标

  • 为叙事生成定义四个必要的创造力条件:新颖性、典型性、衔接性和连贯性。
  • 固定模型、提示和上下文以评估温度的独立影响。
  • 评估温度如何影响 Llama 2-Chat 70B 故事中的创造性特征。
  • 使用计算评估和人工评估来检验温度与创造力之间的关系。
  • 探讨局限性并提出实现更可控的 LLM 创造力的方法。

提出的方法

  • 通过使用单一模型(Llama 2-Chat 70B)和中性提示来生成故事来固定上下文。
  • 生成一个范例(贪婪样本)和在七个温度值下的100个故事以进行计算分析。
  • 计算到范例的语义(余弦相似度)和词汇(归一化编辑距离)距离,并用PCA进行分析。
  • 进行非专业参与者的人工评估,使用固定范例对新颖性、典型性、衔接性和连贯性进行评分。
  • 使用线性混合效应模型分析结果,以考虑参与者的随机效应并估计温度的影响。
  • 讨论局限性及其对超越温度操控的受控创造力的含义。
(a) Perplexity of stories given the LLM per temperature value.
(a) Perplexity of stories given the LLM per temperature value.

实验结果

研究问题

  • RQ1提高温度是否与LLM生成叙事中的更高新颖性相关?
  • RQ2温度如何相对于范例故事影响典型性、衔接性与连贯性?
  • RQ3计算度量(语义/词汇距离)是否在不同温度下与人类对创造力的判断一致?
  • RQ4是否有证据表明温度使模型的嵌入/概率空间的不同区域变得可访问?
  • RQ5除了调整温度外,哪些实际方法可以提供更可控的LLM创造力?

主要发现

  • 温度与新颖性呈现微弱的正相关,与连贯性呈现负相关。
  • 温度与典型性或衔接性无关。
  • 困惑度与新颖性正相关,表明更高的模型不确定性可能与新颖性相关。
  • 余弦相似度和归一化编辑距离在更高温度下显示出有限的多样化;输出在各温度下与范例高度重叠。
  • 人工评估显示效应量较小:新颖性随温度略有上升,而连贯性下降,提示存在权衡。
  • 总体而言,研究对温度是叙事生成的主要创造力参数的主张支持较弱。
(b) Cosine similarity of stories with the exemplar per temperature value.
(b) Cosine similarity of stories with the exemplar per temperature value.

阅读本论文

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

在 Nubint 中阅读本论文

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