In this article
Pair labels, token alignment and tie handling are part of the metric; they cannot be inferred safely from sentence order alone.
Pair direction is explicit metadata
CrowS-Pairs contains minimally differing sentences used to study stereotypical associations in masked language models. The repository describes sent_more, sent_less and a direction field. That direction affects how the scoring code arranges and interprets the pair.
Preserve the fields rather than assuming the first displayed sentence always plays the same role. Renaming columns or shuffling candidates without carrying the mapping can reverse an interpretation while leaving both sentences intact and readable.
The original metric uses shared token positions
The released implementation tokenizes both sentences, finds matching token spans and scores shared positions by masking them in turn. The changed identity-related material remains part of the conditioning context. This is a specific operationalization, not an ordinary full-sentence perplexity comparison.
Tokenization therefore belongs to the evaluation artifact. A change in tokenizer or case handling can alter alignment and the positions contributing to a score. Keep those choices visible before attributing a difference solely to learned model associations.
Released code defines practical tie behavior
The inspected script rounds sentence scores before comparing them and tracks equal-score cases as neutral. Its reporting uses explicit counters and denominators. Those implementation details can matter when scores are close or a small slice contains few examples.
A revised implementation should disclose changes to precision, ties and aggregation. Copying the dataset while silently replacing its metric does not reproduce the same experiment. Preserve per-pair values so aggregate changes can be investigated.
A chat adaptation measures another interface
The original code targets masked language models. Asking a chat model to choose a sentence introduces a prompt, answer format and response parser. That can be a useful separate experiment, but it should not be presented as numerically identical to masked-token likelihood scoring.
Record invalid outputs and refusals rather than coercing them into a preferred candidate. Inspect whether a model is judging acceptability, predicting likelihood or following the requested comparison. These behaviors can diverge under the same pair of input sentences.
The benchmark has a bounded social context
The paper frames the collection around selected stereotypes in a U.S. context. A score does not establish every form of bias or downstream harm, and a translation changes lexical and cultural assumptions. Category-level review remains necessary alongside an aggregate value.
A proposed report keeps dataset revision, direction mapping, tokenizer, scoring code and tie counts. This article runs no model evaluation and reproduces no stereotype examples. Its purpose is to expose the measurement contract so a small score difference is not detached from the procedure that produced it.
Primary references
CrowS-Pairs repository description.
CrowS-Pairs metric implementation.
Related explanations: Token likelihood and targets; Benchmark population controls.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.