arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.15720cs.CLcs.AIcs.LG
收藏

大语言模型具备组合能力吗?关于局限性与可扩展性的研究

Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability

University of Wisconsin–Madison(威斯康星大学麦迪逊分校)

Zhuoyan Xu, Zhenmei Shi, Yingyu Liang

AI总结:

本研究探究大语言模型的组合能力,构建含语言与逻辑挑战的组合任务测试集开展实证,发现简单组合任务下模型有一定能力且随规模提升,复杂多步组合任务则表现差且规模无增益,并给出理论解释。

摘要:

大语言模型(LLMs)已成为解决众多AI问题的强大工具,并展现出卓越的上下文学习(ICL)能力。组合能力,即解决由两个或更多简单任务组合而成的未见复杂任务的能力,是通用人工智能的一项核心推理能力。尽管LLMs取得了巨大成功,但它们如何处理组合任务,尤其是预训练阶段未遇到的组合任务,仍是一个悬而未决且在很大程度上未被充分探索的问题。在本研究中,我们深入探究了LLMs在仅以简单任务作为上下文示例的情况下,处理组合任务的ICL能力。我们构建了包含语言和逻辑挑战的组合任务测试集,并在不同的LLM家族中开展了实证研究。我们观察到模型表现出差异化的行为:(1)对于对不同输入片段应用不同映射机制的较简单组合任务,模型展现出不错的组合能力,且模型规模扩大会增强这种能力;(2)对于涉及多步推理、每一步代表一个任务的更复杂组合任务,模型通常表现不佳,且规模扩大基本不会带来性能提升。我们在简化场景下提供了理论分析,解释了当任务分别处理不同输入部分时,模型会展现出组合能力。我们认为,本研究从任务性质和模型规模的角度,为LLMs解决组合任务的能力提供了新的见解。我们的数据集和代码可在https://github.com/OliverXUZY/LLM_Compose 获取。

英文摘要:

Large language models (LLMs) have emerged as powerful tools for many AI problems and exhibit remarkable in-context learning (ICL) capabilities. Compositional ability, solving unseen complex tasks that combine two or more simple tasks, is an essential reasoning ability for Artificial General Intelligence. Despite the tremendous success of LLMs, how they approach composite tasks, especially those not encountered during the pretraining phase, remains an open and largely underexplored question. In this study, we delve into the ICL capabilities of LLMs on composite tasks, with only simple tasks as in-context examples. We develop a test suite of composite tasks including linguistic and logical challenges and perform empirical studies across different LLM families. We observe that models exhibit divergent behaviors: (1) For simpler composite tasks that apply distinct mapping mechanisms to different input segments, the models demonstrate decent compositional ability, while scaling up the model enhances this ability; (2) for more complex composite tasks involving reasoning multiple steps, where each step represents one task, models typically underperform, and scaling up generally provides no improvements. We offer theoretical analysis in a simplified setting, explaining that models exhibit compositional capability when the task handles different input parts separately. We believe our work sheds new light on the capabilities of LLMs in solving composite tasks regarding the nature of the tasks and model scale. Our dataset and code are available at {\url{https://github.com/OliverXUZY/LLM_Compose}}.

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

↑