Papers › StructGPT: A General Framework for Large Language Model to Reason over Structured Data

StructGPT: A General Framework for Large Language Model to Reason over Structured Data

16 May 2023arXiv:2305.09645archive 2025-07-28

Jinhao Jiang, Kun Zhou, Zican Dong, Keming Ye, Wayne Xin Zhao, Ji-Rong Wen

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}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.09645")

Code

Syntology Ran 7 of 10 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 3 ran · violated contract; 4 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rucaibox/structgpt officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 7 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · violated contract
4ran
3unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from RUCAIBox/StructGPT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ChatGPT RUCAIBox/StructGPT/structgpt_for_tableqa.py official repository ran Apache-2.0 (permissive) · f52947a30b78f4b4 · report
Retriever RUCAIBox/StructGPT/structgpt_for_tableqa.py official repository ran Apache-2.0 (permissive) · 8d2a6c5b5165e0c8 · report
condition_has_like rucaibox/structgpt/evaluate_for_spider.py official repository ran · violated contract Apache-2.0 (permissive) · 8231e3fdffa9c8ee · report
condition_has_or rucaibox/structgpt/evaluate_for_spider.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · f2d76234528d3b57 · report
condition_has_sql rucaibox/structgpt/evaluate_for_spider.py official repository ran · violated contract Apache-2.0 (permissive) · 954c76e256cc7220 · report
get_schema rucaibox/structgpt/process_sql.py official repository ran fingerprinted Apache-2.0 (permissive) · 0992d2a47ae733fa · report
get_schema_from_json rucaibox/structgpt/process_sql.py official repository ran Apache-2.0 (permissive) · c4dcaf29b663a364 · report
Solver RUCAIBox/StructGPT/structgpt_for_tableqa.py official repository unverified Apache-2.0 (permissive) · 930ccc93da2ca9ed · report
evaluate_example rucaibox/structgpt/evaluate_for_wikisql.py official repository unverified Apache-2.0 (permissive) · 66d6969df5d33fe1 · report
tokenize rucaibox/structgpt/process_sql.py official repository unverified Apache-2.0 (permissive) · a906f5de1f5971b0 · report

Tasks

Language ModelingLanguage ModellingLarge Language ModelQuestion Answering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections