arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.08696cs.CL
收藏

基于代码训练语言模型的Few-Shot语义解析

Few-Shot Semantic Parsing with Language Models Trained On Code

Microsoft Semantic Machines(微软语义机器公司)

Richard Shin, Benjamin Van Durme

摘要:

当提示上下文示例时,大语言模型可以用很少的训练数据执行语义解析。已经表明,这可以通过将问题公式化为释义到规范话语中来改进,这将潜在的含义表示转换为受控的自然语言样表示。直觉上,这样的模型可以更容易地输出规范的话语,因为它们更接近用于预训练的自然语言。最近,像OpenAI Codex这样的预先训练过代码的模型已经崭露头角。对于语义解析任务,我们映射到代码的自然语言,这样的模型可能会证明更善于it. In本文中,我们测试了这一假设,并发现,法典执行更好的比等价的GPT-3模型在这样的任务。我们对Overnight和SMCalFlow进行了评估,发现与GPT-3不同,Codex在直接针对意义表示时的表现类似,这可能是因为意义表示的结构与这些数据集中的代码相似。

英文摘要:

Large language models can perform semantic parsing with little training data, when prompted with in-context examples. It has been shown that this can be improved by formulating the problem as paraphrasing into canonical utterances, which casts the underlying meaning representation into a controlled natural language-like representation. Intuitively, such models can more easily output canonical utterances as they are closer to the natural language used for pre-training. Recently, models also pre-trained on code, like OpenAI Codex, have risen in prominence. For semantic parsing tasks where we map natural language into code, such models may prove more adept at it. In this paper, we test this hypothesis and find that Codex performs better on such tasks than equivalent GPT-3 models. We evaluate on Overnight and SMCalFlow and find that unlike GPT-3, Codex performs similarly when targeting meaning representations directly, perhaps because meaning representations are structured similar to code in these datasets.

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

↑