A Compact Formula-Aware Spreadsheet Abstraction for Large Language Models
Tie Cheng
Key points
From the paper's conclusion- We propose a compact formula-aware spreadsheet abstraction that represents large homogeneous ranges through their positions, types, R1C1 formula patterns, and selected boundary values.
Abstract
Large language models (LLMs) are increasingly used to assist spreadsheet users with tasks such as spreadsheet model construction, formula generation, and data analysis, yet their interaction with real-world spreadsheets remains limited by the mismatch between the structure of spreadsheets and the sequential textual representations typically provided to LLMs. We propose a compact formula-aware spreadsheet abstraction that represents large homogeneous ranges through their positions, types, R1C1 formula patterns, and selected boundary values. An efficient algorithm detects and structures these ranges before a textual serialization is supplied to an LLM. The abstraction is provided to the LLM before detailed spreadsheet content is submitted, improving the accuracy and efficiency of spreadsheet processing while reducing token consumption. We evaluate the method on 50 spreadsheet-query cases. The evaluation shows that the abstraction alone was sufficient to answer some queries. When additional spreadsheet content is required, the abstraction reduces the amount of data that must be submitted to the LLM, thereby reducing token consumption. The abstraction layer also improves the reliability and accuracy of spreadsheet processing. We conclude by discussing further techniques for combining spreadsheet static analysis with artificial intelligence to improve the reliability, accuracy, and efficiency of AI assisted spreadsheet tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- fxBench: Evaluating and Understanding Formula Suggestions in SpreadsheetsarXiv · 2026
- SheetAlign: Grounded Interaction and Stage-Isolated Learning for Spreadsheet AgentsarXiv · 2026
- LTEM: LLM-Friendly Table-Enhanced Markdown for Table Understanding and GenerationarXiv · 2026
- Claude for Excel is Transformative for Basic Spreadsheet Modeling and AnalysisarXiv · 2026
- MBABench-2.0: Evaluating AI Agents on Constructing Financial Spreadsheets Beyond Simple VerifiabilityarXiv · 2026
- Metadata-Driven AI: An Architectural Pattern for Sustainable Data Analysis with LLMsarXiv · 2026