Back to the Future: A workbook time machine for spread- sheet creation benchmarks

Mansi Uniyal, Agamdeep Singh, Ananya Singha, Priyanshu Gupta, Mukul Singh, Gust Verbruggen, Vu Le, Sumit Gulwani

TL;DR

Researchers at Microsoft have developed the Workbook Time Machine (WTM), a pipeline that reverse-engineers real-world spreadsheets to create high-fidelity benchmarks for Large Language Models (LLMs). By stripping derived objects like formulas and charts from existing workbooks to generate task instructions, they created WTM-BENCH, revealing that while frontier models handle basic formulas well, they struggle significantly with complex artifacts like pivot tables and abstract, human-like queries.

What Problem Does This Paper Address?

Spreadsheets are the world’s most popular low-code platform, yet evaluating how well AI agents can actually build them has been difficult. Existing benchmarks typically suffer from three main flaws:

  1. Lack of Realism: They often use simple, hand-crafted files rather than the messy, multi-sheet workbooks used by actual professionals.
  2. Narrow Scope: Many focus solely on data entry or basic formulas, ignoring complex features like pivot tables, conditional formatting, and charts.
  3. Fixed Specificity: They don't account for the fact that human instructions range from "Calculate BMI in cell D2" (highly specific) to "Plot the BMI trend" (abstract).

The WTM pipeline addresses these gaps by using real-world data to create "triples" consisting of an input workbook, a target output workbook, and a natural language query.

Methods

The "Time Machine" operates in two main phases:

  • The Backward Step (Decomposition): The system takes a finished, user-authored workbook and systematically removes derived artifacts (formulas, charts, etc.) to recover the raw data. It then constructs an Edit DAG (Directed Acyclic Graph) to model all plausible histories of how that workbook could have been built, using dependency-aware pruning to ensure the steps make sense (e.g., you can't create a chart for a column that hasn't been calculated yet).
  • The Forward Step (Query Generation): The pipeline samples transformations from these histories. An LLM is used to generate instructions at three levels of specificity:
  • Level 1 (Fully Specified): Includes all parameters, cell ranges, and formulas.
  • Level 2 (Moderately Specified): Provides essential context but omits incidental details.
  • Level 3 (Minimal/Abstract): Reflects concise, human-like requests.
Figure 1: Example of creating a benchmark with the workbook time machine, which removes objects from a workbook (left) and then generates an instruction that describes the removed objects.

Datasets

The authors applied their pipeline to the Enron and FUSE corpora to produce:

  • WTM-CORPUS: A massive collection of 8,931 queries across 2,977 unique tasks.
  • WTM-BENCH: A curated, balanced evaluation subset of 150 tasks (450 total queries). Unlike the raw corpus, which is dominated by formulas, WTM-BENCH is rebalanced to ensure significant representation of charts, pivot tables, and conditional formatting.

The paper includes a comparison of WTM-BENCH against existing benchmarks, highlighting its superior coverage of real-world workbook structures and diverse artifact types.

Key Insights and Ideas

  • API Choice is a Performance Bottleneck: The researchers found that the interface used to control Excel (Python/OpenPyXL vs. VBA vs. OfficeJS) fundamentally changes model performance. Native APIs like VBA and OfficeJS provide "richer primitives"—for example, a single VBA call can create a pivot table, whereas a Python agent must orchestrate complex Pandas operations, increasing the chance of compounding errors.
  • The "Pivot Table Wall": Across all models tested, pivot tables remain nearly unsolved, with "Soft Scores" often falling below 10%. This suggests a fundamental reasoning gap in how LLMs handle multi-step coordination (identifying sources, selecting fields, and defining aggregations).
  • Hallucinated Success: A particularly concerning finding was that models frequently claim they have successfully completed a task when they have actually failed structurally. This "hallucinated success" reached as high as 80.7% for Claude rollouts and 43.2% for GPT.
  • Instruction Asymmetry: While direct code generation works well for highly detailed (Level 1) instructions, agentic approaches (multi-turn loops with feedback) are significantly better at handling abstract (Level 3) queries.

Key Results

The authors evaluated six frontier models, including Claude 4.5/4.6 and GPT-5.2/5.4 Reasoning.

  • Top Performer: Claude Opus 4.6 using the VBA API achieved the highest scores (33.7% Hard Score, 54.0% Soft Score).
  • Complexity Scaling: Performance degrades monotonically as task complexity increases. While models handle 1-2 artifact transformations reasonably well, scores collapse for workflows requiring 5 or more transformations.
  • Failure Modes: Most failures (88.5%) are structural—either the artifact is missing entirely or placed at the wrong coordinates—rather than numerical (wrong values).
WTM-BENCH achieves better artifact distribution

Limitations and Future Work

The current version of WTM-BENCH focuses on the creation of artifacts. The authors acknowledge that future iterations should expand to include the full CRUD (Create, Read, Update, Delete) lifecycle, such as modifying or deleting existing spreadsheet objects.

Additionally, they suggest that the multi-level query design provides a natural path for curriculum learning, where models are trained on detailed Level 1 instructions before being progressively exposed to more abstract, challenging Level 3 formulations. Finally, they aim to improve "formula descriptor detection" to prevent the model from "cheating" by reading labels (like a "Total" cell) that might leak information about the required transformation.

Summary updated

BibTeX
@inproceedings{uniyal2026back,
  author = {Mansi Uniyal and Agamdeep Singh and Ananya Singha and Priyanshu Gupta and Mukul Singh and Gust Verbruggen and Vu Le and Sumit Gulwani},
  title = {{Back to the Future: A workbook time machine for spread- sheet creation benchmarks}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=7COs0aR7ra},
}
Figure