[Paper Review] Convolutional Neural Networks for Text Categorization: Shallow Word-level vs. Deep Character-level
This paper evaluates shallow word-level convolutional neural networks (word-CNNs) on eight large-scale text categorization datasets previously used for deep character-level CNNs (char-CNNs). Despite using more parameters and requiring more storage, word-CNNs achieve lower error rates and significantly faster inference than the deep char-CNNs, demonstrating superior performance and efficiency on large training data when using word-level representations with learned tv-embeddings.
This paper reports the performances of shallow word-level convolutional neural networks (CNN), our earlier work (2015), on the eight datasets with relatively large training data that were used for testing the very deep character-level CNN in Conneau et al. (2016). Our findings are as follows. The shallow word-level CNNs achieve better error rates than the error rates reported in Conneau et al., though the results should be interpreted with some consideration due to the unique pre-processing of Conneau et al. The shallow word-level CNN uses more parameters and therefore requires more storage than the deep character-level CNN; however, the shallow word-level CNN computes much faster.
Motivation & Objective
- To evaluate the performance of shallow word-level CNNs on the same eight large-scale text categorization datasets used in Conneau et al. (2016) for deep character-level CNNs.
- To compare the error rates and inference speed of shallow word-CNNs against the very deep char-CNNs reported in Conneau et al. (2016), filling a gap in direct comparison.
- To assess the trade-offs between model size, inference speed, and accuracy between word-level and character-level CNNs in text categorization.
- To investigate the impact of tv-embedding dimensionality and number on word-CNN performance and parameter efficiency.
Proposed method
- The study implements shallow word-level CNNs based on the architecture from Johnson & Zhang (2015), using word embeddings as input and applying convolutional layers with ReLU activation and max-pooling.
- The model incorporates tv-embeddings—learned from unlabeled data—to enhance feature representation, with configurations using 2, 4, or more tv-embedding vectors of 100 or 300 dimensions.
- Input sequences are handled as variable-length documents without fixed-length padding, unlike the char-CNN’s 1014-character clipping and padding strategy.
- Model training uses stochastic gradient descent with batch normalization and ReLU nonlinearities, focusing on the final fully connected layer for classification.
- Computation time is measured on a Tesla M2070 GPU, excluding preprocessing, to compare inference speed between word-CNN and char-CNN.
- Error rates are reported on the same test sets used in Conneau et al. (2016), enabling direct comparison with the deep char-CNN results.
Experimental results
Research questions
- RQ1How do shallow word-level CNNs perform on the same large-scale text categorization datasets used to evaluate deep character-level CNNs?
- RQ2Does the shallow word-CNN achieve lower error rates than the very deep character-level CNN reported in Conneau et al. (2016) when trained on the same datasets?
- RQ3What is the trade-off between model size (parameters) and inference speed between word-level and character-level CNNs?
- RQ4How does the number and dimensionality of tv-embeddings affect the performance and parameter efficiency of the word-CNN?
- RQ5To what extent does the pre-processing strategy (e.g., fixed-length padding) in the char-CNN affect the comparability of results?
Key findings
- The shallow word-CNN with four 100-dimensional tv-embeddings achieved an error rate of 32.39% on the Yelp.f test set, outperforming the deep char-CNN’s reported error rate of 35.28% on the same dataset.
- The shallow word-CNN achieved the lowest error rate of 0.84% on the Dbpedia dataset, significantly outperforming the deep char-CNN’s 3.05% error rate on the same data.
- Despite having 184 million parameters (with 300-dim tv-embeddings), the word-CNN computed in 72 seconds on the Yelp.f test set, compared to 700 seconds for the deep char-CNN, demonstrating a nearly 10x speed advantage.
- Reducing tv-embedding dimensionality from 300 to 100 reduced parameters by half with only a 0.2% increase in error rate (from 32.39% to 32.55%), indicating high parameter efficiency.
- The shallow word-CNN consistently outperformed the deep char-CNN across all eight datasets, with error rates ranging from 1.89% (Sogou) to 36.52% (Ama.f), all below the corresponding char-CNN results.
- The performance gap is attributed to the word-CNN’s ability to leverage semantic word representations and efficient sparse computation, while the deep char-CNN’s performance is limited by its need to process more text units and sequential layer dependencies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.