Skip to main content
QUICK REVIEW

[Paper Review] SheetCopilot: Bringing Software Productivity to the Next Level through Large Language Models

Hongxin Li, Jingran Su|arXiv (Cornell University)|May 30, 2023
Spreadsheets and End-User ComputingComputer Science6 citations
TL;DR

SheetCopilot is an LLM-powered agent that automates spreadsheet tasks via natural language instructions by decomposing requests into atomic actions and using a state machine-based planning framework. It achieves 44.3% task success rate on a curated benchmark of 221 real-world spreadsheet tasks, significantly outperforming code-generation baselines.

ABSTRACT

Computer end users have spent billions of hours completing daily tasks like tabular data processing and project timeline scheduling. Most of these tasks are repetitive and error-prone, yet most end users lack the skill to automate these burdensome works. With the advent of large language models (LLMs), directing software with natural language user requests become a reachable goal. In this work, we propose a SheetCopilot agent that takes natural language task and control spreadsheet to fulfill the requirements. We propose a set of atomic actions as an abstraction of spreadsheet software functionalities. We further design a state machine-based task planning framework for LLMs to robustly interact with spreadsheets. We curate a representative dataset containing 221 spreadsheet control tasks and establish a fully automated evaluation pipeline for rigorously benchmarking the ability of LLMs in software control tasks. Our SheetCopilot correctly completes 44.3\% of tasks for a single generation, outperforming the strong code generation baseline by a wide margin. Our project page:https://sheetcopilot.github.io/.

Motivation & Objective

  • To enable large language models to reliably control spreadsheet applications through natural language instructions.
  • To address the lack of standardized frameworks and comprehensive benchmarks for evaluating LLMs in software control tasks.
  • To reduce the burden of repetitive, error-prone spreadsheet tasks for non-technical end users.
  • To develop a robust, automated evaluation pipeline for measuring LLM performance in interactive software control.
  • To provide a generalizable framework for LLM-software interaction applicable beyond spreadsheets.

Proposed method

  • Proposes a set of atomic actions as an abstraction of spreadsheet functionalities, enabling precise command generation.
  • Designs a state machine-based task planning framework that allows LLMs to generate and revise action sequences based on feedback.
  • Curates a dataset of 221 real-world spreadsheet tasks collected from superuser.com with verified ground-truth solutions.
  • Establishes a fully automated evaluation pipeline that validates task correctness through execution and feedback simulation.
  • Uses a feedback loop where the agent observes cell states, exceptions, and errors to adjust plans dynamically.
  • Employs a modular architecture where the LLM plans actions, and a controller executes them via a spreadsheet interface.

Experimental results

Research questions

  • RQ1Can LLMs accurately interpret complex, natural language requests for spreadsheet manipulation and generate correct, executable command sequences?
  • RQ2How does the state machine-based planning framework improve robustness and success rates in multi-step spreadsheet tasks?
  • RQ3To what extent does the proposed benchmark and evaluation pipeline enable reliable, scalable measurement of LLM performance in software control?
  • RQ4How do different LLMs perform on real-world spreadsheet tasks compared to traditional code-generation baselines?
  • RQ5What are the primary failure modes in LLM-driven spreadsheet automation, and how can they be diagnosed and mitigated?

Key findings

  • SheetCopilot achieves a 44.3% success rate on 221 real-world spreadsheet tasks using a single LLM generation, significantly outperforming strong code-generation baselines.
  • The agent successfully generates fully executable command sequences for 87.3% of the benchmark tasks, indicating strong plan generation capability.
  • Major failure modes include incorrect action selection (33.7% of failures), incomplete solutions (e.g., missing chart titles), and repeated actions due to poor feedback handling.
  • GPT-3.5-Turbo frequently makes errors such as using wrong cell ranges, misapplying filters, or incorrectly auto-filling columns.
  • The evaluation pipeline enables automated, reliable, and scalable assessment of LLM performance in interactive software control tasks.
  • Limitations include high token consumption, limited state feedback (ignoring charts, pivot tables, etc.), and incomplete support for all Excel features in the evaluation environment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.