Abstract
Neural network models have been demonstrated to be capable of achieving remarkable performance in sentence and document modeling. Convolutional neural network (CNN) and recurrent neural network (RNN) are two mainstream architectures for such modeling tasks, which adopt totally different ways of understanding natural languages. In this work, we combine the strengths of both architectures and propose a novel and unified model called C-LSTM for sentence representation and text classification. C-LSTM utilizes CNN to extract a sequence of higher-level phrase representations, and are fed into a long short-term memory recurrent neural network (LSTM) to obtain the sentence representation. C-LSTM is able to capture both local features of phrases as well as global and temporal sentence semantics. We evaluate the proposed architecture on sentiment classification and question classification tasks. The experimental results show that the C-LSTM outperforms both CNN and LSTM and can achieve excellent performance on these tasks.
Introduction
In the field of Natural Language Processing (NLP), "sentence modeling"—the process of transforming a string of words into a meaningful mathematical vector—is a fundamental challenge. Historically, researchers have relied on two distinct architectural philosophies:
- CNNs: These are excellent at identifying local patterns, such as n-grams or specific phrases, regardless of their position in a sentence. However, they often struggle to capture the global temporal order or long-range dependencies between these phrases.
- RNNs/LSTMs: Designed specifically for sequential data, these models excel at understanding how the beginning of a sentence relates to the end. Nevertheless, they can be inefficient at extracting high-level features directly from raw word vectors.
The C-LSTM architecture seeks to bridge this gap by providing a purely sequence-based approach that avoids the overhead of complex linguistic preprocessing, such as syntactic parsing, while capturing both local and global information.
Methodology
The C-LSTM model integrates CNN and LSTM layers into a unified pipeline consisting of three distinct stages:
- Windowed Input: Sentences are converted into word embeddings using pre-trained vectors (e.g., Word2Vec).
- CNN Layer (Feature Extraction): A one-dimensional convolution slides across the sentence. Crucially, the C-LSTM omits the pooling step common in standard CNNs. Instead, it produces a sequence of "higher-level" phrase representations, preserving the original temporal order of the sentence.
- LSTM Layer (Sequence Modeling): This sequence of phrase-level features is fed into an LSTM. The LSTM processes these refined chunks to learn long-term dependencies and generate a final sentence representation.
By stacking these layers, the CNN acts as a "feature cleaner" that disentangles raw words into meaningful phrases, making it significantly easier for the LSTM to learn the overall sentence structure.
Experimental Setup
The model was evaluated on two classic benchmark datasets:
- Stanford Sentiment Treebank (SST): A dataset of movie reviews. The authors tested both SST-1 (fine-grained classification into 5 labels) and SST-2 (binary classification).
- TREC: A 6-way question classification task (e.g., determining if a question is asking about a Person, Location, or Numeric value).
Results and Discussion
The C-LSTM consistently outperformed standalone CNN and LSTM baselines across all evaluated tasks. On the SST dataset, C-LSTM achieved a fine-grained accuracy of 49.2% and a binary accuracy of 87.8%, surpassing the performance of individual LSTM and CNN implementations.
Key insights from the experimental analysis include:
- The "No-Pooling" Advantage: In most CNNs, pooling is used for dimensionality reduction. However, the authors found that pooling breaks the sequential chain necessary for LSTMs. By removing pooling, they allowed the LSTM to receive a compressed yet perfectly ordered version of the sentence.
- Feature Disentanglement: The CNN layer simplifies the input for the LSTM by presenting clearer, higher-level concepts (n-grams) rather than noisy raw word vectors.
- Filter Sensitivity: Interestingly, the researchers found that a single convolutional filter size (specifically length 3, or "tri-grams") performed better than using multiple different filter sizes in parallel.
On the TREC task, the model reached 94.6% accuracy, significantly outperforming other neural models like the DCNN (93.0%) and approaching the performance of rule-heavy SVM systems that rely on extensive linguistic engineering.
Conclusion
The C-LSTM architecture demonstrates that combining local feature extraction with global sequence modeling provides a robust framework for text classification. Future work may explore deeper convolutional stacks or the integration of tensor-based operations to further enhance feature abstraction. While currently tested on sentiment and question classification, the architecture holds potential for broader applications in document modeling and sequence-to-sequence tasks.
Summary updated