skip to main content
10.1145/3697355.3697380acmotherconferencesArticle/Chapter ViewAbstractPublication PagesbdiotConference Proceedingsconference-collections
research-article

A GPT-PERNIE Model for Short Text Sentiment Analysis

Published: 12 December 2024 Publication History

Abstract

Recently, deep learning techniques have been widely used for text sentiment classification in the domain of natural language processing. Effective text representation plays a critical role in improving the classification performance of deep learning models in this field. Due to the limited emotional contents in short texts and the susceptibility to noise during training, we propose a GPT-PERNIE model for short text sentiment analysis. This model incorporates GPT with adversarial training (P). Initially, GPT is used to enrich the expressiveness of the text. Subsequently, a single-tower model is used to evaluate text similarity, followed by vectorization of input text through the ERNIE pre-training model, which enables preliminary extraction of emotional features from the text. Later, noise interference is introduced into the output vector of the ERNIE pre-training model, leading to the generation of adversarial samples by attacking the origin. Then, these adversarial samples are used for the adversarial training of the classification model, enhancing the model's robustness against noise attacks. Experimental results indicate that the GPT-PERNIE model demonstrates superior performance and generalization capability in text classification tasks. This achievement is not only significant within the realm of short text sentiment analysis but also paves the way for novel approaches to utilizing deep learning in natural language processing tasks.

References

[1]
Wang Xiaohui. Characteristics and Development of Social Media and News Socialization Communication[J]. China Media Science and Technology, 2021, 339(06): 29-31.
[2]
Lin Xinyu, Ren Yinghong. Research on Network Public Opinion and Guidance Mechanism of Major Sudden Public Health Emergencies[J]. Academic Research, 2021, 440(07): 65-68.
[3]
Tan Ying, Zhang Jin, Xia Lixin. Review of Sentiment Analysis Research in Social Media Context[J]. Data Analysis and Knowledge Discovery, 2020, 4(01): 1-11.
[4]
Wang Ting, Yang Wenzhong. A Review of Text Sentiment Analysis Methods[J]. Computer Engineering and Applications, 2021, 57(12): 11-24.
[5]
Luo Haoran, Yang Qing. Sentiment Analysis Based on Sentiment Lexicon and Stacked Residual Bidirectional Long Short-Term Memory Network[J]. Computer Application, 2022, 42(4): 1099-1107.
[6]
PANG B, LEE L, VAITHYANATHAN S. Thumbs up? sentiment classification using machinelearning techniques[C]//Proceedings of the ACL-02 Conference on Empirical Methods in NaturalLanguage Processing. 2002: 79-86.
[7]
Xing Changzheng, Li Shan. Deep Learning Methods for Text Sentiment Analysis [J]. Computer Applications and Software, 2018, 35(8): 102-106.
[8]
Liu Chunlei, Wu Jiaqi, Tan Yaning. User Comment Sentiment Polarity Discrimination Based on TextCNN [J]. Electronic World, 2019(3): 48.
[9]
Fang Yue, Zhang Kun, Zhang Yunchun, et al. Sentiment Analysis Model Based on Feature Fusion Deep Learning Network [J]. Computer and Digital Engineering, 2022, 50(6): 1239-1245.
[10]
DEVLIN J, CHANG M W, LEE K, et al. BERT:Pre-training of deep bidirectional transformers for language understanding [EB/OL]. [2019-09-16]. https://arxiv.org/abs/1810.04805.
[11]
SUN Y, WANG S H, LI Y K, et al. ERNIE: Enhancedrepresentation through knowledge integration [EB/OL].[2019-04-19]. https://arxiv.org/abs/1904.09223.
[12]
Neelakantan A, Xu T, Puri R, et al. Text and Code Embeddings by Contrastive Pre-Training[OL]. arXiv Preprint, arXiv: 2201.10005.
[13]
Qian Li, Liu Yi, Zhang Zhixiong, et al. Technical Analysis of ChatGPT[J]. Data Analysis and Knowledge Discovery, 2023, 7(3): 6-15.
[14]
Koubaa, A.GPT-4vs.GPT-3.5:AConciseShowdown.Preprints 2023,2023030422. Style
[15]
WANG Feiyue, MIAO Qinghai. Novel Paradigm for AI-driven Scientific Research: From AI4S to Intelligent Science. Bulletin of Chinese Academy of Sciences, 2023, 38(4): 536-540
[16]
Hsieh Y H, Zeng X P. Sentiment analysis: An ERNIE-BiLSTM approach to bullet screen comments[J]. Sensors, 2022, 22(14): 5223.
[17]
Du Peng, Lu Yiqing, Han Changfeng. Sentiment Analysis of Product Reviews Based on Transformer Model. Journal of Chinese Information Science, 2021, 35(2): 125-132.
[18]
Zhang Xiaohui, Yu Shuangyuan, Wang Quanxin, et al. Text Representation and Classification Algorithm Based on Adversarial Training. Computer Science, 2020, 47(S1): 12-16.
[19]
Koubaa, A. GPT-4 vs. GPT-3.5: A Concise Showdown. Preprints 2023,2023030422. Style
[20]
Wang F Y, Miao Q, Li X, et al. What does ChatGPT Say: The DAO from Algorithmic Intelligence to Linguistic Intelligence[J]. IEEE/CAA Journal of Automatica Sinica, 2023, 10(3): 575-579.
[21]
Liu Ting, Du Yi, Cao Xiaoxia, et al. Short Text Sentiment Analysis Model Combining Adversarial Training and ERNIE. Journal of Shanghai Second Polytechnic University, 2024, 41(1).
[22]
Song P, Geng C, Li Z. Research on Text classification based on convolutional neural network[C]//2019 International conference on computer network, electronic and automation (ICCNEA). IEEE, 2019: 229-232.
[23]
Rout, J.K.; Choo, K.K.R.; Dash, A.K.; Bakshi, S.; Jena, S.K.; Williams, K.L. A model for sentiment and emotion analysis of unstructured social media text. Electron. Commer. Res. 2018, 18, 181–199. [CrossRef]
[24]
Zhang, S.; Wei, Z.; Wang, Y.; Liao, T. Sentiment analysis of Chinese micro-blog text based on extended sentiment dictionary. Future Gener. Comput. Syst. 2018, 81, 395–403. [CrossRef]
[25]
Pathuri, S.K.; Anbazhagan, N.; Joshi, G.P.; You, J. Feature-Based Sentimental Analysis on Public Attention towards COVID-19 Using CUDA-SADBM Classification Model. Sensors 2022, 22, 80. [CrossRef]

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
BDIOT '24: Proceedings of the 2024 8th International Conference on Big Data and Internet of Things
September 2024
412 pages
ISBN:9798400717529
DOI:10.1145/3697355
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 12 December 2024

Check for updates

Author Tags

  1. Adversarial Training
  2. ERNIE
  3. GPT
  4. Short Text Sentiment Analysis
  5. Single-Tower Model

Qualifiers

  • Research-article

Conference

BDIOT 2024

Acceptance Rates

Overall Acceptance Rate 75 of 136 submissions, 55%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 30
    Total Downloads
  • Downloads (Last 12 months)30
  • Downloads (Last 6 weeks)7
Reflects downloads up to 05 Mar 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Full Text

View this article in Full Text.

Full Text

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media