Introduction
Sentence classification (SC) is a fundamental task in Natural Language Processing, requiring models to understand key phrases of varying lengths. Current approaches typically utilize Convolutional Neural Networks (CNNs) or Long Short-Term Memory (LSTMs). While CNNs excel at extracting local n-gram features, they often struggle with non-consecutive dependencies. Conversely, LSTMs capture long-term dependencies but suffer from "recency bias" and parameter inefficiency, leading to overfitting on smaller datasets. MODE-LSTM addresses these challenges by introducing a parameter-efficient, multi-scale recurrent architecture.
Methodology: The MODE-LSTM Architecture
The Multi-scale Orthogonal inDependEnt LSTM (MODE-LSTM) introduces three primary architectural innovations to improve efficiency and feature extraction.
1. ODE-LSTM (Orthogonal inDependEnt LSTM)
To reduce parameter bloat, MODE-LSTM disentangles the large hidden state of a standard LSTM into $K$ independent, smaller hidden states. This reduces the parameter complexity from $O(d^2)$ to $O(d \times p)$, where $p$ is the size of the smaller state. An orthogonal constraint is applied as a penalty in the loss function to ensure these states learn diverse features rather than redundant information.
2. Triple-S Operation (Slide-Split-Stack)
Standard RNNs process sequences sequentially, which is computationally expensive. The Triple-S operation utilizes a sliding window to transform a sentence into a "mini-batch" of sub-sentences. This allows the model to process all n-grams in parallel on a GPU, significantly increasing throughput.
3. Multi-Scale Integration
MODE-LSTM employs multiple ODE-LSTMs with varying window sizes (e.g., 5, 10, 15) in parallel. This approach mimics the multi-filter strategy of CNNs but leverages the non-linear processing power of LSTMs to handle complex phrasal dependencies.
Experimental Setup
The model was evaluated across eight benchmark datasets, including sentiment analysis (MR, CR, SST2, SST5), question classification (TREC), idiom extraction (IE), and subjectivity/opinion mining (SUBJ, MPQA). These datasets represent a diverse range of linguistic challenges and varying training set sizes.
Results and Discussion
MODE-LSTM consistently outperformed standard LSTMs and TextCNNs, achieving an average accuracy of 81.91% across the benchmarks.
Efficiency and Generalization
A key strength of MODE-LSTM is its performance on small datasets. In stress tests with only 100 training samples, MODE-LSTM outperformed competing models by over 8% in accuracy. This suggests that the disentangled hidden states act as an effective regularizer, preventing the model from memorizing noise. Furthermore, the Triple-S operation enables a 5–10x speedup compared to sequential local-RNN approaches.
Complementing Pre-trained Models
The study also demonstrated that MODE-LSTM can enhance large-scale transformers like BERT. By adding MODE-LSTM on top of BERT embeddings, the model reached an average accuracy of 85.75%, indicating that explicit multi-scale local modeling provides complementary information to the global self-attention mechanisms of transformers.
Conclusion
MODE-LSTM provides a parameter-efficient alternative to traditional recurrent and convolutional architectures for sentence classification. By combining the strengths of local phrasal modeling with the efficiency of disentangled states and parallel processing, it achieves state-of-the-art results even with limited data. Future work will explore automated hyperparameter tuning for window sizes and applications in aspect-level sentiment analysis.
Summary updated