迈向深度神经网络习得语言结构的理论
Towards a theory of how the structure of language is acquired by deep neural networks
AI总结:
该研究针对下一词元预测学习语言结构的数据需求问题,基于PCFG合成数据集解析词元相关性与文法隐变量的关系,提出训练集规模与相关性有效范围正相关的猜想,并在真实语料中验证了上下文窗口对损失缩放定律的影响。
摘要:
通过下一词元预测学习语言结构需要多少数据?我们针对由概率上下文无关文法(Probabilistic Context-Free Grammar,PCFG)生成的合成数据集研究了这一问题——PCFG是一种树形生成模型,可捕捉自然语言中存在的诸多层级结构。我们通过解析方法确定了模型中的词元-词元相关性,并证明这些相关性可用于构建文法隐变量的表征,且相关性的作用范围越长,对应的变量层级越深。此外,有限的训练集会将相关性的分辨率限制在一个有效范围内,该范围的大小随训练集规模的增大而增长。因此,随着训练样本数量不断增加,训练得到的语言模型(Language Model)能够构建更深层的文法结构表征,从而在问题高维度的情况下仍能取得良好性能。我们推测,训练集规模与相关性有效范围之间的关系在我们的合成数据集之外同样成立。具体而言,我们的推测预测了测试损失随训练集规模变化的缩放定律如何依赖于上下文窗口的长度,我们在莎士比亚戏剧和维基百科文章中通过实验验证了这一点。
英文摘要:
How much data is required to learn the structure of a language via next-token prediction? We study this question for synthetic datasets generated via a Probabilistic Context-Free Grammar (PCFG) -- a tree-like generative model that captures many of the hierarchical structures found in natural languages. We determine token-token correlations analytically in our model and show that they can be used to build a representation of the grammar's hidden variables, the longer the range the deeper the variable. In addition, a finite training set limits the resolution of correlations to an effective range, whose size grows with that of the training set. As a result, a Language Model trained with increasingly many examples can build a deeper representation of the grammar's structure, thus reaching good performance despite the high dimensionality of the problem. We conjecture that the relationship between training set size and effective range of correlations holds beyond our synthetic datasets. In particular, our conjecture predicts how the scaling law for the test loss behaviour with training set size depends on the length of the context window, which we confirm empirically in Shakespeare's plays and Wikipedia articles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。