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

Transformer语言模型在学习组合算法方面的局限性

Limits of Transformer Language Models on Learning to Compose Algorithms

IBM Research -- Zurich(IBM苏黎世研究院);ETH Zurich(苏黎世联邦理工学院);MPI Tübingen(蒂宾根马克斯·普朗克研究所)

Jonathan Thomm, Giacomo Camposampiero, Aleksandar Terzic, Michael Hersche, Bernhard Schölkopf, Abbas Rahimi

AI总结:

本研究分析Transformer语言模型在学习组合离散任务时的局限性,发现LLaMA和GPT-4等模型在组合学习上样本效率极低,并提供了理论分析支持。

摘要:

我们分析了Transformer语言模型在学习组合离散任务方面的能力。为此,我们在四个需要学习多个离散子任务组合的任务上,评估了训练LLaMA模型以及提示GPT-4和Gemini的表现。具体而言,我们衡量了这些模型在多大程度上能够重用子任务中可观察到的原语来学习组合任务。我们的结果表明,最先进的Transformer语言模型中的组合学习在样本效率上非常低下:LLaMA需要比从头重新学习所有子任务更多的数据样本才能学习组合任务;使用少量样本的上下文提示不可靠,并且在多轮代码生成中无法执行子任务或纠正错误。此外,通过利用复杂性理论,我们以理论分析支持了这些发现,该分析聚焦于梯度下降在记忆前馈模型时的样本低效性。我们在https://github.com/IBM/limitations-lm-algorithmic-compositional-learning开源了我们的代码。

英文摘要:

We analyze the capabilities of Transformer language models in learning compositional discrete tasks. To this end, we evaluate training LLaMA models and prompting GPT-4 and Gemini on four tasks demanding to learn a composition of several discrete sub-tasks. In particular, we measure how well these models can reuse primitives observable in the sub-tasks to learn the composition task. Our results indicate that compositional learning in state-of-the-art Transformer language models is highly sample inefficient: LLaMA requires more data samples than relearning all sub-tasks from scratch to learn the compositional task; in-context prompting with few samples is unreliable and fails at executing the sub-tasks or correcting the errors in multi-round code generation. Further, by leveraging complexity theory, we support these findings with a theoretical analysis focused on the sample inefficiency of gradient descent in memorizing feedforward models. We open source our code at https://github.com/IBM/limitations-lm-algorithmic-compositional-learning.

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

↑