Bias and Fairness
AI EngineerBias in an AI system is a systematic skew in its outputs that treats some groups differently from others — and fairness is the discipline of measuring and correcting it. LLMs learn from internet-scale text, so they absorb the stereotypes and historical inequities baked into that data: associating professions with genders, defaulting to certain cultural norms, or performing worse in some dialects and languages. Bias also enters through your own choices — the few-shot examples you pick, the retrieval corpus you index, the feedback data you fine-tune on.
This stops being abstract the moment your model output influences a decision. Screening résumés, scoring loan applications, triaging support tickets, or summarizing medical notes with a skewed model can produce disparate impact — systematically worse outcomes for a protected group — which is illegal in hiring, credit, and housing in most jurisdictions regardless of whether a human or a model made the call. Regulators (the EEOC, the ICO under GDPR, the EU AI Act) have made clear that “the vendor’s model did it” does not transfer liability away from you.
Your job here is measurement and honest system design, distinct from the runtime filtering covered in the next topic. You’ll build counterfactual evaluations — run identical inputs with only a name, gender, or dialect swapped and diff the outputs — and disaggregate your quality metrics by demographic slice instead of trusting one global average. You’ll audit training and few-shot data for representation gaps, document known limitations, and keep humans in the loop on consequential decisions.