arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.00887cs.CLcs.LGcs.NE
收藏

结构化注意力网络

Structured Attention Networks

Harvard University(哈佛大学)

Yoon Kim, Carl Denton, Luong Hoang, Alexander M. Rush

摘要:

注意力网络已被证明是在深度神经网络中嵌入分类推理的有效方法。然而,对于许多任务,我们可能希望在不放弃端到端训练的情况下对更丰富的结构依赖进行建模。在这项工作中,我们尝试将更丰富的结构分布,使用图形模型编码,在深度网络中。我们表明,这些结构化的注意力网络是简单的扩展的基本注意力程序,他们允许扩展注意力超出标准的软选择方法,如参加部分分割或子树。我们用两种不同类型的结构化注意力网络进行实验:线性链条件随机场和基于图形的解析模型,并描述这些模型如何实际实现为神经网络层。实验表明,这种方法是有效的纳入结构性偏见,结构化注意力网络优于基线注意力模型的各种合成和真实的任务:树转换,神经机器翻译,问答,和自然语言推理。我们进一步发现,以这种方式训练的模型可以学习有趣的无监督隐藏表示,这些表示概括了简单的注意力。

英文摘要:

Attention networks have proven to be an effective approach for embedding categorical inference within a deep neural network. However, for many tasks we may want to model richer structural dependencies without abandoning end-to-end training. In this work, we experiment with incorporating richer structural distributions, encoded using graphical models, within deep networks. We show that these structured attention networks are simple extensions of the basic attention procedure, and that they allow for extending attention beyond the standard soft-selection approach, such as attending to partial segmentations or to subtrees. We experiment with two different classes of structured attention networks: a linear-chain conditional random field and a graph-based parsing model, and describe how these models can be practically implemented as neural network layers. Experiments show that this approach is effective for incorporating structural biases, and structured attention networks outperform baseline attention models on a variety of synthetic and real tasks: tree transduction, neural machine translation, question answering, and natural language inference. We further find that models trained in this way learn interesting unsupervised hidden representations that generalize simple attention.

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

↑