Abstract
Mathematical reasoning has long been a key benchmark for evaluating large language models. Although substantial progress has been made on math word problems, the need for reasoning over tabular data in real-world applications has been overlooked. For instance, applications such as business intelligence demand not only multi-step numerical reasoning with tables but also robustness to incomplete or inconsistent information. However, comprehensive evaluation in this area is severely limited, constrained by the reliance on manually collected tables that are difficult to scale and the lack of coverage for potential traps encountered in real-world scenarios. To address this problem, we propose AutoT2T, a neuro-symbolic framework that controllably transforms math word problems into scalable and verified tabular reasoning tasks. Building on this pipeline, we develop TabularMath, a benchmark comprising four subsets that include both text-based and image-based tables, covering table complexity, table quality, and table representation dimensions. Our study reveals three key observations: (1) Table complexity and reasoning difficulty impact reasoning performance jointly; (2) Low-quality tables pose severe risks to reliable reasoning in current LLMs; (3) Different table modalities show similar trends, with text-based tables typically being easier for models to reason over. In-depth analyses are conducted for each observation to guide future research.
Introduction
While Large Language Models (LLMs) have demonstrated impressive capabilities on standard math word problem benchmarks like GSM8K, these successes often rely on information presented in clean, linear prose. In practical domains such as finance and business intelligence, critical data is frequently encapsulated within semi-structured tables. Reasoning over such data requires more than just mathematical proficiency; it necessitates precise localization of information and robustness against the "messy" realities of real-world data, including missing or conflicting values.
Existing tabular benchmarks are often limited by small scales or a lack of the adversarial "traps" common in professional environments. This work introduces a systematic approach to stress-testing LLMs by automatically generating large-scale, mathematically verified tabular reasoning tasks.
Methodology: The AUTOT2T Framework
The core contribution of this research is AUTOT2T, a neuro-symbolic pipeline designed to transform standard text-based math problems into complex tabular formats. The process consists of three distinct stages:
- Semantic Decoupling: An LLM extracts variables and constraints from a natural language problem, converting them into SMT-Lib formal logic. A formal solver (e.g., Z3, CVC5) then verifies the logic to ensure the problem is solvable and internally consistent.
- Table Transformation: The verified logic is mapped into a "seed table," where variables are assigned to columns and entities to rows.
- Table Augmentation: To simulate real-world complexity, the system applies randomized operations, including adding irrelevant rows (RowAug) and distracting columns (ColAug). Most critically, Information Modification (InfMut) is used to create "Imperfect" tables by intentionally deleting required data or injecting contradictions.
The TabularMath Benchmark
Using the AUTOT2T pipeline, we developed TabularMath, a benchmark comprising 6,782 samples categorized into four subsets:
- Complexity Levels (Easy, Medium, Hard): Subsets with increasing structural complexity, defined by the number of rows and columns.
- Imperfect Data: A subset specifically designed to test robustness, containing "missing-type" and "contra-type" (contradictory) data.
- Multimodal Representations: The benchmark includes both text-based tables and image-based tables (rendered via matplotlib) to evaluate the vision-language capabilities of modern models.
Analysis and Results
Our evaluation of state-of-the-art LLMs on TabularMath yielded several critical insights into the current state of tabular reasoning.
The Retrieval-Reasoning Bottleneck
A significant performance gap exists between "pure retrieval" (locating a specific cell) and "joint reasoning" (locating a cell and using it in a multi-step calculation). As table complexity increases, accuracy drops sharply. For instance, Qwen2.5-14B, which scores 93.4% on text-based GSM8K, drops to 70.1% on the "Easy" tabular subset and further to 49.1% on the "Hard" subset.
Robustness and Hallucination
In the "Imperfect" subset, models frequently failed to identify unanswerable questions. Instead of rejecting the prompt, many models produced confident but fabricated answers, with error rates exceeding 50% in scenarios with missing data. Interestingly, when models were explicitly warned about potential imperfections, their performance on clean data decreased—a "paranoia" effect where they over-identify traps in valid data.
Format and Modality
For text-based tables, structured formats like JSON and Serialized key-value pairs consistently outperformed Markdown. The visual delimiters in Markdown (e.g., |) often introduce parsing ambiguities for LLMs. Furthermore, even advanced multimodal models found text-based tables easier to process than image-based ones, likely due to the added complexity of OCR and layout interpretation in the visual domain.
Conclusion and Future Directions
This study highlights that tabular reasoning remains a significant challenge for LLMs, primarily due to the bottleneck between data retrieval and mathematical processing. While synthetic data from the AUTOT2T pipeline can improve performance (showing a ~15% gain after fine-tuning), several areas for future research remain:
- Multi-table Reasoning: Extending tasks to require cross-referencing between multiple tables or sheets.
- Improved Discrimination: Developing models that can reliably detect data flaws without sacrificing accuracy on valid inputs.
- Visual Diversity: Exploring more varied visual styles for image-based tables to better reflect the diversity of real-world documents.
Summary updated