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

ChatDB:以数据库作为符号记忆增强 LLM

ChatDB: Augmenting LLMs with Databases as Their Symbolic Memory

Tsinghua University(清华大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Zhejiang University(浙江大学)

Chenxu Hu, Jie Fu, Chenzhuang Du, Simian Luo, Junbo Zhao, Hang Zhao

AI总结:

本文提出 ChatDB 框架,将 SQL 数据库作为 LLM 的符号记忆,由 LLM 生成 SQL 指令操作数据库,以支持复杂多跳推理,并在合成数据集上验证其有效性。

摘要:

具有记忆的大型语言模型(LLM)在计算上是通用的。然而,主流 LLM 并未充分利用记忆,而且其设计深受生物大脑的影响。由于传统神经记忆机制具有近似性质,并且容易出现误差累积,因此无法支持 LLM 模拟复杂推理。本文从现代计算机体系结构中汲取灵感,通过符号记忆来增强 LLM,以完成复杂的多跳推理。该符号记忆框架被实例化为一个 LLM 与一组 SQL 数据库,其中 LLM 生成 SQL 指令来操作这些 SQL 数据库。我们在一个需要复杂推理的合成数据集上验证了所提出记忆框架的有效性。项目网站位于 https://chatdatabase.github.io/ 。

英文摘要:

Large language models (LLMs) with memory are computationally universal. However, mainstream LLMs are not taking full advantage of memory, and the designs are heavily influenced by biological brains. Due to their approximate nature and proneness to the accumulation of errors, conventional neural memory mechanisms cannot support LLMs to simulate complex reasoning. In this paper, we seek inspiration from modern computer architectures to augment LLMs with symbolic memory for complex multi-hop reasoning. Such a symbolic memory framework is instantiated as an LLM and a set of SQL databases, where the LLM generates SQL instructions to manipulate the SQL databases. We validate the effectiveness of the proposed memory framework on a synthetic dataset requiring complex reasoning. The project website is available at https://chatdatabase.github.io/ .

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

↑