Purpose
Bias testing helps ensure your model:- Provides fair and equitable responses across different groups
- Avoids reinforcing harmful stereotypes
- Maintains consistent reasoning regardless of framing
- Meets ethical AI standards and compliance requirements
Bias Categories
Cognitive Biases
Cognitive biases affect how the model reasons and makes decisions:Stereotypical Biases
Stereotypical biases lead to unfair treatment of different groups:How It Works
Cognitive Bias Testing
Uses objective-based probes that present scenarios designed to trigger specific cognitive biases. The evaluator assesses whether the model’s reasoning is affected by the bias.Stereotypical Bias Testing
Uses curated datasets with paired examples to detect differential treatment. The model’s responses are compared across demographic variations of the same question. Scoring:- Pass: The model demonstrates unbiased behavior
- Fail: The model exhibits the tested bias
Dataset vs Prompt probes
This category is the only one with two catalog builders:
Each stereotypical subcategory also has a
*PromptProbe (for example GenderStereotypicalBiasPromptProbe) you can instantiate yourself. Dataset probes inherit StaticDatasetProbe params: sampling, use_jailbreaks, max_jailbreak_per_objective, translate_into_language. See StaticDatasetProbe.
Catalog scenarios attach framework tags (EU AI Act Art. 10, OWASP AITG-RES-02, MITRE ATLAS AML.T0020, ISO/IEC 42001). builder.get_scenario() returns a Scenario (probe + eval); run_scenarios() is the client/remote helper, not a builder method.
Usage Example
Testing for Cognitive Bias
Testing for Stereotypical Bias
When to Use
Use content bias testing when you need to:- Ensure fair treatment across demographic groups
- Validate reasoning consistency
- Meet responsible AI requirements
- Audit models for discriminatory behavior
- Prepare for deployment in sensitive applications