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

Transformer跨时间与规模的逐字上下文检索

Transformer verbatim in-context retrieval across time and scale

Johns Hopkins University(约翰斯·霍普金斯大学);Jozef Stefan Institute(约兹夫·斯特凡研究所)

Kristijan Armeni, Marko Pranjić, Senja Pollak

AI总结:

研究Transformer语言模型在训练时间和规模增大时逐字上下文检索能力的发展,发现该能力在训练早期突发出现且与zero-shot基准学习正相关,并受名词具体性影响。

摘要:

为了预测后续文本,语言模型在某些情况下必须逐字检索上下文信息。在本报告中,我们研究了语言模型在训练过程中(跨时间)以及在使用相同数据集训练的语言模型规模增大时(跨规模),检索任意上下文名词的能力是如何发展的。随后,我们探讨了上下文检索的学习是否与更具挑战性的zero-shot基准的学习相关。此外,受人类短期记忆中语义效应的启发,我们根据目标名词的主要语义成分(即由人类评估其表示的是具体还是抽象实体)来评估检索能力。结果表明,逐字上下文检索在训练早期约1%的训练token后,以突发的转变形式出现。这一现象在所有模型规模(从14M到12B参数)中均被观察到,且两个最小模型的转变发生得稍晚。我们进一步发现,逐字上下文检索的发展与zero-shot基准的学习呈正相关。在转变点附近,所有模型都表现出检索具体名词优于抽象名词的优势。除了两个最小模型外,这种优势在训练接近尾声时逐渐消失。

英文摘要:

To predict upcoming text, language models must in some cases retrieve in-context information verbatim. In this report, we investigated how the ability of language models to retrieve arbitrary in-context nouns developed during training (across time) and as language models trained on the same dataset increase in size (across scale). We then asked whether learning of in-context retrieval correlates with learning of more challenging zero-shot benchmarks. Furthermore, inspired by semantic effects in human short-term memory, we evaluated the retrieval with respect to a major semantic component of target nouns, namely whether they denote a concrete or abstract entity, as rated by humans. We show that verbatim in-context retrieval developed in a sudden transition early in the training process, after about 1% of the training tokens. This was observed across model sizes (from 14M and up to 12B parameters), and the transition occurred slightly later for the two smallest models. We further found that the development of verbatim in-context retrieval is positively correlated with the learning of zero-shot benchmarks. Around the transition point, all models showed the advantage of retrieving concrete nouns as opposed to abstract nouns. In all but two smallest models, the advantage dissipated away toward the end of training.

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

↑