Skip to content

Measuring stereotype: three scores behind one number

THE ARGUMENT

Bias evaluation is at least three numbers: capability (language modelling score), direction (stereotype score) and a combination (iCAT). Reading any one alone guarantees a wrong call, because the combined score puts strong-but-biased and weak-but-neutral close together.

On this page

A slide says bias score 62, industry leading. You ask how the 62 was computed and are told it is a composite, which says nothing. In bias evaluation, 62 could be at least three different things: the model's language modelling ability, how far it leans toward stereotypes, or a combination of both, and for one of them the good value is 50. This article takes them apart and works an example you can redo on a calculator, so that next time you know what to ask for.

One number, three meanings

Make it concrete. You are choosing a base model for a public-facing product and compliance wants bias to be quantified. Two vendors report scores: 62 and 58, and the second looks better. But if 62 is a composite and 58 is a stereotype score, the two numbers live in different coordinate systems. The 58 already sits eight points off neutral; the 62 may correspond to a smaller deviation. You were one slide away from deciding on two numbers of different kinds.

Bias quantification has a structural problem: it involves both whether the model understands the sentence and which side it leans toward. A model that understands nothing leans nowhere and looks fairest. A model that understands a lot reproduces the statistical associations in its corpus and looks most biased. Any method that presses both into one number throws away half the information.

StereoSet separates them into two numbers and then combines them into a third. The design is imperfect, as the later sections discuss, but it at least puts the trade-off in the open. What you need is not faith in the composite but knowledge of which three parts it was assembled from.

What StereoSet built and what it computes

StereoSet covers four domains, gender, profession, race and religion, in two context types, intrasentence and intersentence. Each group offers three sentences: one expressing a stereotype, one expressing an anti-stereotype, and one unrelated to the target term.[1]

Scoring is a ranking task: put the three candidates in the same slot and see which one the model assigns the highest likelihood. All three metrics are therefore preference ratios, not knowledge accuracy. That matters: the question is which sentence the model finds more natural, not which sentence it holds to be true.

First, the language modelling score (LMS): the share of cases where the model prefers a meaningful association, stereotypical or anti-stereotypical, over an unrelated one. The ideal value is 100. This is the capability metric, and higher means the model understands the sentence better.[1]

Second, the stereotype score (SS): the share of cases where the model prefers the stereotypical association over the anti-stereotypical one. The ideal value is 50. Here 50 is the good outcome: 100 means it always picks the stereotype, 0 means it always picks the anti-stereotype, and both ends are extremes.[1]

Third, the idealized CAT score (iCAT), which multiplies the first two: iCAT equals LMS times the minimum of SS and 100 minus SS, divided by 50. An ideal model scores 100, a random model 50, and a model that always leans one way scores 0.[1]

The paper evaluates BERT, GPT-2, RoBERTa and XLNet and reports that all of them show strong stereotypical bias.[1] It also reports that the best model in its evaluation sits about 27 iCAT points behind the ideal.[1] The useful part of that number is the scale, not the ranking: ideal is 100, random is 50, and the best model is near 73. It is closer to random than to ideal, which is a different story from near-perfect.

Work it out on a calculator

The three models below are fictional and the numbers were chosen so the arithmetic closes. With only LMS and SS, compute iCAT: take 100 minus SS, keep the smaller of that and SS, divide by 50 to get a neutrality factor, then multiply by LMS.

ModelLMSSSNeutrality factoriCAT
M185580.8471.4
M292700.6055.2
M374501.0074.0

The result is counterintuitive. The most capable model, M2 with LMS 92, comes last, because its SS of 70 sits twenty points off neutral and leaves a factor of 0.6. The least capable model, M3 with LMS 74, comes first, because it is perfectly neutral and takes the full factor of 1.0.

Three lessons follow. Read SS alone and you pick M3, whose language modelling is the worst of the three; being neutral on both sides may only mean the model is insensitive to the sentence. Read LMS alone and you pick M2, the most biased. Read iCAT alone and M1 and M3 differ by 2.6 points, with no way to tell whether that gap comes from eleven points less capability traded for more neutrality, or from something else. The three have to be read together.

One more detail: because iCAT multiplies, the penalty for leaving neutral is not linear. Moving SS from 50 to 58 takes the factor from 1.00 to 0.84, a 16 percent loss; moving from 50 to 70 takes it to 0.60, a 40 percent loss. The further off centre, the steeper the marginal penalty. In the 55 to 65 band a small SS difference becomes a visible iCAT difference; above 80, another five points of SS barely moves iCAT at all.

A caveat: all three numbers hold only for this constructed set of sentences. Change the sentences and SS moves; change the language and SS moves a lot. Comparability is limited to one dataset and one split, and comparing iCAT across datasets means nothing.

Five things to ask at acceptance

  1. Ask for three numbers, not a composite: LMS, SS and iCAT together. A vendor offering one has usually picked the most flattering.
  2. Ask for the split by domain: SS separately for gender, profession, race and religion. An average flattens an extreme in one domain, and compliance risk usually arrives through one domain.
  3. Ask for the split by context type: intrasentence and intersentence SS reported separately. The two constructions measure slightly different things, and their pooled average explains neither.
  4. Ask how the candidate sentences were built: whether word frequency and length were controlled. If not, a preference may come from this word being more common rather than from this claim fitting a stereotype.
  5. Ask for the evaluation protocol: public or hidden test set, and whether the scoring script is published. StereoSet itself ships a hidden test set and a public leaderboard, so this is a reasonable request.[1]

The fourth deserves a note. If the three sentences differ twofold in length or wildly in how common their words are, the likelihood gap absorbs a familiarity effect. This is not an accusation that the paper skipped the control; it is a question to ask of any bias evaluation you accept, because the answer decides whether that SS measures preference or word frequency. If the reply is that nobody checked, the SS supports within-dataset comparison only and cannot be quoted across datasets or languages.

The third is also skipped often. Intrasentence items swap a word inside one sentence; intersentence items ask which of two sentences more plausibly follows. The second is easier to capture with topic priors: if the previous sentence is about a nurse, a following sentence about a woman is nearly forced, and that has nothing to do with stereotyping and everything to do with corpus statistics. Reporting the two separately is how you see whether the deviation lives in word-level association or in sentence-level narrative pull.

SS of 50 does not mean unbiased

A second limit is language and era. This construction is English, four domains, corpus distribution of around 2020. Move it to Chinese and the profession-gender association strength, the common collocations, even which professions carry a gendered connotation, differ. Translating directly changes both difficulty and bias strength at once: a stiff translation leaves the model insensitive to both sides, SS drifts toward 50, and the result looks clean. What you measured is the stiffness of the translation.

The right move is not translation but rebuilding: write the three candidates again using real collocations in the target language, then have at least two people independently judge whether each sentence expresses a stereotype, and retire the ones they disagree on. Skip this and your Chinese bias evaluation measures translation quality. Rebuilding is expensive, and it is the only path to comparing two Chinese models.

A third limit is the construct itself. A high SS says the model prefers the stereotypical phrasing, not that the preference surfaces in generation. A model with a high SS and a tight system prompt may never show it to users; a model with a middling SS can still assemble a stereotyped narrative across a long response. Between the metric and the product sits another layer, so do not treat an evaluation score as a risk assessment.

One line to use immediately. The next time you see bias score X, ask one question: what are LMS, SS and iCAT separately, and what are they by domain. If the vendor cannot produce the split, the number does not enter the procurement table. If it can, you can at least tell strong-but-biased from weak-but-neutral, and those two call for different responses: output constraints for the first, a different model for the second.

References

  1. StereoSet: Measuring stereotypical bias in pretrained language models

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…