Skill 3.4.2
Apply fairness evaluations to ensure unbiased FM outputs (for example, by using pre-defined fairness metrics in CloudWatch, Amazon Bedrock Prompt Management and Amazon Bedrock Prompt Flows to perform systematic A/B testing, Amazon Bedrock with LLM-as-a-judge solutions to perform automated model evaluations)
Key Concepts
A fairness test set varies only a sensitive attribute, such as a name, gender or nationality, across otherwise identical prompts and compares outcomes: approval recommendations, tone, length or refusal rates. Pre-defined fairness metrics, such as the difference in favourable outcome rates between groups, are published to CloudWatch with thresholds and alarms.
Prompt Management variants and Bedrock Flows run systematic A/B tests of prompts or models on the same test set. LLM-as-a-judge evaluations in Bedrock score responses for stereotyping and harmfulness at scale, with human review of samples to confirm the judge's accuracy.