arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.13654cs.CL
收藏

符号工作记忆增强大型语言模型以应对复杂规则应用

Symbolic Working Memory Enhances Language Models for Complex Rule Application

University of Southern California(南加州大学);Fudan University(复旦大学);University of Washington(华盛顿大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

Siyuan Wang, Zhongyu Wei, Yejin Choi, Xiang Ren

AI总结:

针对LLMs在多步规则应用中因规则锚定困难导致性能下降的问题,提出一种结合外部符号工作记忆的神经符号框架,通过迭代执行符号规则锚定与LLM规则实现,有效提升了多步规则应用能力及鲁棒性。

摘要:

大型语言模型(LLMs)展现出了卓越的推理能力,但在处理涉及一系列规则应用步骤的多步演绎推理时表现不佳,尤其是当规则以非顺序方式呈现时。我们的初步分析表明,尽管LLMs擅长单步规则应用,但由于规则锚定的挑战,它们在多步场景中的性能显著下降。规则锚定要求在多个输入规则、事实和推断事实中,在每一步锚定适用的规则和支持事实。为了解决这个问题,我们提出用外部工作记忆增强LLMs,并引入了一个用于规则应用的神经符号框架。该记忆以自然语言和符号形式存储事实和规则,从而实现精确追踪。利用该记忆,我们的框架迭代地执行符号规则锚定和基于LLM的规则实现。前者匹配符号规则和事实的谓词与变量,以在每一步锚定适用的规则。实验表明,我们的框架在规则应用方面有效,并且在各种步骤和设置下具有鲁棒性。

英文摘要:

Large Language Models (LLMs) have shown remarkable reasoning performance but struggle with multi-step deductive reasoning involving a series of rule application steps, especially when rules are presented non-sequentially. Our preliminary analysis shows that while LLMs excel in single-step rule application, their performance drops significantly in multi-step scenarios due to the challenge in rule grounding. It requires anchoring the applicable rule and supporting facts at each step, amidst multiple input rules, facts, and inferred facts. To address this, we propose augmenting LLMs with external working memory and introduce a neurosymbolic framework for rule application. The memory stores facts and rules in both natural language and symbolic forms, enabling precise tracking. Utilizing this memory, our framework iteratively performs symbolic rule grounding and LLM-based rule implementation. The former matches predicates and variables of symbolic rules and facts to ground applicable rules at each step. Experiments indicate our framework's effectiveness in rule application and its robustness across various steps and settings~\footnote{Code and data are available at \url{https://github.com/SiyuanWangw/RuleApplication}.}.

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

↑