Lune

EMNLP2025Top-tier venue

BTC-SAM: Leveraging LLMs for Generation of Bias Test Cases for Sentiment Analysis Models

Zsolt T. Kardkovács, Lynda Djennane, Anna Field, Boualem Benatallah, Yacine Gaci, Fabio Casati, Walid Gaaloul

Abstract

Sentiment Analysis (SA) models harbor inherent social biases that can be harmful in realworld applications. These biases are identified by examining the output of SA models for sentences that only vary in the identity groups of the subjects. Constructing natural, linguistically rich, relevant, and diverse sets of sentences that provide sufficient coverage over the domain is expensive, especially when addressing a wide range of biases: it requires domain experts and/or crowd-sourcing. In this paper, we present a novel bias testing framework, BTC-SAM, which generates high-quality test cases for bias testing in SA models with minimal specification using Large Language Models (LLMs) for the controllable generation of test sentences. Our experiments show that relying on LLMs can provide high linguistic variation and diversity in the test sentences, thereby offering better test coverage compared to base prompting methods even for previously unseen biases. 1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Language (Technology) is Power: A Critical Survey of "Bias" in NLP cites Reducing Sentiment Bias in Language Models via Counterfactual Evaluation
  • This prompt is measuring : evaluating bias evaluation in language models cites Language (Technology) is Power: A Critical Survey of "Bias" in NLP
  • This prompt is measuring : evaluating bias evaluation in language models cites Reducing Sentiment Bias in Language Models via Counterfactual Evaluation
  • This prompt is measuring : evaluating bias evaluation in language models cites CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Models
  • CHBias: Bias Evaluation and Mitigation of Chinese Conversational Language Models cites CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Models
  • CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Models cites Reducing Sentiment Bias in Language Models via Counterfactual Evaluation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on7

  1. Reducing Sentiment Bias in Language Models via Counterfactual EvaluationPo-Sen Huang, Huan Zhang, Ray Jiang, Robert Stanforth et al.EMNLP Findings 2020 · 124 citations
  2. Language (Technology) is Power: A Critical Survey of "Bias" in NLPSu Lin Blodgett, Solon Barocas, Hal Daumé III, Hanna M. WallachACL 2020 · 68 citations
  3. CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language ModelsNikita Nangia, Clara Vania, Rasika Bhalerao, Samuel R. BowmanEMNLP 2020 · 19 citations
  4. CHBias: Bias Evaluation and Mitigation of Chinese Conversational Language ModelsJiaxu Zhao, Meng Fang, Zijing Shi, Yitong Li et al.ACL 2023 · 11 citations
  5. This prompt is measuring : evaluating bias evaluation in language modelsSeraphina Goldfarb-Tarrant, Eddie Ungless, Esma Balkir, Su Lin BlodgettACL Findings 2023 · 10 citations

Related papers

  1. Ask LLMs Directly, "What shapes your bias?": Measuring Social Bias in Large Language ModelsJisu Shin, Hoyun Song, Huije Lee, Soyeong Jeong et al.ACL Findings 2024 · 9 citations
  2. Social Bias Benchmark for Generation: A Comparison of Generation and QA-Based EvaluationsJiho Jin, Woosung Kang, Junho Myung, Alice OhACL Findings 2025
  3. Large Language Models Still Exhibit Bias in Long TextWonje Jeung, Dongjae Jeon, Ashkan Yousefpour, Jonghyun ChoiACL Findings 2025 · 2 citations
  4. Targeted Data Generation: Finding and Fixing Model WeaknessesZexue He, Marco Túlio Ribeiro, Fereshte KhaniACL 2023 · 6 citations
  5. BiasFilter: An Inference-Time Debiasing Framework for Large Language ModelsXiaoqing Cheng, Ruizhe Chen, Hongying Zan, Yuxiang Jia et al.EMNLP Findings 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines