arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.16807cs.CL
收藏

通过上下文学习提升大型语言模型常识生成的多样性

Improving Diversity of Commonsense Generation by Large Language Models via In-Context Learning

University of Liverpool(利物浦大学);Amazon(亚马逊)

Tianhui Zhang, Bei Peng, Danushka Bollegala

AI总结:

针对大型语言模型在生成式常识推理中输出多样性缺乏系统研究的问题,提出一种基于上下文学习的简单方法,在保持生成质量的同时提升多样性,并可用作训练数据改进现有常识生成器。

摘要:

生成式常识推理(GCR)要求模型利用常识知识对情境进行推理,同时生成连贯的句子。尽管生成句子的质量至关重要,但生成的多样性同样重要,因为它反映了模型使用一系列常识知识事实的能力。大型语言模型(LLMs)已展现出通过上下文学习(ICL)在无需任何微调的情况下,利用给定示例提升各种任务生成质量的能力。然而,LLM输出中的多样性方面此前尚未得到系统研究。为了解决这一问题,我们提出了一种简单的方法,在保持LLM生成质量的同时增加其多样性。在三个基准GCR数据集上的实验结果表明,我们的方法在质量和多样性之间取得了理想的平衡。此外,我们提出的方法生成的句子可用作训练数据,以提升现有常识生成器的多样性。

英文摘要:

Generative Commonsense Reasoning (GCR) requires a model to reason about a situation using commonsense knowledge, while generating coherent sentences. Although the quality of the generated sentences is crucial, the diversity of the generation is equally important because it reflects the model's ability to use a range of commonsense knowledge facts. Large Language Models (LLMs) have shown proficiency in enhancing the generation quality across various tasks through in-context learning (ICL) using given examples without the need for any fine-tuning. However, the diversity aspect in LLM outputs has not been systematically studied before. To address this, we propose a simple method that diversifies the LLM generations, while preserving their quality. Experimental results on three benchmark GCR datasets show that our method achieves an ideal balance between the quality and diversity. Moreover, the sentences generated by our proposed method can be used as training data to improve diversity in existing commonsense generators.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑