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

上下文相关语义解析中检索与元学习的耦合

Coupling Retrieval and Meta-Learning for Context-Dependent Semantic Parsing

Sun Yat-sen University(中山大学);Microsoft Research Asia(微软亚洲研究院)

Daya Guo, Duyu Tang, Nan Duan, Ming Zhou, Jian Yin

摘要:

在本文中,我们提出了一种方法,将检索到的数据点作为上下文相关的语义解析的支持证据,如生成源代码的类环境的条件。我们的方法自然地结合了检索模型和元学习器,前者学习从训练数据中找到相似的数据点,后者将检索到的数据点视为快速适应的伪任务。具体来说,我们的检索器是一个上下文感知的编码器-解码器模型,具有考虑上下文环境的潜在变量,我们的元学习器学习在模型不可知的元学习范式中利用检索到的数据点进行快速适应。我们在CONCODE和CSQA数据集上进行了实验,其中上下文分别指JAVA代码中的类环境和会话历史。我们使用序列到动作模型作为基本语义解析器,它在两个数据集上都具有最先进的准确性。结果表明,上下文感知检索器和元学习策略都提高了准确性,并且我们的方法比检索和编辑基线更好。

英文摘要:

In this paper, we present an approach to incorporate retrieved datapoints as supporting evidence for context-dependent semantic parsing, such as generating source code conditioned on the class environment. Our approach naturally combines a retrieval model and a meta-learner, where the former learns to find similar datapoints from the training data, and the latter considers retrieved datapoints as a pseudo task for fast adaptation. Specifically, our retriever is a context-aware encoder-decoder model with a latent variable which takes context environment into consideration, and our meta-learner learns to utilize retrieved datapoints in a model-agnostic meta-learning paradigm for fast adaptation. We conduct experiments on CONCODE and CSQA datasets, where the context refers to class environment in JAVA codes and conversational history, respectively. We use sequence-to-action model as the base semantic parser, which performs the state-of-the-art accuracy on both datasets. Results show that both the context-aware retriever and the meta-learning strategy improve accuracy, and our approach performs better than retrieve-and-edit baselines.

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

↑