NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TableReasoner: Advancing Table Reasoning Framework with Large Language Models

Sishi Xiong, Dakai Wang, Yu Zhao, Jie Zhang, Changzai Pan, Haowei He, Xiangyu Li, Wenhan Chang, Zhongjiang He, Shuangyong Song, Yongxiang LiarXiv 2025 · OpenReview

Abstract

The paper presents our system developed for table question answering (TQA). TQA tasks face challenges due to the characteristics of real-world tabular data, such as large size, incomplete column semantics, and entity ambiguity. To address these issues, we propose a large language model (LLM)-powered and programming-based table reasoning framework, named TableReasoner. It models a table using the schema that combines structural and semantic representations, enabling holistic understanding and efficient processing of large tables. We design a multi-step schema linking plan to derive a focused table schema that retains only query-relevant information, eliminating ambiguity and alleviating hallucinations. This focused table schema provides precise and sufficient table details for query refinement and programming. Furthermore, we integrate the reasoning workflow into an iterative thinking architecture, allowing incremental cycles of thinking, reasoning and reflection. Our system achieves first place in both subtasks of SemEval-2025 Task 8.

Introduction

While Large Language Models (LLMs) have revolutionized natural language processing, they continue to struggle with Table Question Answering (TQA). Real-world tables present three primary challenges:

  1. Scale: Massive tables often exceed the context window of standard LLMs. Truncating them leads to information loss.
  2. Semantic Gaps: Column headers are frequently cryptic abbreviations that models cannot interpret without context.
  3. Entity Ambiguity: Mismatches between query terms (e.g., "Mr. Harari") and table entries (e.g., "Yuval Noah Harari") often lead to retrieval failures.

Traditional methods often rely on feeding raw Markdown/CSV data or using RAG to find relevant rows, which can miss global context or introduce noise. TableReasoner addresses these by treating tables as structured databases queried via code, rather than text documents to be read.

Methods

TableReasoner employs a multi-stage, programming-based reasoning framework designed for efficiency and precision.

Table Schema Representation

Instead of processing raw data, the system generates a global JSON schema. This schema includes data types, statistical metadata (min/max/mean), unique categories, and LLM-generated column descriptions. This approach reduces complexity from $O(Rows \times Columns)$ to $O(Columns)$, significantly improving token efficiency.

Parsing-Linking-Refinement

The workflow begins by parsing the query into sub-queries. A specialized Linking step maps query entities to table values using the Longest Common Subsequence algorithm and LLM verification. Finally, the system prunes irrelevant columns to create a "focused schema," minimizing input noise for the reasoning engine.

The TableReasoner framework: from table schema generation to iterative thinking.

Iterative Thinking and Program Generation

Inspired by the ReAct framework, TableReasoner utilizes an iterative "thought-action-observation" loop. The LLM generates Python/Pandas code (Program-of-Thoughts) to compute results. If execution fails or the result is incomplete, the system reflects on the outcome and adjusts its strategy in subsequent rounds.

Experimental Results

The framework was evaluated on the DataBench benchmark, which includes 80 real-world tables and 522 human-annotated QA pairs across various types (Boolean, category, number, etc.).

Performance Dominance

TableReasoner secured 1st place in both Subtask A (DataBench) and Subtask B (DataBench Lite) of SemEval-2025 Task 8. On the DataBench test set, the system achieved an accuracy of 93.87% (with fine-tuning and majority voting), representing a dramatic improvement over the Zero-shot ICL baseline, which struggled at approximately 41.57%.

Accuracy comparison across different models on the DataBench benchmark.

Key Insights

  • Schema Superiority: Ablation studies showed that removing the table schema module led to a 5.37% drop in accuracy, confirming that structured metadata is more effective than raw text for complex reasoning.
  • Scalability: Unlike standard ICL, TableReasoner's performance remains stable as table size increases because the focused schema size does not grow linearly with the number of rows.
  • Model Synergy: Combining Mistral-Large (strong code generation) with Qwen2.5 (effective for modular tasks) yielded optimal results.

Conclusion and Future Work

TableReasoner demonstrates that combining structured schemas with iterative, code-based reasoning is a powerful paradigm for TQA. While the iterative loop introduces some inference latency, it provides the robustness needed for massive real-world datasets. Future work will focus on adaptive action flows to optimize the balance between reasoning depth and speed, potentially skipping iterations for simpler queries.

Summary updated

BibTeX
@misc{xiong2025tablereasoner,
  author = {Sishi Xiong and Dakai Wang and Yu Zhao and Jie Zhang and Changzai Pan and Haowei He and Xiangyu Li and Wenhan Chang and Zhongjiang He and Shuangyong Song and Yongxiang Li},
  title = {{TableReasoner: Advancing Table Reasoning Framework with Large Language Models}},
  year = {2025},
  eprint = {2507.08046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.08046},
}
Figure