Manuscript Offprint

arXiv:2608.14452

SheetCompass: Hierarchical Relation Graphs for Agentic Spreadsheet Reasoning

Panjing He, Mingyue Cheng, Yucong Luo, Li Li, Xiaohan Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract.

Spreadsheets are widely used to organize, analyze, and manipulate semi-structured data in real-world scenarios. However, automated spreadsheet reasoning remains a long-standing challenge for large language models (LLMs). Practical workbooks often feature a complex web of implicit cross-table associations and fine-grained column dependencies. To process them, existing methods typically flatten these multi-dimensional structures into sequential strings, which strips away the critical intra-sheet boundaries and inter-sheet semantics. As a result, LLMs are deprived of the global spatial layouts that human experts naturally leverage during visual scanning. To bridge this gap, we propose SheetCompass, a graph-guided and memory-driven agentic framework for spreadsheet automation reasoning. The key idea is to transform spreadsheets from raw tabular data into structured evidence spaces that can guide agent planning, execution, and reflection. Specifically, SheetCompass constructs a hierarchical graph to explicitly formalize implicit layouts into stable anchors at both the table and column levels, thereby mapping structural topologies while encoding spatial relations. To further enhance agent reliability, SheetCompass introduces a dual-level memory mechanism, which includes an expert knowledge memory that provides tool-use and domain knowledge and a reasoning experience memory that is dynamically updated from previous execution trajectories to support workflow evolution and prevent continuous mistakes. Based on these components, SheetCompass coordinates three specialized agents—the navigational explorer, logical programmer, and critical reflector—to handle perception, execution, and iterative verification. Driven by this multi-agent coordination, extensive empirical evaluations across various datasets demonstrate that SheetCompass achieves state-of-the-art performance in complex spreadsheet automation tasks. Our code is available at https://anonymous.4open.science/r/sheetcompass-411C.

Keywords:

Natural Language Processing, Spreadsheet Manipulation, Multi-Agent Workflow

References (54)