Understanding human language is one of the key themes of artificial intelligence. For language representation, the capacity of effectively modeling the linguistic knowledge from the detail-riddled and lengthy texts and getting rid of the noises is essential to improve its performance. Traditional attentive models attend to all words without explicit constraint, which results in inaccurate concentration on some dispensable words. In this work, we propose using syntax to guide the text modeling by incorporating explicit syntactic constraints into attention mechanisms for better linguistically motivated word representations. In detail, for self-attention network (SAN) sponsored Transformer-based encoder, we introduce syntactic dependency of interest (SDOI) design into the SAN to form an SDOI-SAN with syntax-guided self-attention. Syntax-guided network (SG-Net) is then composed of this extra SDOI-SAN and the SAN from the original Transformer encoder through a dual contextual architecture for better linguistics inspired representation. The proposed SG-Net is applied to typical Transformer encoders. Extensive experiments on popular benchmark tasks, including machine reading comprehension, natural language inference, and neural machine translation show the effectiveness of the proposed SG-Net design.
翻译:理解人类语言是人工智能的关键主题之一。对于语言代表而言,从细节和长篇文本中有效地模拟语言知识并消除噪音的能力对于改进其表现至关重要。传统关注模式无明显限制地关注所有字词,导致不准确地集中使用某些可解释的字眼。在这项工作中,我们提议使用语法来指导文本模型,将明确的综合限制纳入关注机制,以更好地激发语言动机的字眼表达。具体而言,对于自我关注网络(SAN)赞助的基于变异器的编码器,我们在SAN中引入兴趣的综合依赖(SDOI)设计,以形成一个带有同步税制引导自我注意的SDOI-SAN。 语法指导网络(SG-Net)随后由这个额外的SDOI-SAN和原变异器编码器的SAN组成,通过一个双重背景结构来更好地激发语言的表达。拟议的SG-Net用于典型的变异器编码器编码。我们在SAN中引入了对大众基准任务的广泛实验,包括机器阅读、自然语言的翻译。