Do LLMs Think Fast and Slow? A Causal Study on Sentiment Analysis

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lyu, Zhiheng, Jin, Zhijing, Gonzalez, Fernando, Mihalcea, Rada, Schölkopf, Bernhard, Sachan, Mrinmaya
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929561619398656
author Lyu, Zhiheng
Jin, Zhijing
Gonzalez, Fernando
Mihalcea, Rada
Schölkopf, Bernhard
Sachan, Mrinmaya
author_facet Lyu, Zhiheng
Jin, Zhijing
Gonzalez, Fernando
Mihalcea, Rada
Schölkopf, Bernhard
Sachan, Mrinmaya
contents Sentiment analysis (SA) aims to identify the sentiment expressed in a text, such as a product review. Given a review and the sentiment associated with it, this work formulates SA as a combination of two tasks: (1) a causal discovery task that distinguishes whether a review "primes" the sentiment (Causal Hypothesis C1), or the sentiment "primes" the review (Causal Hypothesis C2); and (2) the traditional prediction task to model the sentiment using the review as input. Using the peak-end rule in psychology, we classify a sample as C1 if its overall sentiment score approximates an average of all the sentence-level sentiments in the review, and C2 if the overall sentiment score approximates an average of the peak and end sentiments. For the prediction task, we use the discovered causal mechanisms behind the samples to improve LLM performance by proposing causal prompts that give the models an inductive bias of the underlying causal graph, leading to substantial improvements by up to 32.13 F1 points on zero-shot five-class SA. Our code is at https://github.com/cogito233/causal-sa
format Preprint
id arxiv_https___arxiv_org_abs_2404_11055
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Do LLMs Think Fast and Slow? A Causal Study on Sentiment Analysis
Lyu, Zhiheng
Jin, Zhijing
Gonzalez, Fernando
Mihalcea, Rada
Schölkopf, Bernhard
Sachan, Mrinmaya
Computation and Language
Sentiment analysis (SA) aims to identify the sentiment expressed in a text, such as a product review. Given a review and the sentiment associated with it, this work formulates SA as a combination of two tasks: (1) a causal discovery task that distinguishes whether a review "primes" the sentiment (Causal Hypothesis C1), or the sentiment "primes" the review (Causal Hypothesis C2); and (2) the traditional prediction task to model the sentiment using the review as input. Using the peak-end rule in psychology, we classify a sample as C1 if its overall sentiment score approximates an average of all the sentence-level sentiments in the review, and C2 if the overall sentiment score approximates an average of the peak and end sentiments. For the prediction task, we use the discovered causal mechanisms behind the samples to improve LLM performance by proposing causal prompts that give the models an inductive bias of the underlying causal graph, leading to substantial improvements by up to 32.13 F1 points on zero-shot five-class SA. Our code is at https://github.com/cogito233/causal-sa
title Do LLMs Think Fast and Slow? A Causal Study on Sentiment Analysis
topic Computation and Language
url https://arxiv.org/abs/2404.11055