Research Article

Research on improving the generalization ability of NLP categorization models: A comparison of Mixup and generative adversarial networks

Jiyan Chen*
WASEDA Univ.

* Corresponding author: [email protected]

Abstract

The application of deep neural networks in tasks related to natural language processing has grown in recent years. However, training deep learning models often requires a large amount of data to produce accurate and generalizable results. When the data are insufficient, categorization models may suffer from overfitting or poor performance. This paper compares two methods for enhancing the generalization ability of natural language processing categorization models when data are insufficient: Mixup and Generative Adversarial Networks (GANs). This paper uses the Internet Movie Database (IMDB) dataset for a binary classification task, Mixup method, and Relational Generative Adversarial Networks (RelGAN) model to generate new data, respectively, and compares them with the original dataset. Experimental results indicate that Mixup method can reduce overfitting risk effectively and enhance the model’s robustness, while the GAN model does not show obvious advantages. This paper supports the idea that using noise-adding operations to enhance the dataset is feasible in the case of small samples rather than using generative models.

Keywords: natural language processing; generative adversarial networks; Mixup; text categorization; deep learning
Published: October 23, 2023
DOI: 10.54254/2755-2721/21/20231140
Volume: ACE Vol.21
pp. 179-186
Download PDF

References

  1. Guo H, Mao Y and Zhang R 2019 Augmenting Data with Mixup for Sentence Classification: An Empirical Study
  2. Brown T B, Mann B, Ryder N, Subbiah M, Kaplan J, Dhariwal P, Neelakantan A, Shyam P, Sastry G, Askell A, Agarwal S, Herbert-Voss A, Krueger G, Henighan T, Child R, Ramesh A, Ziegler D M, Wu J, Winter C, Hesse C, Chen M, Sigler E, Litwin M, Gray S, Chess B, Clark J, Berner C, McCandlish S, Radford A, Sutskever I and Amodei D 2020 Language Models are Few-Shot Learners
  3. Şahin G G and Steedman M 2018 Data Augmentation via Dependency Tree Morphing for Low-Resource Languages Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (Brussels, Belgium: Association for Computational Linguistics) pp 5004–9
  4. Yang S, Xiao W, Zhang M, Guo S, Zhao J and Shen F 2022 Image Data Augmentation for Deep Learning: A Survey
  5. Wei J and Zou K 2019 EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) EMNLP-IJCNLP 2019 (Hong Kong, China: Association for Computational Linguistics) pp 6382–8
  6. Li B, Hou Y and Che W 2022 Data augmentation approaches in natural language processing: A survey AI Open 3 71–90
  7. Goodfellow I, Pouget-Abadie J, Mirza M, Xu B, Warde-Farley D, Ozair S, Courville A and Bengio Y 2020 Generative adversarial networks Commun. ACM 63 139–44
  8. Nie W, Narodytska N and Patel A 2018 RelGAN: Relational Generative Adversarial Networks for Text Generation International Conference on Learning Representations
  9. TensorFlow 2020 IMDb Movie Reviews Dataset
  10. Hartmann J, Huppertz J, Schamp C and Heitmann M 2019 Comparing automated text classification methods Int. J. Res. Mark. 36 20–38
  11. Yang Y 1999 An Evaluation of Statistical Approaches to Text Categorization Inf. Retr. 1 69–90
  12. Marivate V and Sefara T 2020 Improving short text classification through global augmentation methods International Cross-Domain Conference for Machine Learning and Knowledge Extraction (Springer) pp 385–99
  13. Nie W, Narodytska N and Patel A 2019 RelGAN: Relational Generative Adversarial Networks for Text Generation International conference on learning representations (ICLR)
  14. Zhang H, Cisse M, Dauphin Y N and Lopez-Paz D 2018 Mixup: Beyond Empirical Risk Minimization
  15. Yu L, Zhang W, Wang J and Yu Y 2017 SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient Proc. AAAI Conf. Artif. Intell. 31
  16. Minaee S, Kalchbrenner N, Cambria E, Nikzad N, Chenaghlu M and Gao J 2021 Deep Learning Based Text Classification: A Comprehensive Review
  17. Wang G, Li C, Wang W, Zhang Y, Shen D, Zhang X, Henao R and Carin L 2018 Joint Embedding of Words and Labels for Text Classification
  18. Johnson R and Zhang T 2017 Deep Pyramid Convolutional Neural Networks for Text Categorization Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) ACL 2017 (Vancouver, Canada: Association for Computational Linguistics) pp 562–70
  19. Jadon S 2020 A survey of loss functions for semantic segmentation 2020 IEEE Conference on Computational Intelligence in Bioinformatics and Computational Biology (CIBCB) pp 1–7
  20. Mao A, Mohri M and Zhong Y 2023 Cross-Entropy Loss Functions: Theoretical Analysis and Applications
  21. Fei R, Yao Q, Zhu Y, Xu Q, Li A, Wu H and Hu B 2020 Deep Learning Structure for Cross-Domain Sentiment Classification Based on Improved Cross Entropy and Weight Sci. Program. 2020 e3810261