Bias in AI commonly refers to systematic patterns in data, predictions, or decisions that can disadvantage particular people or groups. Fairness concerns whether a system treats people equitably under explicitly chosen criteria. These concepts are related but not interchangeable: a measured difference between groups requires investigation, while deciding whether that difference is unfair depends on the task, context, and consequences. In other machine learning contexts, bias can also mean a model's simplifying assumptions or the error component in the bias–variance trade-off; those meanings do not automatically imply discrimination.
Unfair outcomes can originate before model training. A speech recognition dataset might underrepresent certain accents, leading to higher transcription error rates for those speakers. Historical hiring labels might encode past discrimination, so learning to reproduce those labels can perpetuate inequity. Measurement errors, subjective annotations, missing records, and deployment to a population different from the training population can also introduce or amplify disparities.
Fairness assessment begins by defining the decision, the affected groups, and the harms that matter. For a loan screening model, engineers might compare approval rates, false-positive rates, and false-negative rates across relevant groups. Demographic parity compares positive prediction rates, while equal opportunity compares true-positive rates among people who actually meet the target condition. These definitions answer different questions and cannot always be satisfied simultaneously, particularly when underlying outcome rates differ. Overall accuracy alone can hide poor performance for a smaller group.
In a cloud machine learning workflow, teams can version datasets, run subgroup evaluations during training pipelines, and retain assessment reports alongside model artifacts. They can block deployment when agreed thresholds are exceeded and monitor production outcomes as populations or behavior change. For example, a cloud-hosted document classifier might perform well overall but misclassify documents written in a regional dialect. Evaluating that subgroup separately can reveal a problem that an aggregate dashboard misses. Reliable assessment may require delayed ground-truth labels and enough examples to distinguish meaningful differences from sampling noise.
Mitigation can involve collecting more representative data, improving labels, reweighting training examples, changing the learning objective, or adjusting decision policies. Removing sensitive attributes does not guarantee fairness because other inputs, such as location, can act as proxies. Conversely, appropriately governed access to sensitive attributes may be necessary to measure disparities. Collection and use of those attributes require privacy safeguards, access controls, and review of applicable requirements.
Generative AI also requires fairness testing. An LLM can reproduce stereotypes, associate occupations with particular demographic groups, or provide uneven response quality across languages. Teams can test comparable prompts that vary demographic references, use representative evaluation datasets, and involve human reviewers. A biased response is not necessarily a hallucination: an output can be factually grounded yet selectively framed or unfair.
Fairness is an ongoing engineering and governance responsibility, not a property guaranteed by using a managed service or passing one metric. Mitigations can affect accuracy, cost, latency, and user experience, and fairness criteria can conflict with one another. Document the chosen criteria, residual limitations, and escalation process. For high-impact decisions, provide appropriate human oversight and a way to challenge outcomes, while recognizing that human reviewers can also introduce bias.