mlsanityData to 7 Oct 2026

BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systems

arXiv 2102.01859 ↗First posted 3 Feb 2021cs.SEcited by 20

Not on the map. Why?

Abstract (arXiv)

Artificial Intelligence (AI) software systems, such as Sentiment Analysis (SA) systems, typically learn from large amounts of data that may reflect human biases. Consequently, the machine learning model in such software systems may exhibit unintended demographic bias based on specific characteristics (e.g., gender, occupation, country-of-origin, etc.). Such biases manifest in an SA system when it predicts a different sentiment for similar texts that differ only in the characteristic of individuals described. Existing studies on revealing bias in SA systems rely on the production of sentences from a small set of short, predefined templates. To address this limitation, we present BisaFinder, an approach to discover biased predictions in SA systems via metamorphic testing. A key feature of BisaFinder is the automatic curation of suitable templates based on the pieces of text from a large corpus, using various Natural Language Processing (NLP) techniques to identify words that describe demographic characteristics. Next, BisaFinder instantiates new text from these templates by filling in placeholders with words associated with a class of a characteristic (e.g., gender-specific words such as female names, "she", "her"). These texts are used to tease out bias in an SA system. BisaFinder identifies a bias-uncovering test case when it detects that the SA system exhibits demographic bias for a pair of texts, i.e., it predicts a different sentiment for texts that differ only in words associated with a different class (e.g., male vs. female) of a target characteristic (e.g., gender). Our empirical evaluation showed that BiasFinder can effectively create a larger number of fluent and diverse test cases that uncover various biases in an SA system.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Feb 2021.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 2; 2023: 7; 2024: 4; 2025: 4; 2026: 2.

20 papers.

Sort:

By area:

  1. 2022BAFFLE: Hiding Backdoors in Offline Reinforcement Learning Datasetscited by 24
  2. 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
  3. 2023Towards Fair Machine Learning Software: Understanding and Addressing Model Bias Through Counterfactual Thinkingcited by 14
  4. 2023The Sentiment Problem: A Critical Survey towards Deconstructing Sentiment Analysiscited by 12
  5. 2024Fairness Testing of Large Language Models in Role-Playingcited by 10
  6. 2023"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Processcited by 9
  7. 2022Towards an Enhanced Understanding of Bias in Pre-trained Neural Language Models: A Survey with Special Emphasis on Affective Biascited by 8
  8. 2021How Emotionally Stable is ALBERT? Testing Robustness with Stochastic Weight Averaging on a Sentiment Analysis Taskcited by 5
  9. 2024A Catalog of Fairness-Aware Practices in Machine Learning Engineeringcited by 4
  10. 2025Do Existing Testing Tools Really Uncover Gender Bias in Text-to-Image Models?cited by 4
  11. 2023Language-Agnostic Bias Detection in Language Models with Bias Probingcited by 2
  12. 2023Gender Bias in Transformer Models: A comprehensive surveycited by 2
8 more
  1. 2025Efficient Fairness Testing in Large Language Models: Prioritizing Metamorphic Relations for Bias Detectioncited by 2
  2. 2023ASDF: A Differential Testing Framework for Automatic Speech Recognition Systemscited by 0
  3. 2024Linguistic features for sentence difficulty prediction in ABSAcited by 0
  4. 2024Efficient DNN-Powered Software with Fair Sparse Modelscited by 0
  5. 2025Applications and Challenges of Fairness APIs in Machine Learning Softwarecited by 0
  6. 2025BTC-SAM: Leveraging LLMs for Generation of Bias Test Cases for Sentiment Analysis Modelscited by 0
  7. 2026Towards a more efficient bias detection in financial language modelscited by 0
  8. 2026Ethics Testing: Proactive Identification of Generative AI System Harmscited by 0