Catalogue of Tools & Metrics for Trustworthy AI

These tools and metrics are designed to help AI actors develop and use trustworthy AI systems and applications that respect human rights and are fair, transparent, explainable, robust, secure and safe.

330 citations of this metric

Bias in open-ended language generation refers to the tendency of language models to produce text that reflects societal stereotypes or prejudices. These biases can manifest in emotional framing, harmful language, or unfair associations with demographic attributes, posing ethical and practical challenges. As language models are increasingly integrated into applications such as conversational agents, automated storytelling, and policy drafting, detecting and mitigating these biases is crucial for ensuring equitable AI deployment.

 

The BOLD (Bias in Open-Ended Language Generation Dataset) initiative provides a framework to evaluate these biases systematically. The dataset includes diverse prompts drawn from English Wikipedia, covering domains such as gender, race, profession, religion, and political ideology. Metrics derived from the BOLD framework enable precise quantification of biases in generative outputs from Large Language Models. This integration of metrics with dataset design supports reliable benchmarking and informed interventions.

 

Evaluation Metrics

The BOLD Metrics include a suite of evaluation tools to analyze biases in generated text across multiple dimensions. These metrics focus on emotional tone, harmful language, demographic regard, and associations with gender.

 

Sentiment Analysis evaluates the emotional tone of text generated in response to demographic prompts. Using the Valence Aware Dictionary and Sentiment Reasoner (VADER), sentiment is scored in the range [-1, 1], where -1 indicates negative sentiment and +1 indicates positive sentiment. This metric classifies text as positive, neutral, or negative based on empirically determined thresholds, enabling the identification of biases in emotional framing.

 

Toxicity Evaluation assesses the presence of harmful or abusive language in generated text. A fine-tuned BERT model identifies text as toxic if it falls into categories such as threats, obscenities, or identity attacks. This metric provides critical insights into the ethical implications of model outputs, particularly in applications involving sensitive content.

 

Regard Analysis measures societal biases in text directed toward specific demographic groups. This metric uses a BERT-based classifier trained on human-annotated datasets to evaluate text polarity concerning gender and race. Unlike general sentiment analysis, regard analysis focuses on attitudes toward specific demographics, offering a more targeted view of bias.

 

Psycholinguistic Norms examine the emotional and psychological characteristics of text through dimensions such as Valence, Arousal, and Dominance (VAD), as well as categorical emotions like Joy, Anger, and Sadness (BE5). Lexicons are extended to a broader vocabulary and aggregated to compute text-level scores. These norms contextualize biases in the affective states that generated text may evoke.

 

Gender Polarity Metrics analyze gender-related biases in text using explicit and implicit approaches. Explicit metrics count gender-specific tokens (e.g., “he,” “she”), while implicit metrics project word embeddings into a gender-aligned direction in a debiased embedding space. Aggregated scores indicate the degree of gender bias in text, capturing both overt and subtle biases.

 

Relation to the BOLD Dataset

The BOLD Metrics are directly aligned with the BOLD dataset, which serves as a foundation for evaluating language models under realistic conditions. By using naturalistic prompts and focusing on diverse domains, the metrics ensure comprehensive and empirically validated bias assessments. This alignment strengthens the interpretability and applicability of the metrics.

 

Application and Importance

The BOLD Metrics are essential for developers, researchers, and policymakers aiming to design equitable AI systems. These metrics support a wide range of use cases, from evaluating conversational agents to analyzing automated content generation tools. By providing a rigorous framework for bias quantification, the BOLD Metrics enable actionable strategies to mitigate societal biases in AI systems and promote transparency in generative AI research.

References

1. Dhamala, J., et al. (2021). BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generation.Proceedings of the ACM FAccT Conference, 2021. DOI: 10.1145/3442188.3445924
 

2. Hutto, C.J., & Gilbert, E. (2014). VADER: A Parsimonious Rule-Based Model for Sentiment Analysis of Social Media Text.Proceedings of the Eighth International Conference on Weblogs and Social Media (ICWSM).

About the metric


Metric type(s):


Objective(s):



Lifecycle stage(s):




Risk management stage(s):


Github stars:

  • 92

Github forks:

  • 17

Modify this metric

Partnership on AI

Disclaimer: The tools and metrics featured herein are solely those of the originating authors and are not vetted or endorsed by the OECD or its member countries. The Organisation cannot be held responsible for possible issues resulting from the posting of links to third parties' tools and metrics on this catalogue. More on the methodology can be found at https://oecd.ai/catalogue/faq.