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

基于检索增强的可控语义解析

Controllable Semantic Parsing via Retrieval Augmentation

Google Research(谷歌研究院)

Panupong Pasupat, Yuan Zhang, Kelvin Guu

摘要:

在语义解析的实际应用中,我们经常希望快速改变解析器的行为,例如使其能够处理新领域中的查询,或者改变其对某些目标查询的预测。虽然我们可以引入展示目标行为的新的训练样本,但是用于在不进行昂贵的模型重新训练的情况下制定这样的行为改变的机制将是优选的。为此,我们提出了可控语义解析器通过范例检索(CASPER)。给定一个输入查询,解析器从检索索引中检索相关的范例,将它们添加到查询中,然后应用生成seq2seq模型来产生输出解析。范例作为一种控制机制,在一般的生成模型:通过操纵检索索引或如何构建增强查询,我们可以操纵的行为分析器。在MTOP数据集上,除了在标准设置上达到最先进的水平外,我们还展示了CASPER可以解析新领域中的查询,将预测适应指定的模式,或者适应新的语义模式,而无需进一步重新训练模型。

英文摘要:

In practical applications of semantic parsing, we often want to rapidly change the behavior of the parser, such as enabling it to handle queries in a new domain, or changing its predictions on certain targeted queries. While we can introduce new training examples exhibiting the target behavior, a mechanism for enacting such behavior changes without expensive model re-training would be preferable. To this end, we propose ControllAble Semantic Parser via Exemplar Retrieval (CASPER). Given an input query, the parser retrieves related exemplars from a retrieval index, augments them to the query, and then applies a generative seq2seq model to produce an output parse. The exemplars act as a control mechanism over the generic generative model: by manipulating the retrieval index or how the augmented query is constructed, we can manipulate the behavior of the parser. On the MTOP dataset, in addition to achieving state-of-the-art on the standard setup, we show that CASPER can parse queries in a new domain, adapt the prediction toward the specified patterns, or adapt to new semantic schemas without having to further re-train the model.

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

↑