Lune

EMNLP2024顶会

Symbolic Working Memory Enhances Language Models for Complex Rule Application

Siyuan Wang, Zhongyu Wei, Yejin Choi, Xiang Ren

2024年份
6被引次数
6顶会引用

摘要

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 1 . 1 Code and data are available at https://github.com/ SiyuanWangw/RuleApplication . [Sequential Input] Facts: Nicole's grandfather, Harold, accompanied her to the basketball match. (F1) Beverly went car shopping with her husband Louis and her daughter Nicole. (F2) Harold bought a new dress for his daughter Marie. (F3) Rules: If B is A's daughter, and C is B's grandfather, then C is the father of A. (R1) If B is the father of A, and C is the daughter of B, then C is the sister of A. (R2) [Non-Sequential Input] Facts: Harold bought a new dress for his daughter Marie. (F3) Nicole's grandfather, Harold, accompanied her to the basketball match. (F1) Beverly went car shopping with her husband Louis and her daughter Nicole. (F2) Rules: If B is A's father, and C is B's daughter, then C is the sister of A. (R2) If B is A's daughter, and C is B's grandfather, then C is the father of A. (R1) [Query] How is Marie related to Beverly? [Rule Application Order]: R1→ (F2+F1) ⟹ F4; R2 → (F4+F3) ⟹ Answer

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper6

问问它们各自怎么用它

它引用的顶会 Paper14

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖