vix.ing · top · new · best · stats · spec

Information Aggregation via Dynamic Routing for Sequence Encoding

2018/06/05 by Jingjing Gong, Gong, Jingjing, Xipeng Qiu +5 · 1 citation
Computer Science · #Advanced Malware Detection Techniques #Computation and Language (cs.CL) #FOS: Computer and information sciences #Machine Learning and Data Classification #Text and Document Classification Technologies

paper · pdf · doi:10.48550/arxiv.1806.01501

openalex publication_date 2018/06/05 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

While much progress has been made in how to encode a text sequence into a sequence of vectors, less attention has been paid to how to aggregate these preceding vectors (outputs of RNN/CNN) into fixed-size encoding vector. Usually, a simple max or average pooling is used, which is a bottom-up and passive way of aggregation and lack of guidance by task information. In this paper, we propose an aggregation mechanism to obtain a fixed-size encoding with a dynamic routing policy. The dynamic routing policy is dynamically deciding that what and how much information need be transferred from each word to the final encoding of the text sequence. Following the work of Capsule Network, we design two dynamic routing policies to aggregate the outputs of RNN/CNN encoding layer into a final encoding vector. Compared to the other aggregation methods, dynamic routing can refine the messages according to the state of final encoding vector. Experimental results on five text classification tasks show that our method outperforms other aggregating models by a significant margin. Related source code is released on our github page.

Cited by

Related