Elamur Research

Exploiting Biased Models to De-bias Text: A Gender-Fair Rewriting Model

Paper · 2023 · Chantal Amrhein, Florian Schottmann, Rico Sennrich et al.

Summary

A translation can introduce a gender assumption that the original writer never made. A German expression for a student that explicitly includes people of different genders can become simply student in English. Translate it back into German and a system may choose a masculine form. Chantal Amrhein and colleagues turn that tendency into a source of training examples. They keep the original, inclusive German sentence as the desired output and use the returned German sentence as an example of what needs editing. The machine translation system supplies the wording to repair.

The paper first tests the underlying idea in English. Earlier researchers collected sentences with gender-marked wording and wrote rules to generate neutral versions for the rewriter to imitate. Amrhein and colleagues reverse the procedure. They select naturally occurring sentences with neutral wording, then apply rules to give those sentences artificial masculine or feminine counterparts. The English rewriter trained this way matches the low word error rates of earlier systems and records lower values on OpenSubtitles, Reddit and WinoBias+. This comparison matters because reversing the procedure puts human-written text on the side the rewriter learns to produce.

The German experiment replaces the main set of rewriting rules with a round trip through English. The authors also try retaining only the relevant changes from the translation, adding examples of rarer singular forms, and generating more feminine inputs. On the gendered portion of the TIGER test set, the best combined system records a tokenised word error rate of 13.18, compared with 15.01 for an established rule-based rewriter and 20.56 for the unedited input. The advantage varies with the wording. The rule-based system is especially strong on masculine inputs, while the new approach handles feminine inputs better.

The authors also ask 294 volunteers recruited through groups interested in gender discrimination to rate passages for perceived gender-fairness. The original German paragraphs receive an overall mean of 1.79 on the study’s 5-point scale. The automatically rewritten versions receive 2.93, and versions edited by an author receive 3.98. The automatic versions score above the originals on every paragraph, including passages where they leave some gendered wording intact or introduce agreement errors. The ratings establish that this group of readers noticed an improvement in these passages. They leave open how frequently readers would choose an imperfect rewrite in everyday use, and how the approach would fare in languages with less inclusive source material.

Deep dive: Exploiting Biased Models to De-bias Text: A Gender-Fair Rewriting Model

Amrhein and colleagues use biased round-trip translation to train a German rewriter that produces more gender-fair wording, as judged by readers. · about 34 minutes to read

The problem and its context

Which wording needs to change?

A rewriter receives a piece of text and produces an edited version of that text. The task in this paper is to change how the text refers to people while retaining its other content. A generic masculine occupation noun, for example, can be used with the intention of referring to people of any gender. Its form still gives masculine wording a privileged place. An inclusive alternative makes the broader reference visible. The authors cite studies connecting such wording with the visibility of women and with young people’s interest in occupations associated with gender stereotypes. They also cite research on the comprehensibility of gender-fair language. Together these studies explain why the wording itself is a practical concern when people encounter automatically generated text.

The paper uses gender-fair as its general name for the rewriting task. Its technical distinction is useful. Gender-fair forms, in the narrower sense defined by the authors, explicitly mark inclusion across genders. Gender-neutral wording leaves gender unmarked. The English experiment generally aims for the second kind of output, such as a neutral job title or singular they. The German experiment examines visible inclusive markings, set against a language where nouns and the words that accompany them can carry grammatical gender. The label describes a shared aim across the experiments, while the actual edits depend on the language and the conventions chosen for it.

The task is selective. Some passages contain a form that the rewriting policy calls for changing. Others are already suitable under that policy, and reproducing the input is then the desired outcome. Grammatical gender alone gives an incomplete guide to this choice. German Leiter can denote a leader or a ladder, and the same written word therefore occurs in contexts with different implications for rewriting. A policy for referring to people applies when the word has the human reading. In a sentence about an object, preserving the word is the appropriate action.

The paper places this problem within work on what happens when biases in training data appear in generated text. Its examples concern an overrepresentation of masculine forms and the perpetuation of gender stereotypes. The focus is the text a system or a person has already produced. That gives rewriting a distinct role among the interventions described by the authors. It can be applied to the output of a generator, a translation, or a human draft. The same rewriter can accept any of those sources as input while leaving the process that supplied the text outside the rewriting task. Bias, fairness & safety

How earlier systems learned the task

The paper describes several places to intervene in a text generation system. A researcher might change which examples are available during training, alter the training procedure, or modify how the system chooses an output. A separate rewriter places the intervention after the original text exists. Its training material needs to show the relationship between an input sentence and an acceptable revision. A monolingual text collection can contain plenty of examples of both styles, yet still have few cases where the same content occurs in both styles as a usable pair. The paper mentions a crowdsourced English corpus of 100k segments as an exception to that scarcity.

The earlier English work by Sun and colleagues and by Vanmassenhove and colleagues builds pairs from existing text. In the paper’s terminology, this is Forward Augmentation. Take a naturally occurring sentence containing a gendered word, apply a set of editing rules, and use the result as the target. The original sentence supplies varied content and context. The rule system supplies examples of how the context should look after editing. A sequence-to-sequence system, which reads one text sequence and generates another, can then learn from all of those paired sentences.

A vocabulary mapping does part of the work. A title such as chairman can become chairperson, for example. Pronouns call for more information. The form her can be possessive, as it is before a noun, or it can be the object of a verb or preposition. The first reading can call for their, while the second calls for them. The word chosen as the replacement depends on the grammatical role. A change in the subject can also require a different verb form. In the paper’s example of a singular feminine subject and a present-tense verb, changing the subject to they requires the verb form that agrees with they.

The earlier English systems divide these jobs differently. Sun and colleagues use information about grammatical categories, word forms and syntactic relationships to handle agreement, and score candidate revisions to resolve ambiguities. Vanmassenhove and colleagues use a grammatical correction system to handle agreement and linguistic analysis to resolve ambiguous forms. A language model supplies scores in the first approach. The second approach uses grammatical information about the sentence itself, including relationships obtained through dependency parsing. Once the training pairs exist, a learned rewriter can operate without calling the whole annotation and editing pipeline each time it sees an input.

Why German raises the cost of writing rules

English provides a setting in which a substantial part of the targeted editing can be described with pronoun and noun lists. The German example brings out a different kind of dependency. A change to a noun referring to a person can require changes to a determiner or adjective, with the appropriate form depending on number and case. Singular noun phrases can place several decisions close together. The relevant part of morphology is how words change form to express such categories, including the forms needed for agreement.

A second difficulty is deciding which words are candidates in the first place. The same spelling can have a human reading and an inanimate reading, as in the leader and ladder example. The authors describe earlier work that took the English rule-then-learn strategy into Spanish and produced a system that treated human referents and objects alike. They also discuss work on Arabic where the data preparation pipeline needed labelled examples for a classifier that identifies gendered words. Both studies used a binary treatment of gender. These examples illustrate distinct sources of work when adapting a pipeline to a language: identifying the appropriate referents, and producing the full set of forms needed around them.

A German rule-based approach discussed in the paper combines information from several language-specific tools. Finding words that refer to people can involve recognising names and relating pronouns to the entities they mention. Recognising a word across different inflected forms requires another kind of analysis. Producing the rewrite can call for a database of inflections as well as information about the structure of the sentence. The antecedent problem belongs to coreference resolution, while recognising names is an instance of named entity recognition.

Such a pipeline can have precise rules for cases its designers anticipated. The cost is that each decision depends on the quality and coverage of the components that precede it. If an analysis misses a word, or if the word database omits it, a later editing rule may never have the chance to apply. The authors also cite work on training with corrupted translation data for a related point. Errors on the target side matter especially because those targets serve as examples of what the system should say. The distinction between noise in an input and noise in a desired output is central to their reason for reversing the construction of a pair. On the Impact of Various Types of Noise on Neural Machine Translation

What the round trip contributes

The authors draw an analogy with back-translation, a way to use monolingual target-language material for translation training. A human sentence already exists in the desired output language. A translation system invents a plausible sentence on the other side of the pair. The translation training procedure then uses that synthetic sentence as its input and the existing human sentence as its target. For rewriting, both ends of the eventual pair are in the same language. The analogous decision is to start with the wording the system should learn to produce. Improving Neural Machine Translation Models with Monolingual Data

An intermediate language can make that decision practical. When a gender distinction is commonly omitted in the intermediate wording, translating back may fill the gap with a default. The default is an error for a translation that should have retained the inclusive reference. For the rewriter’s training data, it supplies a form that an inclusive editor might encounter. The paper situates this use alongside earlier round-trip work on automatic post-editing, grammatical error correction, and paraphrasing. Those applications already used the fact that a passage can change as it travels through another language. Here, the sought-after change concerns whose gender the words appear to mark.

The method, step by step

Build the pair from the desired sentence

The direction in which the data are constructed and the direction in which the trained rewriter operates are separate. During use, the rewriter takes the text someone wants edited and predicts an inclusive version. During Backward Augmentation, an inclusive sentence is the starting point for building an example. The researchers manufacture a sentence that the rewriter could plausibly have been asked to edit. These sentences then occupy their normal places in training, with the manufactured version as input and the selected original as output.

This change also relocates part of the linguistic reasoning. Suppose a German source noun could refer to either a person or an object. A forward editor may have to identify the meaning before changing it. When the target already contains an inclusive marking on the corresponding noun, the marking itself is an indication that the author is referring to a person. The backward data generator can exploit that information. The finished rewriter still has to decide what to do when presented with fresh, unmarked text. The advantage concerns the construction of examples that can teach it to make that decision.

In the authors’ notation, the forward method trains the rewriter to maximise the following conditional probability.

p(Tₚₛₑᵤdₒ | S, θ)

Here p denotes probability. Tₚₛₑᵤdₒ is the artificially created target with the desired wording, and S is the original source segment. The vertical bar introduces the conditions under which the target is predicted. The comma separates the source from θ, which denotes the trainable parameters of the rewriter. The subscript spells out that the target is synthetic.

Both of the new augmentation methods train the rewriter to maximise a probability with the synthetic material on the input side.

p(T | Sₚₛₑᵤdₒ, θ)

T is the selected target segment with the desired wording. Sₚₛₑᵤdₒ is the artificial source created from it. p again denotes the probability the rewriter assigns to the target, the vertical bar means that this probability is conditional, and the comma separates the source segment from the trainable parameters θ. In the central experiments the target is taken from naturally occurring text. In the German prompting extension, additional targets come from generated text that is screened for the forms the authors want.

Reverse the English lookup and editing rules

The English experiment uses OSCAR, a multilingual collection of text drawn from the web. For the forward reproduction, the authors find English segments containing words that appear on the gendered side of the lookup tables from earlier work. For the backward experiment they search for the corresponding neutral forms. The selected original segments serve as sources in the forward setup and as targets in the backward setup. The authors remove duplicates and material that fails the noise filters, then randomly select 5M segments for each approach.

They combine the lexical tables used by Sun and colleagues and Vanmassenhove and colleagues. The categories include pronouns, occupational titles, expressions with generic man, and feminine titles for which the authors use a common alternative. The purpose of combining the tables is to build a common basis for the two data directions. A neutral title found in a target sentence can then be paired with a masculine or feminine version in an artificial input. The backward direction uses the same inventory of changes along with reversed contextual rules.

The authors implement the contextual rules with spaCy. The rules use the grammatical category of a word, its morphological features, and its syntactic relation to other words. This information helps determine which reading of a pronoun is appropriate and which verb form should accompany a changed subject. One convention adopted from Sun and colleagues is themself as the target reflexive for himself and herself. An explicit convention matters both when creating the examples and when comparing results with a system that uses another form.

The English training sets include complementary masculine and feminine sources and copies of the fair targets. The paper limits the English gender-related portion to 15 million parallel segments for comparability with the earlier setup. It also adds ordinary non-gendered examples so that these account for 30% of the total parallel data. The pairing of an unchanged input with itself gives a direct example of when copying is desirable. Including already fair wording and including wording without a gendered form cover different situations that a rewriter may encounter.

Collect German targets and translate them through English

For German, the authors search OSCAR for sentences containing visibly gender-fair forms. Regular expressions, which are character patterns that can be matched against text, identify forms suitable for collection. Some use a separator inside a noun, as in Student*innen, Student:innen or Student_innen. The paper also describes constructions that place a feminine and a masculine noun side by side, and spellings that use a capital letter or a slash. These conventions differ in scope. The authors treat pair forms, internal capitalisation and slash forms as binary, and describe the star, colon and underscore as inclusive of non-binary people.

This is a way of finding examples, with the visible markers doing much of the work. A case where inclusive meaning follows from an completely different expression is harder to retrieve by the same search. The paper describes alternatives involving a neutral noun or a change in sentence structure, and places them outside the scope of this implementation. The filtering strategy concentrates the dataset on inclusive writing that can be recognised from its form.

The authors first translate a selected German target into English, then translate the English result back to German. English is the pivot language, meaning the intermediate language through which the text travels. The notation Pₚₛₑᵤdₒ denotes that synthetic English intermediate. The original German T is still the target for the rewriter. The returned German can serve as Sₚₛₑᵤdₒ, the source from which the rewriter is trained to recover the original version.

The translation systems are the German-to-English and English-to-German checkpoints from Facebook’s WMT 2019 work. In a manual check of a random set of 100 sentences, the authors found that the return trip rendered the gender-fair forms as generic masculine in about 90% of cases. That observed preference is what makes the route useful for generating a particular kind of input. English often leaves the relevant noun unmarked, and the German translation often supplies a masculine form in its place. The resulting sentence can resemble material that the authors want the final rewriter to handle. Facebook FAIR’s WMT19 News Translation Task Submission

Training a German rewriter with round-trip translation

The steps in order.

Training a German rewriter with round-trip translationStep 1: Find German sentences with inclusive forms1. Find German sentences with inclusive formsStep 2: Keep each selected sentence as a target2. Keep each selected sentence as a targetStep 3: Translate the targets into English3. Translate the targets into EnglishStep 4: Translate the English sentences back into German4. Translate the English sentences back into GermanStep 5: Optionally merge matched forms into original wording5. Optionally merge matched forms into original wordingStep 6: Add unchanged examples and filter the pairs6. Add unchanged examples and filter the pairsStep 7: Train the rewriter to recover inclusive wording7. Train the rewriter to recover inclusive wording

After round-trip generation, deduplication and noise filtering, the authors report 8.8M German sentence pairs. The German training combinations also use copies of the selected target segments on the source side. As in English, ordinary non-gendered OSCAR examples make up 30% of the parallel training material. These additional pairs give the rewriter contexts in which the appropriate result is the text it received.

Retain just the useful part of a translation

A round trip can produce a grammatical sentence whose wording differs from the original in several ways. In the paper’s example about a meeting with a student and differences among families, the trip supplies a masculine form of student. It also changes the conjunction, reorganises the sentence and rephrases the description of the families. If the returned sentence is paired directly with the original, recovering the target involves learning both the intended inclusive change and a collection of other differences.

The authors’ merging algorithm creates a source that is closer to the original. It begins with the tokens of the German target and the tokens of the German round-trip output. For each recognised gender-fair token in the target, it looks for a similar spelling among the tokens in the round trip. The authors use Python’s difflib with a cutoff of 0.6. When candidates meet the cutoff, the highest-ranked candidate supplies the replacement at that position. If every gender-fair token has a match, the resulting sequence is joined back into text. If any such token lacks a match, the procedure uses the full round-trip sentence as the source.

In the student example, this keeps the wording about the families and the original sentence structure while inserting the masculine student phrase. The operation is based on similarity between written forms. Case and agreement are decided by the surrounding sentence, so a close form retrieved from the translation can fit poorly when inserted into the original context. The authors accept this potential source of input noise because the target remains the version that was selected before translation. They suggest that a future version could take grammatical acceptability into account when choosing a merged source.

The merge uses patterns for identifying likely edits and a general comparison between strings. Its job is to decide which part of the returned wording to retain. The round trip still supplies the masculine or feminine wording itself. This distinction matters for the paper’s claim about avoiding elaborate rewriting rules. The method uses recognisers to collect and process examples, while leaving the production of the alternative inflected form to a translation system.

Supply more singular and feminine examples

The authors find plural inclusive nouns much more frequently than singular inclusive nouns in the German target collection. To get more examples of the latter, they prompt GerPT2-large with a seed list of inclusive nouns that refer to animate beings. A prompt contains a gender-fair determiner and noun in a pattern such as Ein*e NOUN*in. The continuation can contain further gender-fair forms. The authors split generated passages into sentences and retain singular-form segments that either begin elsewhere in the generated passage or contain an additional gender-fair form beyond the prompt.

This selection gives the rewriter examples of singular forms in a wider variety of positions. A sentence containing only the initial prompt may show the desired noun and determiner in the same opening configuration every time. A later sentence, or a sentence with another gender-fair form, offers additional context. The selected sentences supply targets and go through the same sort of round trip to create corresponding sources. The paper also shows prompting examples in French and Spanish. Those examples illustrate generated wording in those languages. The rewriting experiment with prompting concerns German.

The masculine bias of the return translator creates a different imbalance on the source side. It is helpful for making examples of masculine wording, but the rewriter also needs experience editing feminine forms. To obtain it the authors use fine-tuning, further training of an existing system. They fine-tune the English-to-German translator using parallel sentences drawn from the WMT 2019 training material. Labels attached to the English input indicate which gendered form its German translation should contain.

To construct the tagged pairs, the authors look for German translations that already contain feminine and masculine versions of the same noun in a pair form. In a plural context, they can keep the feminine version in one target and the masculine version in another, attaching <f> or <m> to the corresponding English input. The paper explains that the relevant German plural agreement makes this feasible without changing associated pronouns, adjectives or determiners. For singular pair forms, such surrounding changes may be necessary. The authors assign a singular example to the feminine or masculine category according to the first form of the original pair.

On one GPU, the model is fine-tuned for 50,000 steps using batches of 30. It starts from the original English-to-German checkpoint and follows the translation fine-tuning procedure from the Hugging Face software described in Transformers: State-of-the-Art Natural Language Processing. The tagging idea follows earlier work that used a similar control signal for politeness in translation. Controlling Politeness in Neural Machine Translation via Side Constraints

In a manual check on a random set of 100 sentences, masculine forms account for 36% of the outputs with the feminine tag. The original checkpoint yields 90%, while using the masculine tag yields 94%. These are measurements of the forms produced during data generation. The feminine tag changes the mix substantially and still yields some masculine versions. Some translations from the fine-tuned checkpoint also duplicate an existing source or match the fair target, so deduplication reduces how many additional pairs this route contributes.

Train the same kind of rewriter in both languages

The authors use the same architecture and training procedure for the English and German rewriters. The encoder reads the input and produces internal representations. The decoder uses those representations to generate the output sequence. Attention lets the system connect parts of the sequences that matter to the prediction, including a word to be changed and context that helps decide its form. The architecture is a Transformer.

In the reported setup, the encoder and decoder have six layers apiece, there are four attention heads, the embedding and hidden-state dimensions are both 512, and the feed-forward dimension is 1024. The authors optimise it with Adam using standard settings, a learning rate of 5e − 4, and a schedule with linear warmup over 4,000 steps. The rewriters are trained with Sockeye 3. The authors report using these settings without a hyper-parameter search. Adam: A Method for Stochastic Optimization

A joint vocabulary of size 8k is learned with byte-pair encoding through SentencePiece. A joint vocabulary lets the input and output sides share the same available pieces. This is useful for an editing task in which much of the input can carry straight through to the output. The pieces can also represent parts of words, so the system has a way to handle inflected forms without assigning a separate vocabulary entry to every whole word it encounters. This is the role of subword tokenization in the training setup.

The preprocessing uses OpusFilter for deduplication and for filtering noisy segments. The appendix reports a word-length filter with a minimum of 1 and a maximum of 150 words, a long-word threshold of 40, an alphabet-ratio threshold of 0.5, and a fastText language-identification threshold of 0.0. These filters accompany the searches for the intended gender forms. The authors release the code and data for the study under the project name exploiting-bias-to-debias.

Experiments and results

How the automatic comparisons were scored

The automatic experiments use tokenised word error rate, or WER. The output and the reference are broken into tokens for comparison. The score measures the edits needed to bring the output into agreement with the reference, accounting for substitutions, insertions and deletions relative to the reference length. Lower scores indicate closer agreement with the selected reference wording. This measure captures both missed edits and unnecessary changes because either can make the submitted output differ from the reference.

For a sentence that requires no rewriting, copying gives the desired output exactly. For a source that needs edits, copying shows how far the original wording is from the reference before any system intervenes. Reporting both cases turns the unchanged source into a meaningful baseline. A rewriter needs to reduce the disagreement on gendered sentences while keeping unintended differences low on sentences where the authors expect copying.

The authors use jiwer for WER and paired bootstrap resampling to evaluate statistical significance. The resampling compares systems on the same sampled test examples, drawing with replacement 1,000 times. The significance threshold is 0.05. The paper’s tables identify settings for which another system was found to be statistically significantly better, and highlight the settings that escape that distinction. A smaller reported WER can therefore represent a numerical lead even in comparisons where the experiment supports treating the systems as comparable. Statistical Significance Tests for Machine Translation Evaluation

English tests the direction of augmentation

The authors use the benchmarks released with the earlier English systems. Sun and colleagues provide a gendered set and a non-gendered set, each with 500 sentence pairs. These cover material from social media, journalism, films and jokes. The gendered examples balance masculine and feminine pronouns within each domain. The non-gendered examples contain no forms designated for rewriting. This pair of tests distinguishes making the intended substitutions from preserving text that already meets the task’s conditions.

The sets from Vanmassenhove and colleagues include 500 sentence pairs from OpenSubtitles, 500 from Reddit, and 3,167 from WinoBias+. Each set balances the types of neutral pronouns that the rewriter is expected to produce. The collection adds a different mix of domains and a larger test focused on examples derived from work on gender bias and coreference. Gender Bias in Coreference Resolution: Evaluation and Debiasing Methods

The authors check the reference side by hand and correct occasional annotation errors. For the sets from Vanmassenhove and colleagues, they restrict the references to the changes involved in gender-fair rewriting. The earlier references sometimes included additional grammatical corrections. A system that still makes such corrections can accrue errors against the references used in this comparison, and the authors note that this slightly worsens the earlier system’s scores relative to its own paper. They also undo the earlier output tokenisation and convert themselves to themself in that system’s outputs, aligning the reflexive convention with the other systems and the references.

English rewriting systems on OpenSubtitles by tokenised word error rate

Backward Augmentation has the lowest reported error rate on this test set.

English rewriting systems on OpenSubtitles by tokenised word error rateSource without rewriting: 14.03Source without rewriting14.03Vanmassenhove and colleagues: 0.43Vanmassenhove and colleagues0.43Forward Augmentation reproduction: 0.30Forward Augmentation reproduction0.30Backward Augmentation (this paper): 0.24Backward Augmentation (this paper)0.24
The numbers
System or settingTokenised WER %
Source without rewriting14.03
Vanmassenhove and colleagues0.43
Forward Augmentation reproduction0.30
Backward Augmentation (this paper)0.24

The backward rewriter scores 0.00 WER on Sun and colleagues’ non-gendered set. The copied input also scores 0.00 there. On their gendered set, the copied source scores 10.72 and the backward rewriter scores 0.43. Sun and colleagues’ original system reports 0.57 under the paper’s comparison, while the combined forward reproduction records 0.42. This test gives the backward setup a score close to the forward reproduction and gives both a substantial improvement over copying on the sentences intended for editing.

On the Reddit set supplied with Vanmassenhove and colleagues’ work, the backward rewriter gives 0.40 WER. The earlier system records 0.75 and the combined forward reproduction records 0.46. On WinoBias+, the same comparison gives 0.04 for backward augmentation, 0.09 for the earlier system and 0.05 for the forward reproduction. The OpenSubtitles comparison shows the same ordering. The authors interpret these small error rates together as evidence that the backward construction can match the forward construction on English. The direction of data preparation can change while preserving the effectiveness of the resulting rewriter.

German tests translation as the data generator

The German benchmark comes from the TIGER Treebank, which contains German news articles from the 1990s. The authors build a random gendered set of 1,200 sentences and balance it across the masculine, feminine, singular and plural forms they want to test. They also draw 300 non-gendered sentences. The balancing matters because masculine forms are prevalent in the underlying articles. The test is designed so that performance on a common masculine construction does not determine the evaluation by itself.

For singular forms, the authors include a balance of references to unspecified people and references to real individuals. This follows the English setup, in which the targeted singular pronouns are rewritten in both sorts of contexts. The paper also gives an application-specific reason. A pronoun attached to a known person in translated text may be a guess made by a translation system. The evaluation therefore follows a policy of producing an inclusive alternative even in some contexts where a person can be identified. The result reflects the success of that editing policy on the chosen references.

The comparison includes the original text, the German rule-based rewriter by Diesner-Mayer and Seidel, and the systems trained using the different round-trip data combinations. The authors describe the rule-based system as a heavily engineered comparison and report that they were unaware of an existing learned German rewriter to use as a baseline. All systems are scored with the tokenised WER procedure used for English.

German rewriters on the gendered TIGER set by tokenised word error rate

The full round-trip configuration has the lowest reported error rate on the gendered set.

German rewriters on the gendered TIGER set by tokenised word error rateSource without rewriting: 20.56Source without rewriting20.56Diesner-Mayer and Seidel: 15.01Diesner-Mayer and Seidel15.01Round-trip Augmentation: 17.95Round-trip Augmentation17.95Round-trip Augmentation with merging: 16.36Round-trip Augmentation with merging16.36Merging with prompted singular examples: 15.37Merging with prompted singular examples15.37Merging with translation gender control: 14.02Merging with translation gender control14.02Round-trip Augmentation with all extensions (this paper): 13.18Round-trip Augmentation with allextensions (this paper)13.18
The numbers
System or settingTokenised WER %
Source without rewriting20.56
Diesner-Mayer and Seidel15.01
Round-trip Augmentation17.95
Round-trip Augmentation with merging16.36
Merging with prompted singular examples15.37
Merging with translation gender control14.02
Round-trip Augmentation with all extensions (this paper)13.18

The direct round trip is already useful on the gendered split. The rewriter trained from it edits the text closer to the references than copying would. The aggregate advantage over the rule-based system appears in the richer data configurations. The gender-controlled version and the version with all extensions record the lowest WER values in the chart. This ordering gives an important qualification to the headline result: generating pairs with a standard round trip works as a starting point, and the construction of the training mixture affects how well it competes with a dedicated German rule system.

On the non-gendered TIGER set, the source gives 0.00 because the desired output is a copy. Basic round-trip augmentation gives 0.13. The merged setting gives 0.29 and the merged setting with prompted examples gives 0.27. The gender-control setting, the complete setting and the rule-based system each give 0.17. The measured errors on this set are small, and the differing order of the configurations shows that improving matches on sentences needing edits and preserving sentences without edits are separate outcomes.

Readers rate passages from outside the benchmark

The authors select a paragraph from each of six unrelated German texts. These include study regulations for foresters, an insurance privacy policy, game instructions, a news article, a company blog and a medicine package insert. The passages include references to unidentified people, people in groups of unknown gender composition, or a particular non-binary person. Each passage has an original version, a version rewritten automatically by the best German system, and a version edited by one of the authors. The human-edited condition is called Gold in the experiment.

The study uses a 6-by-3 mixed factorial design. The factors are the source paragraph and the kind of rewrite. There are three versions of the questionnaire, and assignment is random. Everyone sees all the source paragraphs in the same order, with the transformation of each passage varying across questionnaires. Each reader sees only one version of a given passage. This arrangement allows the researchers to compare ratings across versions while reducing the influence that seeing the same paragraph again could have on a rating.

Participants first answer demographic questions. They then see a paragraph at a time and rate whether it uses gender-fair language on a 5-point Likert scale. This scale gives ordered levels of agreement, with 1 indicating strong disagreement and 5 strong agreement. Participants have no information about which transformation produced the version in front of them. A final survey asks about their views on gender-fair writing in general. The paper reports 1,764 ratings across the paragraph task.

The 294 volunteers were recruited through unpaid notices in newsletters and on social media associated with groups concerned about gender discrimination. The participant counts reported by the authors are 141 female, 82 non-binary, 55 male and 16 other. Participation was anonymous and voluntary. The recruitment deliberately gives the study access to people with a stake in how the text refers to them and others.

Overall mean perceived gender-fairness in the German paragraph study

Readers rate the automatic rewrite above the original and the human edit above both.

Overall mean perceived gender-fairness in the German paragraph studyOriginal: 1.79Original1.79Automatic rewriter (this paper): 2.93Automatic rewriter (this paper)2.93Human edit: 3.98Human edit3.98
The numbers
System or settingMean Likert rating
Original1.79
Automatic rewriter (this paper)2.93
Human edit3.98

The ordering holds for all the individual passages. In the game instructions the rewrite improves the mean rating from 1.27 for the original to 1.86, with the human edit at 4.03. In the company blog the original receives 1.57, the rewrite 3.56 and the human edit 4.05. For the package insert, the corresponding means are 2.18, 3.71 and 4.01. The spread between these cases gives substance to the overall mean. The rewriter makes highly visible improvements in some passages and only partial ones in others.

The post-experiment question asks about a general preference between erroneous gender-fair wording and a grammatically correct version using conventionally gendered wording. The paper reports that 201 participants, or 68.37%, disagreed or strongly disagreed with the statement favouring the error-free version. Of those respondents, 198, or 98.51%, rated the rewrites above the originals for gender-fairness during the paragraph task. Among the 51 respondents who agreed or strongly agreed with the statement, 35, or 68.63%, still rated the rewrites higher on gender-fairness. The comparison links a stated preference to judgments made without transformation labels. The judgments concern perceived fairness, and a choice between concrete versions for actual use remains a separate question.

What the ablations show

Isolating the useful edits helps on TIGER

The simplest German comparison is between training on full round trips and training on merged sources. The target corpus and the round-trip systems serve the same purpose in both settings. The change is which part of the return translation becomes the rewriter’s input. On the gendered test, WER drops from 17.95 with a full return translation to 16.36 with merging. The results fit the paper’s explanation that unrelated changes in a trip create avoidable work for the rewriter. The merged training examples more frequently make copying the right action outside the spans designated for repair.

That improvement appears across the gendered subgroup scores. On plural forms, the simple round trip gives 11.04, and merging gives 8.29. On singular forms the scores are 23.22 and 22.52. Feminine inputs give 19.76 and 18.99, while masculine inputs give 16.13 and 13.72. The changes have the same direction across the reported subgroups, with a wider numerical improvement for some groups. On the non-gendered set, the change from 0.13 to 0.29 shows that the gain in target edits comes with a different result on text that should be copied.

Extra data help with the forms they were chosen to supply

The prompting extension responds to the scarcity of singular inclusive target forms. Against 22.52 WER on the singular TIGER cases for merging alone, adding prompted examples reaches 20.97. The authors report the reduction on this subset as significant. The change on plurals is smaller in the reported values, from 8.29 to 8.05. This breakdown helps identify the role of the added sentences. They give the rewriter more chances to encounter the singular forms that were rare in the collected material and for which the procedure was introduced.

Gender control changes the forms on the artificial source side. With merging alone, feminine inputs on TIGER give a WER of 18.99. Adding translations made with gender control gives 14.00 for that subset. The change goes in a different direction on masculine inputs, where the values are 13.72 and 14.04. The increased availability of feminine sources improves a weak part of the earlier data mixture, while the same training change has a different effect on inputs the original translation pipeline generated in abundance.

The translation stage provides another check on that interpretation. Using the feminine tag changes which forms the translator produces before the rewriter has seen any of the new pairs. The shift in the translation outputs confirms that the additional source material contains a different mix. The TIGER comparison then indicates where that different mix helps the rewriter. The experiment changes the amount and makeup of the training material together, so the reported comparison measures the effect of the extension as used.

Combining the extensions gives the strongest aggregate result for gendered TIGER. It also gives the lowest reported scores for the feminine subset, at 13.03, and the singular subset, at 19.69. The plural subset has its own ordering. The gender-control setting without the prompting extension reports 4.12, while the combined system reports 4.67. Looking only at the combined score would conceal that pattern. The best overall training combination reflects how performance on the various kinds of input is brought together in this particular test.

The rule-based baseline has a distinct profile

The comparison with Diesner-Mayer and Seidel offers a view of which inputs reward detailed language-specific engineering. On masculine TIGER forms the rule system reaches 7.81 WER. The complete round-trip rewriter gives 13.33 and the source gives 19.07. On feminine forms the rule system gives 22.22, the source gives 22.05, and the complete round-trip system reaches 13.03. The authors attribute the weak feminine result to gaps in the rules for those forms. The subgroup results explain how the learned rewriter can lead overall while a rule-based system gives the better result on an important class of inputs.

Number gives another view of that comparison. The complete system reaches 4.67 on plural forms compared with 10.39 for the rules. On singular forms the rule-based result is 18.55 and the complete system’s result is 19.69. The aggregate numbers therefore combine several orderings. The test records where coverage across gendered forms helps the learned system and where engineered decisions still work well.

The paper also describes what happens with certain compound words. The rules can handle a road-construction-worker compound where the element for worker comes at the end. They miss the corresponding opportunity in a word for employee legislation where the element for employee comes first. This positional example makes the coverage issue concrete. A system can include a compound-rewriting mechanism and still handle only some places where a gendered element appears. The authors similarly identify the rule system’s fixed word database as a limit on coverage of previously unseen nouns.

The survey examples expose missed edits

The paragraph from the game instructions illustrates why some automatic rewrites receive comparatively low ratings. The output visibly changes some forms of Spieler, the noun for player, but leaves several masculine pronouns and determiners surrounding those references. It also produces a plural-looking form in a context about the next player. The human version makes changes across the referring expressions and their agreement. Since the instructions follow several successive actions by players, repeated masculine forms continue to shape how the passage reads even after some nouns have changed.

The privacy policy shows a different pattern of partial coverage. The system produces an inclusive visitor form and changes the customer element inside a compound about customer data. It still leaves a generic reference to the individual and the related possessive wording in their original forms. In the company blog, the rewriter changes the words for buyers and entrepreneurs, as well as a reference expressed by a pronoun. The author’s version also changes compounds involving customers. These examples show why counting an entire paragraph as rewritten says little about which edits readers will actually encounter.

The news paragraph involving a non-binary person brings out the difficulty of consistent references over several sentences. The rewriter changes one pronoun for the person and leaves others in masculine form. The author’s edit covers those remaining references as well as associated wording later in the passage. These examples illustrate that a reader can perceive a fairness improvement even when the automatic system applies its edits inconsistently. The study compares overall impressions across versions. It leaves the influence of each individual edit on a reader’s rating unresolved.

Limitations

Limits identified by the authors

The approach requires enough material in the desired style to collect training targets. The paper establishes that the authors could gather suitable German examples from OSCAR with their chosen patterns. The minimum volume of parallel examples needed for a new language remains unknown. A translation system can generate additional sources for the examples that have been collected. The availability of suitable target sentences remains a separate requirement, and the prompting experiment addresses a particular shortage of singular forms within an already substantial collection.

The authors also limit the generalisation of their survey to the people and wording they studied. Participants came from affinity groups concerned with gender discrimination. The recruitment is suited to asking whether potential beneficiaries recognise the intended improvement. It gives a narrower basis for estimating judgments across all German speakers. The authors argue that a rewriting tool can be offered to people who choose to use it, which is the setting in which they see the survey as informative.

German offers several conventions for inclusive wording, and the survey uses a particular form. Participants were informed about that choice at the start. The authors say other acceptable forms could affect individual ratings and expect the overall ranking of the rewrite and the original to persist. The experiment tests the ranking for the wording actually shown. Its results can be carried over to a different convention only as an expectation.

They describe the systems as research work intended to offer possible inclusive wording. Establishing a person’s gender or prescribing a convention falls outside that intended use. They also call for testing with potential users before use beyond research settings. In the ethics discussion, the authors say the public training texts were used without filtering specifically for harmful content. They expect the strong tendency to copy to limit independently generated harmful wording. The paper presents that expectation as an argument about the task and its training examples.

Limits that follow from the experiments

The German comparison demonstrates a particular round trip, with English as the pivot and a German translator with a measured masculine preference. Transfer to another language would depend on whether a usable pivot and translation pair produce helpful changes. Some distinctions may survive a proposed round trip, while other translations may alter too much of the wording for a suitable pair to be recovered. The matching procedure can alleviate unrelated changes if corresponding forms are close enough in spelling. How often that condition holds is specific to the language and the expressions involved.

The English and German experiments also answer different questions. The English comparison keeps handcrafted filtering and editing rules while testing whether reversing data construction preserves performance. The German comparison uses translation to supply the forms and adds several extensions that address properties of German training data. The evaluations also differ in their references and linguistic demands. The low English WER and higher German WER describe performance on their respective tests. A comparison of the magnitudes alone cannot assign the difference to language complexity, to the augmentation method, or to the datasets.

A tokenised WER comparison depends on which edited sentence the authors use as a reference. A legitimate alternative can be counted as a discrepancy if it uses different words. Conversely, a missed pronoun can have a serious consequence for a reader while contributing only a local difference to the score. The authors’ changes to the English reference data show how a decision about which grammatical corrections belong in the task can change results. In German, restricting targets to visibly marked forms similarly sets the scope of what the benchmark rewards.

TIGER provides controlled coverage over the forms the researchers choose to balance. It uses news sentences from the 1990s, where the starting distribution makes a balancing step necessary. The resulting aggregate value expresses performance over that constructed mixture. The subgroup scores show how the ranking might be sensitive to a different mix of masculine and feminine wording or singular and plural forms. The evaluation leaves open how often each category, including ambiguous uses that should be preserved, would occur in a modern stream of text supplied by users.

The treatment of specific people also depends on the reference policy. The study includes sentences for which a pronoun attached to a particular person is expected to become an inclusive form. That choice makes sense for inputs where a translator might have guessed the pronoun. An editor working with a person’s known preferences may instead have access to evidence that the rewriter lacks. The results evaluate agreement with the study’s specified revisions. They provide no direct measure of how frequently the system would honour individuals’ known preferences in practice.

Finally, the reader study separates perceived gender-fairness from practical adoption. Participants rate one version of each passage and express a general opinion about grammatical errors in another question. The comparison supports an improvement in perceived fairness for the selected material and recruitment group. A reader’s eventual choice can also depend on clarity, the importance of a specific agreement error, whether the text will be published, and what decisions the reader can revise. The gap between automatic and author edits in passages such as the game instructions gives a concrete reason to keep those outcomes distinct.

What came after

The subsequent citations lead into two areas of research. One is a broad survey, Bias and Fairness in Large Language Models: A Survey (2023). It cites Amrhein and colleagues in the context of the wider topic named in its title. The original paper contributes a specific case to that topic: a system’s tendency to produce masculine wording can supply artificial inputs for training a separate editor. The citation establishes the connection to the survey. A new test or implementation of round-trip augmentation by the survey remains unestablished.

The other work is Adapting Psycholinguistic Research for LLMs: Gender-inclusive Language in a Coreference Context (2025). Its stated subject is gender-inclusive language in a coreference setting, studied through an adaptation of psycholinguistics. The connection is especially concrete where Amrhein and colleagues’ rewrites leave a noun and the pronouns referring to the same person in different forms. The rewriter study asks what inclusive text an editor produces and how readers rate it. The later work’s title locates its inquiry in references that point to the same entity. The citation connects the studies, while the later work’s exact use of the augmentation procedure and any resulting measurements remain unspecified.

Cite

Cite as Chantal Amrhein, Florian Schottmann, Rico Sennrich and Samuel Läubli. 2023. Exploiting Biased Models to De-bias Text: A Gender-Fair Rewriting Model. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.acl-long.246

@inproceedings{amrhein2023exploiting,
  title = {{Exploiting Biased Models to De-bias Text: A Gender-Fair Rewriting Model}},
  author = {Chantal Amrhein, Florian Schottmann, Rico Sennrich and Samuel Läubli},
  booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.246},
  url = {https://doi.org/10.18653/v1/2023.acl-long.246}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/amrhein-2023-exploiting-biased-models-de-bias/