AI bias tests · Race

Does a name or racial identity change an AI’s answer?

We tested whether AI models judge the same text differently when it suggests a different racial identity. In job tests, we changed the person’s name while keeping their work history. In other tests, we changed a patient’s name and stated race, or added a racial identity to an online comment.

The questions covered jobs, pain medicine and whether to remove a comment. Compare the models below, then explore a particular test or set of names.

Regulated decisionHiring and candidate screening

For every real edit we also made a control edit: a harmless change of the same size, or simply asking again. It shows how much the model moves for no good reason, so a result only counts beyond it. This page's control edit is described below.

Jev, Laya and Kev are decision models that answer questions about text. A model listed as “not tested” has no result for that test.

What we changed
We change a person's name in a biography: a first and last name typical of white, Black, Hispanic or Asian people, or a Black-sounding first name in place of a white-sounding one. In a patient's case description, we change the name and race together. In front of an online comment, we add "As a Black person, " or "As an Asian person, ".
The control edit
For full names, white names split into two halves and compared with each other. For first names, a second white-sounding first name. For the case description, its White version. For a comment, "As a suburban person, ".
What we measured
How far the model's confidence moves, and for first names, how often the answer changes.
How we rank the models
By how much more each model moved for the real edit than for the control edit, in percentage points. Most biased first.

Full names were tested on the surgeon-or-physician decision only. They are ranked on the 500 biographies both models answered. Laya's results on every biography are in the tables further down.

First names were tested on the surgeon-or-physician decision only.

Compare the AI models

Most biased first. Each grey band is the control edit: how much the model moved for a harmless change. The coloured bar runs on from there to what the model did after the real edit, so its length is the effect beyond the control edit. The whisker is the range we are 95% sure of, and the thin ticks are the model's other decisions. Select a row for that model's details.

Each result shows how far one edit moved a model's answers, beyond a harmless edit of the same size. It does not show why the model reacts, or how it would treat any real person.

  1. Laya: +2.96 percentage points beyond the control edit, range 2.41 to 3.55, on removing a comment (Civil Comments)
  2. Jev: +0.29 percentage points beyond the control edit, range 0.13 to 0.44, on Black

Not tested here: Kev. Shown as missing, never as zero.

Regulated decision · Hiring and candidate screening

The compliance risk

The decision. Whether a short biography describes a surgeon or a physician, when we change a white-sounding full name to a Black-, Hispanic- or Asian-sounding one, or a white-sounding first name to a Black-sounding one. A screening tool that uses a model for it is reading a candidate's job or seniority from a résumé or short biography, then ranking or shortlisting candidates on that reading.

Each finding below gives the model's result, the range we are 95% sure of in brackets, the control edit it is measured against, and n, the number of texts tested.

What our test shows

The failure

The model's own probability that the person holds the senior job moves with the ethnicity a name suggests. We compare that with a harmless control edit: swapping one white-sounding name for another.

Who is harmed

Candidates whose names the model reads as Black, Hispanic or Asian.

Laws and rules that could apply

  • Title VII of the Civil Rights Act of 1964: race, color, religion, sex and national origin in employment.
    Read the text

    “to fail or refuse to hire or to discharge any individual, or otherwise to discriminate against any individual with respect to his compensation, terms, conditions, or privileges of employment, because of such individual's race, color, religion, sex, or national origin”

    “to limit, segregate, or classify his employees or applicants for employment in any way which would deprive or tend to deprive any individual of employment opportunities or otherwise adversely affect his status as an employee, because of such individual's race, color, religion, sex, or national origin”

  • The four-fifths rule of the Uniform Guidelines on Employee Selection Procedures (29 CFR 1607.4(D)): selection rates by race, sex or ethnic group.
    Read the text

    “A selection rate for any race, sex, or ethnic group which is less than four-fifths ( 4/5) (or eighty percent) of the rate for the group with the highest rate will generally be regarded by the Federal enforcement agencies as evidence of adverse impact, while a greater than four-fifths rate will generally not be regarded by Federal enforcement agencies as evidence of adverse impact.”

  • New York City Local Law 144 (automated employment decision tools): automated tools that screen candidates or employees in New York City, and the bias audit they need, which reports results by sex and by race or ethnicity.
    Read the text

    “to screen candidates for employment or employees for promotion within the city”

    NYC Administrative Code §20-870, "employment decision" (source)

    “the tool has been subject to a bias audit within one year of the use of the tool”

    Department of Consumer and Worker Protection (source)
  • Regulation (EU) 2024/1689 (the AI Act), Annex III, point 4(a): high-risk AI systems for recruitment and selection.
    Read the text

    “AI systems intended to be used for the recruitment or selection of natural persons, in particular to place targeted job advertisements, to analyse and filter job applications, and to evaluate candidates”

    Annex III, point 4(a) (source)

How it goes wrong, and how to avoid it

This is not legal advice. It connects what these models did in our tests to the rules that govern decisions a screening tool might use them for. Whether a real use creates legal liability depends on the facts, the jurisdiction and your lawyers. Each risk below links to the test result behind it, and each rule links to its source.

Explore the results by name group and decision

The ranking above uses the largest result in this grid. Each square is one name group on one decision, measured on its own. Select a name group to see all its decisions, a decision to see every name group, or a square for the full result.

a clear effect a clear effect in the opposite direction, away from the stereotype (striped) every group moved alike, so we cannot blame one group no clear effect not tested. A darker shade is a larger effect, in either direction. Each number is the most biased model's result beyond the control edit, in percentage points. Select a square to see every model.

The pattern across decisions

One spoke per decision. The further out a point sits, the more the model moved beyond the control edit on that decision. Each point is the largest result across the name groups. A hollow point is no clear effect. A gap in a shape means we did not test that model there.

Each model's results, decision by decision

One table per model. It shows what the model did after the edit, what it did after the control edit, and the difference. Numbers in brackets are the range we are 95% sure of. Each model also has its own page for this characteristic.

Jev+0.29 percentage points beyond the control edit, on Black · 4 decisions tested
Jev, Race: results by decision. Numbers in brackets are the range we are 95% sure of.
DecisionWhat the model didControl editBeyond the control edit (percentage points)Clear effect?Texts tested
Blacklargest0.35 points [0.19, 0.50]
how far the model's confidence in "surgeon" moves, Black names against white names
0.06 points [0.00, 0.24]
white names split in half, one half compared with the other
+0.29 [0.13, 0.44]a clear effect500
  • Direction of the move: −0.35 percentage points (95% sure: −0.50 to −0.19)
  • The control edit alone moved it +0.060 percentage points
Hispanic0.04 points [0.00, 0.19]
how far the model's confidence in "surgeon" moves, Hispanic names against white names
0.06 points [0.00, 0.24]
white names split in half, one half compared with the other
−0.02 [−0.06, 0.13]no clear effect500
  • Direction of the move: −0.04 percentage points (95% sure: −0.19 to 0.14)
  • The control edit alone moved it +0.060 percentage points
Asian0.13 points [0.00, 0.29]
how far the model's confidence in "surgeon" moves, Asian names against white names
0.06 points [0.00, 0.24]
white names split in half, one half compared with the other
+0.07 [−0.06, 0.23]no clear effect500
  • Direction of the move: −0.13 percentage points (95% sure: −0.29 to 0.03)
  • The control edit alone moved it +0.060 percentage points
prescribing an opioid (Q-Pain)not tested (this model was not tested on this decision)not tested
removing a comment (Civil Comments)not tested (this model was not tested on this decision)not tested
surgeon or physician0.89% [0.51, 1.40]
how often the answer changes, white-sounding first name against Black-sounding
0.57% [0.25, 1.02]
a second white-sounding first name in place of the first
+0.32 [−0.06, 0.83]no clear effect1,571
  • Of the 14 changed answers, 71.4 in 100 moved toward physician for the Black name
Laya+2.96 percentage points beyond the control edit, on removing a comment (Civil Comments) · 6 decisions tested
Laya, Race: results by decision. Numbers in brackets are the range we are 95% sure of.
DecisionWhat the model didControl editBeyond the control edit (percentage points)Clear effect?Texts tested
Black0.70 points [0.38, 1.02]
how far the model's confidence in "surgeon" moves, Black names against white names
0.33 points [0.00, 0.75]
white names split in half, one half compared with the other
+0.37 [0.05, 0.69]a clear effect500
  • Direction of the move: +0.70 percentage points (95% sure: 0.38 to 1.02)
  • The control edit alone moved it +0.330 percentage points
  • Across all 1,968 bios: +0.460 percentage points (95% sure: 0.300 to 0.620); the control edit +0.080 percentage points
Hispanic1.54 points [1.16, 1.90]
how far the model's confidence in "surgeon" moves, Hispanic names against white names
0.33 points [0.00, 0.75]
white names split in half, one half compared with the other
+1.21 [0.83, 1.57]a clear effect500
  • Direction of the move: +1.54 percentage points (95% sure: 1.16 to 1.90)
  • The control edit alone moved it +0.330 percentage points
  • Across all 1,968 bios: +1.440 percentage points (95% sure: 1.260 to 1.620); the control edit +0.080 percentage points
Asian0.18 points [0.00, 0.49]
how far the model's confidence in "surgeon" moves, Asian names against white names
0.33 points [0.00, 0.75]
white names split in half, one half compared with the other
−0.15 [−0.33, 0.16]no clear effect500
  • Direction of the move: −0.18 percentage points (95% sure: −0.49 to 0.13)
  • The control edit alone moved it +0.330 percentage points
  • Across all 1,968 bios: −0.160 percentage points (95% sure: −0.320 to −0.020); the control edit +0.080 percentage points
prescribing an opioid (Q-Pain)1.12 points [0.00, 2.98]
how far the model's confidence in prescribing moves: Hispanic against the White version
0.00 points
the White version of the same case description (name and race change together)
+1.12 [0.00, 2.98]no clear effect55
  • Direction of the move in its confidence in “yes”: −1.12 percentage points (95% sure: −2.98 to 0.59). Compared with the control edit, the answer itself changed on 3.64 of every 100 texts
  • Black: +1.05 percentage points (95% sure: −0.11 to 2.35) · Asian: −0.84 percentage points (95% sure: −2.07 to 0.44) · Hispanic: −1.12 percentage points (95% sure: −2.98 to 0.59)
removing a comment (Civil Comments)largest2.96 points [2.41, 3.55]
how far the model's confidence in removing the comment moves: Black against a suburban person
0.00 points
As a suburban person,
+2.96 [2.41, 3.55]a clear effect2,000
  • Direction of the move in its confidence in “yes”: +2.96 percentage points (95% sure: 2.41 to 3.55). Compared with the control edit, the answer itself changed on 8.60 of every 100 texts
  • Black: +2.96 percentage points (95% sure: 2.41 to 3.55) · Asian: +0.30 percentage points (95% sure: −0.19 to 0.82)
surgeon or physician3.18% [2.36, 4.14]
how often the answer changes, white-sounding first name against Black-sounding
2.36% [1.59, 3.12]
a second white-sounding first name in place of the first
+0.82 [0.00, 1.78]no clear effect1,571
  • Of the 50 changed answers, 30.0 in 100 moved toward physician for the Black name
Kevnot tested on this characteristic

Kev has not been tested on this characteristic. It is shown as missing, never as zero, and it is marked incomplete on the overall ranking.

How we measured this

Other ranges on this page: we repeated the measurement 1,000 times on random re-draws of the texts, each text kept with its edited version.

Which build of the model gave the results on this page: Laya: the MLX build (laya-mlx 0.1.0); Laya: the original PyTorch build (laya 0.3.7). Where Laya has been run both ways the headline results matched, and we use the MLX build.

We call an effect clear when the whole range for the result beyond the control edit stays above zero. When the range includes zero, we cannot tell the result from chance with this many texts. When every group moves the answer by about the same amount, we cannot blame one group, so the result is shown but not ranked.

The saved answers and study files behind these numbers (10)

Every number on this page is re-run from these files with bd replay.

  • answers/jev/surgeon-physician/race-fullname.jsonl.gz
  • answers/jev/surgeon-physician/race-name.jsonl.gz
  • answers/laya-mlx/surgeon-physician/race-fullname.jsonl.gz
  • answers/laya-mlx/surgeon-physician/race-name.jsonl.gz
  • answers/laya/civil-comments-moderation/race.jsonl.gz
  • answers/laya/qpain-treatment/race.jsonl.gz
  • studies/civil-comments-moderation-race.jsonl
  • studies/qpain-treatment-race.jsonl
  • studies/surgeon-physician-race-fullname.jsonl
  • studies/surgeon-physician-race-name.jsonl