journal article·2021-06-30Open access

Study of Statistical Text Representation Methods for Performance Improvement of a Hierarchical Attention Network

Adam Wawrzyński, Julian Szymański

Applied Sciences· Volume 11· Issue 13

Abstract

To effectively process textual data, many approaches have been proposed to create text representations. The transformation of a text into a form of numbers that can be computed using computers is crucial for further applications in downstream tasks such as document classification, document summarization, and so forth. In our work, we study the quality of text representations using statistical methods and compare them to approaches based on neural networks. We describe in detail nine different algorithms used for text representation and then we evaluate five diverse datasets: BBCSport, BBC, Ohsumed, 20Newsgroups, and Reuters. The selected statistical models include Bag of Words (BoW), Term Frequency-Inverse Document Frequency (TFIDF) weighting, Latent Semantic Analysis (LSA) and Latent Dirichlet Allocation (LDA). For the second group of deep neural networks, Partition-Smooth Inverse Frequency (P-SIF), Doc2Vec-Distributed Bag of Words Paragraph Vector (Doc2Vec-DBoW), Doc2Vec-Memory Model of Paragraph Vectors (Doc2Vec-DM), Hierarchical Attention Network (HAN) and Longformer were selected. The text representation methods were benchmarked in the document classification task and BoW and TFIDF models were used were used as a baseline. Based on the identified weaknesses of the HAN method, an improvement in the form of a Hierarchical Weighted Attention Network (HWAN) was proposed. The incorporation of statistical features into HAN latent representations improves or provides comparable results on four out of five datasets. The article presents how the length of the processed text affects the results of HAN and variants of HWAN models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Text and Document Classification Technologies · Advanced Text Analysis Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Systems Architecture, Gdansk University of Technology, 80-233 Gdansk, Poland

References (49)

Show source-provided references
1. Representation and classification of text documents: A brief review
2. Text classification and classifiers: A survey
3. Comparative Analysis of Text Representation Methods Using Classification10.1080/01969722.2014.874828 ↗
4. Keller, M., and Bengio, S. (2005, January 11–15). A neural network for text representation. Proceedings of the International Conference on Artificial Neural Networks, 15th International Conference, Warsaw, Poland.10.1007/11550907_106 ↗
5. Babić, K., Martinčić-Ipšić, S., and Meštrović, A. (2020). Survey of Neural Text Representation Models. Information, 11.10.3390/info11110511 ↗
6. A Case Study in Text Mining of Discussion Forum Posts: Classification with Bag of Words and Global Vectors10.2478/amcs-2018-0060 ↗
7. An Analysis of Neural Word Representations for Wikipedia Articles Classification10.1080/01969722.2019.1565124 ↗
8. Understanding bag-of-words model: A statistical framework10.1007/s13042-010-0001-0 ↗
9. Term-Weighting Approaches in Automatic Text Retrieval10.1016/0306-4573(88)90021-0 ↗
10. Rajaraman, A., and Ullman, J.D. (2011). Data Mining. Mining of Massive Datasets, Cambridge University Press.10.1017/CBO9781139058452 ↗
11. Hofmann, T. (2013). Probabilistic Latent Semantic Analysis. arXiv.
12. Latent dirichlet allocation
13. Goldberg, Y., and Levy, O. (2014). word2vec Explained: Deriving Mikolov et al.’s negative-sampling word-embedding method. arXiv.
14. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). Glove: Global Vectors for Word Representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1162 ↗
15. From free text to clusters of content in health records: An unsupervised graph partitioning approach10.1007/s41109-018-0109-9 ↗
16. Linear algebraic structure of word senses, with applications to polysemy10.1162/tacl_a_00034 ↗
17. Principal component analysis10.1198/tech.2003.s783 ↗
18. Le, Q.V., and Mikolov, T. (2014). Distributed Representations of Sentences and Documents. arXiv.
19. Mikolov, T., Sutskever, I., Chen, K., Corrado, G., and Dean, J. (2013). Distributed Representations of Words and Phrases and their Compositionality. arXiv.
20. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space. arXiv.
21. Yang, Z., Yang, D., Dyer, C., He, X., Smola, A., and Hovy, E. (2016, January 12–17). Hierarchical Attention Networks for Document Classification. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, San Diego, CA, USA.10.18653/v1/N16-1174 ↗
22. Sankesara, H. (2020, August 01). DeepResearch. Available online: https://github.com/Hsankesara/DeepResearch.
23. Chung, J., Gulçehre, Ç., Cho, K., and Bengio, Y. (2014). Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv.
24. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention Is All You Need. arXiv.
25. Beltagy, I., Peters, M.E., and Cohan, A. (2020). Longformer: The Long-Document Transformer. arXiv.
26. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv.
27. Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., and Funtowicz, M. (2020). HuggingFace’s Transformers: State-of-the-art Natural Language Processing. arXiv.10.18653/v1/2020.emnlp-demos.6 ↗
28. (2021, May 01). Longformer Encoder-Decoder. Available online: https://huggingface.co/allenai/led-base-16384.
29. (2020, September 01). Paperswithcode. Available online: https://paperswithcode.com/.
30. Sak, H., Senior, A., and Beaufays, F. (2014). Long Short-Term Memory Based Recurrent Neural Network Architectures for Large Vocabulary Speech Recognition. arXiv.10.21437/Interspeech.2014-80 ↗
31. Adhikari, A., Ram, A., Tang, R., and Lin, J. (2019, January 2–7). Rethinking Complex Neural Network Architectures for Document Classification. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Minneapolis, MN, USA.10.18653/v1/N19-1408 ↗
32. Kowsari, K., Brown, D.E., Heidarysafa, M., Jafari Meimandi, K., Gerber, M.S., and Barnes, L.E. (2017, January 18–21). HDLTex: Hierarchical Deep Learning for Text Classification. Proceedings of the 2017 16th IEEE International Conference on Machine Learning and Applications (ICMLA), Cancun, Mexico.10.1109/ICMLA.2017.0-134 ↗
33. Adhikari, A., Ram, A., Tang, R., and Lin, J. (2019). DocBERT: BERT for Document Classification. arXiv.
34. Sun, C., Qiu, X., Xu, Y., and Huang, X. (2019). How to Fine-Tune BERT for Text Classification?. arXiv.10.1007/978-3-030-32381-3_16 ↗
35. Yang, Z., Dai, Z., Yang, Y., Carbonell, J.G., Salakhutdinov, R., and Le, Q.V. (2019). XLNet: Generalized Autoregressive Pretraining for Language Understanding. arXiv.
36. Dai, Z., Yang, Z., Yang, Y., Carbonell, J.G., Le, Q.V., and Salakhutdinov, R. (2019). Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context. arXiv.10.18653/v1/P19-1285 ↗
37. Nikolentzos, G., Tixier, A.J.P., and Vazirgiannis, M. (2019). Message Passing Attention Networks for Document Understanding. arXiv.10.1609/aaai.v34i05.6376 ↗
38. Veličković, P., Cucurull, G., Casanova, A., Romero, A., Liò, P., and Bengio, Y. (2018). Graph Attention Networks. arXiv.
39. Gao, H., Wang, Z., and Ji, S. (2018, January 19–23). Large-Scale Learnable Graph Convolutional Networks. Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, UK.10.1145/3219819.3219947 ↗
40. Chang, C.C., and Lin, C.J. (2011). LIBSVM: A Library for Support Vector Machines. ACM Trans. Intell. Syst. Technol., 2.10.1145/1961189.1961199 ↗
41. Wawrzyński, A. (2019, September 01). Hierarchical Weighted Attention Network. Available online: https://github.com/adamwawrzynski/vectorized_documents_benchmark.
42. Camacho-Collados, J., and Pilehvar, M.T. (2017). On the Role of Text Preprocessing in Neural Network Architectures: An Evaluation Study on Text Categorization and Sentiment Analysis. arXiv.10.18653/v1/W18-5406 ↗
43. Greene, D., and Cunningham, P. (2006, January 25–29). Practical Solutions to the Problem of Diagonal Dominance in Kernel Document Clustering. Proceedings of the 23rd International Conference on Machine learning (ICML’06), Pittsburgh, PA, USA.10.1145/1143844.1143892 ↗
44. Moschitti, A. (2019, December 01). TEXT CATEGORIZATION Corpora. Available online: https://disi.unitn.it/moschitti/corpora.htm.
45. Lang, K. (1995, January 9–12). Newsweeder: Learning to filter netnews. Proceedings of the Twelfth International Conference on Machine Learning, Tahoe City, CA, USA.10.1016/B978-1-55860-377-6.50048-7 ↗
46. Hersh, W., Buckley, C., Leone, T.J., and Hickam, D. (1994, January 3–6). OHSUMED: An Interactive Retrieval Evaluation and New Large Test Collection for Research. Proceedings of the 17th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Dublin, Ireland.10.1007/978-1-4471-2099-5_20 ↗
47. Novotný, V., Ayetiran, E.F., Štefánik, M., and Sojka, P. (2020). Text classification with word embedding regularization and soft similarity measure. arXiv.
48. Zhu, H., and Koniusz, P. (2021, January 3–7). Simple Spectral Graph Convolution. Proceedings of the International Conference on Learning Representations, Online.
49. Ribeiro, M.T., Singh, S., and Guestrin, C. (2016). “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. arXiv.10.1145/2939672.2939778 ↗