SpreadsheetCoder: Formula Prediction from Semi-structured Context

By Xinyun Chen, Petros Maniatis, Rishabh Singh, Charles Sutton, Hanjun Dai, Maxwell Lin, Denny Zhou. 2021

65 citations recorded by the source corpus.

Spreadsheet formula prediction has been an important program synthesis problem with many real-world applications. Previous works typically utilize input-output examples as the specification for spreadsheet formula synthesis, where each input-output pair simulates a separate row in the spreadsheet. However, this formulation does not fully capture the rich context in real-world spreadsheets. First, spreadsheet data entries are organized as tables, thus rows and columns are not necessarily independent from each other. In addition, many spreadsheet tables include headers, which provide high-level descriptions of the cell data. However, previous synthesis approaches do not consider headers as part of the specification. In this work, we present the first approach for synthesizing spreadsheet formulas from tabular context, which includes both headers and semi-structured tabular data. In particular, we propose SpreadsheetCoder, a BERT-based model architecture to represent the tabular context in both row-based and column-based formats. We train our model on a large dataset of spreadsheets, and demonstrate that SpreadsheetCoder achieves top-1 prediction accuracy of 42.51%, which is a considerable improvement over baselines that do not employ rich tabular context. Compared to the rule-based system, SpreadsheetCoder assists 82% more users in composing formulas on Google Sheets.

Subfields: Software, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Software

  1. Luke S. Zettlemoyer
  2. Oleksandr Polozov
  3. Henryk Michalewski
  4. Michele Catasta
  5. Ruiqi Zhong
  6. Percy Liang
  7. Eric Wallace
  8. Shao-Hua Sun

In Natural Language Processing

  1. Luke S. Zettlemoyer
  2. Percy Liang
  3. Wen-tau Yih
  4. Graham Neubig
  5. Jonathan Berant
  6. Mohit Bansal
  7. Michael Lewis
  8. Yejin Choi

Citations in the corpus