Supervised and Semi-Supervised Text Categorization using LSTM for Region Embeddings

7 Feb 2016  ·  Rie Johnson, Tong Zhang ·

One-hot CNN (convolutional neural network) has been shown to be effective for text categorization (Johnson & Zhang, 2015). We view it as a special case of a general framework which jointly trains a linear model with a non-linear feature generator consisting of `text region embedding + pooling'. Under this framework, we explore a more sophisticated region embedding method using Long Short-Term Memory (LSTM). LSTM can embed text regions of variable (and possibly large) sizes, whereas the region size needs to be fixed in a CNN. We seek effective and efficient use of LSTM for this purpose in the supervised and semi-supervised settings. The best results were obtained by combining region embeddings in the form of LSTM and convolution layers trained on unlabeled data. The results indicate that on this task, embeddings of text regions, which can convey complex concepts, are more useful than embeddings of single words in isolation. We report performances exceeding the previous best results on four benchmark datasets.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Text Classification AG News CNN Error 6.57 # 8
Text Classification DBpedia CNN Error 0.84 # 9
Sentiment Analysis IMDb oh-LSTM Accuracy 94.1 # 21
Text Classification RCV1 oh-CNN + two LSTM tv-embed. Accuracy 92.85 # 1
Sentiment Analysis Yelp Binary classification CNN Error 2.9 # 10
Sentiment Analysis Yelp Fine-grained classification CNN Error 32.39 # 9

Methods