GridBook: Natural Language Formulas for the Spreadsheet Grid

Human-LLM CollaborationAI-Assisted Decision-Making & AutomationSoftware Engineers & DevelopersData Scientists & Analysts

Document Title

GridBook: Natural Language Formulas for the Spreadsheet Grid

Document Information

  • Subject Area: Human-Computer Interaction, Natural Language Processing, Programming for Spreadsheet User Interfaces
  • Keywords: Spreadsheets, End-User Programming, Natural Language Programming, Data Analysis, Human-Computer Interaction, Natural Language Interfaces

Research Background and Problem

  • Problems and Challenges:

    • Current spreadsheets (e.g., Excel) are among the most widely used forms of programming. While they are relatively user-friendly, learning and using traditional formulas for complex tasks remains challenging.
    • Traditional tools for data analysis (e.g., Python, MATLAB) require explicit coding, increasing the cognitive burden for users outside computational fields.
    • Performing analysis with traditional programming languages or spreadsheet formulas often requires switching between "thinking about the analysis task" and "expressing the analysis," which increases the learning curve.
  • Significance:

    • Data analysis skills are increasingly becoming a core requirement across various fields, but many data analysts lack formal programming backgrounds.
    • Reducing the cognitive burden of expressing data analysis tasks can help users complete data processing tasks more efficiently.
  • Research Motivation:

    • To enable the use of natural language to express formulas within the spreadsheet grid, allowing users to manipulate data in a more intuitive way.
    • To explore the application and advantages of natural language as a programming language in end-user programming.

Solution

  • Main Approach:

    • Propose the GridBook system, which allows users to create formulas directly in the spreadsheet grid using natural language.
    • Combine a deep learning parser with a contextual inference mechanism to interpret analytical intent and infer necessary parameters from natural language input.
  • Innovations:

    1. Natural Language Formulas: GridBook is the first system to integrate natural language formulas within the spreadsheet grid, enabling the coexistence of natural language expressions and traditional spreadsheet formulas.
    2. Contextual Inference: The system leverages the spatial context of cells to infer omitted analytical parameters from natural language input.
    3. Advanced Analysis: GridBook supports building new queries on top of existing analysis results, with formulas automatically recalculated.
  • Implementation Steps and Key Techniques:

    1. Design Goals:
      • Lower the learning curve.
      • Syntax parsing with error tolerance.
      • Automatic recalculation when data or intermediate computations change.
      • A highly readable, document-like programming environment.
    2. System Architecture:
      • Context Provider: Extracts three types of contextual information—spreadsheet data tables, analysis tables, and adjacent columns—to assist natural language interpretation.
      • Natural Language Parser: Based on a deep learning model, parses user input in natural language to generate analytical intent and role labels.
      • Formula Generator: Converts parsing results into standard spreadsheet formulas, implemented via custom Excel functions.
    3. Implementation: GridBook is implemented as a web-based Excel add-in, using event listeners and remote parsing to return formula results.

Research Outcomes

  • Specific Achievements:

    • GridBook provides the first spreadsheet environment resembling the behavior of "computational notebooks," supporting the coexistence of natural language and formulas.
    • The system demonstrated potential in two comparative experiments, enabling users without computational backgrounds to quickly get started.
  • Experimental Results:

    1. Experiment A (Comparison with Excel):
      • For experienced spreadsheet users, there was no significant difference in task completion time or cognitive load for data analysis tasks.
      • Users believed that GridBook would be easier for beginners to learn.
    2. Experiment B (Comparison with Jupyter Python):
      • GridBook significantly reduced task completion time for data analysis compared to users familiar with Jupyter (p < 0.05); cognitive load showed no significant change.
    3. Failure Cases and Limitations:
      • Vocabulary issues (e.g., terms not correctly understood in context).
      • Insufficient combinatorial constraints (limitations between natural language formulas and other formulas or spreadsheet operations).
      • Lack of debugging and explanation mechanisms for natural language formulas.
  • Advantages:

    • Provides a more intuitive programming experience.
    • Lower learning curve and rapid adaptability.
    • Supports complex spreadsheet analysis tasks, avoiding the complexity of explicitly specifying ranges and operations.
  • Limitations and Future Directions:

    • Currently supports only English, with limited natural language parsing capabilities.
    • Integration with other spreadsheet operations needs improvement.
    • The interpretability of the user reasoning model requires further exploration.
    • Enhancing the diversity of training data for the model and supporting more complex queries.

Conclusion and Discussion

GridBook offers an end-user-friendly data analysis environment that significantly reduces the cognitive and time costs associated with traditional spreadsheets and computational notebook tools through natural language formulas. Future research should focus on optimizing the adaptability and interpretability of natural language models, as well as achieving seamless integration with traditional spreadsheet functionalities.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/iui/79964/2022

AdRecommended

Learn AI Coding at CodeNow

open_in_newOpen DOI Link
DOI: https://dl.acm.org/doi/10.1145/3490099.3511161
At a Glance

Paper Snapshot

fact_check
dataset
Source
IUI
calendar_month
Year
2022
emoji_events
Award
No award tagged
group
Authors
6 authors
sell
Subtopics
Human-LLM Collaboration, AI-Assisted Decision-Making & Automation
work
Professions
Software Engineers & Developers, Data Scientists & Analysts
article
Content Status
Full text indexed
hub
Related Papers
10 related papers