SheetCompass: Hierarchical Relation Graphs for Agentic Spreadsheet Reasoning
SheetCompass is a graph-guided, memory-driven agentic framework that addresses the limitations of existing LLM-based spreadsheet reasoning by explicitly modeling hierarchical structural relationships and spatial contexts within and across worksheets to enable more effective automation of complex workbooks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Puzzle of the Digital Spreadsheet
Imagine you are trying to teach a super-smart robot how to read a messy, multi-page spreadsheet. In the world of Artificial Intelligence, this is a bit like asking a detective to solve a crime by reading a list of words that were ripped out of a book and shuffled into a single line. Spreadsheets are special because they aren't just lists of data; they are visual maps. They have rows, columns, and hidden connections between different pages that tell a story about money, sales, or inventory. For a human, looking at a spreadsheet is like scanning a city map: you instantly see how the "Sales" street connects to the "Prices" avenue. But for a Large Language Model (LLM)—the kind of AI that writes poems and answers questions—spreadsheets are often a nightmare. When we feed these models a spreadsheet, we usually flatten it into a long string of text, like turning a 3D building into a flat piece of paper. In doing so, we lose the "where" and the "how" of the data. The robot forgets that a number in the top left belongs to a category in the bottom right, or that two different sheets are actually talking to each other. This paper, titled SheetCompass, asks a simple but crucial question: How do we teach an AI to see the map again, rather than just reading the list of words?
The Paper's Story: Building a Compass for the AI
The authors of this paper, working at the University of Science and Technology of China, realized that the problem wasn't that the AI wasn't smart enough; it was that the AI was looking at the spreadsheet the wrong way. They argue that treating a spreadsheet like a simple text document strips away the very structure that makes it useful. To fix this, they built a new system called SheetCompass. Think of SheetCompass not as a robot that just reads, but as a team of three expert explorers working together with a custom-made map.
First, the team had to solve the "flat text" problem. Instead of feeding the AI a long, confusing paragraph, SheetCompass turns the spreadsheet into a hierarchical graph. Imagine a spreadsheet as a messy room full of furniture. Traditional methods try to describe the room by listing every object in a single sentence: "chair, table, lamp, chair, table..." SheetCompass, however, builds a 3D model of the room. It creates a "Table Node" for the whole table and "Column Nodes" for the headers, then draws lines connecting them. It even draws special "semantic lines" between columns that look different but mean the same thing (like "Price" on one sheet and "Cost" on another), even if they are far apart. This creates a stable, structured skeleton that the AI can navigate without getting lost.
But having a map isn't enough; the explorers need to know how to use it. SheetCompass introduces a dual-level memory system. One part of the memory is like a library of expert rules (Expert Knowledge), teaching the AI things like "don't delete rows, just hide them" or "how to calculate a pivot table." The other part is a diary of past mistakes (Reasoning Experience), where the system remembers what went wrong in previous attempts so it doesn't repeat the same error. This is like a student who not only has a textbook but also keeps a notebook of their own test corrections.
Finally, the system brings in the multi-agent team. Instead of one AI trying to do everything, SheetCompass splits the job into three roles:
- The Navigator (Explorer): This agent looks at the graph map, finds the right columns and tables, and figures out the order of steps needed to solve the problem.
- The Builder (Programmer): This agent takes the plan and writes the actual code to do the math or create the charts, making sure it sticks strictly to the map so it doesn't invent fake data.
- The Inspector (Reflector): This is the safety guard. After the code runs, the Inspector checks the results against a checklist. If the math looks weird (like subtracting a tiny decimal from a huge price), the Inspector stops the process, says "Wait, that doesn't make sense," and sends the team back to fix it.
What They Found
The researchers tested SheetCompass on several difficult datasets that included complex spreadsheets with multiple tables and tricky instructions. They compared their new system against other popular AI methods, including those that just write code in one go or use simpler agent loops. The results were clear: SheetCompass was significantly better at getting the job done right the first time.
In their tests, when using a powerful AI model (GPT-4), SheetCompass achieved a success rate of 63.2% on one major benchmark (SCB), beating the next best method which only got 61.1%. On another tough test (SB) that required the AI to pass every single check in a series of trials, SheetCompass improved the success rate to 18.3%, a big jump from the previous best of 13.5%. When they used an even more advanced model (GPT-5), the gap widened, with SheetCompass reaching 71.3% on the SCB benchmark and 22.0% on the hard SB benchmark.
The paper also ran "ablation studies," which are like taking apart a machine to see which part is most important. They found that if they removed the graph map, the system's performance dropped sharply, proving that the map is the most critical piece. They also found that the Inspector (Reflector) was vital; without it, the system made more mistakes because it couldn't catch its own errors.
Why It Matters
The authors suggest that the key to making AI good at spreadsheets isn't just making the AI smarter, but giving it a better way to see the data. By turning flat text into a structured graph and using a team of specialized agents to check each other's work, SheetCompass bridges the gap between how humans naturally read tables and how computers process information. The paper doesn't claim to have solved every spreadsheet problem in the world, but it shows that this new approach of "structural perception" combined with "collaborative reasoning" is a powerful way forward. It suggests that for AI to truly master the messy, real-world tools we use every day, it needs to stop reading lists and start reading maps.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.