BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systems
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
Citing papers per year: 2021: 1; 2022: 2; 2023: 7; 2024: 4; 2025: 4; 2026: 2.
20 papers.
Sort:
By area:
- 2022BAFFLE: Hiding Backdoors in Offline Reinforcement Learning Datasetscited by 24
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
- 2023Towards Fair Machine Learning Software: Understanding and Addressing Model Bias Through Counterfactual Thinkingcited by 14
- 2023The Sentiment Problem: A Critical Survey towards Deconstructing Sentiment Analysiscited by 12
- 2024Fairness Testing of Large Language Models in Role-Playingcited by 10
- 2023"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Processcited by 9
- 2022Towards an Enhanced Understanding of Bias in Pre-trained Neural Language Models: A Survey with Special Emphasis on Affective Biascited by 8
- 2021How Emotionally Stable is ALBERT? Testing Robustness with Stochastic Weight Averaging on a Sentiment Analysis Taskcited by 5
- 2024A Catalog of Fairness-Aware Practices in Machine Learning Engineeringcited by 4
- 2025Do Existing Testing Tools Really Uncover Gender Bias in Text-to-Image Models?cited by 4
- 2023Language-Agnostic Bias Detection in Language Models with Bias Probingcited by 2
- 2023Gender Bias in Transformer Models: A comprehensive surveycited by 2
8 more
- 2025Efficient Fairness Testing in Large Language Models: Prioritizing Metamorphic Relations for Bias Detectioncited by 2
- 2023ASDF: A Differential Testing Framework for Automatic Speech Recognition Systemscited by 0
- 2024Linguistic features for sentence difficulty prediction in ABSAcited by 0
- 2024Efficient DNN-Powered Software with Fair Sparse Modelscited by 0
- 2025Applications and Challenges of Fairness APIs in Machine Learning Softwarecited by 0
- 2025BTC-SAM: Leveraging LLMs for Generation of Bias Test Cases for Sentiment Analysis Modelscited by 0
- 2026Towards a more efficient bias detection in financial language modelscited by 0
- 2026Ethics Testing: Proactive Identification of Generative AI System Harmscited by 0
- 2026Ethics Testing: Proactive Identification of Generative AI System Harms23 Apr 2026
- 2026Towards a more efficient bias detection in financial language models9 Mar 2026
- 2025BTC-SAM: Leveraging LLMs for Generation of Bias Test Cases for Sentiment Analysis Models28 Sep 2025
- 2025Applications and Challenges of Fairness APIs in Machine Learning Software22 Aug 2025
- 2025Efficient Fairness Testing in Large Language Models: Prioritizing Metamorphic Relations for Bias Detection9 May 2025
- 2025Do Existing Testing Tools Really Uncover Gender Bias in Text-to-Image Models?27 Jan 2025
- 2024Fairness Testing of Large Language Models in Role-Playing1 Nov 2024
- 2024A Catalog of Fairness-Aware Practices in Machine Learning Engineering29 Aug 2024
- 2024Efficient DNN-Powered Software with Fair Sparse Models3 Jul 2024
- 2024Linguistic features for sentence difficulty prediction in ABSA5 Feb 2024
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualities11 Dec 2023
- 2023The Sentiment Problem: A Critical Survey towards Deconstructing Sentiment Analysis18 Oct 2023
8 more
- 2023Gender Bias in Transformer Models: A comprehensive survey18 Jun 2023
- 2023Language-Agnostic Bias Detection in Language Models with Bias Probing22 May 2023
- 2023"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Process4 May 2023
- 2023Towards Fair Machine Learning Software: Understanding and Addressing Model Bias Through Counterfactual Thinking16 Feb 2023
- 2023ASDF: A Differential Testing Framework for Automatic Speech Recognition Systems11 Feb 2023
- 2022BAFFLE: Hiding Backdoors in Offline Reinforcement Learning Datasets7 Oct 2022
- 2022Towards an Enhanced Understanding of Bias in Pre-trained Neural Language Models: A Survey with Special Emphasis on Affective Bias21 Apr 2022
- 2021How Emotionally Stable is ALBERT? Testing Robustness with Stochastic Weight Averaging on a Sentiment Analysis Task18 Nov 2021
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
- 2023Towards Fair Machine Learning Software: Understanding and Addressing Model Bias Through Counterfactual Thinkingcited by 14
- 2023The Sentiment Problem: A Critical Survey towards Deconstructing Sentiment Analysiscited by 12
- 2024Fairness Testing of Large Language Models in Role-Playingcited by 10
- 2023"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Processcited by 9
- 2022Towards an Enhanced Understanding of Bias in Pre-trained Neural Language Models: A Survey with Special Emphasis on Affective Biascited by 8
- 2021How Emotionally Stable is ALBERT? Testing Robustness with Stochastic Weight Averaging on a Sentiment Analysis Taskcited by 5
- 2024A Catalog of Fairness-Aware Practices in Machine Learning Engineeringcited by 4
- 2023Language-Agnostic Bias Detection in Language Models with Bias Probingcited by 2
- 2023Gender Bias in Transformer Models: A comprehensive surveycited by 2
- 2025Efficient Fairness Testing in Large Language Models: Prioritizing Metamorphic Relations for Bias Detectioncited by 2
- 2023ASDF: A Differential Testing Framework for Automatic Speech Recognition Systemscited by 0
12 most cited of 18 All 18 (JSON)
- 2026Ethics Testing: Proactive Identification of Generative AI System Harms23 Apr 2026
- 2026Towards a more efficient bias detection in financial language models9 Mar 2026
- 2025BTC-SAM: Leveraging LLMs for Generation of Bias Test Cases for Sentiment Analysis Models28 Sep 2025
- 2025Applications and Challenges of Fairness APIs in Machine Learning Software22 Aug 2025
- 2025Efficient Fairness Testing in Large Language Models: Prioritizing Metamorphic Relations for Bias Detection9 May 2025
- 2024Fairness Testing of Large Language Models in Role-Playing1 Nov 2024
- 2024A Catalog of Fairness-Aware Practices in Machine Learning Engineering29 Aug 2024
- 2024Efficient DNN-Powered Software with Fair Sparse Models3 Jul 2024
- 2024Linguistic features for sentence difficulty prediction in ABSA5 Feb 2024
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualities11 Dec 2023
- 2023The Sentiment Problem: A Critical Survey towards Deconstructing Sentiment Analysis18 Oct 2023
- 2023Gender Bias in Transformer Models: A comprehensive survey18 Jun 2023
12 newest of 18 All 18 (JSON)