arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.14853cs.CLcs.AI
收藏

NL2Formula:从自然语言查询生成电子表格公式

NL2Formula: Generating Spreadsheet Formulas from Natural Language Queries

Huazhong University of Science and Technology(华中科技大学);Microsoft(微软);Chongqing University(重庆大学);University of New South Wales(新南威尔士大学)

Wei Zhao, Zhitao Hou, Siyuan Wu, Yan Gao, Haoyu Dong, Yao Wan, Hongyu Zhang, Yulei Sui, Haidong Zhang

AI总结:

本文提出 NL2Formula 基准任务及数据集,用于根据自然语言查询生成电子表格公式,并通过 fCoder 模型验证了方法的有效性。

摘要:

在 Microsoft Excel 和 Google Sheets 等电子表格上编写公式,是用户进行数据分析时的普遍做法。然而,对于许多终端用户而言,编写电子表格公式仍然是一项繁琐且容易出错的任务,尤其是在处理复杂操作时。为了减轻编写电子表格公式的负担,本文提出了一个名为 NL2Formula 的新基准任务,其目标是在给定自然语言(NL)查询作为输入的情况下,生成以电子表格表格为基础的、可执行的公式。为了实现这一目标,我们构建了一个包含 70,799 对自然语言查询与相应电子表格公式的综合数据集,覆盖 21,670 张表格和 37 种公式函数。我们通过提供一个名为 fCoder 的序列到序列基线实现来完成 NL2Formula 任务。实验结果验证了 fCoder 的有效性,表明其性能优于基线模型。此外,我们还将 fCoder 与初始的 GPT-3.5 模型(即 text-davinci-003)进行了比较。最后,通过深入的错误分析,我们识别了 NL2Formula 任务中的潜在挑战,并呼吁开展进一步研究。

英文摘要:

Writing formulas on spreadsheets, such as Microsoft Excel and Google Sheets, is a widespread practice among users performing data analysis. However, crafting formulas on spreadsheets remains a tedious and error-prone task for many end-users, particularly when dealing with complex operations. To alleviate the burden associated with writing spreadsheet formulas, this paper introduces a novel benchmark task called NL2Formula, with the aim to generate executable formulas that are grounded on a spreadsheet table, given a Natural Language (NL) query as input. To accomplish this, we construct a comprehensive dataset consisting of 70,799 paired NL queries and corresponding spreadsheet formulas, covering 21,670 tables and 37 types of formula functions. We realize the NL2Formula task by providing a sequence-to-sequence baseline implementation called fCoder. Experimental results validate the effectiveness of fCoder, demonstrating its superior performance compared to the baseline models. Furthermore, we also compare fCoder with an initial GPT-3.5 model (i.e., text-davinci-003). Lastly, through in-depth error analysis, we identify potential challenges in the NL2Formula task and advocate for further investigation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑