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

05/16/2023
by   Jinhao Jiang, et al.
0

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 Iterative Reading-then-Reasoning (IRR) approach for solving question answering tasks based on structured data, called StructGPT. In our approach, we construct the specialized function to collect relevant evidence from structured data (reading), and let LLMs concentrate the reasoning task based on the collected information (reasoning). Specially, we propose an 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 <https://github.com/RUCAIBox/StructGPT>.

READ FULL TEXT

page 9

page 10

research
05/26/2023

Zero-shot Visual Question Answering with Language Model Feedback

In this paper, we propose a novel language model guided captioning appro...
research
05/04/2022

Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models

Commonsense reasoning in natural language is a desired ability of artifi...
research
12/02/2022

UniKGQA: Unified Retrieval and Reasoning for Solving Multi-hop Question Answering Over Knowledge Graph

Multi-hop Question Answering over Knowledge Graph (KGQA) aims to find th...
research
09/05/2023

STEP – Towards Structured Scene-Text Spotting

We introduce the structured scene-text spotting task, which requires a s...
research
06/13/2023

ReadProbe: A Demo of Retrieval-Enhanced Large Language Models to Support Lateral Reading

With the rapid growth and spread of online misinformation, people need t...
research
09/20/2023

StructChart: Perception, Structuring, Reasoning for Visual Chart Understanding

Charts are common in literature across different scientific fields, conv...
research
04/20/2022

Attention in Reasoning: Dataset, Analysis, and Modeling

While attention has been an increasingly popular component in deep neura...

Please sign up or login with your details

Forgot password? Click here to reset