Domain III /

Testing for bias and interpretability

By the endPlan a bias test that looks past overall accuracy, tell explainability from interpretability, and decide when the AI Act allows special categories of personal data to be used to detect bias.

Three categories of AI bias

The National Institute of Standards and Technology (NIST) published Special Publication (SP) 1270, Towards a Standard for Identifying and Managing Bias in Artificial Intelligence, in March 2022. It identifies three categories of bias in artificial intelligence (AI): systemic, statistical, and human. NIST says its list of biases is not exhaustive and names prominent risks to consider when designing, developing, deploying, evaluating, using or auditing AI applications.

The three categories in SP 1270

Systemic bias

It results from the procedures and practices of particular institutions that operate in ways that advantage or favor some social groups and disadvantage or devalue others, with no need for conscious prejudice. It is also called institutional or historical bias. It is present in datasets, in institutional norms, practices and processes across the AI lifecycle, and in broader culture and society.

Statistical and computational bias

It stems from errors that result when the sample is not representative of the population. It arises from systematic rather than random error and can occur without prejudice or discriminatory intent. It often arises when algorithms trained on one type of data cannot extrapolate beyond those data.

Human bias

It reflects systematic errors in human thought, often implicit, that relate to how an individual or group perceives information, such as automated AI output, to make a decision or fill in missing information. Simply increasing awareness of bias does not ensure control over it.

How the AI RMF names the categories

The AI Risk Management Framework (AI RMF) uses the same three categories, which it calls systemic, computational and statistical, and human-cognitive. It says each can occur in the absence of prejudice, partiality or discriminatory intent. It also says that bias is broader than demographic balance and data representativeness.

Why a bias test can mislead

A bias test can give a false picture of the system. SP 1270 names three broad challenges for addressing AI bias: datasets, measurement and metrics for test and evaluation, validation and verification (TEVV), and human factors.

AI systems regularly model concepts that are only partially observable or capturable by data, so teams use proxies. In algorithmic hiring, for example, a variable such as distance from the employment site might disadvantage candidates from certain neighborhoods.

Validation can be undermined by a lack of ground truth, noisy labeling, proxy variables, and tests run under optimal conditions or conditions not close to the deployed state. SP 1270 says subject matter experts should be relied upon to create and oversee the most realistic possible validation processes. It calls "stratified performance evaluations", which analyze system performance across segments of the training or test data, demographic or otherwise, a basic consideration for understanding system validity across a population of users. Validation also means ensuring that the system is not used in unintended ways, and deployment bias happens when a model is used in ways its developers did not intend. In NIST's words, "The most accurate model is not necessarily the one with the least harmful impact".

Statistical tests, fairness metrics and their limits

In employment and consumer finance, t-tests, chi-squared tests and other traditional statistical tests can show a statistically significant difference between system outcomes across demographic groups. SP 1270 says credible attempts at bias mitigation should stay aligned with acknowledged legal standards. Fairness metrics fall into many categories, among them fairness through unawareness, individual fairness, demographic parity, disparate impact, differential validity, proxy discrimination and equality of opportunity. Depending on how a protected attribute relates to the data, certain observational definitions of fairness can increase discrimination.

Certain mathematical fairness constraints cannot be satisfied at once except in highly constrained special cases. Calibration and balancing the positive and negative classes are NIST's example. SP 1270 adds that mitigated bias and good performance can be achieved simultaneously. It also says fairness cannot be reduced to a concise mathematical definition, because it is dynamic, social in nature, and application and context specific.

Three ways to mitigate bias

SP 1270 reports that recent literature sorts debiasing methods into three groups.

Pre-processing

Transforms the data.

In-processing

Modifies the algorithms to mitigate bias during model training.

Post-processing

Alters a trained model's predictions, typically with the help of a holdout dataset.

Demographic data is often inferred

Demographic group membership, which bias testing needs, is often inferred, for example by Bayesian improved surname geocoding. Techniques that rely on demographic information may pose higher risks in regulated settings where disparate treatment must be avoided.

Testing across the lifecycle

  1. 1

    Test throughout the lifecycle

    The Test and Evaluation stage is continuous throughout the AI development lifecycle, and organizations are encouraged to test and evaluate all components and features where bias can contribute to harmful impacts.

  2. 2

    Feed deviations back into design

    If deviations from desired goals are observed, the findings should feed into the Pre-Design stage so that data curation and problem formulation are adjusted, and proposed design changes are evaluated with the new data and requirements to identify any new sources of bias.

  3. 3

    Retest the mitigation

    The model developer should test and evaluate continuously to ensure that bias mitigation stays effective in the new setting as the model is optimized and tested for performance.

  4. 4

    Test in the deployment context

    Once the model is released, the deploying organization should use documented model specifications to test and evaluate bias characteristics in the specific context, ideally together with other stakeholders. If the model is retrained with new data during deployment, the deployer should work with the model producer to assess actual performance for bias.

Explainability and interpretability in the AI RMF

The AI RMF lists explainable and interpretable among the characteristics of trustworthy AI systems. Explainability refers to a representation of the mechanisms underlying an AI system's operation. Interpretability refers to the meaning of the system's output in the context of its designed functional purposes. The framework notes that organizations might face a tradeoff between predictive accuracy and interpretability.

Two MEASURE outcomes on this topic

MEASURE 2.9

The AI model is explained, validated and documented, and system output is interpreted within its context, to inform responsible use and governance.

MEASURE 2.11

Fairness and bias are evaluated and the results documented.

Testing before and during operation

The AI RMF says AI systems should be tested before deployment and regularly while in operation. It adds that processes for independent review can improve the effectiveness of testing and mitigate internal biases and potential conflicts of interest.

Explainability and interpretability compared

The AI RMF treats transparency, which can answer "what happened" in the system, as a third characteristic, distinct from both and supporting them.

Explainability

  • A representation of the mechanisms underlying the AI system's operation
  • Can answer "how" a decision was made in the system
  • Risk from its lack may be managed by describing how the system functions, tailored to the user's role, knowledge and skill level
  • Explainable systems can be debugged and monitored more easily

Interpretability

  • The meaning of the AI system's output in the context of its designed functional purposes
  • Can answer "why" a decision was made by the system and its meaning or context to the user
  • Risks to it often can be addressed by communicating why the system made a particular prediction or recommendation
  • Matters to subject matter experts, who SP 1270 says are less interested in how a system works and more concerned with why it gave an output

What transparency and simple models cannot do

SP 1270 says transparency into AI system mechanisms is rarely a direct bias mitigant and "should not be mistaken for fairness", although it enables many critical governance functions. In a study it cites, an algorithm delivering an advertisement for careers in science, technology, engineering and mathematics showed it to more than 20 percent more men than women. The researchers it quotes say that examining the algorithmic code would likely have revealed an algorithm focused on minimizing ad costs for advertisers, so such transparency would not have helped regulators foresee the uneven outcomes.

Simple models with fewer parameters tend to be more explainable, but they can exacerbate statistical biases because their restrictive assumptions on the training data often do not hold with nuanced demographics. Datasheets and model cards are meant to make systems more explainable and interpretable. Even when systems are used as intended, there are significant individual differences in how humans interpret model output, which can lead to misinterpretation in high-risk settings.

What the AI Act requires on interpretability

Under the AI Act, Regulation (EU) 2024/1689 as amended by Regulation (EU) 2026/1744, high-risk AI systems must be designed so that their operation is sufficiently transparent to enable deployers to interpret their output and use it appropriately. Article 13(3)(b)(iv) adds that their instructions for use must include, where applicable, the system's technical capabilities and characteristics to provide information relevant to explain its output.

Articles 10, 13 and 14 sit in Chapter III, Section 2. That section applies from 2 December 2027 to systems that are high-risk under Article 6(2) and Annex III. It applies from 2 August 2028 to systems that are high-risk under Article 6(1) and Annex I.

Special categories of personal data for bias detection

Testing for bias often needs demographic data, and the AI Act now has a specific rule on using sensitive data for it. SP 1270 calls the collection of data from the active user population, especially demographic data such as age and gender, a key consideration for live monitoring for bias. It says such data can have privacy implications and may be subject to legal restrictions.

Regulation (EU) 2026/1744 deleted Article 10(5) of the AI Act and inserted Article 4a, "Processing of special categories of personal data for bias detection and correction". The amending Regulation was published in the Official Journal on 24 July 2026 and entered into force on the third day following its publication.

Under Article 4a(1), providers of high-risk AI systems may exceptionally process special categories of personal data. They may do so to the extent strictly necessary to ensure bias detection and correction in accordance with Article 10(2), points (f) and (g), and subject to appropriate safeguards for the fundamental rights and freedoms of natural persons. Point (f) requires training, validation and testing data sets to be examined in view of possible biases likely to affect the health and safety of persons, have a negative impact on fundamental rights or lead to discrimination prohibited under Union law. Point (g) requires appropriate measures to detect, prevent and mitigate the biases found. All of Article 4a(1)'s conditions must be met, in addition to the General Data Protection Regulation (GDPR), Regulation (EU) 2018/1725 and Directive (EU) 2016/680, as applicable.

Conditions in Article 4a(1)

Only when other data will not do

The bias detection and correction cannot be effectively fulfilled by processing other data, including synthetic or anonymized data. The records of processing activities state why special-category data was strictly necessary and why other data could not achieve that objective.

Protected and kept from other parties

The data are subject to technical limits on re-use and to state-of-the-art security and privacy-preserving measures, including pseudonymization. They are subject to strict, documented access controls so that only authorized persons with confidentiality obligations have access. They are not transmitted, transferred or otherwise accessed by other parties.

Deleted when the work is done

The data are deleted once the bias has been corrected or the personal data has reached the end of its retention period, whichever comes first.

Article 4a(2): other providers and deployers

Article 4a(2) lets providers and deployers of other AI systems and models, and deployers of high-risk AI systems, exceptionally process such data. This is allowed where it is strictly necessary for bias detection and correction in view of possible biases likely to affect health and safety, have a negative impact on fundamental rights or lead to discrimination prohibited under Union law, and where all the conditions and safeguards of paragraph 1 are applied. The paragraph states that it "does not create any obligation to conduct such bias detection and correction".

Recital 9 of the amending Regulation says bias detection and correction constitute a substantial public interest. It says the extended legal basis should be subject to the same limitations, conditions and safeguards as the former Article 10(5), thereby ensuring compliance with Article 9(2), point (g), of the GDPR.

Worked example

Testing a recruitment model for bias

A provider in the European Union (EU) is developing a system that filters job applications, which is high-risk under Article 6(2) and Annex III, point 4(a), of the AI Act. It will first place the system on the market in 2028. The model's overall error rate on the test set meets the team's target. The team suspects the model performs worse for applicants of some ethnic origins, but the test set holds no data on applicants' ethnic origin, and collecting it would mean processing special categories of personal data. An engineer proposes collecting that data for the test set and keeping it indefinitely for future retests.

  1. 1

    Which bias duties apply?

    Article 10(2)(f) and (g) require the provider to examine its training, validation and testing data for possible biases and to take appropriate measures to detect, prevent and mitigate them. Chapter III, Section 2, which contains Article 10, applies to Annex III systems from 2 December 2027, before this system's first placing on the market.

  2. 2

    Look past the overall error rate

    SP 1270 calls stratified performance evaluations across segments of the data a basic consideration for system validity, and it warns that proxies such as distance from the employment site might disadvantage candidates from certain neighborhoods.

  3. 3

    Check Article 4a before using the data

    The provider may process the data only to the extent strictly necessary, only if bias detection and correction cannot be effectively fulfilled with other data, including synthetic or anonymized data, and only with re-use limits, pseudonymization, documented access controls, no access by other parties and a record of why the data was strictly necessary. The GDPR applies in addition.

  4. 4

    Reject indefinite retention

    Article 4a(1)(e) requires deletion once the bias has been corrected or the data has reached the end of its retention period, whichever comes first, so keeping the data indefinitely for future retests does not meet that condition.

Result: The provider tests performance by group, uses data on ethnic origin only if it can record why other data, including synthetic or anonymized data, would not work, protects that data and keeps it from other parties, and deletes it once the bias is corrected or its retention period ends, whichever comes first.

Try it

Answer the bank's compliance team

A bank in the EU deploys a high-risk credit-scoring system bought from a vendor. Its compliance team has read Article 4a of the AI Act and asks whether the bank must now process special categories of personal data to run its own bias tests. What do you tell it?

Hint: Read the last sentence of Article 4a(2).

02 / Questions

Answer 8 questions

Check 1 of 8scenario · easy

An artificial intelligence (AI) team trains a promotion-recommendation model on ten years of an employer's promotion records. Under the employer's long-standing rules, one group of staff was promoted far more often than others, although no manager intended to discriminate. Under Special Publication (SP) 1270 of the National Institute of Standards and Technology (NIST), which category of bias does this describe?

Check 2 of 8scenario · easy

Loan officers at a lender start approving or refusing applications by following an artificial intelligence (AI) system's recommendation almost every time, treating its output as objective. Under Special Publication (SP) 1270 of the National Institute of Standards and Technology (NIST), which category of bias does this behavior fall into?

Check 3 of 8scenario · medium

A developer's test report says its triage model reaches 94 percent accuracy on a laboratory test set, and the product owner wants to sign off on bias testing on that basis. What does Special Publication (SP) 1270 of the National Institute of Standards and Technology (NIST) point to as a basic next step?

Check 4 of 8scenario · hard

A bias-testing team wants its credit model to be calibrated and also to balance the positive and negative classes across groups. A data scientist says that if both conditions cannot be met, bias can only be reduced by giving up good performance. How does Special Publication (SP) 1270 of the National Institute of Standards and Technology (NIST) address this?

Check 5 of 8scenario · easy

A clinician using an artificial intelligence (AI) system asks why it flagged a particular patient as high risk and what that flag means for the care decision in front of her. Under the AI Risk Management Framework (AI RMF) of the National Institute of Standards and Technology (NIST), which characteristic does her question concern?

Check 6 of 8scenario · medium

A provider of a high-risk artificial intelligence (AI) system under the AI Act, as amended by Regulation (EU) 2026/1744, wants to process special categories of personal data to detect and correct bias in its model. Which of these is one of the conditions in Article 4a(1)?

Check 7 of 8scenario · hard

A bank in the European Union deploys a high-risk credit-scoring system bought from a vendor. Its compliance officer reads Article 4a of the Artificial Intelligence (AI) Act, as amended by Regulation (EU) 2026/1744, and asks what it means for the bank's own bias testing. Which statement is correct?

Check 8 of 8scenario · medium

A product team proposes to drop planned bias testing for an artificial intelligence (AI) hiring model because an experienced recruiter will review every recommendation before a decision is made. How does Special Publication (SP) 1270 of the National Institute of Standards and Technology (NIST) view this reasoning?

03 / Recall

Answer without looking back

Name the three categories of AI bias in NIST SP 1270, say what the AI RMF means by explainability and by interpretability, and list the conditions under which Article 4a(1) of the AI Act lets a provider process special categories of personal data for bias detection and correction.

Primary reading

Read the relevant section

NIST SP 1270, Towards a Standard for Identifying and Managing Bias in Artificial Intelligence · Section 2.1.2, printed p. 6 ↗
Sources used in this lesson
  1. NIST SP 1270, Towards a Standard for Identifying and Managing Bias in Artificial Intelligence, Section 2.1.2, printed p. 9 ↗National Institute of Standards and Technology
  2. NIST AI 100-1, Artificial Intelligence Risk Management Framework (AI RMF 1.0), Section 3.7, printed p. 17 ↗National Institute of Standards and Technology
  3. Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act), Article 14(4)(b), (c) ↗Publications Office of the European Union (EUR-Lex)
  4. Regulation (EU) 2026/1744 of the European Parliament and of the Council of 8 July 2026 amending Regulations (EU) 2024/1689, (EU) 2018/1139 and (EU) 2023/1230 as regards the simplification of the implementation of harmonised rules on artificial intelligence (Digital Omnibus on AI), Article 1(6), inserting Article 4a(1) ↗Publications Office of the European Union (EUR-Lex)
Glossary terms used in this lesson
AI model
Under the AI Act's recitals, an essential component of an AI system that does not constitute an AI system on its own and needs further components, such as a user interface, to become one.
AI system
Under the AI Act, a machine-based system designed to operate with varying levels of autonomy, which may exhibit adaptiveness after deployment and which, for explicit or implicit objectives, infers from its input how to generate outputs such as predictions, content, recommendations or decisions that can influence physical or virtual environments.
automation bias
The tendency to automatically rely on, or over-rely on, the output of an AI system. The AI Act requires high-risk systems to let the people overseeing them remain aware of this tendency, especially for systems that recommend decisions to natural persons.
bias
NIST sorts AI bias into three major categories: systemic, computational and statistical, and human-cognitive. Each can occur without prejudice, partiality or discriminatory intent, and AI systems can increase the speed and scale of bias.
explainability
In NIST's framework, a representation of the mechanisms underlying an AI system's operation. It is one of the seven characteristics of trustworthy AI and pairs with interpretability.
fairness
In the AI HLEG guidelines, fairness has a substantive dimension, an equal and just distribution of benefits and costs and freedom from unfair bias, and a procedural dimension, the ability to contest and seek effective redress against AI decisions.
interpretability
In NIST's framework, the meaning of an AI system's output in the context of its designed functional purpose. It is paired with explainability as one characteristic of trustworthy AI.
risk
Under the AI Act, the combination of the probability of an occurrence of harm and the severity of that harm. NIST's AI RMF similarly defines risk as the composite measure of an event's probability and the magnitude of its consequences.
safety
In NIST's framework, an AI system should not, under defined conditions, lead to a state in which human life, health, property or the environment is endangered.
transparency
Under the OECD principles, AI actors should commit to transparency and responsible disclosure, providing meaningful information appropriate to the context and consistent with the state of the art about AI systems.
trustworthy AI
NIST names seven characteristics: valid and reliable, safe, secure and resilient, accountable and transparent, explainable and interpretable, privacy-enhanced, and fair with harmful bias managed. The AI HLEG instead says trustworthy AI is lawful, ethical and robust.
TEVV
Test, evaluation, verification and validation, the tasks NIST says are performed throughout the AI lifecycle. Ideally the AI actors who carry out verification and validation are distinct from those who perform test and evaluation.
deployer
Under the AI Act, a natural or legal person, public authority, agency or other body using an AI system under its authority, except where the system is used in the course of a personal non-professional activity.
human oversight
Under Article 14, a high-risk system must be designed so natural persons can effectively oversee it while it is in use, to prevent or minimize risks to health, safety or fundamental rights. Measures must fit the risks, the level of autonomy and the context.
instructions for use
Under the AI Act, the information the provider gives to inform the deployer of, in particular, a system's intended purpose and proper use. High-risk systems must come with them, and deployers must use the systems in accordance with them.
placing on the market
Under the AI Act, the first making available of an AI system or a general-purpose AI model on the Union market, which is the event that triggers many provider duties.
provider
Under the AI Act, a natural or legal person, public authority, agency or other body that develops an AI system or a general-purpose AI model, or has one developed, and places it on the market or puts the system into service under its own name or trademark.
Regulation (EU) 2026/1744
The Digital Omnibus on AI, which amends the AI Act. It replaced the text of Article 4 on AI literacy, inserted a separate Article 4a on bias detection and correction, and moved the application dates for high-risk rules to 2 December 2027 for Annex III systems and 2 August 2028 for systems that are high-risk under Article 6(1) and Annex I.
GDPRGeneral Data Protection Regulation
The General Data Protection Regulation, Regulation (EU) 2016/679. It requires personal data to be processed lawfully, fairly and transparently and collected for specified, explicit and legitimate purposes, and applies across the AI lifecycle.
special categories of personal data
Data whose processing GDPR Article 9(1) prohibits unless an Article 9(2) exception applies, such as explicit consent. Biometric data used to uniquely identify a person belongs to these categories.
developer
Under Colorado's SB26-189, a person doing business in Colorado that develops or commercially supplies covered automated decision-making technology, develops a component for it, or intentionally and substantially modifies a technology so that it becomes covered, subject to the law's exclusions. Developers must give deployers documentation of intended and known harmful uses, training data categories and known limitations.
disparate impact
Under Title VII, shown when a particular employment practice causes a disparate impact on a protected basis and the employer fails to show the practice is job related and consistent with business necessity, or refuses a less discriminatory alternative.
disparate treatment
Intentional discrimination under Title VII, shown when a protected trait was a motivating factor for an employment practice, even though other factors also motivated it.
AI Risk Management Framework
NIST AI 100-1, version 1.0, dated January 2023. It is voluntary, rights-preserving, non-sector-specific and use-case agnostic, and helps organizations that design, develop, deploy or use AI manage risk and promote trustworthy AI.
MEASURE
The AI RMF function that uses quantitative, qualitative or mixed methods and tools to analyze, assess, benchmark and monitor AI risk and related impacts, including test, evaluation, verification and validation.
testing data
Under the AI Act, data used for providing an independent evaluation of the AI system in order to confirm its expected performance before it is placed on the market or put into service.
training data
Under the AI Act, data used for training an AI system through fitting its learnable parameters. High-risk systems that train AI models must be developed on training data sets that meet the quality criteria of Article 10.