[Paper Review] Light-Weighted CNN for Text Classification
This paper proposes a lightweight CNN architecture for text classification using depthwise separable convolutions and dilated convolutions to drastically reduce trainable parameters—by ~300,000—while improving accuracy and reducing training time by up to fourfold. The method achieves lower loss and faster convergence, especially with dual optimizer scheduling (Adam to SGD with momentum), making it highly efficient for resource-constrained deployment in business document classification.
For management, documents are categorized into a specific category, and to do these, most of the organizations use manual labor. In today's automation era, manual efforts on such a task are not justified, and to avoid this, we have so many software out there in the market. However, efficiency and minimal resource consumption is the focal point which is also creating a competition. The categorization of such documents into specified classes by machine provides excellent help. One of categorization technique is text classification using a Convolutional neural network(TextCNN). TextCNN uses multiple sizes of filters, as in the case of the inception layer introduced in Googlenet. The network provides good accuracy but causes high memory consumption due to a large number of trainable parameters. As a solution to this problem, we introduced a whole new architecture based on separable convolution. The idea of separable convolution already exists in the field of image classification but not yet introduces to text classification tasks. With the help of this architecture, we can achieve a drastic reduction in trainable parameters.
Motivation & Objective
- To address high memory consumption in standard TextCNN due to large numbers of trainable parameters.
- To explore and adapt deep learning techniques from image classification—specifically separable and dilated convolutions—for text classification tasks.
- To reduce model size and training time without sacrificing classification accuracy.
- To optimize hyperparameters and training dynamics via adaptive learning rate and dual optimizer scheduling (Adam to SGD with momentum).
- To evaluate the proposed architecture on real-world business document datasets (Tobacco-3482) for practical deployment.
Proposed method
- Replaced standard convolutional filters in TextCNN with depthwise separable convolutions to reduce parameter count by decoupling spatial and channel-wise operations.
- Applied dilated convolutions to expand receptive field without increasing parameters, maintaining contextual modeling capability.
- Used a dual optimizer strategy: Adam for fast initial convergence, then switched to SGD with momentum for fine-tuning and improved stability.
- Optimized hyperparameters including learning rate decay, L2 regularization, batch size, and leaky ReLU alpha values through extensive experimentation.
- Implemented batch normalization to accelerate training and improve generalization.
- Evaluated models on both full (Tobacco-3482) and small (Tobacco small-3482) datasets to assess scalability and overfitting.
Experimental results
Research questions
- RQ1Can depthwise separable convolutions effectively reduce the number of trainable parameters in text classification models without degrading performance?
- RQ2How do dilated convolutions compare to standard filters in capturing long-range dependencies in text with fewer parameters?
- RQ3Does a dual optimizer strategy (Adam followed by SGD with momentum) improve convergence speed and final accuracy compared to single-optimizer training?
- RQ4To what extent can hyperparameter tuning and architectural modifications reduce training time while maintaining or improving model accuracy?
- RQ5Can the proposed lightweight architecture achieve competitive performance on real-world business document classification benchmarks?
Key findings
- The proposed lightweight CNN reduced trainable parameters by approximately 300,000 compared to the base TextCNN, achieving 16,496,856 parameters on the full dataset.
- On the Tobacco-3482 dataset, the model achieved 43.5% accuracy with a loss of 1.90, significantly lower than the base model’s 3.21, despite slightly lower accuracy than the optimized version.
- Training time was reduced to approximately 26 minutes (vs. ~2 hours) on the full dataset using the dual optimizer strategy, representing a fourfold speedup.
- On the smaller Tobacco small-3482 dataset, training time was reduced to just 2 minutes with the dual optimizer, compared to 9 minutes for the base model.
- The combination of separable convolutions, dilated convolutions, and dual optimizer scheduling led to faster convergence and improved stability, with loss reduced by over 30% on the full dataset.
- The model achieved a balance between compression and performance, maintaining high accuracy (83% on small dataset) while drastically reducing memory consumption and training duration.
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.