Key takeaways
An accurate AI model can still distribute errors and opportunities unevenly across different groups.
Select fairness metrics according to the decision, the harm being measured and the reliability of the underlying data.
Removing protected characteristics from model inputs does not eliminate bias arising from proxy variables or historical decisions.
Treat disparities as evidence to investigate, not automatic proof of unlawful discrimination or evidence that a model is safe.
Evaluate the complete decision process, including human overrides, third-party components and the experience of affected people.
Make fairness testing a risk-based release and monitoring control, with accountable owners and documented remediation.
Would you approve an AI model that is 84% accurate?
Imagine your organisation introduces an AI tool to shortlist job applicants. The recruitment team is pleased with the pilot: the system correctly classifies 84% of candidates in an independent test. Even better, its accuracy is identical across two groups of applicants. On the surface, the model appears ready for wider use.
But a closer look reveals something important. Among applicants who meet the agreed job-related qualification criteria, the system identifies 90% in one group and just 70% in the other. The same overall accuracy hides a considerable difference in access to an interview.
These are hypothetical figures, but they illustrate a practical risk. A business can automate a decision successfully from an engineering perspective while making the decision process less equitable. It may overlook capable candidates, introduce avoidable complaints and lose confidence in its AI investment.
AI fairness and bias testing helps organisations identify these problems before they become embedded in everyday operations. It asks not only whether a model works, but also who benefits, who experiences errors and whether those differences can be justified.
Bias can enter long before the model is trained
Algorithmic fairness concerns how an AI system treats people and groups, including how it allocates opportunities and exposes them to errors or other harms. Bias testing examines evidence of potentially harmful systematic differences in data, predictions, decisions and outcomes. Fairness depends on the context; it is not a single statistical property.
Consider a recruitment system trained to reproduce earlier interview decisions. If previous hiring practices favoured particular educational backgrounds or career patterns without a sound job-related reason, a model may learn those preferences. The problem can originate in the historical decision process rather than in the choice of machine-learning algorithm.
Representation matters too. A speech recognition system trained mainly on a narrow range of accents may be less reliable for some callers. A document-processing application may perform poorly when customers use less common languages or layouts.
Removing gender, age or ethnicity from model features is not sufficient by itself. Other information can be correlated with these characteristics. For example, some location or employment-history variables may act as proxies; their relevance and effects need careful assessment.
NIST Special Publication 1270 explains bias through systemic, computational or statistical, and human-related factors.[1] This perspective is useful because a statistically improved model will not necessarily correct an unfair policy, a biased label or inconsistent human review.
What should fairness testing actually measure?
Start with the business decision. A recruitment tool that rejects qualified candidates creates a different type of harm from a fraud model that incorrectly blocks legitimate transactions. A customer-support assistant that misunderstands certain dialects presents another problem. Choose measurements that reflect those consequences.
Demographic parity: compare the proportion receiving a favourable decision in each group. A shortlist rate or an approval rate is easy to understand, but it does not tell you whether individual decisions were appropriate.
Equal opportunity: compare the true positive rate among groups. In a recruitment example, this is the percentage of applicants meeting a defensible qualification standard who are shortlisted. A lower true positive rate implies more missed qualified applicants.
False positive rate parity: compare how frequently genuinely negative cases receive a positive prediction. If the positive prediction means a fraud alert, this measures the proportion of legitimate transactions incorrectly flagged.
Equalised odds: assess both true positive and false positive rate differences. Similar selection rates can still conceal unequal error rates, so this approach examines two important dimensions of performance.
Group calibration: for probabilistic predictions, check whether similar predicted probabilities correspond to similar observed event frequencies across groups. For example, loans assigned a 10% default probability should, in an appropriate observed cohort, default at approximately that rate if the predictions are well calibrated.
Fairlearn documents common group fairness metrics and the assumptions that affect their interpretation.[2] None provides a complete fairness assessment in isolation. Research by Kleinberg, Mullainathan and Raghavan also demonstrates that certain fairness criteria for risk scores cannot generally be satisfied simultaneously.[3] Define priority metrics and acceptable trade-offs before looking at test results.
A worked example: identical accuracy, different opportunities
Return to the hypothetical recruitment pilot. Suppose a test dataset contains 500 applicants in each of two groups, A and B. In both groups, 200 applicants meet an independently assessed, job-related qualification standard. The figures below are invented solely to demonstrate how the metrics work; they are not customer results.
Group A: 180 qualified applicants and 60 other applicants are shortlisted. The system misses 20 qualified applicants and correctly rejects 240 others. Accuracy is (180 + 240) / 500 = 84%.
Group B: 140 qualified applicants and 20 other applicants are shortlisted. The system misses 60 qualified applicants and correctly rejects 280 others. Accuracy is (140 + 280) / 500 = 84%.
Selection rates are 48% for Group A (240 / 500) and 32% for Group B (160 / 500). The selection rate difference is 16 percentage points. The lower-to-higher selection rate ratio is 32% / 48% = 0.667, or approximately 66.7%.
True positive rates are 90% and 70%, a difference of 20 percentage points. False positive rates are 20% and approximately 6.7%, respectively, calculated using the 300 applicants in each group who do not meet the assumed qualification standard.
The result is a good reason to investigate. Group B has three times as many missed qualified candidates, despite equal sample sizes, equal qualification rates and identical model accuracy. Yet the model's accuracy alone would not reveal this problem.
In real testing, verify whether the qualification standard itself is appropriate, whether the sample represents applicants in practice and whether the differences are statistically and practically meaningful. Investigate features, data collection, model thresholds and human procedures before choosing a corrective action.
Why an 80% fairness score is not a universal pass mark
The four-fifths rule is often discussed in bias testing. In the context of United States employment selection, the Uniform Guidelines use a comparison of selection rates as an initial indicator of potential adverse impact. A rate below four-fifths of the highest group rate generally signals a disparity warranting attention.[4]
In the illustrative example, the ratio is approximately 66.7%, below that screening benchmark. However, the rule is not a universal requirement for AI systems, a definitive finding of unlawful discrimination or a guarantee that decisions above 80% are lawful. The official guidance recognises that sample size and statistical and practical significance matter.
An insurer, lender or employer operating in different jurisdictions needs to identify its actual legal obligations and applicable sector rules with appropriate specialists. Internal governance thresholds should reflect the harm, the use case and relevant requirements. They should not be imported from another context merely because they are easy to calculate.
Building a fairness assessment that produces useful evidence
Begin by defining the decision under review. Identify whether AI provides advice, ranks individuals, makes an automatic decision or triggers a human review. Identify affected populations, potential harms, the comparison groups and the stage where an error matters.
Establish a credible evaluation dataset. Examine coverage, missing values, label consistency and the representation of smaller groups. Use an independent hold-out dataset, and where appropriate, data from different time periods, locations or channels. Historical acceptance decisions are not necessarily reliable ground truth.
Agree on the lawful basis, purpose and safeguards for using sensitive information in testing. Where permitted and necessary, keep protected-attribute data in a restricted evaluation environment rather than exposing it to ordinary model-serving systems. Apply access controls, data minimisation and retention limits. If reliable group information is unavailable, document the resulting evidence gap rather than assuming the model is unbiased.
Calculate relevant performance and fairness metrics for each group, along with sample sizes and uncertainty estimates. Examine meaningful intersections, such as age and gender together where lawful and relevant. Small samples can produce unstable estimates; suitable confidence intervals or resampling methods can help quantify uncertainty, but cannot repair an unrepresentative dataset.[5]
Test plausible variations in input quality and circumstances. Compare the model with the existing decision process and with simpler alternatives. For high-impact systems, arrange independent challenge of the test design, labels, thresholds and interpretation.
Finally, record a release decision. Set criteria in advance for approval, further testing, remediation or a deployment restriction. An inconclusive result is not a successful test. Where evidence is inadequate for consequential decisions, limit use until the uncertainty is appropriately addressed.
Generative AI needs a different kind of bias test
Not all AI systems make binary predictions. A generative AI assistant may recommend actions, summarise customer conversations or draft responses. Its fairness risks can include stereotyping, unequal helpfulness, inappropriate refusals and differences in factual accuracy across languages or user groups.
Suppose an assistant helps employees write performance feedback. Test comparable descriptions of employee behaviour with carefully controlled variations in identity-related cues, where appropriate. Look for unjustified differences in tone, attributed competence, recommended promotion or disciplinary action. Use realistic cases alongside controlled pairs so the evaluation reflects actual usage.
Because generative models can produce different responses to the same prompt, repeat representative tests under documented settings. Combine trained human reviewers, clear scoring rubrics and automated checks where they have been validated. Record the model version, instructions, retrieval sources and evaluation conditions.
Counterfactual prompt pairs can help identify inconsistent behaviour, but changing a name or other cue is an imperfect representation of identity and may change relevant context. Benchmark scores also cannot establish fairness in a particular organisation's workflow.
NIST's Generative AI Profile provides voluntary guidance for evaluating risks associated with harmful bias in generative systems.[6] For a business using an external model, test the complete application, not merely the provider's base-model benchmark: prompts, retrieved content, filters and human procedures can all influence outcomes.
What to change when a test reveals a disparity
Remediation should follow the evidence. If the issue originates in missing or poor-quality data, improving data coverage or revising labels may help. If an irrelevant proxy is driving a decision, investigate its contribution and redesign the features or decision process where justified.
Sometimes the appropriate response is not a more complicated model. A transparent, job-related assessment rubric, a revised business policy or a human-led procedure with structured review may be preferable. Compare these options against the existing system.
Technical approaches such as reweighting training examples or incorporating fairness constraints can be evaluated when suitable. Changes to decision thresholds or the treatment of sensitive attributes require particular legal and governance scrutiny. Do not deploy group-specific rules simply to make a dashboard look balanced.
Retest on independent data after each material change. Evaluate overall quality, the relevant group metrics, the severity of errors, operational workload and other unintended consequences. A mitigation that improves one metric may create a problem elsewhere.
Where serious harm cannot be adequately controlled, suspend or restrict the affected decision path, provide appropriate review and investigate before expanding deployment. The objective is to improve real decisions, not to make one number pass.
Fairness is an operating responsibility, not a one-off report
An approved model can become less suitable as applicant profiles, product policies, data sources and decision thresholds change. Monitor group-level outcomes and error rates at a frequency proportionate to the risk and available data. Some outcomes arrive with a delay, and decisions such as rejected loan applications may never yield the outcome labels needed for a direct comparison.
Track human overrides, complaint patterns, appeal outcomes and service accessibility as well as model predictions. A human reviewer can correct an AI recommendation, but human involvement alone does not guarantee fairness. Inconsistent overrides can introduce new disparities.
Maintain a versioned evidence record containing the intended use, affected groups, data sources, test definitions, results, limitations, remediation and approval decision. Establish named owners and escalation triggers. For higher-risk uses, the business and engineering teams should own the controls, risk or compliance teams should provide appropriate independent challenge, and internal audit may assess the effectiveness of the governance process.
The NIST AI Risk Management Framework offers a voluntary structure for organising governance, risk identification, measurement and management.[7] It can support a disciplined approach, but adopting the framework does not by itself establish legal compliance.
Consider the commercial implications as well as risk. A fairer recruitment workflow may reduce the avoidable loss of qualified talent; improved speech recognition may help more customers complete a service request. Measure actual outcomes, error-related costs and complaints against a baseline rather than assuming that fairness improvements automatically produce financial returns.
The question leadership should ask before scaling AI
Before investing in a new AI solution, ask whether your organisation can explain how decisions are made, which groups experience the most consequential errors and what happens when the system behaves differently from expectations.
For a small organisation, this may begin with a well-designed sample review and clearly documented decision criteria. For a larger enterprise, repeated testing, controlled evaluation datasets, independent validation and monitoring infrastructure may be justified. The level of investment should reflect the consequences of getting the decision wrong.
If your organisation is introducing AI into recruitment, lending, customer operations or other consequential workflows, a focused assessment of its decision process, evaluation evidence and governance controls can help identify where further testing or specialist guidance is most valuable.
The most important fairness question is not whether a model has passed a particular metric. It is whether the organisation has sufficient evidence to defend the way its AI-assisted decisions affect people, and a credible process to act when that evidence changes.
References and further reading
[1] Schwartz, R., Vassilev, A., Greene, K., Perine, L., Burt, A. and Hall, P. (2022). Towards a Standard for Identifying and Managing Bias in Artificial Intelligence. NIST Special Publication 1270. Source: https://doi.org/10.6028/NIST.SP.1270
[2] Fairlearn. Common fairness metrics: demographic parity, equalised odds and equal opportunity. Source: https://fairlearn.org/main/user_guide/assessment/common_fairness_metrics.html
[3] Kleinberg, J., Mullainathan, S. and Raghavan, M. (2017). Inherent Trade-Offs in the Fair Determination of Risk Scores. ITCS 2017. Source: https://doi.org/10.4230/LIPIcs.ITCS.2017.43
[4] U.S. Equal Employment Opportunity Commission. Questions and Answers to Clarify and Provide a Common Interpretation of the Uniform Guidelines on Employee Selection Procedures, particularly Questions 11 and 19–23. Source: https://www.eeoc.gov/laws/guidance/questions-and-answers-clarify-and-provide-common-interpretation-uniform-guidelines
[5] Fairlearn. Confidence Interval Estimation. Source: https://fairlearn.org/main/user_guide/assessment/confidence_interval_estimation.html
[6] National Institute of Standards and Technology (2024). Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile. NIST AI 600-1. Source: https://doi.org/10.6028/NIST.AI.600-1
[7] National Institute of Standards and Technology (2023). AI Risk Management Framework (AI RMF 1.0) and companion resources. Source: https://www.nist.gov/itl/ai-risk-management-framework
Apply the approach
Illustrative recruitment fairness assessment: two hypothetical groups each contain 500 applicants, including 200 who meet an independently assessed job-related qualification standard. Both groups achieve 84% classification accuracy, yet their selection rates and true positive rates differ. All figures are assumed for demonstration, not actual company or research findings.
Group A correctly classifies 420 of 500 applicants; Group B also correctly classifies 420 of 500. The aggregate result conceals unequal error patterns.
Group A receives 240 shortlist decisions and Group B receives 160. The selection rate ratio is approximately 66.7%, a disparity requiring investigation in context.
Group A shortlists 180 of 200 qualified candidates and Group B shortlists 140 of 200. This 20-percentage-point gap in true positive rates illustrates unequal access to interviews.
Put the approach into practice
- 01Identify consequential AI-assisted decisions, affected populations and the harms that fairness testing must address.
- 02Agree on relevant evaluation metrics, defensible labels, lawful data access, uncertainty requirements and release criteria before testing.
- 03Compare representative group-level results against an appropriate baseline, investigate disparities and document the limitations of the evidence.
- 04Correct the underlying data, policy or model problem; independently retest proposed changes and restrict use where unresolved risk is unacceptable.
- 05Assign accountable owners and establish proportionate ongoing monitoring, review, complaint handling and escalation.
Frequently asked questions
Is AI fairness testing the same as model accuracy testing?
No. Accuracy measures how often predictions are correct. Fairness testing investigates how decisions, errors and other potential harms are distributed across relevant groups. Two groups can have identical accuracy while experiencing very different types of errors.
Can AI bias be eliminated completely?
No general testing method can demonstrate that an AI system is free of all harmful bias in every context. Organisations can identify specific risks, evaluate them against defensible criteria, reduce harmful disparities and monitor the remaining risks over time.
Do businesses need sensitive demographic information to test for bias?
Some group fairness measurements require reliable group membership data. Whether that information can be collected and used depends on the jurisdiction, purpose and applicable safeguards. Other approaches, including carefully designed scenario tests and qualitative reviews, may identify problems but are not necessarily substitutes for representative group-level measurement.
Which tools can be used for AI fairness testing?
Open-source libraries such as Fairlearn can support group-level metric calculations and disparity analysis. Standard statistical tools, structured human review and domain-specific evaluation datasets are also useful. Tool selection should follow the evaluation design rather than determine the organisation's definition of fairness.
How often should an organisation perform AI bias testing?
Test before release, following material model, data, policy or workflow changes, and at a risk-based monitoring frequency after deployment. Significant complaints, unexpected disparities or changes in the affected population should trigger targeted review. There is no universal testing interval.
Does a third-party AI supplier's fairness report replace internal testing?
No. It can provide valuable evidence, but the organisation must consider whether that evidence applies to its users, data, business rules and intended deployment. Request relevant subgroup results, testing limitations, version information and change-notification arrangements, and validate the system in its actual context.