LangBiTe: model-driven bias testing of text-to-text large language models
Large language models (LLMs) have rapidly gained popularity across a wide range of applications, from customer support to content generation and decision support systems. However, LLMs have also been found to exhibit social biases, reflecting and amplifying stereotypes and prejudices present in their training data. Such biases can lead to harmful outcomes, particularly in sensitive domains. Addressing these risks is essential to ensure that the adoption of LLMs contributes positively to society without reinforcing existing inequalities. To facilitate a continuous, robust ethical assessment of text-to-text LLMs, we propose LangBiTe, a model-driven solution to configure and automate the testing of ethical biases. LangBiTe may uncover biases embedded within the LLM-based components of a software system and thus motivate adjustments, or the selection of a different LLM in line with the ethical requirements. The model-driven approach makes both the requirements specification and the test generation platform-independent and provides end-to-end traceability between the requirements and their assessment. Moreover, LangBiTe includes capabilities for an LLM-assisted generation of bias-testing datasets. We have implemented an open-source tool set, available on GitHub, to support the application of our approach. Finally, we present a series of case studies where LangBiTe was applied to unveil biases in several, popular online text-to-text LLMs, thus demonstrating the effectiveness of its diverse functionalities.
Authors
- Robert Clarisó (ORCID: https://orcid.org/0000-0001-9639-0186)
- Sergio Morales (ORCID: https://orcid.org/0000-0002-5921-9440)
- Jordi Cabot (ORCID: https://orcid.org/0000-0003-2418-2489)
Institutions
- Universitat Oberta de Catalunya (ES)
- University of Luxembourg (LU)
- Luxembourg Institute of Science and Technology (LU)
Publication Details
- Journal
- Software & Systems Modeling
- Published
- 2026-09-24
- DOI
- https://doi.org/10.1007/s10270-026-01425-2
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00