# A Compact Formula-Aware Spreadsheet Abstraction for Large Language Models

arXiv: https://arxiv.org/abs/2611.03705 · HTML: https://mlsanity.com/paper/2611.03705/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 7 of its 30 references that are in the map.
- Submitted 30 Oct 2026.

## Builds on (most cited first, 7 of 7)

- [TableLlama: Towards Open Large Generalist Models for Tables](https://mlsanity.com/paper/2311.09206/) (2023)
- [Table Meets LLM: Can Large Language Models Understand Structured Table Data? A Benchmark and Empirical Study](https://mlsanity.com/paper/2305.13062/) (2023)
- [TableSense: Spreadsheet Table Detection with Convolutional Neural Networks](https://mlsanity.com/paper/2106.13500/) (2021)
- [Experimenting with ChatGPT for Spreadsheet Formula Generation: Evidence of Risk in AI Generated Spreadsheets](https://mlsanity.com/paper/2309.00095/) (2023)
- [Large Language Models for Spreadsheets: Benchmarking Progress and Evaluating Performance with FLARE](https://mlsanity.com/paper/2506.17330/) (2025)
- [ChatGPT and Excel -- trust, but verify](https://mlsanity.com/paper/2309.00120/) (2023)
- [Leveraging Test Driven Development with Large Language Models for Reliable and Verifiable Spreadsheet Code Generation: A Research Framework](https://mlsanity.com/paper/2510.15585/) (2025)

## Abstract (arXiv)

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.
