Sequential Learning of Convolutional Features for Effective Text Classification

Avinash Madasu, Vijjini Anvesh Rao

Abstract

This paper introduces SCARN (Sequential Convolutional Attentive Recurrent Network), a hybrid architecture designed to overcome the limitations of standard Convolutional Neural Networks (CNNs) in text classification, specifically the loss of word order and the arbitrary nature of max pooling. By integrating 1x1 convolutions as task-specific feature transformers with Recurrent Neural Networks (RNNs) and attention mechanisms, SCARN achieves state-of-the-art performance across seven benchmark datasets. Notably, the model is significantly more parameter-efficient than existing hybrid models, requiring nearly ten times fewer parameters while delivering superior accuracy.

Introduction

In natural language processing (NLP), Convolutional Neural Networks (CNNs) are frequently employed to detect local patterns. However, standard CNN architectures face a "sequence problem" when applied to text. They typically utilize a fixed window size followed by max pooling—a process that selects only the highest value from a filter's output.

Researchers from Samsung R&D argue that this approach has two major flaws:

  1. Loss of Order: CNNs often fail to fully capture the sequential nature of language. Shuffling words in a sentence frequently results in minimal performance drops for CNNs, suggesting they are largely "blind" to word order.
  2. The Max Pooling Myth: The common assumption that the maximum value represents the most important signal is often incorrect. Experimental evidence suggests that the $n^{th}$ highest value can be just as critical for classification.

To address these issues, the authors propose SCARN, a model that replaces arbitrary max pooling with sequential learning and attention.

Methods

The SCARN architecture consists of two parallel subnetworks designed to complement each other:

  1. Convolution Recurrent Subnetwork: Instead of wide sliding windows, this layer applies a 1x1 convolution to individual words. This serves as a "task-specific embedding transformation," re-mapping generic word vectors into a space optimized for the specific classification task. These transformed features are then processed by an LSTM to learn their sequential relationships.
  2. Recurrent Attentive Subnetwork: This branch utilizes a standard LSTM paired with an attention mechanism. It analyzes the original word embeddings to identify which specific words are most influential for the final decision, generating a weighted context vector.

The outputs from both branches are concatenated and passed through a final dense layer for classification. By avoiding max pooling and utilizing 1x1 convolutions, the model preserves sequence while remaining highly efficient.

The SCARN architecture featuring parallel Convolution Recurrent and Recurrent Attentive subnetworks.

Key Insights and Results

The model was evaluated on seven diverse benchmark datasets, including sentiment analysis (IMDB, SST-2), question classification (TREC), and product reviews.

Convolution as a "Tuner"

A primary insight of the paper is the role of the convolution layer as a feature tuner. Using t-SNE visualizations, the authors demonstrated that the convolution layer effectively "re-maps" word meanings based on context. For instance, in movie reviews, the word "killer" (typically negative) is moved closer to positive sentiment clusters when used as praise (e.g., "a killer performance").

t-SNE visualization showing the transformation of word embeddings by the convolution layer.

Performance and Efficiency

SCARN outperformed all baselines, including Deep CNNs, LSTMs, and previous hybrid models like RCNN and C-LSTM. On the TREC dataset, SCARN achieved 90.79% accuracy, surpassing C-LSTM (90.4%) and RCNN (79.6%).

Beyond accuracy, SCARN is remarkably efficient. The "Small SCARN" variant uses only 68,425 parameters, whereas the competing C-LSTM model requires 676,651 parameters—nearly ten times more—to achieve lower accuracy. This efficiency makes SCARN highly suitable for resource-constrained environments.

Conclusion

SCARN successfully addresses the "sequence problem" in convolutional text classification by replacing max pooling with sequential learning. While the model demonstrates superior accuracy and extreme efficiency, the authors note that the concatenation of different feature distributions remains a challenge. Future research may explore more sophisticated merging techniques or the integration of this convolutional-sequential approach with Transformer-based architectures like BERT.

Summary updated

BibTeX
@inproceedings{madasu2019sequential,
  author = {Avinash Madasu and Vijjini Anvesh Rao},
  title = {{Sequential Learning of Convolutional Features for Effective Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1567},
}
Figure