Abstract
Table reasoning, a task to answer questions by reasoning over data presented in tables, is an important topic due to the prevalence of knowledge stored in tabular formats. Recent solutions use Large Language Models (LLMs), exploiting the semantic understanding and reasoning capabilities of LLMs. A common paradigm of such solutions linearizes tables to form plain texts that are served as input to LLMs. This paradigm has critical issues: it loses table structures, lacks explicit reasoning paths for result explainability, and is subject to the "lost-in-the-middle" issue. To address these issues, we propose Table Graph Reasoner (TABGR), a training-free model that represents tables as an Attributed Table Graph (ATG). The ATG explicitly preserves row-column-cell structures while enabling graph-based reasoning for explainability. We further propose a Question-Guided Personalized PageRank (QG-PPR) mechanism to rerank tabular data and mitigate the lost-in-the-middle issue. Extensive experiments on two commonly used benchmarks show that TABGR consistently outperforms state-of-the-art models by up to 9.7% in accuracy.
The Pitfalls of Table Linearization
As Large Language Models (LLMs) have become the primary tool for reasoning tasks, they are frequently applied to Table Question Answering (TableQA) and Table Fact Verification. The standard approach follows a "linearize-then-reason" paradigm, converting a table into a flat string (e.g., Markdown or CSV) to feed into the LLM.
However, this approach suffers from three critical flaws:
- Loss of Structure: Flattening a table destroys the inherent 2D relationships between rows, columns, and cells.
- The "Lost-in-the-Middle" Effect: Large tables create massive text prompts where LLMs often fail to retrieve information buried in the center of the context.
- Coarse Reasoning: Reading a giant block of text often leads to ungrounded reasoning and hallucinations, such as misaligning data with the wrong headers.
TABGR: Reasoning via Attributed Table Graphs
To overcome these limitations, we introduce TABGR, a training-free pipeline that replaces text linearization with graph-based reasoning. The framework consists of several key stages:
1. Attributed Table Graph (ATG) Construction
Instead of text, the table is modeled as a graph where nodes represent cell values, rows, and the table root. Edges represent column headers, allowing the table to be expressed as structured triples: <row_id, column_header, cell_value>. This preserves the structural integrity of the data.
2. Question-Guided Personalized PageRank (QG-PPR)
To identify the most relevant cells for a specific question, TABGR employs an adapted PageRank algorithm. It initializes "salience scores" based on string matches and LLM-based semantic selection, then propagates these scores through the graph's row and column connections. This mechanism ensures that the most critical information is prioritized.
3. Triple Reranking and Grounded Generation
Graph triples are sorted based on their QG-PPR scores, placing the most relevant data at the top of the LLM prompt to bypass the "lost-in-the-middle" problem. The LLM then performs Chain-of-Thought reasoning over these ranked triples, explicitly outputting the graph paths used to reach the answer, which enhances explainability.
Experimental Results
TABGR was evaluated on three major benchmarks: WikiTableQuestions (WikiTQ), TabFact, and HiTab.
- State-of-the-Art Accuracy: TABGR achieved 78.8% on WikiTQ and 93.6% on TabFact, outperforming the strongest full-table reasoning baseline (RoT) by 2.7% and 1.0%, respectively. In decomposition-based settings, it outperformed Table-Critic by up to 9.7% on LLaMA3.3-70B.
- Extreme Robustness: While baseline models saw accuracy drops of up to 18.7% when table rows and columns were shuffled, TABGR’s performance remained nearly identical (dropping only 0.1% to 1.3%), demonstrating true permutation invariance.
- Efficiency: The decomposition variant (TABGR†) used only ~16% of the input tokens compared to SOTA baselines, significantly reducing API costs while maintaining high accuracy.
Conclusion
By abandoning flat text in favor of Attributed Table Graphs, TABGR effectively addresses the structural and contextual limitations of current LLM-based table reasoning. The combination of graph modeling and QG-PPR reranking provides a robust, explainable, and efficient framework for complex tabular data analysis. Future work will explore extending this approach to multimodal and multi-lingual table reasoning scenarios.
Summary updated