Neural Algorithmic Reasoning (NAR) extends classical algorithms to higher dimensional data. However, canonical implementations of NAR train neural networks to return only a single solution, even when there are multiple correct solutions to a problem, such as single-source shortest paths. For some applications, it is desirable to recover more than one correct solution. To that end, we give the first method for NAR with multiple solutions. We demonstrate our method on two classical algorithms: Bellman-Ford (BF) and Depth-First Search (DFS), favouring deeper insight into two algorithms over a broader survey of algorithms. This method involves generating appropriate training data as well as sampling and validating solutions from model output. Each step of our method, which can serve as a framework for neural algorithmic reasoning beyond the tasks presented in this paper, might be of independent interest to the field and our results represent the first attempt at this task in the NAR literature.
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(柏林学习与数据基础研究所)
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倍的误差减少。
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(数学系,华盛顿大学)
Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Tasks
University of British Columbia(不列颠哥伦比亚大学);Google Research(谷歌研究院)
在本文中,我们研究了神经算法推理任务的OOD泛化,其目标是学习算法(例如,排序、广度优先搜索和深度优先搜索)。首先,我们认为,在这种情况下,面向对象的泛化是显着不同的普通OOD设置。例如,在OOD的图像分类,如\emph{accuracy on the line}一般化的一些现象,这里没有观察到,和技术,如数据增强方法没有帮助的假设,许多增强技术往往被违反。其次,我们分析了主要挑战(例如,输入分布偏移、非代表性数据生成和无信息的验证度量),即,CLRS \citep{deepmind2021clrs},包含30个算法推理任务。我们提出了几种解决方案,包括一个简单而有效的修复输入分布偏移和改进的数据生成。最后,我们提出了一个基于注意力的2 WL-图神经网络(GNN)处理器,它补充了消息传递GNN,因此它们的组合在所有算法上平均优于最先进的模型3%。我们的代码可在:\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(亚马逊)
The Alignment Paradox of Medical Large Language Models in Infertility Care: Decoupling Algorithmic Improvement from Clinical Decision-making Quality
Department of Obstetrics and Gynecology, West China Second University Hospital(妇产科部门,西昌第二大学医院);Reproductive Medical Center, Department of Obstetrics and Gynecology, West China Second University Hospital(生殖医学中心,妇产科部门,西昌第二大学医院)
Depth-Width tradeoffs in Algorithmic Reasoning of Graph Tasks with Transformers
Courant Institute of Mathematical Sciences, New York University(纽约大学应用数学科学研究所);Google Research(谷歌研究);Meta AI;Bar-Ilan University(巴伊兰大学);Department of Bio-Medical Engineering, Edmond J. Safra Center for Bioinformatics, Tel-Aviv University(生物医学工程系,埃德蒙·J·萨法中心,特拉维夫大学);Tel Aviv University(特拉维夫大学)
Can Language Models Falsify? Evaluating Algorithmic Reasoning with Counterexample Creation
IIIT Hyderabad(印度信息技术研究所海得拉巴分校);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分校);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(蒂宾根人工智能中心);University of Tübingen(蒂宾根大学)
Empowering LLMs in Decision Games through Algorithmic Data Synthesis
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Beihang University(北京航空航天大学);The Chinese University of Hong Kong(香港中文大学);Novosibirsk State University(新西伯利亚国立大学)
Teaching LLM to Reason: Reinforcement Learning from Algorithmic Problems without Code
University of Science and Technology of China(中国科学技术大学);Alibaba Group(阿里巴巴集团);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Measuring in-context algorithmic reasoning in language models against an exact Bayes-optimal reference
Oxford Immune Algorithmics(牛津免疫算法学公司);Oxford University Innovation(牛津大学创新公司);London Institute for Healthcare Engineering(伦敦医疗工程研究所);King’s College London(伦敦国王学院)
Massachusetts Institute of Technology (MIT)(麻省理工学院);University of Maryland(马里兰大学);Institute for Advanced Study (IAS)(普林斯顿高等研究院);National Institute of Informatics (NII)(国立信息学研究所)