---
title: "Stereotypical contextual representations in French language models : better identifying them to avoid reproducing them"
description: "StereoSet-fr adapts an English test to measure stereotypes in French language models and examines how pretraining data affect the results."
canonical: "https://research.elamur.ai/free/en/papers/cuvillier-2024-les-representations-contextuelles-stereotypees-dans/"
title_orig: "Les représentations contextuelles stéréotypées dans les modèles de langue français : mieux les identifier pour ne pas les reproduire"
title_lang: "fr"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cuvillier-2024-les-representations-contextuelles-stereotypees-dans/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Stereotypical contextual representations in French language models : better identifying them to avoid reproducing them

# Stereotypical contextual representations in French language models : better identifying them to avoid reproducing them

*Original (French): Les représentations contextuelles stéréotypées dans les modèles de langue français : mieux les identifier pour ne pas les reproduire*

Paper · 2024 · Léandre Adam-Cuvillier, Pierre-Jean Larpin and Antoine Simoulin

**Authors:** Léandre Adam-Cuvillier, Pierre-Jean Larpin and [Antoine Simoulin](https://md.research.elamur.ai/free/en/authors/antoine-simoulin/) · **Year:** 2024 · **Venue:** Actes de la 31ème Conférence sur le Traitement Automatique des Langues Naturelles, volume 1 : articles longs et prises de position · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4399992088) · [Actes de la 31ème Conférence sur le Traitement Automatique des Langues Naturelles, volume 1 : articles longs et prises de position](https://aclanthology.org/volumes/2024.jeptalnrecital-taln/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.jeptalnrecital-taln.9/)
- [PDF](https://aclanthology.org/2024.jeptalnrecital-taln.9.pdf)
- [OpenAlex](https://openalex.org/W4399992088)

Citations: OpenAlex, 2026-10-14.

## Summary

A system that has learned which words typically go together can also learn which traits writers tend to associate with particular groups of people. When asked to score two equally relevant descriptions, it may favor one because the association recurs in its training data. This paper asks how to detect such preferences in pretrained [French](https://md.research.elamur.ai/free/en/topics/french/) [language models](https://md.research.elamur.ai/free/en/topics/language-models/). The authors adapt [StereoSet](https://md.research.elamur.ai/free/en/papers/nadeem-2021-stereoset-measuring-stereotypical-bias-pretrained/), an English benchmark, and retain its evaluation protocol so that they can examine whether patterns found in English also appear in French.

In StereoSet-fr, a test presents a stereotypical association, a counter-stereotypical association, and an unrelated alternative. The alternatives can appear within a sentence or in a follow-up sentence. The unrelated option tests whether the system recognizes what makes sense in context. The other alternatives test which association it prefers when both are relevant. Translating the benchmark required human review. Independent translations frequently gave supposedly matched alternatives different wording, and some unrelated options became plausible in French. The authors revised the translations to preserve the comparisons on which the scores depend.

Across the systems evaluated, better performance at recognizing coherent alternatives tended to accompany a greater departure from a balanced preference between stereotypical and counter-stereotypical options. The Spearman rank correlation on StereoSet-fr was 0,63, compared with 0,9 reported for the original English evaluation. The French results also varied by stereotype domain. CamemBERT and Barthez, for instance, had similar overall scores on the combined measure, yet CamemBERT scored higher on gender while Barthez scored higher on ethnic origin and religion. The authors found no consistent association between these profiles and whether a system used an encoder, a decoder, or both.

The comparisons also point to the importance of pretraining data. Among the CamemBERT variants, those trained on OSCAR obtained higher overall combined scores than those trained on CCNet or Wikipedia. Within OSCAR and within CCNet, the smaller version gave the higher overall score, although the pooled analysis did not establish a relationship between corpus size and stereotype preference. The mBART variant pretrained with additional languages improved across the benchmark’s domains. The authors treat multilingual pretraining as a possible way to mitigate stereotypes and identify cultural coverage as a limit of the test itself. A preference measured on translated items describes behavior on those items, and its implications for French-speaking communities or applications depend on which stereotypes the benchmark represents and how the system is used.

## Deep dive: Les représentations contextuelles stéréotypées dans les modèles de langue français : mieux les identifier pour ne pas les reproduire

StereoSet-fr adapts an English test to measure stereotypes in French language models and examines how pretraining data affect the results. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why ordinary prediction can reveal a stereotype

A [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) learns to score words or passages in context. The authors are concerned with a possibility that follows from this objective. Text supplies evidence about how language works, and the same text contains recurring social associations. A predictor that learns these regularities can reproduce a connection between a group and a trait even when the immediate context gives little reason to favor it. What matters in this study is the preference that appears in the scores assigned to alternatives.

The paper treats a stereotype as a simplifying belief that attributes characteristics to members of a group while overlooking differences among individuals. Such beliefs are learned and reinforced through communication. Pretraining, the stage at which a system learns general patterns from a text corpus, gives those beliefs a path into an automated predictor. The authors motivate the work through the possibility that such predictors will contribute to the circulation of stereotypes, with consequences for prejudice and discriminatory behavior. Their experiment examines an early part of that chain by measuring associations before specifying an application. Its subject is one aspect of [bias, fairness and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/).

A benchmark needs to distinguish between a socially loaded association and a candidate that simply fits the sentence better. It also needs to distinguish balanced preferences from an inability to tell plausible wording from nonsense. A system that scores every alternative poorly or inconsistently can appear to favor neither social association. A system that reads the context well may recognize both relevant options and still consistently give one the higher score. These are different forms of behavior, and a measure that observes only the relative ordering of the social alternatives leaves the difference unresolved.

The French setting matters for both the form and the content of the test. A contrast expressed with a single substitution in English may require changes in agreement elsewhere in a French sentence. Even if a translator solves the grammatical problem, the association being tested may carry a different meaning or have a different standing in another cultural setting. The paper takes up both issues. It repairs the French wording so that it supports the original comparisons, while recognizing that the original choice of groups and stereotypes continues to shape the adapted benchmark.

#### From words in isolation to words in context

Earlier studies discussed in the paper asked about bias in [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), numerical representations that can be compared with one another. An analogy test starts with a relation expressed by a pair of words and uses operations on their representations to look for a word that completes a corresponding pair. The paper illustrates the idea with a relation between a man and a surgeon, then asks which occupation a similar operation associates with a woman. The result can expose a social association in the geometry of the representations. This approach draws on the work on [distributed representations of words and phrases](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/) cited by the authors.

A word association test asks about sets of words. For example, it can compare how representations of masculine and feminine names relate to different sets of attributes about working life. The relative similarities provide a measure of the association between a target group and an attribute group. In the paper’s account, this is the logic of WEAT, the Word Embedding Association Test. It connects the bias question to the broader claim that [language corpora contain human-like biases](https://md.research.elamur.ai/free/en/papers/caliskan-2017-semantics-derived-automatically-language-corpora/) that can be recovered from learned representations.

Contextual representations change what the test needs to supply. A representation depends on the surrounding words, so a target or attribute has to be put into some linguistic setting before its representation can be assessed. The Sentence Encoder Association Test, or SEAT, extends the word association approach by putting targets and attributes into short, systematically constructed sentences. The sentence frames provide contexts with a controlled form. This is the line of work represented by [On Measuring Social Biases in Sentence Encoders](https://md.research.elamur.ai/free/en/papers/may-2019-measuring-social-biases-sentence-encoders/).

StereoSet uses contexts written in natural language and asks the predictor to score alternatives. A context can give an attribute a role in an ordinary sentence, or an opening sentence can establish a topic that a second sentence picks up. In either case, the design makes social preference a question about how the predictor ranks plausible uses of language. The additional unrelated candidate gives the benchmark a way to ask whether the predictor recognizes the difference between an association that fits and an option that falls outside the context.

#### Why use another benchmark for French?

The closest comparison in the authors’ account is CrowS-Pairs and its adaptation into French. CrowS-Pairs uses minimal pairs, where a limited wording change makes the competing sentences suitable for a focused comparison. The French adaptation had already made this kind of social bias assessment possible in French. The authors position their study alongside that work through [CrowS-Pairs](https://md.research.elamur.ai/free/en/papers/nangia-2020-crows-pairs-challenge-dataset-measuring/) and [French CrowS-Pairs](https://md.research.elamur.ai/free/en/papers/neveol-2022-french-crows-pairs-extending-challenge/).

The two designs cover different ground. As described in the paper, CrowS-Pairs evaluates bias within individual sentences and focuses on masked encoders. StereoSet has a larger evaluation set and adds a task based on links between sentences. Its protocol also provides scoring procedures for decoders and systems that combine an encoder and a decoder. This wider coverage makes it possible to compare French-capable systems with different ways of processing or predicting text, while also asking whether comparisons among encoders hold across benchmarks.

The authors use the continuity with English StereoSet to study which benchmark patterns travel across languages. They also pursue a question that can be addressed by comparing closely related French systems. Given versions of the same architecture pretrained on different corpora, how much does the measured preference depend on the corpus? A comparison of unrelated systems mixes differences in architecture, capacity, and training data. Versions of a common system allow a narrower comparison, even when some properties of the corpora still change together.

The notion of bias in this study is consequently tied to a measurement decision. It means a preference between benchmark alternatives designated stereotypical and counter-stereotypical. The paper also cites [Language (Technology) is Power](https://md.research.elamur.ai/free/en/papers/blodgett-2020-language-technology-is-power-critical/), which calls for defining bias and the harms at issue clearly. The benchmark offers a way to examine a specific statistical preference. Connecting that preference to treatment of people requires information about the social context and the application, which sit outside the scoring experiment.

### The method, step by step

#### What a test asks the system to choose

Each test starts with a target associated with a social domain. The target may refer to a group or an occupation. The paper uses a nursing term to introduce the format. An attribute is the candidate wording that expresses the association under examination. The benchmark proposes an attribute consistent with a stereotype, one that counters it, and one unrelated to the context. The labels belong to the benchmark and guide the interpretation of the scores.

In an intra-sentence test, the alternatives are versions of a complete sentence. Within a well-formed item, substituting the attribute leaves the rest of the sentence fixed. The system scores the candidate attribute in its context, with the exact procedure depending on the architecture. For a reader comparing the alternatives, the fixed wording makes it possible to focus on what each substituted expression contributes. For the evaluation, it controls much of the other material that could influence the score.

In an inter-sentence test, the alternatives are sentence pairs. The first sentence introduces the target. A candidate second sentence expresses an association with it, or goes off topic. The unit being scored is therefore a continuation containing the attribute. The question is whether the continuation is judged a good successor to the opening sentence. A relation inferred across a sentence boundary can be probed even when it would be awkward to express all the alternatives by changing a word in a single sentence.

The two formats share their labels but differ in what must be held together. In the intra-sentence setting, the alternative has to fit a slot in a sentence whose other wording is fixed. In the inter-sentence setting, the continuation can introduce a whole proposition, and the opening sentence supplies its context. The method uses different probability estimates for these tasks and then interprets the resulting rankings with the same measures.

From English StereoSet items to French association scores The steps in order.

#### Preserve the comparison through translation

The authors first audited the English benchmark. They excluded 11 examples with clear problems in their form or particular difficulties for French adaptation. An item could, for instance, contain several target words where the test called for a single target. The audit also addressed a small amount of duplication by replacing some repeated attributes with synonyms. The aim was to begin translation with a set of items whose proposed comparisons could be carried across.

A possessive illustrates a case where the source distinction can be hard to reproduce. In English, the contrast between *his* and *her* can identify the possessor while leaving the possessed object unchanged. In the French construction discussed by the authors, the possessive agrees with the object. With *cahier*, for example, *son* can be used regardless of the possessor’s gender. A direct translation can therefore remove the very distinction on which the test depends. Handling such an item means preserving what the alternatives are meant to distinguish, even if a corresponding word substitution is unavailable.

The authors next translated the contexts with DeepL Pro and reviewed them manually. Translating each alternative independently made it possible for the French sentences to diverge in words outside the attribute. This happened in almost half of the translations of intra-sentence tests. The authors made the wording within each affected item uniform so that the alternatives again differed only in the attribute. The operation matters because a scoring procedure can respond to any change in its input, including wording introduced accidentally by translation.

Some items required a change in the shared sentence frame. The paper reports that roughly 5 % of contexts were shifted to the plural to avoid differences in gender agreement or related wording around the attribute. Its example contrasts vodka and whisky. In the singular French versions, *de la* and *du* would differ along with the drinks. A plural construction with *des* gives both alternatives the same surrounding wording. The repair keeps the comparison focused on the candidate drink rather than coupling it to a change in the adjacent expression.

Approximately 1 % of contexts needed synonym substitutions because a direct French equivalent did not preserve the relevant distinction or lack of distinction. The English occupational term *nurse* provides an example. The common French equivalents cited in the paper mark gender. The authors describe using alternatives such as *soignants* and *sauveurs* when repairing the item. The example illustrates why word choice is part of benchmark construction. A translation can preserve a dictionary meaning while changing which social information the sentence expresses explicitly.

The unrelated alternatives required their own review. The machine translation sometimes produced wording that made an originally absurd candidate interpretable in context. The authors revised approximately 40 % of the unrelated examples to keep them clearly irrelevant. This step protects the interpretation of the language modeling score. If translation makes an unrelated option into a plausible reading, a predictor can select it for a sensible reason and still be penalized by the inherited label.

These interventions serve different purposes. Harmonizing sentences holds the frame constant. Reworking a possessive or an occupational expression preserves a distinction between candidates. Repairing an unrelated option preserves the role that candidate plays in the scoring. The paper keeps the original test format through all of these changes. Its contribution is the French adaptation and its evaluation on French-capable systems, using the association protocol developed for StereoSet.

#### Score an alternative within a sentence

The intra-sentence task uses the predictor learned during pretraining. To see how the calculation works, consider a candidate attribute that breaks into several tokens. A token is a unit processed by the system, and a written word can contain several such units. The score has to account for those pieces before the candidate can be compared with its alternatives. That makes [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) relevant even when the test is designed around a single word change.

The predictor’s final layer gives a hidden state, a numerical representation produced from the input. A learned vocabulary projection turns this state into a score for each possible token. The softmax operation converts those scores into a probability distribution. Writing the projection with vocabulary entries arranged as rows, the paper’s token prediction can be expressed as follows.

```
P(u | C) = softmax(hWₗₘᵀ)ᵤ
```

Here `P(u | C)` is the probability assigned to token `u` given the available context `C`. The vertical bar means “given.” The vector `h` is the hidden state from the last layer at the prediction position. The matrix `Wₗₘ` contains the vocabulary projection learned from the language modeling task, indicated by the subscript `lm`. The superscript `ᵀ` transposes the matrix in the chosen row-vector convention, and placing `h` beside it denotes multiplication. The `softmax` function produces a distribution across the vocabulary. The final subscript `u` selects the entry for the token being scored.

The paper writes the general attribute score as a sum of token log probabilities.

```
log Pᵢₙₜᵣₐ(attribute) = ∑ᵢ ∈ attribute log P(uᵢ | C)
```

Here `Pᵢₙₜᵣₐ(attribute)` denotes the score expressed as an intra-sentence probability for the candidate attribute. The function `log` takes a logarithm, so the expression on the left is on the log scale. The summation sign `∑` adds the terms indexed by `i`. The notation `i ∈ attribute` restricts the index to token positions within the candidate attribute. The symbol `uᵢ` stands for the token at position `i`, and `P(uᵢ | C)` is its estimated probability under context `C`. Taking logs allows token contributions to be written additively.

The implementation description distinguishes masked encoders from decoders. For an encoder, the attribute’s tokens are initially replaced by `[MASK]` markers. Starting on the left and moving right, it reveals its sub-words individually. The score for a later piece can therefore use the earlier pieces that have already been uncovered. The paper’s note describes the eventual encoder score as the mean of the probabilities for the attribute’s sub-words. For decoders, the note describes summing the log probabilities of the tokens across the full context.

This distinction matters when interpreting the preceding equation. It expresses the general token-based scoring idea. The paper’s implementation details specify a mean over the attribute pieces for encoders and a full-context sum for decoders. In the decoder case, the changed attribute can influence how probable the subsequent text appears, even though the words after it are shared across the test alternatives. The architecture-specific procedures yield scores with which to order candidates within a test. The reported benchmark measures derive from those orderings.

#### Score a continuation across sentences

The inter-sentence task applies a next-sentence prediction objective. It asks whether a pair of sentences belongs together in the sense that one followed the other in a corpus. The evaluation borrows this procedure from the original StereoSet protocol, which draws on [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) for next-sentence prediction. Given a benchmark opening and a candidate continuation, the trained predictor supplies a score for the continuation containing the attribute.

The paper trains a dedicated prediction head for each system using an excerpt of French Wikipedia. A head is the part of the network that maps a representation to scores for a particular task. The authors follow the training procedure and hyper-parameters used for StereoSet. They train the task-specific layer across the evaluated systems because the models do not all share next-sentence prediction in their original pretraining. The French Wikipedia used in this phase supplies examples for the next-sentence task. It plays a different role from Wikipedia as a pretraining corpus in one of the later CamemBERT comparisons.

The paper uses different summaries of the final hidden states according to how the system processes text. For an encoder, it takes the last-layer hidden state at the first token, marked `[CLS]` in the description. For a decoder or an encoder-decoder, it takes the mean of the last-layer hidden states across positions. Either way, the head receives a single representation for the pair. The inter-sentence evaluation uses the version adapted to the next-sentence task.

With the same projection convention as above, the inter-sentence probability can be written as follows.

```
Pᵢₙₜₑᵣ(attribute) = softmax(hWₙₛₚᵀ)ₙₑₓₜ
```

Here `Pᵢₙₜₑᵣ(attribute)` is the probability assigned to the sentence carrying the attribute as a continuation of the opening sentence. The vector `h` is the representation of the pair derived from the final layer, using the architecture-specific selection or averaging just described. The matrix `Wₙₛₚ` is learned for next-sentence prediction, abbreviated `nsp`. The superscript `ᵀ` transposes the matrix for multiplication with the row vector `h`. The function `softmax` turns the resulting class scores into probabilities. The subscript `next` selects the class corresponding to consecutive sentences.

This score treats the whole continuation as evidence. The opening can make the continuation plausible by establishing a referent or topic. The continuation can also become easier or harder to rank because of how it is written as a whole. The method asks how the candidate fares as a successor to the opening, whereas the within-sentence task uses language modeling probabilities tied to candidate wording in context. That distinction helps explain why the paper identifies the task when reporting a result and specifies when it averages across both tasks.

#### Turn rankings into measures of coherence and preference

After scoring the candidates, the evaluation needs to summarize two judgments. The first is whether a meaningful option beats the unrelated one. The second is whether the stereotypical option beats the counter-stereotypical one. Separating these questions means that the preference measure can be read alongside evidence that the predictor understands enough of the input to distinguish a sensible association from an irrelevant candidate.

The language modeling score, `LMs`, measures how frequently the system favors relevant alternatives over the unrelated option. Its ideal value is 100. A higher value indicates greater success on the benchmark’s coherence judgment. It measures a particular ability within these tests. A high score says that the system generally recognizes the meaningful alternatives in StereoSet-fr.

The stereotype score, `Ss`, expresses the percentage of tests in which the stereotypical alternative is preferred to the counter-stereotypical one. The benchmark assigns the ideal value 50 to a balanced preference. A score above 50 means the stereotypical alternative wins more often. A score below 50 means the counter-stereotypical alternative wins more often. Distance from 50 expresses the strength of the aggregate imbalance, while the side of 50 gives its direction. These distinctions matter whenever the paper speaks of higher `Ss` values or greater departures from the ideal.

The contextual association score, `ACs`, combines coherence and balanced preference.

```
ACs = LMs × min(Ss, 100 − Ss) / 50
```

Here `ACs` is the resulting contextual association score, `LMs` is the language modeling score, and `Ss` is the stereotype score. The expression `100 − Ss` is the complement of the stereotype score on the benchmark’s percentage scale. The function `min` selects the smaller of `Ss` and its complement. The division sign `/` indicates that this minimum is scaled by the balanced reference value 50. The multiplication sign `×` applies that balance factor to `LMs`, and `=` gives the resulting score.

When `Ss` is 50, the symmetry factor leaves the language modeling score intact. Deviations on either side reduce the combined score. A strong preference for counter-stereotypical candidates is therefore penalized by the combination just as a strong preference for stereotypical candidates is. The ideal `ACs` is 100. The paper gives 0 as the score at the extreme of total bias and 50 as the random reference.

This combination lets the authors compare systems whose underlying probability estimates are obtained in different ways. It also means that a low `ACs` has more than one possible explanation. The system may struggle to identify relevance, it may favor one social alternative strongly, or both can contribute. Conversely, a relatively high `ACs` can result from different combinations of coherence and preference. The component scores are essential when the question concerns the source of an overall difference.

### Experiments and results

#### What was evaluated

StereoSet-fr contains 2,096 intra-sentence tests and 2,123 inter-sentence tests. The intra-sentence portion includes 256 gender tests, 806 profession tests, 958 ethnic-origin tests, and 76 religion tests. The inter-sentence portion includes 242 gender tests, 827 profession tests, 976 ethnic-origin tests, and 78 religion tests. These are counts of tests, with each test offering the alternatives described above.

The counts of target words describe another aspect of coverage. The intra-sentence categories contain 11 targets for gender, 32 for profession, 43 for ethnic origin, and 3 for religion. In the inter-sentence data, the corresponding counts are 10, 30, 36, and 3. A domain can thus contain many contextual comparisons while drawing on a more limited set of targets. Religion is particularly narrow by both counts. The reported statistics explain how much material informs the category results and what kinds of differences a single overall score can compress.

The main evaluation includes encoders, decoders, and encoder-decoders. The encoders are FlauBERT-large, CamemBERT-large, and m-BERT-base. The decoder runs use GPT-fr-base, PAGnol-large, BLOOM-560m, and XGLM-564M. The encoder-decoder runs use Barthez and mBART-50. These are pretrained variants drawn from corpora that are predominantly French or multilingual. Several of the families are independently discussed in the papers on [FlauBERT](https://md.research.elamur.ai/free/en/papers/le-2019-flaubert-unsupervised-language-model-pre/), [CamemBERT](https://md.research.elamur.ai/free/en/papers/martin-2019-camembert-tasty-french-language-model/), and [BLOOM](https://md.research.elamur.ai/free/en/papers/workshop-2022-bloom-176b-parameter-open-access/).

The main table reports averages across the intra-sentence and inter-sentence tasks. It gives overall `LMs` and `Ss`, then presents `ACs` by domain and overall. Its comparison is among existing pretrained systems under the adapted protocol. The benchmark’s balanced preference and random performance supply theoretical reference points. The original English results provide a reference for broader relationships among scores, and French CrowS-Pairs provides an independent comparison of relative ordering on French data. Those references address different questions from a direct system comparison on StereoSet-fr.

#### How the systems compare overall

XGLM has the highest reported global `ACs` in the main comparison, at 76,0. Its average `LMs` is 87,0 and its `Ss` is 56,3. PAGnol has the highest `LMs`, at 87,6, but its `Ss` is 59,1 and its global `ACs` is 71,8. CamemBERT also does well at distinguishing meaningful alternatives, with `LMs` of 87,4. Its `Ss` is 58,9 and its global `ACs` is 71,9. Reading these values together shows why the greatest measured coherence need not yield the highest combined score.

Global contextual association scores on StereoSet-fr averaged across both tasks XGLM leads the overall comparison, with mBART next.

**The numbers**

| System or setting | ACs |
| --- | --- |
| FlauBERT-large | 67,2 |
| CamemBERT-large | 71,9 |
| m-BERT-base | 66,7 |
| GPT-fr-base | 68,7 |
| PAGnol-large | 71,8 |
| BLOOM-560m | 56,9 |
| XGLM-564M (this paper) | 76,0 |
| Barthez | 72,6 |
| mBART-50 | 73,9 |

FlauBERT’s mean `Ss` of 49,7 is close to the balanced reference of 50. Its `LMs` is 78,9 and its global `ACs` is 67,2. This is an example of a relatively balanced overall stereotype score on the reported test average combined with weaker performance on the benchmark’s coherence judgment than the strongest systems. m-BERT has the lowest overall `LMs` in the main comparison, at 73,5, alongside `Ss` of 54,3 and global `ACs` of 66,7.

BLOOM illustrates the directional interpretation of `Ss`. Its value of 40,6 favors the counter-stereotypical alternatives in aggregate. The benchmark still treats that as an imbalance, so the low raw value should be read in relation to 50. BLOOM’s mean `LMs` is 81,9 and its global `ACs` is 56,9. Its contrast with other entries helps distinguish three possible readings of the same report. The stereotype score indicates the direction of preference, the distance from balance indicates its strength, and the combined score reflects how that preference is evaluated alongside coherence.

For the other systems, mBART reaches a global `ACs` of 73,9 with `LMs` of 80,3 and `Ss` of 54,0. Barthez reaches 72,6 with `LMs` of 83,8 and `Ss` of 56,7. GPT-fr reaches 68,7 with `LMs` of 83,2 and `Ss` of 58,4. The averages in the main table are 82,6 for `LMs`, 54,2 for `Ss`, and 69.5 for global `ACs`. These figures describe the systems and task averages selected by the authors. They give a frame for reading the individual results alongside the benchmark’s ideal values.

#### Why domain rankings matter

CamemBERT and Barthez make a useful comparison because their global `ACs` values are close. On gender, CamemBERT scores 76.6 and Barthez scores 69,3. On ethnic origin, Barthez scores 75,4 and CamemBERT scores 72,2. On religion, Barthez reaches 74,7 and CamemBERT reaches 66,4. These are averages across the two test formats. The ordering reverses according to which domain is examined, so the overall values conceal a difference in the profile of the benchmark results.

The leaders also vary across domains. The best reported gender and profession `ACs` values are both PAGnol’s, at 79,2 and 73,9 respectively. XGLM reaches 76,5 for ethnic origin and 89,8 for religion. Other systems can score relatively well in a given domain while ranking lower overall. For example, m-BERT’s religion `ACs` is 76,4, whereas its profession `ACs` is 62,5. BLOOM’s religion `ACs` is 43,6, while its profession score is 62,2. The same set of category labels can therefore produce quite different profiles from one system to the next.

The authors see no consistent relationship between broad architecture classes and the types of stereotypes measured. CamemBERT is an encoder and PAGnol a decoder, and both perform relatively well on the gender `ACs` comparison. m-BERT and XGLM likewise represent different architecture classes and both have relatively high religion scores. Barthez is an encoder-decoder and has a stronger ethnic-origin result than several systems with similar global scores. The observation concerns the systems tested together with their training histories and task-specific scoring procedures.

#### The relationship with the English results

The English StereoSet paper reported a tendency for higher language modeling scores to accompany stereotype scores farther from balance. The French study checks the same relationship. It uses a Spearman rank correlation, which asks whether systems ordered by one quantity tend to have a similar ordering by another. In this case, the quantities are `LMs` and the distance of `Ss` from the ideal 50. This comparison concerns the strength of the measured preference regardless of its direction.

On StereoSet-fr, the authors report a Spearman coefficient of 0,63 and a permutation-test p-value of 0,04. A permutation test assesses the observed association against associations obtained by rearranging the correspondence between the quantities being compared. The original StereoSet result reported for this relationship is 0,9. The French association is weaker by the reported coefficients and still statistically significant in the authors’ analysis. The result describes how the tested systems rank on coherence and preference. It leaves open why the two measurements move together.

One interpretation discussed by the paper is that stronger language modeling lets a system recover more regularities of its training distribution, including stereotypical associations. The benchmark evidence is consistent with that interpretation. At the same time, `LMs` is a measure of performance on the relevance contrasts in these items. A correlation with `Ss` distances therefore establishes a relationship between measured behaviors on the benchmark. The separate comparisons across sizes and pretraining corpora give the authors a way to examine possible contributors more closely.

#### A check against French CrowS-Pairs

The authors compare CamemBERT, FlauBERT, and m-BERT with the corresponding systems assessed by French CrowS-Pairs. They restrict the StereoSet-fr side of the comparison to the intra-sentence task. The point of comparison is departure from an ideally balanced preference. French CrowS-Pairs uses pseudo-likelihood, which the paper describes as avoiding a penalty for less frequent terms. Because the two benchmarks use different scoring methods and definitions, the paper compares the relative ordering of the systems instead of treating their numerical scores as a shared unit.

The ordering is generally similar. CamemBERT shows the largest departure from the ideal in the comparison. The authors qualify the interpretation of m-BERT’s performance through its weak language modeling score. StereoSet-fr can express that distinction because it has an unrelated alternative and reports coherence separately. The comparison with [French CrowS-Pairs](https://md.research.elamur.ai/free/en/papers/neveol-2022-french-crows-pairs-extending-challenge/) gives the authors a check on a relative pattern across the shared encoders, within the limits of the different test designs.

### What the ablations show

The paper does not remove individual components of the evaluation pipeline to test their contribution. It instead compares pretrained variants that differ in parameter count, corpus source, corpus size, or multilingual coverage. The closer comparisons are informative about how results change when particular settings change. Their interpretation depends on what the authors can hold fixed and whether the reported outcome concerns `Ss` directly or the combined `ACs`.

#### More parameters within a family

The parameter-count comparison uses only the intra-sentence task on StereoSet-fr. It includes size variants of CamemBERT and FlauBERT, as well as PAGnol, GPT-fr, and BLOOM. Parameter counts refer to the learned numerical values in each system. The paper acknowledges that different sizes within a family can also have different pretraining corpora. For CamemBERT, it specifically chooses the base version trained on CCNet 135Gb to compare with the large version trained on the same corpus.

For CamemBERT, the `LMs` goes from 83.5 in the base variant to 84.0 in the large variant. The `Ss` moves from 61.0 to 57.5, toward the benchmark’s balanced reference. The `ACs` increases from 65.1 to 71.4. This family is the exception to the tendency the authors report for the raw stereotype score. Increasing parameter count here accompanies a small improvement on the coherence test and a smaller preference for the stereotypical alternative.

FlauBERT exhibits a different pattern. The small variant has `LMs` of 58.3, `Ss` of 52.1, and `ACs` of 57.3. The base variant reaches `LMs` of 80.8, `Ss` of 52.8, and `ACs` of 76.2. The large variant has `LMs` of 80.3, `Ss` of 57.1, and `ACs` of 68.9. The improvement in the combined score from small to base accompanies a stronger coherence result while preference stays relatively close to balance. At the large setting, a lower coherence score and a greater stereotypical preference accompany a lower combined score than at base.

For PAGnol, the small, medium, and large variants have `LMs` of 87.3, 87.6, and 87.3, respectively. Their `Ss` values rise from 60.3 to 60.9 and 61.5, while their `ACs` values are 69.4, 68.5, and 67.3. The distinction between the component scores is particularly clear here. The coherence results remain close over these variants, while the preference measure moves farther from balance. The combined measure follows the direction of the preference penalty.

GPT-fr and BLOOM show why an increase in the raw stereotype score can accompany different outcomes for `ACs`. GPT-fr’s small and base variants obtain `LMs` of 87.4 and 89.2, with `Ss` of 61.5 and 62.2. Their `ACs` values are 67.2 and 67.4. For BLOOM-560 and BLOOM-1b1, the `LMs` values are 86.9 and 87.2, and `Ss` rises from 56.5 to 60.6. The corresponding `ACs` values are 75.7 and 68.7. All of these numbers are for intra-sentence testing. The BLOOM values in particular should be read separately from its main results averaged across both test formats.

Within the selected families other than CamemBERT, increasing the parameter count is accompanied by a higher raw `Ss`. Since these scores are above 50 in the intra-sentence size comparison, the increase also corresponds to a greater preference imbalance there. Improvements in coherence are common across the variants, although FlauBERT and PAGnol show that the movement need not be monotonic. The authors interpret the broader tendency as consistent with greater capacity capturing both the language patterns and the stereotypes present in pretraining data.

The pooled analysis asks a different question. It ranks all the size variants together and compares parameter count with distance from the ideal `Ss`. For StereoSet-fr, Spearman’s coefficient is 0,31, with a p-value of 0,16. The corresponding analysis of original StereoSet results gives 0,32, with a p-value of 0,21. The pooled French result does not establish a statistically significant association. A pattern seen within several families therefore offers limited guidance about how one family will rank against another at a given size.

#### Different pretraining corpora for CamemBERT

The corpus comparison keeps the architecture the same and evaluates CamemBERT variants pretrained on OSCAR, CCNet, or Wikipedia. This makes it a closer comparison than ranking systems from different families. The average global `ACs` across the intra-sentence and inter-sentence tasks is highest for the variant trained on OSCAR at 4 GB. Both OSCAR settings surpass the two CCNet settings and the Wikipedia variant in the reported global comparison.

Global contextual association scores for CamemBERT pretraining corpora on StereoSet-fr The smaller OSCAR setting leads overall, and the smaller setting also leads within CCNet.

**The numbers**

| System or setting | ACs |
| --- | --- |
| OSCAR (4 GB) (this paper) | 76,8 |
| OSCAR (138 GB) | 73,8 |
| CCNet (4 GB) | 73,6 |
| CCNet (135 GB) | 69,5 |
| Wikipedia (4 GB) | 68,8 |

The equal-size comparisons clarify why corpus identity matters to the paper’s argument. At 4 GB, the OSCAR version scores 76,8 overall, the CCNet version 73,6, and the Wikipedia version 68,8. The shared reported size leaves corpus source as a salient difference in the comparison. The paper highlights the OSCAR variants’ results for ethnic origin and religion and describes CamemBERT trained on CCNet as particularly sensitive to the religion contrasts.

The domain scores qualify the overall lead. The gender `ACs` is 82,8 for CCNet at 4 GB and 80,6 for OSCAR at 4 GB. The profession `ACs` is 70,1 for OSCAR at 4 GB, 68,6 for CCNet at 4 GB, and 65,4 for Wikipedia at 4 GB. These comparisons use the same two-task averaging as the global chart. A data source that leads on the combined global score can be outranked by another in a specific domain. The corpus comparisons thus echo the system comparisons in showing that the answer depends on the category being measured.

Within OSCAR, the 4 GB setting has the higher global `ACs` compared with 138 GB. Within CCNet, the 4 GB setting also has the higher global `ACs` compared with 135 GB. These are comparisons of smaller and larger versions of particular corpora. They give the authors a reason to look beyond the amount of text when explaining the scores. The evidence concerns the named variants and the benchmark’s combination of relevance and balance.

The authors also test the relationship between corpus size and distance from the ideal `Ss` across the configurations in the corpus comparison. They report a Spearman coefficient of 0,29 and a permutation-test p-value of 0,35. This pooled result does not establish a significant association. It also uses a different outcome from the global `ACs` comparison. The chart compares coherence and balance jointly, whereas the rank test asks specifically about departure from balanced stereotype preference. The two findings can be read together without treating the within-corpus `ACs` ordering as a general law about data size and bias.

The paper interprets the corpus results as evidence that what goes into pretraining matters more than sheer volume. It connects this interpretation to the use of a deliberately selected body of training text in [Textbooks Are All You Need](https://md.research.elamur.ai/free/en/papers/gunasekar-2023-textbooks-all-you-need/). That earlier work is an illustration of a data-selection approach in the authors’ discussion. The evidence for StereoSet-fr comes from the variation among the CamemBERT runs evaluated here, and from how that variation appears in the global and category scores.

#### Broader multilingual coverage in mBART

The mBART comparison contrasts a version trained on 25 languages with one whose training extends to 25 additional languages. The paper estimates corpus sizes of 1,100 GB for CC25 and 1,160 GB for CC25 + 25 from the statistics reported for the original systems. The global `ACs` is 70,6 for the former and 73,9 for the latter, averaged across the two StereoSet-fr tasks. The variant with wider language coverage has the better score in every reported domain.

Global contextual association scores for mBART pretraining settings on StereoSet-fr The variant pretrained with more languages has the higher combined score.

**The numbers**

| System or setting | ACs |
| --- | --- |
| mBART with CC25 | 70,6 |
| mBART with CC25 + 25 (this paper) | 73,9 |

By domain, gender `ACs` rises from 67,1 to 75,8, and profession `ACs` from 67,5 to 71,3. For ethnic origin, the figures are 73,2 and 74,1. For religion, they are 70,0 and 75,4. The consistency of the direction across categories is what makes this result relevant to the authors’ mitigation hypothesis. The better global score is accompanied by improvements in all the parts of the benchmark that the paper reports for this comparison.

The authors suggest that text from several linguistic communities may reinforce a stereotype peculiar to one cultural setting less strongly than text from a narrower collection. The comparison is consistent with that explanation, but it changes language coverage and the body of pretraining text together. The reported combined scores establish that the expanded variant handles the benchmark’s joint criterion better. Showing that cultural variety is the cause would require a comparison designed to isolate it, which the authors identify as a question for dedicated research.

### Limitations

#### Limits the authors identify

The first limit concerns whose stereotypes are represented. The original StereoSet used annotators residing in the United States to capture stereotypes familiar in that setting. Translating the items and repairing the French wording leaves much of the original inventory of associations in place. The authors argue that stereotypes concerning ethnic origin and religion can be particularly sensitive to cultural context. They cite earlier work describing greater cross-cultural similarity for some stereotypes about gender and age. Age appears in that discussion of cultural variation, while the benchmark itself reports results for gender, profession, ethnic origin, and religion.

The paper notes that the combined scores are generally higher in the religion and ethnic-origin categories than in the gender and profession categories. Its proposed explanation is cultural specificity. Some of the translated ethnic or religious items may capture contrasts that are less familiar in the settings reflected in French pretraining data. A higher score on these categories could therefore reflect the benchmark’s choice of stereotypes. The authors caution against interpreting the domain pattern as evidence that French systems are intrinsically less susceptible to ethnic or religious stereotyping.

The second limit concerns coverage even within the named domains. The authors describe the benchmark as a sample of existing associations, with finite sets of contexts and targets. It leaves open which other stereotypes are present, which are current, and which would matter in a particular community. The limited religion inventory makes the distinction between a domain label and the examples sampled under it concrete. A score in that domain summarizes performance over the recorded contrasts. The authors expressly reject using strong benchmark performance to certify that a system is free of bias.

The third limit concerns use. The study measures statistical associations in contextual representations and leaves the application unspecified. The people using a system, the decisions it informs, and the effects of a preference all depend on how it is deployed. As the authors argue, a study of harm would have to specify the process being supported or automated, describe the social setting, and adapt the evaluation to that use. StereoSet-fr supplies an instrument for studying measured preferences before those additional questions are addressed.

#### Limits visible in the design

An overall `Ss` near 50 can conceal preferences that point in opposite directions across targets or contexts. A system can frequently favor the stereotypical option in one subset and the counter-stereotypical option in another. An aggregate that balances these outcomes measures how often each option wins across the relevant denominator. It does not establish that the two candidates were scored similarly within individual items. For that reason, balanced aggregate preference and indifference on every test are different claims.

The same distinction applies to the magnitude of a preference. The evaluation orders alternatives by their estimated scores. A small advantage and a large advantage can contribute the same win to a percentage. The benchmark’s rank-based summaries are useful for comparing systems whose token probabilities come from different scoring procedures. They leave the margins between candidates outside the main reported measures. The reader can interpret an `Ss` difference as a change in the frequency of a preference without treating it as a measured change in the strength of each individual preference.

`ACs` adds another ambiguity when it is presented alone. Changes in relevance judgments can raise or lower the combined score, as can changes in stereotype preference. The family-size comparison reports the components and makes their separate contributions easier to see. The corpus comparison emphasizes combined scores by domain and overall. Its results support comparisons on the joint criterion, while a claim specifically about reduced stereotype preference needs information on the underlying preference score for the setting in question. This distinction is especially important when interpreting the improvement of the expanded multilingual variant.

Averaging the scores across the two tasks also compresses differences in the way those tasks are performed. The within-sentence comparison relies on a language modeling score. The across-sentence comparison relies on a head trained to recognize consecutive French sentences. A difference in the latter may depend in part on how the system’s representations respond to that additional training and how the prediction head exploits them. The two formats broaden coverage, and their average provides an overall comparison. The average cannot identify which format produced a particular change on its own.

The translation exercise prioritizes continuity with StereoSet, including its labels and comparison structure. The manual corrections address visible changes in agreement, wording, and coherence. The paper does not quantify how much the individual translation repairs change system rankings, and it gives no independent measure of how representative the adapted associations are for French-speaking populations. These are distinct questions. A sentence can be a well-formed French counterpart of the English test and still be a weak probe of the stereotypes relevant to a particular community.

Finally, the experiments compare settings in which some properties vary together. The CamemBERT corpus comparison controls the architecture, and the common-size settings give a way to examine corpus source with size held constant as reported. They do not identify which characteristic of OSCAR, CCNet, or Wikipedia produces a given result. The mBART comparison adds languages and training material together. The family-size comparison can include differences in pretraining corpora. The correlations and the paired observations establish the patterns the authors report. A causal explanation for an individual pattern requires controls matched to the proposed mechanism.

### What came after

There are no documented follow-up studies to discuss here. The paper’s own closing questions concern two kinds of follow-up. One is to test whether wider multilingual pretraining changes stereotype preferences because it brings in text from different cultural settings. The mBART comparison motivates that question by showing better combined scores with wider language coverage. A dedicated comparison would need to distinguish the effect of language coverage from the other changes in pretraining data.

The other direction is to adapt the assessment to the people and processes affected by a particular use. That means choosing associations relevant to the social setting and specifying what harm a measured preference could cause in the application. The paper leaves those as questions for future evaluation. Its completed contribution is a French benchmark that makes it possible to compare contextual stereotype preferences, their relationship to coherence, and their variation across pretraining settings.

## Cite

Cite as Léandre Adam-Cuvillier, Pierre-Jean Larpin and Antoine Simoulin. 2024. Les représentations contextuelles stéréotypées dans les modèles de langue français : mieux les identifier pour ne pas les reproduire. Actes de la 31ème Conférence sur le Traitement Automatique des Langues Naturelles, volume 1 : articles longs et prises de position.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{adamcuvillier2024les,
  title = {{Les représentations contextuelles stéréotypées dans les modèles de langue français : mieux les identifier pour ne pas les reproduire}},
  author = {Léandre Adam-Cuvillier, Pierre-Jean Larpin and Antoine Simoulin},
  booktitle = {Actes de la 31ème Conférence sur le Traitement Automatique des Langues Naturelles, volume 1 : articles longs et prises de position},
  year = {2024},
  url = {https://aclanthology.org/2024.jeptalnrecital-taln.9/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
