arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.07759cs.CLcs.AIcs.LG
收藏

TinyStories:语言模型可以多小仍能说出连贯的英语?

TinyStories: How Small Can Language Models Be and Still Speak Coherent English?

Microsoft Research(微软研究院)

Ronen Eldan, Yuanzhi Li

AI总结:

本文提出TinyStories合成短故事数据集,证明参数低于1000万或仅含一个transformer块的极小型语言模型也能生成连贯故事,并引入基于GPT-4的多维评估新范式。

摘要:

语言模型(LMs)是自然语言处理的强大工具,但当模型规模较小时,它们往往难以生成连贯且流畅的文本。即使经过大量训练,参数规模约为1.25亿的模型(如GPT-Neo(small)或GPT-2(small))也很少能生成超过几个词的连贯且一致的英语文本。这引出了一个问题:生成连贯英语文本的能力是否只在更大规模(数亿参数或更多)和更复杂架构(具有多层全局注意力)下才会出现。在这项工作中,我们引入了TinyStories,一个由GPT-3.5和GPT-4生成的短故事合成数据集,这些故事只包含典型3到4岁儿童通常能理解的词汇。我们表明,TinyStories可用于训练和评估远小于最先进模型(总参数低于1000万)或架构简单得多(仅有一个transformer块)的语言模型,但它们仍能生成多个段落、流畅且一致的故事,这些故事具有多样性、语法几乎完美,并展现出推理能力。我们还引入了一种新的语言模型评估范式:我们提出了一个框架,使用GPT-4为这些模型生成的内容评分,就像这些内容是学生写的故事并由(人类)老师评分一样。这种新范式克服了标准基准的缺陷,标准基准通常要求模型输出具有非常固定的结构,而新范式还为模型提供多维评分,为语法、创造力和一致性等不同能力提供分数。我们希望TinyStories能够促进语言模型的开发、分析和研究,尤其是针对低资源或专门领域,并为语言模型中语言能力的涌现提供启示。

英文摘要:

Language models (LMs) are powerful tools for natural language processing, but they often struggle to produce coherent and fluent text when they are small. Models with around 125M parameters such as GPT-Neo (small) or GPT-2 (small) can rarely generate coherent and consistent English text beyond a few words even after extensive training. This raises the question of whether the emergence of the ability to produce coherent English text only occurs at larger scales (with hundreds of millions of parameters or more) and complex architectures (with many layers of global attention). In this work, we introduce TinyStories, a synthetic dataset of short stories that only contain words that a typical 3 to 4-year-olds usually understand, generated by GPT-3.5 and GPT-4. We show that TinyStories can be used to train and evaluate LMs that are much smaller than the state-of-the-art models (below 10 million total parameters), or have much simpler architectures (with only one transformer block), yet still produce fluent and consistent stories with several paragraphs that are diverse and have almost perfect grammar, and demonstrate reasoning capabilities. We also introduce a new paradigm for the evaluation of language models: We suggest a framework which uses GPT-4 to grade the content generated by these models as if those were stories written by students and graded by a (human) teacher. This new paradigm overcomes the flaws of standard benchmarks which often requires the model's output to be very structures, and moreover provides a multidimensional score for the model, providing scores for different capabilities such as grammar, creativity and consistency. We hope that TinyStories can facilitate the development, analysis and research of LMs, especially for low-resource or specialized domains, and shed light on the emergence of language capabilities in LMs.

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

↑