SheetBrain: A Neuro-Symbolic Agent for Accurate Reasoning over Complex and Large Spreadsheets
Ziwei Wang, Jiayuan Su, Mengyu Zhou, Huaxing Zeng, Mengni Jia, Xiao Lv, Haoyu Dong, Xiaojun Ma, Shi Han, Dongmei Zhang · 2025
Read SheetBrain: A Neuro-Symbolic Agent for Accurate Reasoning over Complex and Large Spreadsheets by Ziwei Wang, Jiayuan Su, Mengyu Zhou, Huaxing Zeng, Mengni Jia, Xiao Lv, Haoyu Dong, Xiaojun Ma, Shi Han, Dongmei Zhang (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-19247.txt.
Introduction
Ziwei Wang and nine co-authors present SheetBrain. It is an agent for reasoning over large spreadsheets. Language models often misread table structure. They also make reasoning slips on such sheets. Businesses need correct answers. They also need safe edits to the sheet itself.
SheetBrain splits the work in two. One module summarizes the sheet and frames the query. A second module works in a Python sandbox. It uses table tools and an Excel helper over several turns. Neural reading plus symbolic execution is the mix. Answers can be checked step by step.
Catalog record
| CREATOR | Ziwei Wang, Jiayuan Su, Mengyu Zhou, Huaxing Zeng, Mengni Jia, Xiao Lv, Haoyu Dong, Xiaojun Ma, Shi Han, Dongmei Zhang |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 97 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2510-19247
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
SheetBrain: A Neuro-Symbolic Agent for Accurate Reasoning over Complex and Large Spreadsheets Ziwei Wang, Jiayuan Su, Mengyu Zhou, Huaxing Zeng, Mengni Jia, Xiao Lv, Haoyu Dong, Xiaojun Ma, Shi Han, Dongmei Zhang Abstract Understanding and reasoning over complex spreadsheets remain fundamental challenges for large language models (LLMs), which often struggle with accurately capturing the complex structure of tables and ensuring reasoning correctness. In this work, we propose SheetBrain, a neuro-symbolic dual-workflow agent framework designed for accurate reasoning over tabular data, supporting both spreadsheet question answering and manipulation tasks. SheetBrain comprises three core modules: an understanding module, which produces a comprehensive overview of the spreadsheet—including sheet summary and query-based problem insight to guide reasoning; an execution module, which integrates a Python sandbox with preloaded table-processing libraries and an Excel helper toolkit for effective multi-turn reasoning; and a validation module, which verifies the correctness of reasoning and answers, triggering re-execution when necessary. We evaluate SheetBrain on multiple public tabular QA and manipulation benchmarks, and introduce SheetBench, a new benchmark targeting large, multi-table, and structurally complex spreadsheets. Experimental results show that SheetBrain significantly improves accuracy on both existing benchmarks and the more challenging scenarios presented in SheetBench. Our code is publicly available at https://github.com/microsoft/SheetBrain. Introduction Large language models (LLMs) have achieved remarkable success across diverse natural language understanding and generation tasks, particularly in domains involving unstructured text ( Xu et al. 2025 ; Wang et al. 2024 ; Pan et al. 2024 ) . However, their ability to understand and reason over complex spreadsheet data for question answering (QA) and manipulation remains a fundamental challenge ( Zhu et al. 2025 ; Chen et al. 2024 ; Li et al. 2023 ) . Real-world spreadsheets—especially Excel-like files—often contain multi-table layouts, hierarchical structures, lengthy content, and other complex formatting elements ( Wu et al. 2025b ; Li et al. 2024b ; Zhao et al. 2022 ; Cheng et al. 2021 ) . These factors significantly increase the difficulty of accurately capturing the table semantics and performing reliable reasoning, limiting the effectiveness of current LLM-based approaches. Model Complex Multi-table Large Sheet Edit Total Test Cases 21 20 20 8 69 Vanilla LLM: gpt-4.1 16 17 1 – 34 [.4pt/2pt] Proprietary Agents: BizChat Analyst 18 14 9 6 49 ChatGPT (4o) 13 8 9 – 34 [.4pt/2pt] Open-Sourced Agents: StructGPT (4.1) 12 1 0 – 13 SheetAgent (4.1) 11 10 10 4 35 SheetBrain (4.1, ours) 20 18 11 6 55 Table 1: Comparison results on our proposed benchmark Sheetbench . Reasoning over complex, multi-table, and large spreadsheets remains a significant challenge for existing LLM-based approaches. Prior works ( Chen et al. 2024 ; Jiang et al. 2023 ; Li et al. 2023 ) have shown that LLMs can perform QA and manipulation effectively on simple tables and handle basic instructions. However, they often struggle with challenging scenarios involving complex and large spreadsheets. This is empirically demonstrated in the examples summarized in Table 1 , where comparison results confirm that LLM-based methods still have significant room for improvement. From these cases, we identify three key findings: (1) These methods do not explicitly analyze the spreadsheet structure or understand the query context beforehand, so their reasoning tends to be blind and inefficient; (2) The proprietary agent BizChat ( Microsoft Corporation 2025 ) shows better performance on complex and large tables compared to vanilla LLMs by integrating symbolic code execution sandboxes; (3) The agents often rely on multi-step reasoning that is prone to getting stuck in local or narrow perspectives, lacking mechanisms for reflection. Figure 1: SheetBrain Pipeline. SheetBrain adopts a robust three-stage pipeline: understand, execute, and validate. It first constructs a global, query-aware understanding of the spreadsheet, then performs tool-augmented reasoning in a Python sandbox, and finally validates and refines its output through iterative self-correction. Inspired by these findings, we present SheetBrain, a unified neuro-symbolic framework that enhances LLMs’ ability to understand and reason over complex spreadsheets for QA and manipulation. As shown in Figure 1 , SheetBrain begins with an understanding module that generates a comprehensive overview of the spreadsheet, including a sheet summary and query-specific problem insights, which serve as a scaffold for high-level reasoning. Next, an execution module leverages a specialized Python sandbox integrated with preloaded table-processing libraries and a custom Excel helper toolkit to enable tool-augmented, multi-turn reasoning of tabular data. Finally, a validation module verifies the correctness of both reasoning and output, triggering re-execution with improvement feedback when necessary to avoid getting stuck in local errors and to improve reliability. These components bridge the gap between challenging tabular cases and reasoning capabilities of LLM agents, enabling more robust, accurate, and interpretable performance across diverse spreadsheet scenarios. To evaluate the effectiveness of SheetBrain, we conduct extensive experiments on several public spreadsheet QA and manipulation datasets. Additionally, we introduce SheetBench, a new benchmark specifically curated to reflect challenges such as large sheets, multi-table layouts, and deeply nested structures. Experimental results show that SheetBrain not only outperforms strong baselines—including vanilla LLMs and spreadsheet LLM-based agents—across public benchmarks, but also generalizes significantly better to the complex scenarios presented in SheetBench. We summarize our contribution as follows: • We propose SheetBrain , a novel spreadsheet agent based on an understand-execute-validate pipeline. It first generates a comprehensive overview of the spreadsheet, then passes it to a hybrid neuro-symbolic workflow execution module that integrates a Python sandbox along with dedicated libraries and toolkits for reasoning, and finally to a validation module for verification, triggering re-execution with improvement feedback when necessary. • We introduce SheetBench , a new benchmark comprising 69 challenging real-world spreadsheet QA and manipulation tasks, specifically designed to evaluate LLM performance on large-scale, structurally complex spreadsheets featuring multi-table layouts. Experimental results show that SheetBrain achieves state-of-the-art performance, outperforming vanilla LLMs such as GPT-4.1 ( OpenAI 2025a ) , o4-mini ( OpenAI 2025b ) , DeepSeek-R1 ( Guo et al. 2025 ) , and Qwen-3-32B ( Yang et al. 2025 ) , as well as prior open-source and proprietary spreadsheet agents across three public benchmarks. On SheetBench, SheetBrain demonstrates significantly superior performance, highlighting its capability to handle challenging sheets. • We conduct extensive experiments and analyses, including module ablations that demonstrate the importance of both understanding and validation, evaluations of different tool roles highlighting the neuro-symbolic workflow, and investigations into effective spreadsheet encoding strategies. These provide valuable insights and guidance for future spreadsheet agent designs. Additionally, we present case studies comparing existing proprietary agents with SheetBrain, revealing key findings. SheetBrain SheetBrain employs a robust three-stage pipeline: understand, execute, and validate. In the understanding stage, the LLM generates both a sheet summary and task-specific information to develop a global comprehension of the spreadsheet, laying the foundation for the subsequent stages. During execution, the LLM operates within a Python sandbox environment equipped with preloaded table-processing libraries and a customized Excel helper toolkit, enabling effective hybrid neuro-symbolic reasoning. In the validation stage, the LLM evaluates whether the execution reasoning and results are reasonable. If inconsistencies arise, the execution module incorporates feedback from the validation module to refine its reasoning and re-execute, iteratively enhancing the outcome. Understanding Module The understanding module serves as SheetBrain’s cognitive front-end, transforming a user query and raw spreadsheet data into valuable prior knowledge. As shown in Figure 2