cs.AIOct 3, 2026

CRAFT: An Agentic Spreadsheet Form Filling System with Template Awareness

Authors: Leyao Gu, Yingjie Xiong, Zirui Tang, Jiangtao Zhou, Yeye He, Chunwei Liu, Xuanhe Zhou, Fan Wu

Organizations: Shanghai Jiao Tong University · Microsoft Research · Purdue University

Abstract

Spreadsheet form filling requires agents to consolidate external evidence, ground values to precise cells, and preserve irregular template structure. Errors in early edits can overwrite labels or misalign fields, undermining later decisions. We propose CRAFT, a template-aware agent framework that connects reflective validation to constrained local repair. Instead of treating reflection as a free-form request to regenerate the workbook, CRAFT grounds detected errors to spreadsheet regions, restores corrupted template state when necessary, and re-grounds plausible writable slots before subsequent edits. A Rectangle-Aware Slot Grounder (RASG) proposes writable cells, while label-slot hints and protected regions constrain subsequent edits. We introduce FormFillBench, with 327 forms across Instruction-Only and Multi-File tracks. Compared with the strongest baselines, CRAFT improves pair accuracy by 8.51 and 23.38 percentage points on these tracks, respectively. Component-removal experiments support structural adjudication and slot re-grounding within the pipeline, and the framework retains its relative advantage among the methods evaluated with a second backbone. The code and benchmark FormFillBench are available at https://github.com/Glllllly/CRAFT.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SheetMind: Actions Set Accuracy, Agents Set the Failure Mode

    Jun 14, 2025Lyuhao Chen, Xi Cheng, Yanming Kang +11Multi-Agent LLM SystemsLLM Agent Evaluation

  2. SpreadsheetBench 2: Evaluating Agents on End-to-End Business Spreadsheet Workflows

    Jun 29, 2026Jian Zhu, Yuzheng Zhang, Zeyao Ma +11Benchmark DesignSpreadsheet Automation

  3. MBABench-2.0: Evaluating AI Agents on Constructing Financial Spreadsheets Beyond Simple Verifiability

    Oct 22, 2026Julian Poeltl, Thomson Yen, Patrick Shea +5Spreadsheet AutomationAI Agent Benchmarks