Skip to main content
QUICK REVIEW

[论文解读] StructGPT: A General Framework for Large Language Model to Reason over Structured Data

Jinhao Jiang, Kun Zhou|arXiv (Cornell University)|May 16, 2023
Topic ModelingComputer Science被引用 8
一句话总结

StructGPT 引入 Iterative Reading-then-Reasoning (IRR) 框架,使用专用界面读取结构化数据(知识图谱、表格、数据库),让大语言模型对收集的证据进行推理,从而提升对结构化数据的零-shot 和少量示例问答表现。

ABSTRACT

In this paper, we study how to improve the zero-shot reasoning ability of large language models~(LLMs) over structured data in a unified way. Inspired by the study on tool augmentation for LLMs, we develop an \emph{Iterative Reading-then-Reasoning~(IRR)} approach for solving question answering tasks based on structured data, called extbf{StructGPT}. In our approach, we construct the specialized function to collect relevant evidence from structured data (\ie \emph{reading}), and let LLMs concentrate the reasoning task based on the collected information (\ie \emph{reasoning}). Specially, we propose an \emph{invoking-linearization-generation} procedure to support LLMs in reasoning on the structured data with the help of the external interfaces. By iterating this procedures with provided interfaces, our approach can gradually approach the target answer to a given query. Extensive experiments conducted on three types of structured data demonstrate the effectiveness of our approach, which can significantly boost the performance of ChatGPT and achieve comparable performance against the full-data supervised-tuning baselines. Our codes and data are publicly available at~\url{https://github.com/RUCAIBox/StructGPT}.

研究动机与目标

  • 推动在不进行任务特定微调的情况下改善对结构化数据的LLM推理能力。
  • 提出一个统一的界面增强的 IRR 框架(StructGPT),用于知识图谱、表格和数据库数据。
  • 设计面向结构化数据的任务特定界面以读取数据,并提出一个用于迭代推理的调用-线性化-生成过程。

提出的方法

  • 为知识图谱、表格和数据库数据定义专用界面,以实现精准的数据访问与筛选。
  • 开发一个调用-线性化-生成循环,在该循环中LLM通过界面读取、线性化提取的证据,并生成答案或SQL。
  • 使用两种提示风格来引导对线性化信息的证据选择和答案生成。
  • 为KGQA、TableQA和Text-to-SQL任务实例化IRR,配合相应的数据流和界面。
  • 在八个数据集上展示与基线LLM相比的零-shot和少量示例的改进。

实验结果

研究问题

  • RQ1在不进行任务特定微调的前提下,LLM如何在统一框架中对结构化数据进行推理?
  • RQ2基于界面的读取结合迭代推理能否提升KGQA、TableQA和Text-to-SQL的表现?
  • RQ3在不同结构化数据类型上,IRR在零-shot和少-shot设置下的增益是多少?

主要发现

  • 与直接使用LLM相比,StructGPT 的零-shot和少-shot IRR 在 WebQSP 和 MetaQA 数据集上提高了 KGQA 的 Hits@1。
  • IRR 在 Davinci-003 和 ChatGPT 下均能提升 TableQA 的标注准确率和在 WTQ、WikiSQL、TabFact 数据集上的准确率。
  • 在 Text-to-SQL 中,IRR 在跨 Spider 变体任务上获得更高的执行准确率,尤其是在少-shot 提示下。
  • 在三种数据类型(KG、表格、数据库)上,IRR 相对于不进行模型微调的直接提示显示出显著的性能提升。
  • 错误分析指出选择与推理是关键瓶颈,为未来的提示和界面改进提供方向。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。