arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.03349cs.AIcs.CLcs.LG
收藏

RuAG:面向大型语言模型的学习规则增强生成

RuAG: Learned-rule-augmented Generation for Large Language Models

Eindhoven University of Technology(埃因霍温理工大学);Microsoft(微软公司);University of Liverpool(利物浦大学);King’s College London(伦敦国王学院);Peking University(北京大学)

Yudi Zhang, Pei Xiao, Lu Wang, Chaoyun Zhang, Meng Fang, Yali Du, Yevgeniy Puzyrev, Randolph Yao, Si Qin, Qingwei Lin, Mykola Pechenizkiy, Dongmei Zhang, Saravan Rajmohan, Qi Zhang

AI总结:

RuAG框架通过自动蒸馏数据为一阶逻辑规则并注入LLM,利用MCTS搜索规则,提升多领域任务推理能力。

摘要:

上下文学习(ICL)和检索增强生成(RAG)因其通过引入外部知识来增强大型语言模型(LLM)推理能力而受到关注,但受限于有限的上下文窗口大小,导致信息注入不足。为此,我们提出了一种新颖的框架RuAG,自动将大量离线数据提炼为可解释的一阶逻辑规则,并将其注入LLM以提升其推理能力。我们的方法首先利用LLM的常识来制定搜索过程,其中LLM自动定义头部和主体谓词。然后,RuAG应用蒙特卡洛树搜索(MCTS)来处理组合搜索空间,并高效地从数据中发现逻辑规则。所得逻辑规则被转换为自然语言,从而实现有针对性的知识注入,并无缝集成到LLM的提示中,用于LLM的下游任务推理。我们在公共和私有工业任务上评估了我们的框架,包括自然语言处理、时间序列、决策制定和工业任务,证明了其在增强LLM跨多样任务能力方面的有效性。

英文摘要:

In-context learning (ICL) and Retrieval-Augmented Generation (RAG) have gained attention for their ability to enhance LLMs' reasoning by incorporating external knowledge but suffer from limited contextual window size, leading to insufficient information injection. To this end, we propose a novel framework, RuAG, to automatically distill large volumes of offline data into interpretable first-order logic rules, which are injected into LLMs to boost their reasoning capabilities. Our method begins by formulating the search process relying on LLMs' commonsense, where LLMs automatically define head and body predicates. Then, RuAG applies Monte Carlo Tree Search (MCTS) to address the combinational searching space and efficiently discover logic rules from data. The resulting logic rules are translated into natural language, allowing targeted knowledge injection and seamless integration into LLM prompts for LLM's downstream task reasoning. We evaluate our framework on public and private industrial tasks, including natural language processing, time-series, decision-making, and industrial tasks, demonstrating its effectiveness in enhancing LLM's capability over diverse tasks.

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

↑