LangFair:一个用于评估大型语言模型用例中偏见与公平性的Python包
LangFair: A Python Package for Assessing Bias and Fairness in Large Language Model Use Cases
AI总结:
本文介绍了开源Python包LangFair,旨在为LLM从业者提供评估特定用例中偏见与公平性风险的工具,支持生成评估数据集、计算适用指标,并提供决策框架指导指标选择。
摘要:
大型语言模型(LLMs)被观察到在许多方面表现出偏见,可能对由性别、种族、性取向或年龄等受保护属性界定的特定群体造成或恶化结果。为帮助解决这一差距,我们引入了LangFair,这是一个开源的Python包,旨在为LLM从业者提供工具,以评估与其特定用例相关的偏见和公平性风险。该包提供功能以轻松生成评估数据集,包含LLM对用例特定提示的响应,并随后为从业者的用例计算适用的指标。为指导指标选择,LangFair提供了一个可操作的决策框架。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。