Code generation aims to automatically generate a piece of code given an input natural language utterance. Currently, among dominant models, it is treated as a sequence-to-tree task, where a decoder outputs a sequence of actions corresponding to the pre-order traversal of an Abstract Syntax Tree. However, such a decoder only exploits the preorder traversal based preceding actions, which are insufficient to ensure correct action predictions. In this paper, we first throughly analyze the context modeling difference between neural code generation models with different traversals based decodings (preorder traversal vs breadth-first traversal), and then propose to introduce a mutual learning framework to jointly train these models. Under this framework, we continuously enhance both two models via mutual distillation, which involves synchronous executions of two one-to-one knowledge transfers at each training step. More specifically, we alternately choose one model as the student and the other as its teacher, and require the student to fit the training data and the action prediction distributions of its teacher. By doing so, both models can fully absorb the knowledge from each other and thus could be improved simultaneously. Experimental results and in-depth analysis on several benchmark datasets demonstrate the effectiveness of our approach. We release our code at https://github.com/DeepLearnXMU/CGML.
Flexibly-Structured Model for Task-Oriented Dialogues
University of Illinois at Chicago(伊利诺伊大学芝加哥分校);Uber AI(优步人工智能)
本文提出了一种新的面向任务的端到端对话系统结构。它是基于一个简单而实用,但非常有效的序列到序列的方法,其中语言理解和状态跟踪任务建模与结构化的复制增强顺序解码器和多标签解码器的每个插槽。策略引擎和语言生成任务在此之后被联合建模。复制增强的顺序解码器处理会话中的新值或未知值,而多标签解码器与顺序解码器相结合,确保了将值显式分配给时隙。在分类器的生成部分,采用了槽型二进制分类器来提高分类器的性能。该架构可扩展到真实场景,并通过实证评估显示,在剑桥餐厅数据集和斯坦福车载助手数据集\footnote{The code is available at \url{https://github.com/uber-research/FSDM}}上均实现了最先进的性能
Ghost Attractor Networks: Basin-Structured Dynamical Decoders for Closed-Loop Sequential Generation
KTH Royal Institute of Technology(瑞典皇家理工学院);Department of Production Engineering, KTH Royal Institute of Technology(瑞典皇家理工学院生产工程系);Department of Decision and Control Systems, KTH Royal Institute of Technology(瑞典皇家理工学院决策与控制系统系)
Tree-Structured Neural Machine for Linguistics-Aware Sentence Generation
University of Chinese Academy of Sciences(中国科学院大学);Department of Computer Science, University of California Santa Barbara(加州大学圣塔芭芭拉分校计算机科学系);WeChat Search Application Department, Tencent(腾讯微信搜索应用部)