Sociolinguistically Informed Interpretability: A Case Study on Hinglish Emotion Classification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tatariya, Kushal, Lent, Heather, Bjerva, Johannes, de Lhoneux, Miryam
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910318772355072
author Tatariya, Kushal
Lent, Heather
Bjerva, Johannes
de Lhoneux, Miryam
author_facet Tatariya, Kushal
Lent, Heather
Bjerva, Johannes
de Lhoneux, Miryam
contents Emotion classification is a challenging task in NLP due to the inherent idiosyncratic and subjective nature of linguistic expression, especially with code-mixed data. Pre-trained language models (PLMs) have achieved high performance for many tasks and languages, but it remains to be seen whether these models learn and are robust to the differences in emotional expression across languages. Sociolinguistic studies have shown that Hinglish speakers switch to Hindi when expressing negative emotions and to English when expressing positive emotions. To understand if language models can learn these associations, we study the effect of language on emotion prediction across 3 PLMs on a Hinglish emotion classification dataset. Using LIME and token level language ID, we find that models do learn these associations between language choice and emotional expression. Moreover, having code-mixed data present in the pre-training can augment that learning when task-specific data is scarce. We also conclude from the misclassifications that the models may overgeneralise this heuristic to other infrequent examples where this sociolinguistic phenomenon does not apply.
format Preprint
id arxiv_https___arxiv_org_abs_2402_03137
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Sociolinguistically Informed Interpretability: A Case Study on Hinglish Emotion Classification
Tatariya, Kushal
Lent, Heather
Bjerva, Johannes
de Lhoneux, Miryam
Computation and Language
Machine Learning
Emotion classification is a challenging task in NLP due to the inherent idiosyncratic and subjective nature of linguistic expression, especially with code-mixed data. Pre-trained language models (PLMs) have achieved high performance for many tasks and languages, but it remains to be seen whether these models learn and are robust to the differences in emotional expression across languages. Sociolinguistic studies have shown that Hinglish speakers switch to Hindi when expressing negative emotions and to English when expressing positive emotions. To understand if language models can learn these associations, we study the effect of language on emotion prediction across 3 PLMs on a Hinglish emotion classification dataset. Using LIME and token level language ID, we find that models do learn these associations between language choice and emotional expression. Moreover, having code-mixed data present in the pre-training can augment that learning when task-specific data is scarce. We also conclude from the misclassifications that the models may overgeneralise this heuristic to other infrequent examples where this sociolinguistic phenomenon does not apply.
title Sociolinguistically Informed Interpretability: A Case Study on Hinglish Emotion Classification
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2402.03137