Skip to main content
QUICK REVIEW

[Paper Review] Stability Analysis of ChatGPT-based Sentiment Analysis in AI Quality Assurance

Tinghui Ouyang, AprilPyone MaungMaung|arXiv (Cornell University)|Jan 15, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper evaluates the stability of a ChatGPT-based sentiment analysis system through operational uncertainty and robustness against four adversarial perturbations—typo, synonym, homoglyph, and homophone—using benchmark datasets. Results show high robustness overall, especially against homophone and homoglyph attacks, though synonym perturbations cause the largest accuracy drop, indicating a key vulnerability in semantic-level manipulation.

ABSTRACT

In the era of large AI models, the complex architecture and vast parameters present substantial challenges for effective AI quality management (AIQM), e.g. large language model (LLM). This paper focuses on investigating the quality assurance of a specific LLM-based AI product--a ChatGPT-based sentiment analysis system. The study delves into stability issues related to both the operation and robustness of the expansive AI model on which ChatGPT is based. Experimental analysis is conducted using benchmark datasets for sentiment analysis. The results reveal that the constructed ChatGPT-based sentiment analysis system exhibits uncertainty, which is attributed to various operational factors. It demonstrated that the system also exhibits stability issues in handling conventional small text attacks involving robustness.

Motivation & Objective

  • To investigate the stability of a ChatGPT-based sentiment analysis system as a representative AI quality management (AIQM) case study.
  • To analyze operational uncertainty factors affecting the reliability of LLM-based AI products in real-world deployment.
  • To evaluate robustness against four types of adversarial text perturbations: typo, synonym, homoglyph, and homophone.
  • To assess the system's performance using standard benchmark datasets for sentiment analysis under perturbed inputs.
  • To provide insights into the practical reliability and limitations of deploying ChatGPT for sentiment analysis in quality assurance contexts.

Proposed method

  • Constructed a ChatGPT-based sentiment analysis system using the GPT architecture for targeted sentiment classification.
  • Applied four adversarial perturbation techniques: typo (character-level), synonym (semantic-level), homoglyph (visually similar characters), and homophone (pronunciation-based) perturbations.
  • Used the Vader sentiment analyzer to determine word importance for guiding perturbation generation based on sentiment impact.
  • Evaluated system performance on two benchmark datasets: Amazon and SST, measuring original accuracy ($ori_{acc}$), perturbed accuracy ($pert_{acc}$), accuracy difference ($\Delta_{diff}$), and attack success rate (ASR).
  • Compared results across perturbation types to assess relative strength and system resilience.
  • Conducted experiments under controlled conditions to isolate the effect of each perturbation type on model output stability.
Figure 1: Diagram of using ChatGPT for sentiment analysis
Figure 1: Diagram of using ChatGPT for sentiment analysis

Experimental results

Research questions

  • RQ1How does operational uncertainty affect the stability of a ChatGPT-based sentiment analysis system?
  • RQ2To what extent is the system robust against character-level typo perturbations in sentiment analysis tasks?
  • RQ3How effective are synonym-based adversarial attacks in degrading the performance of the ChatGPT-based sentiment analysis system?
  • RQ4What is the impact of homoglyph perturbations on system robustness, particularly in terms of visual similarity and semantic preservation?
  • RQ5How does homophone-based perturbation, based on phonetic similarity, affect the system’s sentiment classification accuracy?

Key findings

  • The ChatGPT-based sentiment analysis system demonstrated high robustness against homophone and homoglyph perturbations, with low accuracy drops of 0.0497 and 0.0646 on the Amazon and SST datasets, respectively.
  • Synonym perturbation was the most effective adversarial attack, causing the largest accuracy drop of 0.2406 on the Amazon dataset and an ASR of 0.2397, indicating a significant vulnerability to semantic-level manipulation.
  • Homoglyph perturbation showed moderate strength, with an accuracy drop of 0.0646 on the SST dataset and an ASR of 0.1290, outperforming typo but underperforming synonym attacks.
  • Typo perturbations had the weakest impact, with the lowest accuracy drop and ASR values, indicating that character-level errors are less disruptive to the model’s sentiment classification.
  • The system maintained relatively high baseline accuracy (0.8942 on Amazon, 0.8065 on SST), suggesting strong generalization and reliability under normal conditions.
  • Despite overall robustness, operational uncertainty due to model updates and time-of-execution variations remains a critical concern for real-world deployment.
Figure 2: ChatGPT’s responses on two devices at same time
Figure 2: ChatGPT’s responses on two devices at same time

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.