FLAME:一种用于电子表格公式的小型语言模型
FLAME: A small language model for spreadsheet formulas
AI总结:
FLAME是一个仅用Excel公式训练的小型语言模型,通过领域定制技术,以6000万参数和少量数据在公式修复、补全和检索任务上超越大型模型。
摘要:
电子表格是终端用户数据管理的重要工具。在这些环境中使用大型语言模型辅助编写公式可能很困难,因为这些模型训练成本高昂,且由于规模庞大(参数多达数十亿)而难以部署。我们提出了FLAME,一个仅在Excel公式上训练的基于Transformer的模型,它利用领域洞察力在显著更小(6000万参数)且训练数据少两个数量级的情况下实现了有竞争力的性能。我们使用草图去重技术策划了一个训练数据集,引入了一个针对Excel公式的分词器,并使用领域特定的掩码跨度预测和噪声自动编码作为预训练目标。我们在公式修复、公式补全和基于相似性的公式检索上评估了FLAME。在修复和补全任务的14个评估设置中,FLAME在10个设置上可以胜过更大的模型,如Codex的Davinci(175B)和Cushman(12B)变体以及CodeT5(220M)。对于公式检索,FLAME优于CodeT5、CodeBERT和GraphCodeBERT。
英文摘要:
Spreadsheets are a vital tool for end-user data management. Using large language models for formula authoring assistance in these environments can be difficult, as these models are expensive to train and challenging to deploy due to their size (up to billions of parameters). We present FLAME, a transformer-based model trained exclusively on Excel formulas that leverages domain insights to achieve competitive performance while being substantially smaller (60M parameters) and training on two orders of magnitude less data. We curate a training dataset using sketch deduplication, introduce an Excel-specific formula tokenizer, and use domain-specific versions of masked span prediction and noisy auto-encoding as pre-training objectives. We evaluate FLAME on formula repair, formula completion, and similarity-based formula retrieval. FLAME can outperform much larger models, such as the Davinci (175B) and Cushman (12B) variants of Codex and CodeT5 (220M), in 10 of 14 evaluation settings for the repair and completion tasks. For formula retrieval, FLAME outperforms CodeT5, CodeBERT, and GraphCodeBERT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。