针对 LLM 推理中的长度泛化难题,本文在 MDP 与 DAG 形式化任务上给出并证明了泛化成立与否的条件,且通过实验验证。
摘要:
推理是 AI 智能体的一项基本能力。近来,大语言模型(LLM)在执行推理任务方面表现出显著能力。然而,对 LLM 推理能力的大量评估也揭示了一些局限。一个突出的局限是长度泛化,即当模型在较小长度或规模的推理问题上接受训练后,所得模型在处理较大规模或长度的问题时会遇到困难。这可能表明学习推理技能在泛化方面存在某些理论局限。这些评估及其观察结果促使我们对长度泛化问题开展理论研究。本工作聚焦于可表述为 Markov 动态过程(MDP)和/或有向无环图(DAG)的推理任务。文中识别并证明了在特定表示下决定某项推理任务的长度泛化问题能否被解决的条件。此外,本文还进行了实验以验证这些理论结果。
英文摘要:
Reasoning is a fundamental capability of AI agents. Recently, large language models (LLMs) have shown remarkable abilities to perform reasoning tasks. However, numerous evaluations of the reasoning capabilities of LLMs have also showed some limitations. An outstanding limitation is length generalization, meaning that when trained on reasoning problems of smaller lengths or sizes, the resulting models struggle with problems of larger sizes or lengths. This potentially indicates some theoretical limitations of generalization in learning reasoning skills. These evaluations and their observations motivated us to perform a theoretical study of the length generalization problem. This work focuses on reasoning tasks that can be formulated as Markov dynamic processes (MDPs) and/or directed acyclic graphs (DAGs). It identifies and proves conditions that decide whether the length generalization problem can be solved or not for a reasoning task in a particular representation. Experiments are also conducted to verify the theoretical results.
Teaching Algorithmic Reasoning via In-context Learning
Mila(米拉研究所);Université de Montreal(蒙特利尔大学);Google Research(谷歌研究院)
大语言模型(LLM)通过扩展模型和数据大小,显示出越来越多的上下文学习能力。尽管取得了这些进展,LLM仍然无法解决算法推理问题。虽然为最终答案提供了一个基本原理,导致了多步推理问题的进一步改进,但Anil et al. 2022表明,即使是简单的算法推理任务,如奇偶校验,也远未解决。在这项工作中,我们确定并研究了成功教授算法推理的四个关键阶段:(1)将算法制定为技能,(2)同时教授多种技能(技能积累),(3)教授如何组合技能(技能组合)和(4)教授如何使用技能作为工具。我们表明,它是可以教算法推理LLMs通过上下文学习,我们称之为算法提示。我们评估我们的方法在各种算术和定量推理任务,并表现出显着的提升性能比现有的提示技术。特别是,对于长奇偶校验、加法、乘法和减法,与最佳可用基线相比,我们分别实现了约10倍、9倍、5倍和2倍的误差减少。
Atomic Skills are the Prerequisite: When Reinforcement Learning Synthesizes Compositional Reasoning, and When It Only Amplifies
University of Waterloo(滑铁卢大学);Duke University(杜克大学);National University of Singapore(新加坡国立大学);Princeton University(普林斯顿大学);Peking University(北京大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)
Toward Skill-Native LLMs: Skill Entropy for Benchmarking and Training Long-Horizon Reasoning
Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学);University of Toronto(多伦多大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Stanford University(斯坦福大学);University of Oxford(牛津大学)
Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Beijing Key Laboratory of Research on Large Models and Intelligent Governance(北京大型模型与智能治理研究重点实验室);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE(下一代智能搜索与推荐工程研究中心,教育部);Tianjin University of Science and Technology(天津科技大学);Beijing Institute of Technology(北京理工大学)
A Decomposition Perspective to Long-context Reasoning for LLMs
Large Language Model Department, Tencent(腾讯大语言模型部门);Xi'an Jiaotong University(西安交通大学);Tencent(腾讯);Fudan University(复旦大学);City University of Hong Kong(香港城市大学)
Skill-Conditioned Gated Self-Distillation for LLM Reasoning
Tsinghua University(清华大学);Fudan University(复旦大学);City University of Hong Kong(香港城市大学);Huazhong University of Science and Technology(华中科技大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)
Towards Compositional Generalization of LLMs via Skill Taxonomy Guided Data Synthesis
State Key Laboratory of Complex & Critical Software Environment, Beihang University(复杂与关键软件环境国家重点实验室,北京航空航天大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Beijing Institute of Technology(北京理工大学);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
ARISE: Agent Reasoning with Intrinsic Skill Evolution in Hierarchical Reinforcement Learning
Department of Electrical and Computer Engineering, George Washington University(乔治华盛顿大学电气与计算机工程系);Department of Mathematical Sciences, University of Texas at Dallas(德克萨斯大学达拉斯分校数学科学系);School of Business, George Washington University(乔治华盛顿大学商学院)
New Skills or Sharper Primitives? A Probabilistic Perspective on the Emergence of Reasoning in RLVR
University of Science(科学技术大学);The Chinese University of Hong Kong(香港中文大学);Peking University(北京大学);Nanjing University(南京大学);Shanghai AI Laboratory(上海人工智能实验室);Shanghai Jiao Tong University(上海交通大学)
InfiGUIAgent: A Multimodal Generalist GUI Agent with Native Reasoning and Reflection
Zhejiang University(浙江大学);Dalian University of Technology(大连理工大学);Reallm Labs(Reallm实验室);ByteDance Inc(字节跳动公司);The Hong Kong Polytechnic University(香港理工大学)
How and Why LLMs Generalize: A Fine-Grained Analysis of LLM Reasoning from Cognitive Behaviors to Low-Level Patterns
University of Wisconsin, Madison(威斯康星大学麦迪逊分校);University of California, Berkeley(加州大学伯克利分校);University of Pennsylvania(宾夕法尼亚大学);California Institute of Technology(加州理工学院)