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

迈向学习推理:在抽象推理中的算术关系任务上比较大语言模型与神经符号方法

Towards Learning to Reason: Comparing LLMs with Neuro-Symbolic on Arithmetic Relations in Abstract Reasoning

IBM Research -- Zurich(IBM研究院苏黎世分部)

Michael Hersche, Giacomo Camposampiero, Roger Wattenhofer, Abu Sebastian, Abbas Rahimi

AI总结:

本研究对比大语言模型与神经符号方法在瑞文渐进矩阵抽象推理任务的表现,发现大语言模型算术规则能力弱,而基于向量符号架构的ARLC方法准确率高且长度泛化性更好。

摘要:

本研究对比了大语言模型(LLM)与神经符号方法在解决瑞文渐进矩阵(Raven's progressive matrices, RPM)任务上的表现,RPM是一项视觉抽象推理测试,涉及对递进、算术加法等数学规则的理解。研究假设存在一个先知视觉感知模块,直接将视觉属性以文本提示的形式提供给模型,从而能够单独衡量模型的抽象推理能力。尽管提供了来自先知视觉感知的组合结构化表示以及先进的提示技术,GPT-4和Llama-3 70B都无法在I-RAVEN数据集的中心星座子集上达到完美准确率。我们的分析表明,根本原因在于LLM在理解和执行算术规则方面存在短板。作为一种潜在的解决方案,我们分析了具备上下文感知的溯因规则学习器(Abductive Rule Learner with Context-awareness, ARLC)——这是一种基于向量符号架构(vector-symbolic architectures, VSAs)学习推理的神经符号方法。在该方法中,概念用分布式向量表示,编码向量之间的点积定义了一个相似度核,对向量进行简单的逐元素运算即可对编码值执行加/减操作。我们发现ARLC在I-RAVEN的中心星座子集上几乎达到了完美准确率,证明其在算术规则处理上具有高保真度。为了测试模型的长度泛化能力,我们将RPM测试扩展到更大的矩阵(从典型的3×3扩展为3×10)以及更大的属性值动态范围(从10提升至1000)。我们发现LLM解决算术规则的准确率降至10%以下,尤其是随着动态范围扩大时下降更明显,而ARLC由于在恰当的分布式表示之上模拟符号计算,能够保持高准确率。我们的代码可在https://github.com/IBM/raven-large-language-models 获取。

英文摘要:

This work compares large language models (LLMs) and neuro-symbolic approaches in solving Raven's progressive matrices (RPM), a visual abstract reasoning test that involves the understanding of mathematical rules such as progression or arithmetic addition. Providing the visual attributes directly as textual prompts, which assumes an oracle visual perception module, allows us to measure the model's abstract reasoning capability in isolation. Despite providing such compositionally structured representations from the oracle visual perception and advanced prompting techniques, both GPT-4 and Llama-3 70B cannot achieve perfect accuracy on the center constellation of the I-RAVEN dataset. Our analysis reveals that the root cause lies in the LLM's weakness in understanding and executing arithmetic rules. As a potential remedy, we analyze the Abductive Rule Learner with Context-awareness (ARLC), a neuro-symbolic approach that learns to reason with vector-symbolic architectures (VSAs). Here, concepts are represented with distributed vectors s.t. dot products between encoded vectors define a similarity kernel, and simple element-wise operations on the vectors perform addition/subtraction on the encoded values. We find that ARLC achieves almost perfect accuracy on the center constellation of I-RAVEN, demonstrating a high fidelity in arithmetic rules. To stress the length generalization capabilities of the models, we extend the RPM tests to larger matrices (3x10 instead of typical 3x3) and larger dynamic ranges of the attribute values (from 10 up to 1000). We find that the LLM's accuracy of solving arithmetic rules drops to sub-10%, especially as the dynamic range expands, while ARLC can maintain a high accuracy due to emulating symbolic computations on top of properly distributed representations. Our code is available at https://github.com/IBM/raven-large-language-models.

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

↑