Introduction
Text classification remains a cornerstone of natural language processing, yet a persistent performance gap exists between traditional methods and modern deep learning. Traditional linear models utilizing Bag-of-Words (BoW) and TF-IDF often outperform complex neural networks on small, high-quality datasets like news articles. Conversely, deep learning models such as Recurrent Neural Networks (RNNs) and Convolutional Neural Networks (CNNs) excel on large, noisy datasets like social media by capturing sentence-level semantics and handling misspellings.
The Top-Down Semantic Model (TDSM) aims to bridge this gap. By combining character-level topic vectors with sequence-aware Bi-directional LSTMs (BiLSTMs), TDSM captures both keyword importance and sequential context while remaining highly parameter-efficient.
Methodology: The Top-Down Semantic Model
The TDSM architecture processes text through a multi-stage pipeline designed to preserve both local keyword signals and global sequence information.
1. Characters to Topic-Vectors
Instead of relying on standard word embeddings, TDSM employs a Fully Convolutional Network (FCN) to transform character sequences into "topic-vectors." These vectors use sigmoid activations to ensure values remain between 0 and 1, representing specific "topic aspects." This design prevents the "cancellation effect" common in standard embeddings, where summing positive and negative values can result in a zero vector.
2. Hybrid Sentence Representation
The model constructs two parallel representations of a sentence to capture different linguistic features:
- BoW-like Features: A weighted sum of word topic-vectors. An attention mechanism acts as a dynamic, context-aware version of Inverse Document Frequency (IDF), determining word importance based on the specific document context.
- Positional Features: A BiLSTM processes the sequence of topic-vectors to capture the semantic flow and ordering of the sentence.
3. Deep Classification
These dual representations are concatenated and passed through a Residual Network (ResNet) consisting of 10 blocks to produce the final classification output.
Experimental Setup and Datasets
The model was rigorously evaluated on seven benchmark datasets, ranging from polished news articles to noisy product reviews. These datasets vary significantly in scale, from 120,000 to 3.6 million training samples.
Key Results and Insights
TDSM demonstrates remarkable efficiency and performance:
- State-of-the-Art Accuracy: TDSM outperformed both "Small" and "Large" character-based CNN baselines across all seven datasets. Notably, on the AG News dataset—a traditional stronghold for TF-IDF—TDSM achieved 90.51% accuracy, surpassing both TF-IDF (89.64%) and previous CNNs (87.18%).
- Extreme Parameter Efficiency: The model utilizes only 780,000 parameters, a mere 1% of the 75 million parameters required by the "Large CNN" baseline. This makes it ideal for deployment in memory-constrained environments.
- Robustness: By operating at the character level, the model handles evolving vocabularies and typos without needing to rebuild its vocabulary, supporting continuous learning applications.
Limitations and Future Work
Despite its success, TDSM faces a "capacity ceiling" on extremely large datasets like Amazon, where improvements over baselines were marginal (~0.5%). Additionally, for very long documents, hierarchical models that explicitly model the transition from words to sentences and sentences to documents still hold an advantage. Future research will focus on refining the character-to-word transformation to better handle complex linguistic structures in long-form text.
Summary updated