LangFair: A Python Package for Assessing Bias and Fairness in Large Language Model Use Cases
Journal of Open Source Software · 23.01.2025 · 10 (105) · 7570
DOI: 10.21105/joss.07570 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Open Source Software, erschienen am 23.01.2025. Verfasst von Dylan Bouchard und 4 weiteren Autor:innen. Die Arbeit wurde bisher 6-mal zitiert (Crossref) und nennt 38 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Large Language Models (LLMs) have been observed to exhibit bias in numerous ways, potentially creating or worsening outcomes for specific groups identified by protected attributes such as sex, race, sexual orientation, or age. To help address this gap, we introduce LangFair, an open-source Python package that aims to equip LLM practitioners with the tools to evaluate bias and fairness risks relevant to their specific use cases. The package offers functionality to easily generate evaluation datasets, comprised of LLM responses to use-case-specific prompts, and subsequently calculate applicable metrics for the practitioner's use case. To guide in metric selection, LangFair offers an actionable decision framework.
Zitieren
APA
Bouchard, D., Chauhan, M. S., Skarbrevik, D., Bajaj, V., & Ahmad, Z. (2025). LangFair: A Python Package for Assessing Bias and Fairness in Large Language Model Use Cases. Journal of Open Source Software, 10(105), 7570. https://doi.org/10.21105/joss.07570
Vancouver
Bouchard D, Chauhan MS, Skarbrevik D, Bajaj V, Ahmad Z. LangFair: A Python Package for Assessing Bias and Fairness in Large Language Model Use Cases. Journal of Open Source Software. 2025;10(105):7570. doi:10.21105/joss.07570
BibTeX
@article{Bouchard2025,
author = {Bouchard, Dylan and Chauhan, Mohit Singh and Skarbrevik, David and Bajaj, Viren and Ahmad, Zeya},
title = {LangFair: A Python Package for Assessing Bias and Fairness in Large Language Model Use Cases},
journal = {Journal of Open Source Software},
year = {2025},
volume = {10},
number = {105},
pages = {7570},
doi = {10.21105/joss.07570}
}
EUVIMED