Application of Capsule Network in Text Classification Problem
Abstract
The rise of the Internet and the big data era has led to a significant increase in text data, making text classification an essential task in natural language processing. Conventional deep learning models have advanced considerably in understanding text context dependencies; however, they still struggle with long-range dependencies and multi-scale features. In recent years, capsule networks (CapsNets) have demonstrated outstanding results in the area of image recognition due to their unique structure and dynamic routing mechanism, which has inspired researchers to explore their application in text classification tasks. This article examines the advancements in software and research related to CapsNets in the context of text classification challenges. Through its capsule units and dynamic routing algorithms, capsule networks can better express the part-whole hierarchical structure of text and effectively capture the complex relationships in text. Compared with traditional neural networks, capsule networks have shown advantages in dealing with both tasks involving text classification with either a single label or multiple labels. In addition, this paper also examines ways to optimize and enhance CapsNets for text classification, such as incorporating attention mechanisms to improve the model's capacity to recognize important information, as well as refining routing algorithms.
References
- Zhao, W., Ye, J. B., Yang, M., Lei, Z. Y. Zhang, S. F. and Zhao, Z. (2018). Investigating Capsule Networks with Dynamic Routing for Text Classification. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3110–3119, Brussels, Belgium. Association for Computational Linguistics.
- Aly, R., Remus, S. and Biemann, C. (2019). Hierarchical Multi-label Classification of Text with Capsule Networks. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop, pages 323–330, Florence, Italy. Association for Computational Linguistics.
- Yu X., Luo S-N., Wu Y., Cai Z., Kuan T-W. and Tseng S-P. (2024). Research on a Capsule Network Text Classification Method with a Self-Attention Mechanism. Symmetry 16(5):517. https://doi.org/10.3390/sym16050517
- Jia, X, D. and W, L. (2020). Text classification model based on multi-head attention capsule network. Journal of Tsinghua University (Science and Technology), 2020, 60(05): 415-421. DOI: 10.16511/j.cnki.qhdxxb.2020.26 .006.
- Zhu, H, J., Yu, L., Sheng Z, S., Chen, G, Q. and Wang, Z. (2021). Text classification model based on static routing group capsule network. Journal of Sichuan University (Natural Science Edition), 2021, 58(06): 39-45. DOI: 10.19907/j.0490-6756.2021.062001.
- Kim, J, Y., Jang, S., Park, E. and Choi, S. (2020). Text classification using capsules, Neurocomputing, Volume 376, Pages 214-221, ISSN 0925-2312, https://doi.org/10. 1016/j.neucom.2019.10.033.
- Chen, B, L., Huang, X., Lin, X. and Jing, L, P. (2020). Hyperbolic Capsule Networks for Multi-Label Classification. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 3115–3124, Online. Association for Computational Linguistics.
- Wang, S, T., Zhang, S, J., Sun, X, F., Yang, J, J., Bi, T, T. and Zhang, Z, L. (2024). Multi-label text classification by integrating pseudo-label generation and data augmentation. Journal of Harbin University of Science and Technology, 1-11[2024-09-10]
- He, W. and Zhu, M. (2021). A brief analysis of the current status and future of capsule neural network research, 2021, 57(03):33-43.
- Wang, G., Du, Y, J., Jiang, Y, R., Liu, J., Li, X, Y., Chen, X, L., Gao, H, M., Xie, C, Z. and Lee, Y, L. (2024). Label-text bi-attention capsule networks model for multi-label text classification, Neurocomputing, Volume 588, 127671, ISSN 0925-2312, https://doi.org/10.1016/j.neucom.2024.127671.
- Ren, H. and Lu, H. (2022). Compositional coding capsule network with k-means routing for text classification, Pattern Recognition Letters, Volume 160, Pages 1-8, ISSN 0167-8655, https://doi.org/10.1016/j.patrec.2022.05.028.