Research Article

A comparison of multiple word embeddings and performance analysis

Jinghua Wang1,*, Zhongtian Lin2
1. Beijing University of Posts and Telecommunications
2. Fuzhou University

* Corresponding author: [email protected]

Abstract

Based on IMDB data sets for sentiment analysis, this research evaluates the performance of two types of neural networks, namely FNN and BERT. According to the experimental findings, both varieties of neural networks performed well (over 80%) on IMDB data sets. BERT performs the best of them all. The version of FNN improves when the number of layers is increased. The causes behind BERT's outstanding performance are then further examined in this research. In this article, it is hypothesized that a few factors, such as feature extraction capability and classification capability, account for BERT's exceptional performance. The results show that for the two coupling variables of BERT assumed in this paper, including feature extraction and classification ability, BERT has obvious advantages in feature extracting, and its classification ability has certain advantages over SVM and MLP. The deep learning model has achieved excellent performance in the sentiment classification task. The next step of this paper will focus on the robustness of the BERT model in sentiment analysis.

Keywords: deep learning; sentiment analysis; emotion recognition; BERT; FNN; IMDB.
Published: June 14, 2023
DOI: 10.54254/2755-2721/6/20230719
Volume: ACE Vol.6
pp. 1303-1308
Download PDF

References

  1. Hirschberg J, Manning C D. Advances in natural language processing[J]. Science, 2015, 349(6245): 261-266.
  2. Devlin J, Chang M W, Lee K, et al. Bert: Pre-training of deep bidirectional transformers for language understanding[J]. arXiv preprint arXiv:1810.04805, 2018.
  3. Svozil D, Kvasnicka V, Pospichal J. Introduction to multi-layer feed-forward neural networks[J]. Chemometrics and intelligent laboratory systems, 1997, 39(1): 43-62.
  4. Wolf T, Debut L, Sanh V, et al. Transformers: State-of-the-art natural language processing[C]//Proceedings of the 2020 conference on empirical methods in natural language processing: system demonstrations. 2020: 38-45.
  5. Sun C, Qiu X, Xu Y, et al. How to fine-tune bert for text classification?[C]//China national conference on Chinese computational linguistics. Springer, Cham, 2019: 194-206.
  6. Voita E, Talbot D, Moiseev F, et al. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned[J]. arXiv preprint arXiv:1905.09418, 2019.
  7. Ramos J. Using tf-idf to determine word relevance in document queries[C]//Proceedings of the first instructional conference on machine learning. 2003, 242(1): 29-48.
  8. Noble W S. What is a support vector machine?[J]. Nature biotechnology, 2006, 24(12): 1565-1567.
  9. Tong S, Koller D. Support vector machine active learning with applications to text classification[J]. Journal of machine learning research, 2001, 2(Nov): 45-66.
  10. Riedmiller M. Advanced supervised learning in multi-layer perceptrons—from backpropagation to adaptive learning algorithms[J]. Computer Standards & Interfaces, 1994, 16(3): 265-278.