Reasoning

StructGPT

First page
StructGPT
Paper summary

A general framework for LLM reasoning over structured data.

Ask this paper

Key points
01

Structured data interface: Provides specialized interfaces for tables, knowledge graphs, and databases that LLMs can query.

02

Iterative reasoning: LLM iteratively invokes interfaces to narrow down relevant information rather than ingesting the full structure.

03

Zero-shot improvements: Improves zero-shot reasoning over structured data without task-specific training.

04

Structured QA foundation: Part of the early work establishing LLM-over-structured-data as a distinct research area leading to 2024 enterprise SQL agents.

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 \textbf{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}.

Every Monday
Get next week’s papers.
Subscribe on Substack