Skip to content
mentoor

Topic 3 of 5 · 4 min read

Bias when language models rank people

Goal: Spot the fairness risk in a workflow where a language model scores or ranks people and name a test that would reveal it.

A language model that scores or ranks people can change its answer because of a name, a dialect or the order of the list, and the output will still look reasoned and confident.

Check yourself · 1 of 3

An HR team asks a chatbot to rank 30 CVs in one message. Which change most reduces the risk of unfair ranking?

Choose one answer

Why it matters

People now paste CVs into ChatGPT, Claude or Gemini and ask "who are the best three?". Companies build the same thing into hiring, grading and support triage tools. The model was trained on human text, so it has absorbed associations between names, places, ways of writing and status. It does not announce this. A short, tidy justification is attached to every ranking, and that makes the result feel objective.

Where the risk hides

  1. Names and signals of identity. A name can hint at gender, ethnicity or religion. A university, a club or a pronoun can do the same. Studies that swap names on otherwise identical resumes have found that language models can rank them differently, as in the resume-screening study listed in the references.
  2. Dialect and writing style. An essay written in a regional or non-native style may be scored lower for "clarity" even when the content is equal.
  3. Order and position. Models can favour the first or last item in a list. If candidates are pasted in application order, early applicants gain an edge.
  4. Wording of the instruction. "Culture fit" or "professional tone" invite the model to use style as a stand-in for merit.
  5. The explanation. A model's stated reason is generated text. It may not be the real cause of the score, so a reasonable-sounding reason is not evidence of fairness.

How to reduce the risk in the workflow

  • Remove names, photos and contact details before scoring.
  • Score against a written rubric of job-relevant criteria, one candidate at a time.
  • Shuffle the order, run it more than once and compare.
  • Keep a person accountable for the decision, and tell candidates when automated tools are used where the law or your policy requires it.

Before and after

Weak: "Here are 40 CVs. Rank them and give me the top 5."

Better: "Score each CV separately from 1 to 5 on three criteria in the rubric below. The name and address have been removed. Quote the line of the CV that supports each score."

What goes wrong

  • Trusting the model's reason as proof it did not use the name.
  • Testing once, on one ordering, and seeing no problem.
  • Letting the shortlist become the decision because nobody reads the rejected pile.

Examples

The same CV with two names

A recruiter runs one CV twice, once as "Emily Walsh" and once as "Lakisha Washington", with every other line identical. The model returns a score of 4 and a score of 3 with similar-sounding reasons. The only change was the name, so the score depends on the name. The recruiter now strips names before scoring and re-tests.

Order effect in a shortlist

Prompt: Rank these 40 CVs.
Run 1 order: A, B, C, ... -> top pick: A
Run 2 order: reversed     -> top pick: A is now ranked 14th

If shuffling the order changes the winner, the ranking is partly about position. Score each CV on its own against a rubric instead.

Key points

  • A language model can score the same person differently because of a name, dialect, list order or loaded wording.
  • The explanation a model gives for a ranking is generated text and is not proof of what drove the score.
  • Remove identity signals, use a written rubric and score candidates one at a time.
  • Shuffle order and repeat runs to see whether the result is stable.
  • A human who is accountable should check the rejections as well as the shortlist.

Common mistakes

  • Believing a model that gives a reason is applying that reason.
  • Pasting a whole batch in one prompt and trusting the order of the answer.
  • Using vague criteria such as culture fit or professional tone.
  • Reviewing only the people the model shortlisted.

Check yourself · 2 of 3

Swapping only the name on a CV changes the model's score from 4 to 3. What does this show?

Choose one answer

Check yourself · 3 of 3

A model gives a neat reason for rejecting a candidate. Why is that reason not proof the decision was fair?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic