AI
New Framework Teaches AI Models to Reason Over Complex Tables Using Spreadsheet Formulas
Researchers introduce Fortune, a reinforcement learning approach that trains LLMs to generate executable spreadsheet formulas for more accurate table reasoning and multi-step numerical computation.
Large language models have proven remarkably capable at many reasoning tasks, but they frequently stumble when asked to perform precise numerical calculations on structured tabular data. A new research framework aims to close this gap by leveraging the power of spreadsheet formulas as a reasoning mechanism.
The Challenge#
Tables remain one of the most common formats for storing and analyzing data, yet current LLMs struggle with multi-step numerical reasoning in complex tabular settings. While these models excel at retrieval and simple relational lookups, they often fail on tasks that require sophisticated calculation chains—the kind of operations that spreadsheet software handles naturally and reliably.
Introducing Formula Tuning#
Researchers have developed Fortune (Formula Tuning), a reinforcement learning framework that trains language models to generate executable spreadsheet formulas instead of relying solely on natural language reasoning. The approach treats formula generation as a learnable skill, using two signals to guide training:
- Execution success: whether the generated formula runs without error
- Answer correctness: whether the computed result matches the expected output
Building on this framework, the team trained a model variant called Formula-R1 and evaluated it across seven separate table reasoning benchmarks, demonstrating solid performance especially on tasks involving complex tables and multi-step calculations.
Combining Approaches for Better Results#
An enhanced version, Formula-R1-Plus, goes further by integrating both formula-based and textual reasoning pathways. This hybrid approach achieves additional performance gains by allowing the model to draw on both symbolic computation and natural language understanding.
Broader Implications#
The work highlights how reinforcement learning paired with executable symbolic representations—in this case, spreadsheet formulas—can meaningfully enhance LLM reasoning capabilities. Rather than asking models to reason about numbers purely through text, the framework gives them a formal language that maps directly to precise computation, potentially opening new directions for training AI systems on complex analytical tasks.

