CertBrain
CoursesBlog
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Detecting and Monitoring Bias

Bias isn't something you check once and forget. It can hide in the labels, in how a model treats each group, and in how the world changes after launch. This lesson covers the practical checks the exam names (label quality analysis, subgroup analysis and human audits), how to keep watching a model…

9 cards
Study this deck

Detecting and Monitoring Bias

Bias isn't something you check once and forget. It can hide in the labels, in how a model treats each group, and in how the world changes after launch. This lesson covers the practical checks the exam names (label quality analysis, subgroup analysis and human audits), how to keep watching a model after release, and which AWS tools support each check today.

Check the labels first

A supervised model treats its labels as the truth, so biased or inconsistent labels become biased predictions. Label problems usually come from people: unclear instructions, labelers who interpret a category differently, or labelers whose own assumptions creep in.

Common checks include:

  • sending each item to several labelers and comparing their answers;
  • measuring how often they agree;
  • reviewing the items where they disagree;
  • auditing a random sample against expert judgment.

Combining several labelers' answers into one, called consensus, reduces the effect of any single person's mistakes or bias. If agreement is low, fix the instructions and relabel before training.

Subgroup analysis

Subgroup analysis means calculating a model's results separately for each group of people, such as age band, region, language or gender, and comparing them. Useful comparisons include accuracy, error rates, and how often each group gets the favourable outcome (an approval or a job interview). A large gap between groups is a warning sign, even when the overall numbers look good. This is the core technique for detecting unfair treatment, because averages hide exactly the groups that are being failed.

Human audits

Automated metrics can't catch everything. A human audit is a structured review in which people examine a sample of a model's inputs and outputs, looking for unfair, harmful or untrue results. Reviewers should include people with the right expertise and a range of backgrounds. Audits work best when they're repeated on a schedule, use clear written criteria, and feed findings back into data and model fixes.

For generative AI, Amazon Bedrock model evaluation supports human-based jobs, where your own work team of employees or subject-matter experts rates model responses against metrics you describe.

Monitoring after launch

A model that was fair at launch can drift. New kinds of users arrive, behaviour changes, and the data stops matching what the model was trained on. Ongoing monitoring means re-running subgroup analysis on recent predictions, tracking complaints and user feedback, and repeating evaluations whenever the model, prompt or data changes.

Trustworthiness and truthfulness need watching too. For generative AI, Bedrock evaluation jobs that use a large language model as a judge offer built-in responsible AI metrics, including Stereotyping, Harmfulness and Refusal, alongside quality metrics such as Correctness and Faithfulness. Automatic evaluation jobs can also score Toxicity against built-in prompt sets.

AWS tools and their status

NeedCurrent optionNote
Automated bias and harm scoring for generative AIBedrock model evaluation (judge metrics such as Stereotyping)Repeatable before each release
Human audits of generative AI outputBedrock human-based evaluation with your own work teamYou define the rating criteria
Bias metrics for traditional ML modelsAmazon SageMaker ClarifyClosed to new customers; existing customers can still use it

Amazon Augmented AI (A2I), which routes low-confidence predictions to human reviewers, and SageMaker Model Monitor, which watches deployed models for drift, are also closed to new customers. Know what they do, but don't expect them to be the recommended choice for a new project.

On the exam

When a scenario asks how to find out whether a model treats groups fairly, look for subgroup analysis: comparing results group by group. When the labels are suspect, look for checking labeler agreement before retraining. When a team needs repeatable checks on generative AI output without reviewers every time, look for an automated evaluation with responsible AI metrics.

Quiz me on this
A software company is training a model to tag customer support tickets as "angry" or "not angry". Early tests show the model is inconsistent, and a review finds that different labelers tagged very similar tickets differently. What should the team do FIRST?
  1. Train the model for more epochs so that it smooths out the disagreements
  2. Switch to a larger model that can learn from noisy labels
  3. ✓ Have several people label each ticket and measure their agreement
  4. Remove every ticket labeled "angry" so that the dataset is easier to learn
A marketing agency uses a foundation model in Amazon Bedrock to draft ad copy. Before every release, it wants to check 2,000 test prompts for stereotypes about groups of people. The check must be repeatable and must not need human reviewers each time. Which approach meets these requirements?
  1. A human-based Bedrock evaluation job in which the agency's staff rate each response
  2. ✓ A judge-model Bedrock evaluation job using the Stereotyping metric
  3. A Bedrock guardrail with denied topics that blocks any mention of demographic groups
  4. An automatic Bedrock evaluation job that scores only the Robustness metric
A recruiting platform's screening model has good overall precision and recall. Its legal team asks whether the model treats applicants of different ages equitably. Which approach answers that question MOST directly?
  1. ✓ Compare outcomes and error rates for each age group
  2. Re-test the model on a larger sample and report the overall accuracy again
  3. Review the list of input features to check that age isn't one of them
  4. Ask the model to describe in writing how it made each decision
A bank's lending model passed a fairness review before launch a year ago. Regulators now want ongoing evidence that it stays fair as the bank's customer base changes. Which practice provides that evidence?
  1. Keeping the original pre-launch fairness report on file as its proof
  2. Retraining the model automatically every night on new data without review
  3. Waiting for customer complaints and investigating only when they arrive
  4. ✓ Scheduled subgroup checks on recent decisions, plus human audits
Label quality analysis
Checking that training labels are accurate and consistent, for example by measuring agreement between several labelers and reviewing disagreements.
Subgroup analysis
Calculating a model's results separately for each group, such as age or region, and comparing them to find unequal treatment.
Human audit (of an AI system)
A scheduled review in which people examine samples of inputs and outputs against written criteria, looking for unfair, harmful or untrue results.
Bedrock judge metrics for responsible AI
Built-in Stereotyping, Harmfulness and Refusal metrics, scored automatically by a judge model in a Bedrock evaluation job.
Amazon Augmented AI (A2I) status
Routes low-confidence predictions to human reviewers. Closed to new customers; existing customers can still use it.