FormaT5:面向自然语言条件表格格式化的弃权与示例方法
FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Language
AI总结:
FormaT5 通过弃权预测占位符并结合示例填充机制,解决自然语言条件格式化规则生成中的欠指定问题,在 1053 个真实 CF 任务基准上优于 8 种神经方法。
摘要:
格式化是表格在可视化、展示和分析中的一个重要属性。电子表格软件允许用户通过编写数据相关的条件格式化(CF)规则来自动格式化其表格。编写此类规则对用户而言通常具有挑战性,因为这要求他们理解并实现底层逻辑。我们提出了 FormaT5,这是一个基于 Transformer 的模型,能够在给定目标表格和所需格式化逻辑的自然语言描述的情况下生成 CF 规则。我们发现,用户对这些任务的描述往往不够具体或存在歧义,这使得代码生成系统更难在单一步骤中准确学习所需规则。为了解决这种欠指定问题并尽量减少参数错误,FormaT5 通过弃权(不执行)目标来学习预测占位符。这些占位符随后可以由第二个模型填充,或者当存在应当被格式化的行的示例时,由示例编程系统填充。为了在多样且真实的场景中评估 FormaT5,我们创建了一个包含 1053 个 CF 任务的广泛基准,其中包含从四个不同来源收集的真实世界描述。我们发布了我们的基准,以鼓励该领域的研究。弃权和填充使 FormaT5 在我们的基准上(无论是否使用示例)均优于 8 种不同的神经方法。我们的结果说明了构建领域特定学习系统的价值。
英文摘要:
Formatting is an important property in tables for visualization, presentation, and analysis. Spreadsheet software allows users to automatically format their tables by writing data-dependent conditional formatting (CF) rules. Writing such rules is often challenging for users as it requires them to understand and implement the underlying logic. We present FormaT5, a transformer-based model that can generate a CF rule given the target table and a natural language description of the desired formatting logic. We find that user descriptions for these tasks are often under-specified or ambiguous, making it harder for code generation systems to accurately learn the desired rule in a single step. To tackle this problem of under-specification and minimise argument errors, FormaT5 learns to predict placeholders though an abstention objective. These placeholders can then be filled by a second model or, when examples of rows that should be formatted are available, by a programming-by-example system. To evaluate FormaT5 on diverse and real scenarios, we create an extensive benchmark of 1053 CF tasks, containing real-world descriptions collected from four different sources. We release our benchmarks to encourage research in this area. Abstention and filling allow FormaT5 to outperform 8 different neural approaches on our benchmarks, both with and without examples. Our results illustrate the value of building domain-specific learning systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。