Towards Robust Real-World Spreadsheet Understanding with Multi-Agent Multi-Format Reasoning

Houxing Ren, Mingjie Zhan, Zimu Lu, Ke Wang, Yunqiao Yang, Haotian Hou, Hongsheng LiarXiv 2026

TL;DR

The paper introduces SpreadsheetAgent, a novel two-stage multi-agent framework designed to master complex, large-scale spreadsheets by breaking them down into localized regions. By combining code execution, visual analysis, and LaTeX parsing with an iterative verification loop, it overcomes LLM context-window limits and preserves crucial layout semantics. The framework achieves state-of-the-art performance on challenging benchmarks, significantly outperforming existing LLM baselines.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at processing text, they struggle with real-world spreadsheets. Standard approaches typically flatten tables into plain text formats like Markdown, HTML, or JSON. However, practical spreadsheets are rarely simple flat matrices; they feature multi-sheet structures, hierarchical headers, merged cells, and visual cues (such as font colors and shaded borders) that carry vital semantic meaning.

Furthermore, real-world spreadsheets often span thousands of rows and columns, easily exceeding the context length limits of current LLMs. This leaves a massive gap: models either lose structural context during serialization or fail entirely due to token overflow.

Methods

To tackle these challenges, the authors propose SpreadsheetAgent, which replaces the traditional "load-everything-at-once" approach with an incremental, step-by-step reading and reasoning paradigm.

Figure 1: Overview of the proposed multi-agent framework for spreadsheet understanding. An Extraction Agent incrementally parses the spreadsheet with the help of code execution, vision range description, and LATEX range description tools, while a Verification Agent cross-checks results using VLM-based and LLM-based range de- scriptions. Through iterative reflection and feedback, the system produces a faithful structural representation that preserves layout semantics under tight context budgets.

The framework operates in two main stages:

  1. Structure Extraction Stage: An Extraction Agent scans the spreadsheet region by region to build a compact structural sketch and row/column summaries in a clean, human-readable YAML format. To capture diverse data types, it delegates tasks to three specialized tools:
  2. Code Execution: Runs Python code to parse raw values and perform exact arithmetic computations.
  3. Vision Range Description Agent: Uses a Vision-Language Model (VLM) to interpret visual cues like cell shading and borders.
  4. LaTeX Range Description Agent: Converts complex regions into symbolic LaTeX tables to capture hierarchical headers and alignments faithfully.
  5. Verification Module: Before moving to downstream reasoning, a Verification Agent cross-checks the extracted YAML schema against the original table using VLM and LLM assistants. If inconsistencies are found, it provides targeted feedback to refine the extraction, preventing error propagation.

Finally, in the Solving Stage, the framework performs task-driven reasoning over this verified, semantically rich intermediate representation.

Datasets

The authors evaluated SpreadsheetAgent on two complex benchmarks:

  • SpreadsheetBench: A dataset containing 912 real-world questions sourced from Excel user forums. It features highly irregular layouts, pivot tables, charts, and multi-table sheets.
  • RealHiTBench: A specialized benchmark focused strictly on evaluating how well models handle complex, deeply nested hierarchical headers.

Key Insights and Ideas

  • Structure as a Scaffold: Explicitly extracting the table's layout into a structured YAML format drastically stabilizes downstream parsing and reasoning compared to relying on free-form text.
  • The Asymmetric Benefit of Extraction: A fascinating finding from the ablation studies revealed that weaker reasoning models benefit immensely from a powerful structure extractor (acting as an external scaffold), whereas a strong reasoner gains very little from a weak extractor.
  • Verification is Essential: Actively checking and refining the extracted structure via a closed-loop feedback mechanism prevents the model from hallucinating or misaligning data columns during final calculations.

Key Results

SpreadsheetAgent achieved new state-of-the-art results across multiple model backbones under both "Soft" and "Hard" evaluation restrictions:

Table 1: Main experimental results on SpreadsheetBench. We report accuracy under both Soft Restriction and Hard Restriction settings, further broken down into cell-level, sheet-level, and overall scores. Numbers for existing methods are taken from the SpreadsheetBench paper.
  • Top Performance: Powered by GPT-OSS-120B, SpreadsheetAgent achieved an overall accuracy of 38.16% on SpreadsheetBench, outperforming the ChatGPT Agent baseline (35.27%) by 2.89 absolute points.
  • Scale Flexibility: When paired with the massive Qwen3-Coder-480B, the framework reached 41.67% accuracy, demonstrating substantial improvements over standalone models and alternative methods like TreeThinker.

Limitations and Future Work

Despite its success, SpreadsheetAgent has a few notable limitations:

  • Foundation Model Dependency: The architecture relies heavily on advanced VLMs (like GLM-4.5V) that can simultaneously handle image inputs and reliable function calling. Such versatile models are currently scarce in the open-source community.
  • Lack of Distillation: The authors did not explore model distillation (transferring the reasoning capabilities of large agent traces into smaller, more efficient models), citing a lack of large-scale, realistic spreadsheet datasets required to train and evaluate smaller student models effectively.

Future research directions include developing adaptive strategies for tool invocation and optimizing region selection to make the process even more computationally efficient.

Summary updated

BibTeX
@misc{ren2026towards,
  author = {Houxing Ren and Mingjie Zhan and Zimu Lu and Ke Wang and Yunqiao Yang and Haotian Hou and Hongsheng Li},
  title = {{Towards Robust Real-World Spreadsheet Understanding with Multi-Agent Multi-Format Reasoning}},
  year = {2026},
  eprint = {2604.12282},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.12282},
}

Loading related content...

Figure