English

InstructExcel: A Benchmark for Natural Language Instruction in Excel

Computation and Language 2023-10-24 v1 Artificial Intelligence

Abstract

With the evolution of Large Language Models (LLMs) we can solve increasingly more complex NLP tasks across various domains, including spreadsheets. This work investigates whether LLMs can generate code (Excel OfficeScripts, a TypeScript API for executing many tasks in Excel) that solves Excel specific tasks provided via natural language user instructions. To do so we introduce a new large-scale benchmark, InstructExcel, created by leveraging the 'Automate' feature in Excel to automatically generate OfficeScripts from users' actions. Our benchmark includes over 10k samples covering 170+ Excel operations across 2,000 publicly available Excel spreadsheets. Experiments across various zero-shot and few-shot settings show that InstructExcel is a hard benchmark for state of the art models like GPT-4. We observe that (1) using GPT-4 over GPT-3.5, (2) providing more in-context examples, and (3) dynamic prompting can help improve performance on this benchmark.

Keywords

Cite

@article{arxiv.2310.14495,
  title  = {InstructExcel: A Benchmark for Natural Language Instruction in Excel},
  author = {Justin Payan and Swaroop Mishra and Mukul Singh and Carina Negreanu and Christian Poelitz and Chitta Baral and Subhro Roy and Rasika Chakravarthy and Benjamin Van Durme and Elnaz Nouri},
  journal= {arXiv preprint arXiv:2310.14495},
  year   = {2023}
}

Comments

Findings of EMNLP 2023, 18 pages

R2 v1 2026-06-28T12:58:20.256Z