Abstract
Sentiment Analysis Systems (SASs) are data-driven Artificial Intelligence (AI) systems that output polarity and emotional intensity when given a piece of text as input. Like other AIs, SASs are also known to have unstable behavior when subjected to changes in data which can make it problematic to trust out of concerns like bias when AI works with humans and data has protected attributes like gender, race, and age. Recently, an approach was introduced to assess SASs in a blackbox setting without training data or code, and rating them for bias using synthetic English data. We augment it by introducing two human-generated chatbot datasets and also consider a round-trip setting of translating the data from one language to the same through an intermediate language. We find that these settings show SASs performance in a more realistic light. Specifically, we find that rating SASs on the chatbot data showed more bias compared to the synthetic data, and round-tripping using Spanish and Danish as intermediate languages reduces the bias (up to 68% reduction) in human-generated data while, in synthetic data, it takes a surprising turn by increasing the bias! Our findings will help researchers and practitioners refine their SAS testing strategies and foster trust as SASs are considered part of more mission-critical applications for global use.
Introduction
As Sentiment Analysis Systems (SASs) are increasingly integrated into mission-critical domains such as healthcare and finance, ensuring their fairness and reliability is paramount. However, these systems often exhibit biases related to protected attributes like gender and race. Traditional bias assessment methods frequently rely on synthetic, template-based datasets (e.g., "I made this [boy/girl] feel [happy]"). While useful for initial testing, such "clean" data fails to capture the linguistic complexity and unpredictability of real-world human conversation. This paper investigates how human-generated data and multi-step processing pipelines, specifically round-trip translation, affect bias assessment.
Methodology
The authors adopt a causal framework to evaluate bias, moving beyond simple statistical correlations. This approach models the relationships between protected attributes (Gender, Race), input text (Emotion Words), and system outputs (Sentiment) as a causal graph.
Two primary metrics are utilized to quantify bias:
- Weighted Rejection Score (WRS): Measures statistical bias by testing if a system's output varies significantly when a protected attribute is changed, across various confidence intervals.
- Deconfounding Impact Estimate (DIE): Measures confounding bias using Pearl’s backdoor adjustment to identify if a system unfairly associates specific emotion words with specific demographic groups.
A key contribution of this work is the evaluation of "round-trip translation." In this process, English input data is translated into an intermediate language (Spanish or Danish) and then back to English before being processed by the SAS to see how this pipeline affects bias scores.
Datasets
The study evaluates five SASs (including TextBlob, a GRU-based model, and DistilBERT) across three main datasets:
- EEC (Synthetic): 8,640 template-based sentences from the Equity Evaluation Corpus.
- ALLURE (Human-generated): A dataset derived from user interactions with a chatbot designed to help solve a Rubik’s Cube.
- Unibot (Human-generated): A dataset containing student queries to a university information chatbot.
Results and Discussion
The Synthetic Data Gap
The findings reveal a significant gap between synthetic and human-generated data. Synthetic templates, due to their lack of linguistic variety, often mask biases that only become apparent when the AI processes the messy reality of human speech. Systems that appeared neutral on synthetic data frequently failed to maintain that neutrality on human-generated datasets, with the Unibot dataset showing the highest bias amplification due to its greater vocabulary variety.
The Round-trip Paradox
The study uncovered a "Round-trip Paradox." For human-generated text, round-trip translation acted as a de-biasing filter, reducing bias by up to 68%. The authors suggest that the translation process "smooths out" idiosyncratic human expressions that might otherwise trigger biased responses. Conversely, for synthetic data, round-tripping unexpectedly increased bias, likely because the translation process introduced new, unintended nuances into the previously sterile templates.
Conclusion
This research demonstrates that relying solely on synthetic data for bias assessment provides an incomplete and potentially misleading picture of SAS performance. Human-generated datasets reveal higher levels of bias and offer a more realistic testing ground. Additionally, while round-trip translation can mitigate bias in human text, its effects are inconsistent across data types. These insights are crucial for researchers and practitioners aiming to build more trustworthy and equitable AI systems for global applications.
Summary updated