在本文中,我们研究了神经算法推理任务的OOD泛化,其目标是学习算法(例如,排序、广度优先搜索和深度优先搜索)。首先,我们认为,在这种情况下,面向对象的泛化是显着不同的普通OOD设置。例如,在OOD的图像分类,如\emph{accuracy on the line}一般化的一些现象,这里没有观察到,和技术,如数据增强方法没有帮助的假设,许多增强技术往往被违反。其次,我们分析了主要挑战(例如,输入分布偏移、非代表性数据生成和无信息的验证度量),即,CLRS \citep{deepmind2021clrs},包含30个算法推理任务。我们提出了几种解决方案,包括一个简单而有效的修复输入分布偏移和改进的数据生成。最后,我们提出了一个基于注意力的2 WL-图神经网络(GNN)处理器,它补充了消息传递GNN,因此它们的组合在所有算法上平均优于最先进的模型3%。我们的代码可在:\url{https://github.com/smahdavi4/clrs} .
英文摘要:
In this paper, we study the OOD generalization of neural algorithmic reasoning tasks, where the goal is to learn an algorithm (e.g., sorting, breadth-first search, and depth-first search) from input-output pairs using deep neural networks. First, we argue that OOD generalization in this setting is significantly different than common OOD settings. For example, some phenomena in OOD generalization of image classifications such as \emph{accuracy on the line} are not observed here, and techniques such as data augmentation methods do not help as assumptions underlying many augmentation techniques are often violated. Second, we analyze the main challenges (e.g., input distribution shift, non-representative data generation, and uninformative validation metrics) of the current leading benchmark, i.e., CLRS \citep{deepmind2021clrs}, which contains 30 algorithmic reasoning tasks. We propose several solutions, including a simple-yet-effective fix to the input distribution shift and improved data generation. Finally, we propose an attention-based 2WL-graph neural network (GNN) processor which complements message-passing GNNs so their combination outperforms the state-of-the-art model by a 3% margin averaged over all algorithms. Our code is available at: \url{https://github.com/smahdavi4/clrs}.
Scaling Online Complex Event Detection with Synthetic Supervision and Mamba-Based Neural Algorithmic Reasoning
University of California, Los Angeles(加州大学洛杉矶分校);University of Brescia(布雷西亚大学);Hong Kong University of Science and Technology(香港科学与技术大学);US Army DEVCOM Army Research Laboratory(美国陆军 DEVCOM 军事研究实验室);Amazon(亚马逊)
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(北京理工大学)
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倍的误差减少。
AlgoTrace: Algorithmic Primitives and Compositional Geometry of Reasoning in Language Models
Microsoft Research NYC(微软研究院纽约分部);Center for Theoretical Neuroscience(理论神经科学中心);Department of Psychology(心理学系);University of California Los Angeles(加州大学洛杉矶分校);Institute for Pure and Applied Mathematics(纯粹与应用数学研究所);Emory University(埃默里大学);Rice University(里士满大学);Mount Holyoke College(马里兰霍克学院);Technische Universität Berlin(柏林技术大学);BIFOLD-Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所)
MINAR: Mechanistic Interpretability for Neural Algorithmic Reasoning
Pacific Northwest National Laboratory, Richland, WA(太平洋西北国家实验室);Halıcıoğlu Data Science Institute, University of California, San Diego, San Diego, CA(哈利奇奥格鲁数据科学研究所,加州大学圣地亚哥分校);Department of Computer and Information Science, University of Pennsylvania, Pennsylvaina, PA(计算机与信息科学系,宾夕法尼亚大学);Department of Mathematics, University of Washington, Seattle, WA(数学系,华盛顿大学)
Empowering LLMs in Decision Games through Algorithmic Data Synthesis
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Beihang University(北京航空航天大学);The Chinese University of Hong Kong(香港中文大学);Novosibirsk State University(新西伯利亚国立大学)