Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Information Aggregation via Dynamic Routing for Sequence Encoding

About

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.

Jingjing Gong, Xipeng Qiu, Shaojing Wang, Xuanjing Huang• 2018

Related benchmarks

TaskDatasetResultRank
Text ClassificationSST-2 (test)
Accuracy87.6
185
Text ClassificationIMDB (test)
CA45.1
79
Review Sentiment ClassificationYelp 2014 (test)
Accuracy63
41
Sentiment AnalysisYelp '13 (test)
Accuracy62.1
33
Text ClassificationSST-1 (test)
Accuracy50.5
16
Joint Slot Filling and Intent DetectionSNIPS-NLU (test)
Intent Accuracy0.966
11
Joint Slot Filling and Intent DetectionATIS (test)--
11
Showing 7 of 7 rows

Other info

Code

Follow for update