非程序员可通过主动示例间接标注程序:以Text-to-SQL为例
Non-Programmers Can Label Programs Indirectly via Active Examples: A Case Study with Text-to-SQL
AI总结:
提出APEL框架,让非程序员通过选择输入-输出示例间接标注程序,在SPIDER数据集上达到75%准确率并发现原标注错误。
摘要:
非程序员能否用表示自然语言话语含义的复杂程序来标注这些话语?我们提出了APEL框架,非程序员在其中从种子语义解析器(例如Codex)生成的候选程序中进行选择。由于他们无法理解候选程序,我们要求他们通过检查程序的输入-输出示例来间接选择。对于每个话语,APEL主动搜索一个简单输入,候选程序往往会在该输入上产生不同的输出。然后,它仅要求非程序员选择适当的输出,从而使我们能够推断哪个程序是正确的,并可用于微调解析器。作为首个案例研究,我们招募了人类非程序员使用APEL重新标注SPIDER,这是一个text-to-SQL数据集。我们的方法达到了与原始专家标注者相同的标注准确率(75%),并暴露了原始标注中的许多细微错误。
英文摘要:
Can non-programmers annotate natural language utterances with complex programs that represent their meaning? We introduce APEL, a framework in which non-programmers select among candidate programs generated by a seed semantic parser (e.g., Codex). Since they cannot understand the candidate programs, we ask them to select indirectly by examining the programs' input-ouput examples. For each utterance, APEL actively searches for a simple input on which the candidate programs tend to produce different outputs. It then asks the non-programmers only to choose the appropriate output, thus allowing us to infer which program is correct and could be used to fine-tune the parser. As a first case study, we recruited human non-programmers to use APEL to re-annotate SPIDER, a text-to-SQL dataset. Our approach achieved the same annotation accuracy as the original expert annotators (75%) and exposed many subtle errors in the original annotations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。