Uncertainty in Sentiment Analysis with LLMs using QCM (Quantiles of Correlation Matrices) - Distance

11 Pages Posted: 15 Apr 2024 Last revised: 28 Apr 2024

See all articles by Baptiste Lefort

Baptiste Lefort

University of Paris-Saclay - CentraleSupélec; AI For Alpha

Eric Benhamou

Université Paris Dauphine; AI For Alpha; EB AI Advisory; Université Paris-Dauphine, PSL Research University

Jean-Jacques Ohana

AI For Alpha

Beatrice Guez

AI For Alpha

David Saltiel

Université Paris Dauphine; A.I. Square Connect; AI For Alpha

Date Written: April 1, 2024

Abstract

In this paper, we investigate how to better understand uncertainty in sentiment score when
using Natural Language Processing (NLP) and Large Language Models (LLMs) to derive from
a sentiment score from a text. After explaining why uncertainty on sentiment score is challenging,
especially in the case of news sentiment analysis, we present multiple prompts and an
on-going research of a novel way to identify uncertainty in sentiment analysis. Our method
computes the correlation between the cumulative sentiment score over different time windows
with important influenced factors and validate that a similar proportion of patterns exists,
using a measure based on the distance of Quantiles of Correlation Matrices, called QCMDistance.
We apply this approach to see how sentiments in financial news are connected with
changes in stock markets and to assess that a common pattern exists with the produced sentiment
score, establishing a moderate uncertainty of the resulted sentiment score.

Keywords: LLMs, Quantile distance

JEL Classification: G11, G13

Suggested Citation

Lefort, Baptiste and Benhamou, Eric and Ohana, Jean-Jacques and Guez, Beatrice and Saltiel, David, Uncertainty in Sentiment Analysis with LLMs using QCM (Quantiles of Correlation Matrices) - Distance (April 1, 2024). Available at SSRN: https://ssrn.com/abstract=4780192 or http://dx.doi.org/10.2139/ssrn.4780192

Baptiste Lefort

University of Paris-Saclay - CentraleSupélec ( email )

Moulon Plateau 3 Joliot Curie Street
Gif-sur-Yvette, 91190
France

AI For Alpha ( email )

35 boulevard d'Inkermann
Neuilly sur Seine, 92200
France

Eric Benhamou (Contact Author)

Université Paris Dauphine ( email )

Place du Maréchal de Tassigny
Paris, Cedex 16 75775
France

AI For Alpha ( email )

35 boulevard d'Inkermann
Neuilly sur Seine, 92200
France

EB AI Advisory ( email )

35 Boulevard d'Inkermann
Neuilly sur Seine, 92200
France

Université Paris-Dauphine, PSL Research University ( email )

Place du Maréchal de Lattre de Tassigny
Paris, 75016
France

Jean-Jacques Ohana

AI For Alpha ( email )

35 boulevard d'Inkermann
Neuilly sur Seine, 92200
France

Beatrice Guez

AI For Alpha ( email )

35 boulevard d'Inkermann
Neuilly sur Seine, 92200
France

David Saltiel

Université Paris Dauphine ( email )

Place du Maréchal de Tassigny
Paris, Cedex 16 75775
France

A.I. Square Connect ( email )

35 Boulevard d'Inkermann
Neuilly sur Seine, 92200
France

AI For Alpha ( email )

35 boulevard d'Inkermann
Neuilly sur Seine, 92200
France

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
1,595
Abstract Views
4,056
Rank
23,800
PlumX Metrics