# Programmatic Reasoning with Structural Schema: A Unified Framework for Multi-Table Inference

*Jialin Chen, Brandon Mayer, Michael Galkin, Sami Abu-El-Haija, Rex Ying, Bryan Perozzi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149968) · [Open on the map](../papers.html#p149968)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Diffusion Model Extraction and Memorization](../pgroup/9.md) · Type: new method · Keywords: multi-table reasoning, schema graph, Chain-of-Execution, relational databases, LLM inference

Areas: [LLM Reasoning](../areas/reasoning.md) › Language Model Reasoning › Structured Reasoning

## Summary
StrucTab-R1 is a schema-centric reasoning framework that encodes relational databases as heterogeneous schema graphs and uses a Chain-of-Execution to perform multi-table inference without exposing raw table rows, improving execution accuracy over existing LLMs.

## Explained to a 5-year-old
Big computers that understand words can answer questions about one table of information easily. However, when you need to look at many tables that are connected, they get confused. The new system draws a picture of how the tables are related, like a map of connections. Then it thinks of a plan to answer the question by using simple actions like picking, joining, or counting. This helps it give correct answers more often.

## Explained to a 5-year-old, longer
Big computers that understand words can answer questions about one table of information easily. However, when you need to look at many tables that are linked together, they often get confused. The new system first draws a picture of how the tables are related, showing which columns connect to which. This picture is called a schema graph, and it helps the computer see the structure without looking at all the data. Instead of reading every row, the computer uses this picture to plan its steps. It then makes a list of actions, like filtering rows, joining tables, or counting values. Each action is performed by a separate tool, and the results are sent back to the computer. This way, the computer can answer complex questions that involve multiple tables. The system is trained by first learning from correct examples and then improving through a special kind of learning that rewards accurate answers and consistent steps. This makes the system more reliable and reduces mistakes. It works well on both simple single-table tasks and harder multi-table tasks, even when there are many tables involved.

## For a technical reader
The system builds a heterogeneous graph that captures tables, columns, and foreign-key relationships, then encodes this graph to produce compact schema tokens. An LLM uses these tokens to generate a Chain-of-Execution, issuing external function calls (filter, join, aggregate) that are executed separately, with observations fed back for further reasoning. Training combines supervised learning on expert traces with reinforcement learning that optimizes answer correctness, schema-region precision, and execution consistency. This design limits the model’s attention to relevant subgraph portions, reducing hallucinations in multi-hop joins.

## Problem
Large language models struggle to generalize to multi-table reasoning due to schema heterogeneity, long input contexts, and lack of structural awareness, leading to hallucinations and poor performance on complex joins.

## Method
The approach encodes relational databases as heterogeneous schema graphs, uses a graph encoder with question-conditioned cross-attention to produce compact schema tokens, and has the LLM generate a Chain-of-Execution that calls external functions (filter, join, aggregate) while returning compact observations, trained with supervised traces and structure-aware reinforcement learning.

## Results
The approach achieves higher execution accuracy than both general-purpose and table-specialized LLMs on single-table and multi-table benchmarks, and maintains performance on large-schema settings where baselines fail.

## Contributions
It introduces a schema-centric reasoning framework that decouples relational reasoning from raw data, uses heterogeneous schema graphs and a Chain-of-Execution for multi-table inference, and proposes supervised and reinforcement learning training to improve reliability and execution consistency.

## Research questions this paper is counted under

- [How can language models capture structural properties of tabular data for accurate reasoning?](../q/685.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149968)
