The integration of Large Language Models (LLMs) into various software applications raises concerns about their potential biases. Typically, those models are trained on a vast amount of data scrapped from forums, websites, social media and other internet sources, which may instill harmful and discriminating behavior into the model. To address this issue, we present LangBiTe, a testing platform to systematically assess the presence of biases within an LLM. LangBiTe enables development teams to tailor their test scenarios, and automatically generate and execute the test cases according to a set of user-defined ethical requirements. Each test consists of a prompt fed into the LLM and a corresponding test oracle that scrutinizes the LLM's response for the identification of biases. LangBite provides users with the bias evaluation of LLMs, and end-to-end traceability between the initial ethical requirements and the insights obtained.
Bias Testing and Mitigation in LLM-based Code Generation
The University of Hong Kong(香港大学);King’s College London(伦敦国王学院);Shanghai Jiao Tong University(上海交通大学);Singapore Management University(新加坡管理大学);Tianjin University(天津大学)
Fairness Testing of Large Language Models in Role-Playing
Peking University(北京大学);Tsinghua University(清华大学);King's College London(伦敦国王学院);Nanyang Technological University(南洋理工大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)
Contextual StereoSet: Stress-Testing Bias Alignment Robustness in Large Language Models
Indian Institute of Information Technology, Allahabad (IIITA)(印度信息与技术研究所(Allahabad));National Institute of Electronics and Information Technology (NIELIT)(国家电子与信息技术研究所)
Interdisciplinary Centre for Security, Reliability and Trust (SnT), University of Luxembourg(卢森堡大学安全、可靠性与信任跨学科中心);Singapore University of Technology and Design(新加坡科技设计大学)