Skip to main content
QUICK REVIEW

[Paper Review] ChatGPT vs Gemini vs LLaMA on Multilingual Sentiment Analysis

Alessio Buscemi, Daniele Proverbio|arXiv (Cornell University)|Jan 25, 2024
Topic ModelingComputer Science15 citations
TL;DR

The paper compares ChatGPT 3.5 and 4, Gemini Pro, and LLaMA2 7b on 20 nuanced sentiment scenarios translated into 10 languages, with human responses used as a benchmark.

ABSTRACT

Automated sentiment analysis using Large Language Model (LLM)-based models like ChatGPT, Gemini or LLaMA2 is becoming widespread, both in academic research and in industrial applications. However, assessment and validation of their performance in case of ambiguous or ironic text is still poor. In this study, we constructed nuanced and ambiguous scenarios, we translated them in 10 languages, and we predicted their associated sentiment using popular LLMs. The results are validated against post-hoc human responses. Ambiguous scenarios are often well-coped by ChatGPT and Gemini, but we recognise significant biases and inconsistent performance across models and evaluated human languages. This work provides a standardised methodology for automated sentiment analysis evaluation and makes a call for action to further improve the algorithms and their underlying data, to improve their performance, interpretability and applicability.

Motivation & Objective

  • Assess the performance of prominent LLMs (ChatGPT 3.5, ChatGPT 4, Gemini Pro, LLaMA2 7b) on complex sentiment interpretation tasks.
  • Evaluate cross-language consistency and bias in sentiment ratings across 10 languages.
  • Compare LLM outputs to human judgments to gauge alignment with native speakers.
  • Investigate the impact of safety filters in Gemini Pro on sentiment evaluation and biases.

Proposed method

  • Develop a dataset of 20 nuanced sentiment scenarios with irony and controversy.
  • Translate scenarios into 10 languages (DE, EN, ES, FR, IT, JA, PL, PT, RU, ZH) with validation by native speakers.
  • Query each model with a standardized sentiment-rating prompt (1–10) plus justification.
  • Use Python 3.11.2 and respective APIs (OpenAI for ChatGPT, Google for Gemini) to collect responses.
  • For LLaMA2, use the 7b model deployed locally and document hardware constraints.
  • Normalize and compare results using the language-normalized mean rating R_l across scenarios.

Experimental results

Research questions

  • RQ1How do ChatGPT 3.5, ChatGPT 4, Gemini Pro, and LLaMA2 7b differ in sentiment ratings across 20 nuanced scenarios?
  • RQ2To what extent do sentiment ratings vary by language for each model (cross-language bias)?
  • RQ3How well do model outputs align with native human judgments across languages?
  • RQ4What is the impact of Gemini Pro’s safety filters on sentiment evaluation and observed biases?

Key findings

  • ChatGPT models show similar ratings with overlapping confidence intervals; ChatGPT 4 typically has smaller CIs.
  • Gemini Pro patterns resemble ChatGPT but tend to be slightly more negative and experience more censoring in some scenarios/languages.
  • LLaMA2 7b yields consistently positive ratings (roughly 7–8/10) with narrower CIs, indicating an optimistic bias.
  • Language-dependent variation is evident for ChatGPT models (e.g., German/Polish/Russian more positive; French/Italian/Japanese more negative in some cases).
  • LLaMA2 shows minimal cross-language variation but overall positive bias; humans exhibit higher variability than LLMs in sentiment judgments.
  • Gemini Pro’s safety filters introduce censorship that varies by language and scenario, affecting quantitative evaluation.

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.