journal article·2024-04-20Open access

Scaling Implicit Bias Analysis across Transformer-Based Language Models through Embedding Association Test and Prompt Engineering

Ravi Varma Kumar Bevara, Nishith Reddy Mannuru, Sai Pranathi Karedla, Ting Xiao

Applied Sciences· Volume 14· Issue 8

Abstract

In the evolving field of machine learning, deploying fair and transparent models remains a formidable challenge. This study builds on earlier research, demonstrating that neural architectures exhibit inherent biases by analyzing a broad spectrum of transformer-based language models from base to x-large configurations. This article investigates movie reviews for genre-based bias, which leverages the Word Embedding Association Test (WEAT), revealing that scaling models up tends to mitigate bias, with larger models showing up to a 29% reduction in prejudice. Alternatively, this study also underscores the effectiveness of prompt-based learning, a facet of prompt engineering, as a practical approach to bias mitigation, as this technique reduces genre bias in reviews by more than 37% on average. This suggests that the refinement of development practices should include the strategic use of prompts in shaping model outputs, highlighting the crucial role of ethical AI integration to weave fairness seamlessly into the core functionality of transformer models. Despite the basic nature of the prompts employed in this research, this highlights the possibility of embracing structured prompt engineering to create AI systems that are ethical, equitable, and more responsible for their actions.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Natural Language Processing Techniques · Topic Modeling

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Information Science, University of North Texas, Denton, TX 76205, USA

Department of Computer Science and Engineering, University of North Texas, Denton, TX 76205, USA

References (32)

Show source-provided references
1. Do actions speak louder than voices? The signaling role of social information cues in influencing consumer purchase decisions10.1016/j.dss.2014.05.002 ↗
2. Liang, P.P., Wu, C., Morency, L.P., and Salakhutdinov, R. (2021, January 18–24). Towards understanding and mitigating social biases in language models. Proceedings of the International Conference on Machine Learning, Virtual.
3. Silberg, J., and Manyika, J. (2019). Notes from the AI Frontier: Tackling Bias in AI (and in Humans), McKinsey Global Institute.
4. A survey on bias and fairness in machine learning10.1145/3457607 ↗
5. Bias in data-driven artificial intelligence systems—An introductory survey10.1002/widm.1356 ↗
6. Prompt text classifications with transformer models! An exemplary introduction to prompt-based learning with large language models10.1080/15391523.2022.2142872 ↗
7. Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., and Wang, J. (2019). Release strategies and the social impacts of language models. arXiv.
8. Bevara, R.V.K., Xiao, T., Hosseini, F., and Ding, J. (2023, January 22–26). Bias Analysis in Language Models using An Association Test and Prompt Engineering. Proceedings of the 2023 IEEE 23rd International Conference on Software Quality, Reliability, and Security Companion (QRS-C), Chiang Mai, Thailand.10.1109/QRS-C60940.2023.00052 ↗
9. Bevara, R.V.K., Yarra, D., Sanku, S.P., Kolli, H., and Xiao, T. (2023, January 1). Customer Segmentation Beyond K-Means: A Deep and Hybrid Perspective with Autoencoders based Behavioral Embeddings. Proceedings of the 2023 Multi-Disciplinary Information Research Symposium (MIRS), Denton, TX, USA.
10. Trustworthy Artificial Intelligence: A Review10.1145/3491209 ↗
11. Trustworthy AI: From Principles to Practices
12. Bowman, S.R., Angeli, G., Potts, C., and Manning, C.D. (2015). A large annotated corpus for learning natural language inference. arXiv.10.18653/v1/D15-1075 ↗
13. Kumar, S., Sharma, K., Veragi, D., and Juyal, A. (2022, January 26–27). Sentimental Analysis of Movie Reviews Using Machine Learning Algorithms. Proceedings of the 2022 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COM-IT-CON), Faridabad, India.10.1109/COM-IT-CON54601.2022.9850878 ↗
14. Mishra, A., Mishra, H., and Rathee, S. (2019). Examining the Presence of Gender Bias in Customer Reviews Using Word Embedding. arXiv.10.2139/ssrn.3327404 ↗
15. Semantics derived automatically from language corpora contain human-like biases10.1126/science.aal4230 ↗
16. Bolukbasi, T., Chang, K.-W., Zou, J.Y., Saligrama, V., and Kalai, A.T. (2016). Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings. arXiv.
17. Hube, C., Idahl, M., and Fetahu, B. (2020, January 3–7). Debiasing Word Embeddings from Sentiment Associations in Names. Proceedings of the 13th International Conference on Web Search and Data Mining, Houston, TX, USA.10.1145/3336191.3371779 ↗
18. Sengupta, K., and Srivastava, P.R. (2022). Causal effect of racial bias in data and machine learning algorithms on user persuasiveness and discriminatory decision making: An Empirical Study. arXiv.10.21203/rs.3.rs-2509731/v1 ↗
19. Sun, T., Gaut, A., Tang, S., Huang, Y., ElSherief, M., Zhao, J., Mirza, D., Belding, E., Chang, K.-W., and Wang, W.Y. (2019). Mitigating Gender Bias in Natural Language Processing: Literature Review. arXiv.10.18653/v1/P19-1159 ↗
20. Samin, A.M., Nikandish, B., and Chen, J. (2022). Arguments to Key Points Mapping with Prompt-based Learning. arXiv.
21. Integrated BERT embeddings, BiLSTM-BiGRU and 1-D CNN model for binary sentiment classification analysis of movie reviews10.1007/s11042-022-13155-w ↗
22. Jentzsch, S., and Turan, C. (2022, January 15). Gender Bias in BERT—Measuring and Analysing Biases through Sentiment Rating in a Realistic Downstream Classification Task. Proceedings of the 4th Workshop on Gender Bias in Natural Language Processing (GeBNLP), Online.10.18653/v1/2022.gebnlp-1.20 ↗
23. Li, Q., Li, X., Song, Y., Zhang, M., Chen, L., Wang, G., and Du, Y. (2022, January 18–20). Evaluating BERT on cloud-edge time series forecasting and sentiment analysis via prompt learning. Proceedings of the 2022 IEEE 24th Int Conf on High Performance Computing and Communications; 8th Int Conf on Data Science and Systems; 20th Int Conf on Smart City; 8th Int Conf on Dependability in Sensor, Cloud and Big Data Systems and Application (HPCC/DSS/SmartCity/DependSys), Hainan, China.10.1109/HPCC-DSS-SmartCity-DependSys57074.2022.00051 ↗
24. Manzini, T., Lim, Y.C., Tsvetkov, Y., and Black, A.W. (2019). Black is to criminal as caucasian is to police: Detecting and removing multiclass bias in word embeddings. arXiv.10.18653/v1/N19-1062 ↗
25. Ravfogel, S., Elazar, Y., Gonen, H., Twiton, M., and Goldberg, Y. (2020). Null it out: Guarding protected attributes by iterative nullspace projection. arXiv.10.18653/v1/2020.acl-main.647 ↗
26. Urman, A., and Makhortykh, M. (2023). The Silence of the LLMs: Cross-Lingual Analysis of Political Bias and False Information Prevalence in ChatGPT, Google Bard, and Bing Chat.10.31219/osf.io/q9v8f ↗
27. Bert, xlnet or roberta: The best transfer learning model to detect clickbaits10.1109/ACCESS.2021.3128742 ↗
28. González, F., Torres-Ruiz, M., Rivera-Torruco, G., Chonona-Hernández, L., and Quintero, R. (2023). A Natural-Language-Processing-Based Method for the Clustering and Analysis of Movie Reviews and Classification by Genre. Mathematics, 11.10.20944/preprints202310.0286.v1 ↗
29. Maas, A.L., Daly, R.E., Pham, P.T., Huang, D., Ng, A.Y., and Potts, C. (2011, January 19–24). Learning word vectors for sentiment analysis. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Portland, OR, USA.
30. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv.
31. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). Roberta: A robustly optimized bert pretraining approach. arXiv.
32. Bender, E.M., Gebru, T., McMillan-Major, A., and Shmitchell, S. (2021, January 3–10). On the dangers of stochastic parrots: Can language models be too big?. Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, Virtual Event.10.1145/3442188.3445922 ↗