BERT Masked Language Modeling for Co-reference Resolution
Paper · 2019 · Felipe Alfaro, Marta R. Costa-jussà and José A. R. Fonollosa
Summary
A pronoun can be easy to recognize and difficult to resolve. Finding “he” or “she” in a passage does not establish which person it denotes, especially when several people appear nearby. Felipe Alfaro, Marta R. Costa-jussà and José A. R. Fonollosa study this problem in a restricted but useful setting: given a passage, a marked pronoun and two candidate names, assign probabilities to the pronoun referring to either candidate or to neither. Their contribution to the Gendered Pronoun Resolution shared task adapts BERT through the operation it was already trained to perform: predicting a missing word from its surrounding text.
The authors replace the target pronoun with a mask and inspect BERT’s vocabulary predictions at that position. They extract scores for the candidate names and for the word “none,” then turn those scores into a classification decision. Crucially, they first substitute common English names for the original names. This makes candidates more familiar to the pretrained system and allows each candidate to occupy a single token. An additional version processes complementary substitutions, exchanging the replacement names between the candidates and combining the resulting evidence. Throughout these experiments, BERT’s internal weights remain fixed; training adjusts the surrounding network.
The strongest controlled result concerns name replacement. In the reported comparison, accuracy rises from 0.782 with original names to 0.838 with replacements, while loss falls from 0.7021 to 0.4423. The masked-word approach also outperforms the paper’s text-classification and question-answering alternatives on their reported accuracy and loss measurements. The exchanged-name version has a less consistent advantage: it performs worse in the first competition stage but achieves the better loss in the second. The official submission reaches 46th place, with the exchanged-name system recording a second-stage loss of 0.30151.
The paper therefore offers both a practical adaptation and a caution. A pretrained word predictor can provide useful evidence for coreference resolution, but its response depends on how candidate entities are represented. Replacing names can reduce an unwanted influence of familiarity while also simplifying tokenization. Yet neither benefit solves the whole task. Both systems struggle when neither candidate is correct, and the replacement procedure assumes gender information that limits its applicability. The experiments demonstrate a useful method for this particular candidate-based task; they do not establish a general solution to coreference or show that gender-related bias has disappeared.
Interesting ideas
Normalize irrelevant variation. A system may respond differently to two entity names even when their roles in a passage are equivalent. Replacing names with controlled alternatives can reduce variation unrelated to the intended decision. This is useful whenever a task concerns relationships among entities rather than their particular spellings. The important qualification is that normalization must preserve the distinctions the task actually needs.
Exchange arbitrary labels. A supposedly neutral replacement name can introduce its own preference. Processing complementary assignments exposes the same underlying relationship under different surface labels. Combining the results can reduce dependence on a particular label assignment. The idea extends to candidate ranking, structured prediction and other settings where arbitrary names should not determine the answer.
Match the scoring interface to the representation. The authors want to compare vocabulary predictions at a masked position, so they arrange for candidate names to be single tokens. This makes the candidate evidence compatible with the operation supplying it. More broadly, an engineer should ask whether the representation of an answer fits the scoring mechanism, instead of assuming that any available score is directly comparable.
Treat absence as a separate problem. Choosing between available candidates and recognizing that all candidates are wrong require different evidence. The paper’s “none” results reveal the difficulty of using an ordinary vocabulary item to stand for the absence of a valid antecedent. Similar issues arise in retrieval, classification and entity linking, where rejecting the candidate set deserves explicit analysis.
Evaluate probabilities as well as decisions. Two systems can choose the same class while assigning very different probabilities to it. The shared task’s loss metric makes those differences consequential. Comparing accuracy with loss helps distinguish successful ranking from useful probability estimates, an important distinction whenever confidence influences later decisions.
Expose performance by class. An overall result can conceal a weak outcome for a less frequent but meaningful category. Reporting precision, recall, F1 and support for each class makes the failure of “none” visible. The same practice applies wherever an exceptional category, rejection option or uncommon event matters more than its frequency suggests.
Keep interventions separable. Name replacement, exchanged-name averaging, choice of prediction head and training settings affect different parts of the system. Comparing them separately makes the evidence easier to interpret. The paper does not isolate every possible cause, but its controlled comparisons show why a useful engineering explanation should distinguish a successful intervention from a fully established account of why it works.
Deep dive: BERT Masked Language Modeling for Co-reference Resolution
How BERT’s masked-word predictions resolve gendered pronouns, why replacing names helps, and where the approach struggles. · about 35 minutes to read
How Mova uses it
Mova is a small, transparent language system written in Rust. Its native core builds dependency trees, reads frames and maintains text worlds; its coreference component uses rules that retain reasons for their links. The connections below concern ways to borrow the paper’s experimental and representational ideas within that architecture. The available evidence does not establish an implementation of this paper’s masked-word resolver in Mova. Each status mark describes a proposed relationship to existing mechanisms, instead of a measured application of the paper.
Idea: Normalize irrelevant entity spellings. Where: Name Replacement, section 2.2. Area: coreference and evaluation. Mova: частково є (the native deputy supports configured entity aliases; coref resolves mentions through explicit rules). Mova could test its coreference decisions on passages whose person names have been replaced while their relationships remain unchanged. Alias handling already exists at a different operational scope, but that does not establish this experiment for the native reader. A useful result would show whether a link depends on the person’s role or on incidental lexical evidence attached to a particular spelling.
Idea: Exchange arbitrary replacement labels. Where: Model 2 in section 2.1 and the complementary substitutions illustrated in Figure 3. Area: evaluation. Mova: нове. A proposed contrast test would assign replacement names to the same entities in opposite ways and check whether the resolved entity changes after the answers are mapped back. The digest does not establish this specific test, so the novelty mark remains provisional. Why Mova: a transparent resolver should be able to distinguish a justified grammatical preference from a preference caused by an arbitrary entity label.
Idea: Align answers before combining observations. Where: Model 2, section 2.1. Area: data processing and evidence composition. Mova: частково є (treeagree combines token-aligned parser evidence; the combinatorial tooling requires compatible observations). Complementary name assignments produce scores whose surface labels differ even though the candidate identities remain fixed. Mova could make that mapping an explicit prerequisite whenever it compares renamed worlds or merges equivalent analyses. Existing compatibility checks express the same general concern, but candidate-aligned aggregation for this experiment is not established.
Idea: Fit candidate representations to the scoring interface. Where: Name Replacement, section 2.2, and BERT for Masked LM, section 2.1. Area: representation. Mova: частково є (global uses typed concept codes and compiled identifiers; the language core exposes structured interfaces). The transferable principle is to compare evidence expressed at a compatible granularity. Mova should not infer that a token score, a mention-level rule and an entity-level judgment are interchangeable merely because each produces a number. Its typed architecture provides a basis for declaring what each observation actually concerns.
Idea: Keep rejection distinct from candidate selection. Where: BERT for Masked LM, section 2.1, and Results. Area: reasoning and uncertainty. Mova: частково є (layers can escalate; the native deputy preserves unsupported or ambiguous outcomes). Mova already has mechanisms for declining to turn insufficient evidence into an action. The paper suggests a corresponding coreference audit: separately inspect whether the resolver can choose among candidates and whether it can establish that none is supported. Operational failure states are relevant precedent, but they are not evidence of a trained or evaluated coreference rejection mechanism.
Idea: Measure confidence against correctness. Where: Advantages of the Masked LM Model, section 4.1, and Table 6. Area: statistics and evaluation. Mova: вже є (prag/src/eval.rs reports accuracy by confidence group, intervals and a permuted-confidence control). The paper reinforces the need to examine probability quality alongside answer selection. Mova already has a concrete confidence diagnostic in pragmatics. Extending that diagnostic to another component would require that component’s own held-out observations; the existing implementation does not establish calibrated coreference probabilities.
Idea: Report every meaningful output category. Where: Tables 4 and 5. Area: evaluation. Mova: частково є (prag evaluates separate fields; dictionary-index measurements record missing coverage explicitly). A Mova coreference report could separate supported links, unresolved cases and incorrect links rather than relying on an aggregate score. The paper’s class tables show how a weak rejection category can remain obscured by stronger candidate categories. Existing reports support the broader practice, while this exact reporting scheme and its measurements remain unknown.
Idea: Separate interventions in evaluation. Where: Tables 6, 7 and 8. Area: experimental design. Mova: вже є (regression-gated changes, held-out comparisons, negative controls and logged self-play experiments). Mova already requires evidence for changes to rules and settings. The paper supplies a useful example of why separate comparisons matter: replacement helps in its direct comparison, whereas exchanged-name averaging changes rank across stages. For Mova, a combined improvement should not be attributed to every included change without an appropriate comparison.
Idea: Preserve mention consistency during rewriting. Where: Name Replacement, section 2.2, rules for repeated full names and eligible first-name mentions. Area: data processing. Mova: частково є (coref links mentions, while world maintains entities and their changing states). A renamed test passage should replace all mentions known to denote the same person, not only the candidate field. Mova’s entity structures could support a more explicit rewriting audit. The paper motivates consistency, but the digest does not establish an entity-aware text-rewriting facility with this behavior.
Idea: Abstain from ambiguous partial-name replacement. Where: Name Replacement, section 2.2, exceptions involving shared or overlapping first names. Area: data validation. Mova: частково є (French formal overrides abstain on unknown evidence; dictionary admission and worker protocols retain uncertain cases). Mova could apply the same conservative principle to normalization: leave a mention unchanged when its intended entity cannot be established. Existing abstention mechanisms operate in other components. They support the design direction without demonstrating a corresponding name-replacement implementation.
Idea: Treat lowercasing as a task-dependent intervention. Where: Name Replacement, section 2.2, the final preprocessing rule. Area: lexical processing. Mova: частково є (dictindex lowercases lemmas while retaining original sentence text and original upper-case part-of-speech tags). Mova should distinguish a normalized lookup key from the evidence a reader originally observed. The paper lowercases its candidate texts, but that choice should not be generalized to every native parsing task. The existing index already demonstrates a useful separation between normalized access and preserved source material.
Idea: Audit token boundaries before interpreting scores. Where: Name Replacement, section 2.2. Area: tokenization. Mova: частково є (en has language-specific tokenization and measured French contraction and elision handling). The paper’s candidate simplification depends on whether names are split into word pieces. Mova could similarly distinguish errors caused by token boundaries from errors in the later inference rules. Its tokenizer work already addresses boundary conventions, but a specific coreference evaluation that isolates those conventions is not established by the digest.
Idea: Retain multiword entity identity. Where: Name Replacement Results, section 4.2. Area: entity representation. Mova: частково є (coref reasons over mentions and world maintains entities). The paper replaces multiword names with simpler alternatives because its scoring method expects a directly accessible candidate token. Mova could instead preserve the complete entity while exposing whichever mention representation a particular rule needs. This is a proposed use of its structured architecture, not a claim that every multiword-name case is already handled correctly.
Idea: Protect relevant mentions when shortening context. Where: Training details, section 3.3. Area: context selection. Mova: нове. When a bounded reader or diagnostic has to shorten a passage, it could require the target pronoun and all declared candidate mentions to survive. The digest establishes bounded processing but not this exact preservation rule. Why Mova: bounded execution is useful only if the reduced input still contains the evidence needed for the declared task; otherwise a missing antecedent can be mistaken for a reasoning failure.
Idea: Record the scope of a local candidate task. Where: Task details, section 3.1, and Data, section 3.2. Area: evaluation and interfaces. Mova: частково є (configured native planning declares supported capabilities; groupants bind observations to domains and assumptions). Mova should identify whether an experiment supplies candidate entities or requires the reader to discover them. The paper benefits from explicit candidates and offsets. A Mova report that mixes that setting with unrestricted text reading would conceal a substantive difference in what the system was asked to do.
Idea: Separate class balance from gender balance. Where: Data, section 3.2, and Table 1. Area: statistics. Mova: частково є (the coreference work includes occupation-pronoun contrast sets and bias-gap measurements). The paper’s gender-balanced data still contain fewer “none” cases. Mova could therefore describe several relevant distributions separately rather than labeling an evaluation simply balanced. Existing occupation contrasts provide one kind of fairness check; they do not establish balance across every output category or linguistic construction.
Idea: Test identity sensitivity without importing gender assumptions. Where: Name Replacement, section 2.2, and Conclusions. Area: bias and representation. Mova: частково є (coref/src/lexicon.rs suppresses counted gender for a closed set of occupation nouns). Mova already has a mechanism intended to prevent historical lexical counts from assigning gender to an occupation. A related proposal is to test name sensitivity using controlled entity identities while avoiding unsupported gender assignments. The paper’s gender-matched replacements are useful within its task, but their prerequisite should remain explicit.
Idea: Diagnose unsupported candidates as a data problem and a representation problem. Where: Results and Conclusions. Area: error analysis. Mova: частково є (the fast reader distinguishes missing representation, missing inference, wrong parameters and wrong parses). The authors attribute difficulty with “none” both to limited examples and to the mismatch between absence and name prediction. Mova’s existing error categories could preserve that distinction. Increasing data would address a different hypothesis from changing the representation of rejection, and the evaluation should make the proposed cause visible.
Idea: Distinguish candidate evidence from a final probability. Where: BERT for Masked LM, section 2.1. Area: mathematical interfaces. Mova: частково є (typed obernants and vidtvorants declare their observations; consultant output has a separate review boundary). The paper extracts vocabulary probabilities and then adapts them for a task-level decision. Mova could similarly label whether a value represents lexical compatibility, rule support or an estimated answer probability. Its evidence architecture supports such distinctions, but no measured implementation of this particular score conversion is established.
Idea: Reuse a component while freezing its behavior. Where: BERT for Masked LM, section 2.1. Area: system design. Mova: вже є (native inference is separated from reviewed supervision, seed revision and parameter training). The paper keeps BERT’s weights unchanged while adapting the surrounding decision procedure. Mova already distinguishes using a component from changing its learned or compiled knowledge. This makes it possible to test a new consumer of existing observations without silently claiming that the underlying reader itself has improved.
Idea: Prefer measured suitability over component size. Where: Training details, section 3.3. Area: efficiency. Mova: частково є (CPU reference execution, measured GPU approximants, job estimates and prospective cost tooling). The larger BERT variant was less suitable in the reported implementation in spite of its greater resource demand. Mova could apply the same decision rule to optional witnesses, parsers and task adapters: select them by measured quality and cost for the actual task. Its existing execution comparisons provide infrastructure, while this paper supplies a focused example rather than a universal size rule.
Idea: Include preprocessing multiplicity in runtime estimates. Where: Training details, section 3.3, and Model 2. Area: execution planning. Mova: частково є (tools/jobs logs estimates and actual usage; mova-twin compares prospective costs with measurements). A complementary-input procedure adds work before any final decision is produced. Mova could make that multiplicity visible in a bounded plan instead of treating an ensemble as an ordinary single observation. Existing cost tooling is relevant, but the digest supplies no measurement for this specific coreference proposal.
Idea: Keep checkpoint selection separate from minimum loss. Where: Training details and Table 2. Area: experimental reporting. Mova: частково є (self-play journals retain successful and unsuccessful experiments; test sets have release boundaries). The paper reports both averages and minima across tuning experiments. Mova could make explicit which statistic selected a setting, how many attempts contributed and which data remained untouched. Existing experiment journals support this discipline, while the paper itself does not supply enough detail to reconstruct all of its selection decisions.
Idea: Preserve dataset roles across evaluation stages. Where: Data, section 3.2. Area: data provenance. Mova: вже є (dictindex excludes held-out benchmarks and school assessments; enrichment keeps staged material separate from admitted training). The authors use different combinations of GAP partitions across competition stages. Mova already treats the role of a source as part of its admissibility. The transferable lesson is to record what each partition did in each experiment instead of treating names such as development or test as permanent guarantees of independence.
Idea: Treat ranking reversals as evidence about scope. Where: Competition results, section 4.3, and Table 8. Area: evaluation. Mova: частково є (groupants and correspondence checks bind claims to domains, assumptions and evidence). The exchanged-name system is worse in the first stage and better in the second. Mova could preserve that reversal in a proposal’s evidence record instead of compressing it into a single improvement claim. Existing source-bound mechanisms support this form of qualification; they do not explain the reversal or establish which setting transfers.
Idea: Require a control for the rejection symbol. Where: BERT for Masked LM, section 2.1, the comparison between “none” and the original pronoun. Area: representation and controls. Mova: нове. If a native scoring adapter introduces a special symbol for unsupported answers, it could compare that symbol with an alternative encoding while holding the task fixed. The digest does not establish this experiment. Why Mova: a convenient label can acquire accidental behavior, so Mova should test whether a rejection decision comes from meaningful evidence or from the chosen symbol.
Idea: Compare fairness claims with the measurements actually reported. Where: Introduction, Data and Conclusions. Area: bias and evaluation. Mova: частково є (recent coreference work reports occupation-pronoun contrasts and changes to counted lexical gender). Mova could explicitly separate a balanced dataset, a mechanism intended to reduce bias and an observed reduction in a defined bias metric. These are different forms of evidence. The paper motivates gender neutrality but does not report the detailed gender-separated results needed to establish every possible fairness claim.
The problem and its context
The paper studies a constrained version of pronoun resolution. Each example contains a passage, a specified pronoun and candidate names labeled A and B. The task is to assign a probability to each possible outcome: the pronoun denotes A, denotes B or denotes neither. This framing matters because much of the uncertainty has already been removed before the system begins. It does not have to find every mention in an unrestricted document or discover all possible antecedents. The candidates and the target pronoun are supplied.
Even with those restrictions, the decision can require more than matching gender or selecting a nearby name. A passage may describe several people, introduce another person inside a phrase, or contain information that makes neither listed candidate appropriate. The system must use the surrounding language to connect a pronoun with an entity. In this sense, the task lies between recognizing textual mentions and constructing a fuller account of who participates in the passage’s events.
The authors introduce the problem through natural language processing and the broader notion of coreference: different textual expressions can denote the same entity. A pronoun and a name are one example, but repeated descriptions can also share a referent. The specific shared task reduces that broad phenomenon to candidate selection, making it possible to evaluate systems through a clearly defined classification output.
Their account of earlier approaches includes NeuralCoref, which scores pairs of mentions. The authors explain that their available supervision does not give the truth value of every possible mention pair. Instead, each entry identifies the target pronoun and the candidate names relevant to the shared task. Their proposed system follows that restricted evidence structure rather than attempting to reproduce a complete mention-pair training setup.
Gender is central to the motivation. The paper says that widely used coreference resources have disproportionately represented male entities. It gives OntoNotes as an example, reporting female representation of 25%. The concern is that a system trained on such distributions can carry those imbalances into later decisions. The shared task therefore uses a resource designed to provide equal male and female representation.
That resource is GAP, created by Webster and colleagues. The authors describe it as a collection of 8908 annotated coreference pairs drawn from Wikipedia. Its passages involve gendered pronouns, and it excludes neutral forms such as “it” and “they.” These restrictions make the evaluation suitable for examining the intended gendered-pronoun setting, while also delimiting what a successful result can establish.
The paper’s approach grows out of a different line of work: language models trained to predict words from context. BERT offers a masked-word operation in which a word is hidden and the surrounding passage supplies evidence for its identity. The authors also describe BERT’s sentence-prediction training and its use of the Transformer architecture. Their system borrows the masked-word interface, instead of requiring a new architecture designed specifically for coreference.
The conceptual move is straightforward but not guaranteed to work. If the pronoun is removed, perhaps the surrounding text will favor the name of the person it denotes. That turns a reference decision into a comparison among possible lexical completions. However, lexical completion and reference resolution are not identical. A name can receive a high completion score because it is familiar, frequent or otherwise favored by the pretrained system, even when those properties are irrelevant to the intended antecedent.
Name replacement addresses this interference. Wikipedia passages can contain names that are uncommon in English, including names made from several words. The authors substitute common names so that the prediction mechanism compares candidates in a more controlled form. This is both an attempt to reduce name-frequency effects and an adaptation to the way BERT represents its vocabulary.
The second system then addresses a problem introduced by the first intervention. Common replacement names may themselves carry unequal preferences. Assigning one replacement to A and another to B could therefore preserve a systematic surface advantage. Exchanging the assignments produces complementary views of the same candidate relationship. The authors average their evidence in an effort to reduce dependence on the initial assignment.
The resulting research question is narrower than whether BERT understands reference in general. It asks whether a masked-word predictor can support this candidate-based classification task, whether controlled names improve that adaptation and whether exchanging those names helps further. The experiments are most informative when read against those questions. They provide evidence about task adaptation and input representation, instead of a complete theory of coreference or gender bias.
The method, step by step
The procedure begins with a structured task entry. The system receives the passage, the target pronoun and its offset, and the candidate names with their positions. Offsets locate an expression within the text. These locations matter both for identifying what to mask and for retaining the relevant material when a passage exceeds the permitted sequence length.
From candidate mentions to reference probabilities
The steps in order.
Constructing a controlled version of the passage
The authors first replace the names identified in the candidate fields. They also replace repeated occurrences of each complete candidate name elsewhere in the passage. This avoids a partial transformation in which the candidate field refers to a substitute while other mentions still use the original person’s name.
Partial-name mentions receive additional handling. If a candidate contains a first name and surname, the procedure can replace occurrences of the first name alone. However, it avoids this operation when the candidates share a first name or when the relevant first name is contained within the other candidate’s name. Those exceptions acknowledge that a simple textual replacement can become ambiguous.
This is a small but consequential piece of data processing. A normalization procedure is only useful if it preserves entity identity. Rewriting an ambiguous first name could silently change which person a later mention appears to denote. The authors’ exceptions do not amount to a general mention-resolution system, but they prevent particular predictable collisions within their replacement scheme.
The substitutions use common English names associated with the pronoun’s gender. Female-pronoun examples receive female replacement names, and male-pronoun examples receive male replacements. The authors then lower-case both the passage and the names. This produces a deliberately simplified input representation for the subsequent comparison.
The intended advantages are distinct. Common names should be more familiar to BERT from its pretraining material. They can also be kept intact by the tokenizer instead of being divided into several word pieces. A word piece is a unit used in subword tokenization: a written word can be represented by smaller vocabulary elements instead of a single item. Here, fragmentation would complicate the authors’ direct comparison of candidate vocabulary scores.
The paper does not specify the full replacement-name inventory in the experimental description. It illustrates the process with John and Harry. In the example, a passage about Jones working with Duran Duran and a producer named Chris Kimsey is rewritten using those common names. The example’s purpose is to show how the candidate identities remain in their original textual positions while their spellings change.
This distinction between identity and spelling is fundamental to the method. Candidate A remains candidate A after replacement. Its substituted name is merely the surface form through which the masked-word predictor observes it. A correct implementation must preserve that mapping when it later interprets or combines scores.
Turning pronoun resolution into masked-word prediction
After name replacement, the target pronoun is hidden with a mask marker. The remainder of the passage supplies context. The pretrained BERT component then processes the sequence without changing its internal weights during the task-specific training described in the paper.
The masked-language head produces vocabulary-level predictions for sequence positions. The system selects the output belonging to the masked pronoun. From that vocabulary output, it extracts the values associated with the replacement name assigned to A, the replacement name assigned to B and the word “none.”
This operation gives the classification task a compact evidence interface. Instead of learning a new reference score from every internal representation, the approach asks the pretrained predictor how compatible particular candidate words are with the masked context. The surrounding classifier then works with those extracted values.
However, the interpretation of these values needs care. A vocabulary probability answers a lexical question about a possible word at a position. The task requires a probability over antecedent classes. The authors connect those questions through their candidate representation and subsequent softmax operation; they do not demonstrate that the lexical probabilities are already correctly calibrated class probabilities.
The paper describes the extracted candidate values as probabilities and says that they pass through softmax before loss is calculated. Softmax converts a collection of numerical scores into a normalized distribution. The article gives no algebraic definition of this transformation or of log loss, so there is no paper-specific equation to reproduce. Its procedural account is more detailed than its mathematical specification.
This lack of an explicit formula leaves some implementation questions open. In particular, the text does not fully reconstruct the surrounding trainable network from layer dimensions and equations. It does clearly state the boundary that matters for interpreting the experiments: BERT’s weights stay fixed, while training changes the network outside that pretrained component.
Why “none” is an awkward candidate
The rejection class receives special treatment because it has no corresponding person name. The authors use the ordinary word “none” as its vocabulary representative. Yet they recognize that this word would generally not be a natural replacement for the missing pronoun in the passage.
This creates a mismatch between the operation and the class meaning. The candidate names stand for possible people who might occupy the pronoun’s role. “None” instead stands for a statement about the inadequacy of the candidate list. It is a task-level decision encoded through an ordinary lexical item.
The authors try using the original pronoun as the alternative representative for that class. They report similar performance, slightly worse than with “none,” and retain “none.” They do not provide separate numerical results for that comparison. It therefore supports a limited account of a tested alternative, not a detailed explanation of how rejection should be represented.
The important point is that “none” does not mean the passage lacks a referent. It means the supplied candidates are not the correct answer. Another entity may be relevant, or the candidate list may otherwise fail to contain the intended antecedent. The system’s lexical substitution mechanism is not naturally organized around that distinction.
The single-assignment system
The paper calls its first configuration Model 1. It constructs a rewritten passage using a fixed assignment of the selected common names to the candidates. BERT supplies the masked-position output, and the system extracts the candidate-name and rejection values.
Those values become the input to the task’s classification procedure. The resulting output is a probability distribution over A, B and neither. Training uses log loss, the competition’s evaluation criterion, to adjust the surrounding network.
This design is economical in its use of pretrained knowledge. It relies on a task the pretrained component already supports and changes how that task is queried and interpreted. Its success depends substantially on preprocessing because the candidate words themselves are part of the measurement mechanism.
The fixed assignment also introduces a vulnerability. If the common name assigned to A is intrinsically favored over the name assigned to B, the decision can inherit that preference. Replacing uncommon names removes one source of variability without guaranteeing complete symmetry between the replacements.
The exchanged-assignment system
Model 2 adds a complementary rewritten passage. In one passage, the candidates receive the initial replacement-name assignment. In the other, those assignments are exchanged. The underlying passage and candidate identities remain otherwise equivalent.
Each version goes through the masked-word procedure. The system then averages the corresponding candidate evidence across the versions, applies softmax and computes loss. “Corresponding” is essential: evidence for candidate A must be collected under the replacement name that denotes A in each version.
The procedure can be understood as exposing the same reference question under alternative arbitrary labels. If a particular common name has an incidental advantage, exchanging its assignment gives each candidate access to that name. Averaging is intended to reduce the effect of the original choice.
This rationale does not guarantee improved results. The versions are strongly related, and combining them can alter both the final ranking and the probability distribution. The paper’s competition results indeed show that the exchanged version is not uniformly stronger across stages.
Training and bounded input
The authors compare BERT base with BERT large and select the base variant. They report that the larger alternative produces worse results in their implementation while requiring more resources and longer training. They do not provide a numerical base-versus-large results table.
For the selected setup, the hyper-parameter table lists Adam as optimizer, vocabulary size 28,996, dropout 0.1, sequence length 256 and batch size 32. The learning rate is written as 3e − 5. The schedule uses 20% warmup, with warmup steps listed as 81 for Stage 1 and 148 for Stage 2. The table also gives 1 epoch and 5 gradient accumulation steps.
Warmup changes how the learning rate is introduced during training instead of applying its full setting immediately. The authors introduce it while addressing overfitting and tuning the learning rate. The paper reports the selected setting and several alternatives but does not offer a detailed learning-curve analysis explaining each training effect.
Most passages fit the chosen sequence length. For longer passages, truncation depends on the supplied offsets so that the candidate names and target pronoun remain present. This protects the central task elements, although it does not establish that every potentially useful piece of surrounding discourse is retained.
Experiments and results
The experiments use GAP and the associated competition stages. GAP contributes Wikipedia passages with a specified pronoun, candidate names and coreference labels. The authors describe the overall resource as gender-balanced, but the answer categories are not equally frequent. This distinction becomes important because rejection is both less common and less well matched to the prediction mechanism.
Data roles and answer distributions
For Stage 1, the submission data correspond to GAP’s development partition. Training combines the resource’s validation and testing partitions. These names describe the source partitions; they do not mean that the authors trained on the competition submission labels. The experimental role of each partition follows the stage-specific arrangement described in the paper.
The Stage 1 training distribution contains 1105 A cases, 1060 B cases and 289 none cases. The Stage 1 testing distribution contains 874 A cases, 925 B cases and 201 none cases. The class-level results use a reported total support of 2000.
For Stage 2, training combines GAP’s development, testing and validation material. The reported class counts are 1979 for A, 1985 for B and 490 for none. The authors say that the training data retain equal representation across genders.
The Stage 2 submission set comes through Kaggle. It contains 12,359 rows, including 6499 male-pronoun examples and 5860 female-pronoun examples. At the time of writing, the authors do not have its correct labels. They can therefore discuss the final loss returned for their submissions, but cannot provide the same detailed class analysis offered for Stage 1.
This arrangement makes comparisons within a stage easier to interpret than comparisons across stages. The training material changes, and the submission material changes as well. A lower second-stage loss cannot be assigned to a single methodological improvement merely because the same system name appears in both stages.
The direct effect of name replacement
The clearest preprocessing comparison keeps the first system and changes whether it uses the original names. The replacement setting has higher reported accuracy and lower reported loss. These are complementary observations: it chooses the correct answer more often and performs better under the probability-sensitive competition criterion.
Original and replaced names, reported test log loss
Controlled replacement names improve the reported loss.
The numbers
| System or setting | log loss |
|---|---|
| Original names | 0.7021 |
| Name replacement (this paper) | 0.4423 |
The associated accuracy values are 0.782 with original names and 0.838 with replacements. The authors attribute the benefit to greater familiarity of the substitute names and the simplification of multiword candidates. They report that 43% of GAP names contain multiple words.
The intervention supports the practical value of replacement in this setup. It does not isolate how much of the result comes from name frequency, token fragmentation, multiword simplification or other accompanying changes. Those possible explanations are compatible with the result, but they are not separately quantified.
Comparing prediction interfaces
The authors also try adapting BERT through text classification and multiple-choice question answering. The text-classification alternative uses the representation associated with a leading classification marker and a feed-forward network. The multiple-choice alternative processes answer-conditioned versions of the passage before its final decision.
BERT task adaptations, reported test log loss
The masked-word adaptation has the lowest loss in this comparison.
The numbers
| System or setting | log loss |
|---|---|
| Text classification | 0.70488 |
| Question answering | 0.6782 |
| Masked-word prediction (this paper) | 0.44231 |
The corresponding accuracies are 0.8055 for text classification, 0.785 for question answering and 0.838 for masked-word prediction. The authors discuss the alternatives as having broadly similar accuracy while suffering more substantially on loss. Their explanation concerns probability separation: the competing classes often receive values that are too similar.
This is an important distinction between answering correctly and assigning useful probabilities. A system can select the correct class without giving it much more probability than the alternatives. Such decisions can look acceptable under accuracy while remaining weak under log loss.
The comparison nevertheless remains an engineering comparison among the implementations tested. It does not prove that masked-word prediction must outperform every possible classifier or question-answering adaptation. The paper supplies reported outcomes for its own alternatives, instead of a complete search over all architectures and training procedures.
Class-level Stage 1 results
The first system performs substantially better on the named candidates than on neither. For A, precision is 0.83, recall is 0.87 and F1 is 0.85. For B, the corresponding values are 0.88, 0.88 and 0.88. For none, precision is 0.64, recall is 0.52 and F1 is 0.57.
Its reported average row gives precision 0.83, recall 0.84 and F1 0.84. The paper does not explain the averaging convention in detail. The class rows and supports are therefore especially useful because they reveal the distribution of success without requiring an assumption about that convention.
The exchanged-name system has A precision 0.81, recall 0.86 and F1 0.83. Its B values are 0.88, 0.78 and 0.82. For none, it reports precision 0.48, recall 0.62 and F1 0.54. The average row gives precision 0.81, recall 0.80 and F1 0.80.
These rejection results reveal a tradeoff rather than uniform deterioration on every measure. The exchanged-name system recovers more of the true none cases under recall, but its none precision and F1 are lower. The authors characterize that class as difficult for both systems, especially in the exchanged-name configuration.
Official competition outcomes
The competition comparison reports loss for both stages. Within Stage 1, the single-assignment system is stronger. Within Stage 2, the exchanged-name system is stronger.
Competition stages, reported log loss
The preferred name-assignment strategy changes between stages.
The numbers
| System or setting | log loss |
|---|---|
| Single assignment, Stage 1 | 0.44231 |
| Exchanged assignments, Stage 1 | 0.49607 |
| Single assignment, Stage 2 | 0.31441 |
| Exchanged assignments, Stage 2 (this paper) | 0.30151 |
The official placement is 46th. The authors’ strongest submission therefore demonstrates the usefulness of the exchanged-name version in the second-stage setting, while the first-stage results prevent a general claim that exchanging and averaging always helps.
Training cost
The experiments run on a server described as having an Intel Dual Core processor, Nvidia Titan X GPUs and roughly 32GB of memory. On Stage 1 data, the authors report an average duration of 1 to 2 hours for the first system and about 4 hours for the second.
For Stage 2 training, they report 4 hours 37 minutes for the first system and 8 hours 42 minutes for the exchanged-name version. These measurements are consistent with the additional processing required by complementary inputs. They are training durations for the stated environment, not universal estimates of deployment latency.
What the ablations show
The paper offers several controlled comparisons, although it does not provide a fully factorial ablation study. Its strongest analysis changes name replacement while preserving the first system’s overall approach. Other comparisons examine the task adaptation, exchanged-name processing, training settings and an alternative encoding of rejection. Their evidential strength differs because some receive full numerical results and others only a brief qualitative description.
Replacement works, but its causes remain entangled
The original-name comparison directly supports replacing names in this implementation. Both accuracy and loss favor the replacement condition. That is stronger evidence than a general claim that common names ought to be easier: the authors actually compare the intervention against retaining the task’s names.
However, replacement changes several properties together. An unfamiliar candidate can become familiar; a multiword name can become a single name; a fragmented vocabulary representation can become an intact token. The paper does not report independent conditions that change each property separately.
As a consequence, the result should be described as evidence for the preprocessing package. The authors’ explanation about frequency and simplicity is plausible within their design, but the experiment cannot determine the separate contribution of each mechanism. A reader should avoid turning a successful combined intervention into several independently measured findings.
Exchanging names is not a universal improvement
The exchanged-name condition tests whether a complementary view helps reduce replacement-specific preferences. Its motivation is compelling because the substitute names are not guaranteed to be behaviorally interchangeable. Yet the observed results are mixed.
The first competition stage favors the single-assignment system, while the second favors exchanged assignments. The class tables also show that the exchanged version changes the rejection precision-recall balance. The intervention therefore affects more than a simple count of corrected name preferences.
The paper does not identify why the ordering reverses. The training and submission material differ between stages, and the second-stage labels are unavailable for detailed inspection. The supported conclusion is conditional: exchanged-name processing is useful in the successful second-stage submission, but its benefit does not hold uniformly across the reported settings.
Prediction interfaces change probability quality
The comparison with classification and question answering shows that the route through a pretrained component matters. The same broad source of language representations can support different task interfaces, and those interfaces produce different losses.
The masked-word approach performs best among the reported alternatives. The authors emphasize that the other adaptations often give insufficient separation between class probabilities. This interpretation helps explain why the loss comparison appears more decisive than a casual comparison of accuracy alone.
Still, the experiment does not isolate a single architectural cause. The alternatives have their own task formulations and surrounding networks. The comparison establishes which implementation worked best for the authors, while leaving open whether better training or a revised head could strengthen the alternatives.
Tuning favors a restrained learning rate and warmup
The tuning table reports the best mean accuracy at learning rate 0.00003 with warmup 0.2: 0.844444. The corresponding mean loss is 0.502667. Without warmup at that learning rate, mean accuracy is 0.840167 and mean loss is 0.519565.
The authors select that learning rate with warmup for the final configuration. The table also reports minima, including a loss minimum of 0.442313 for the selected combination. A minimum describes the strongest observed outcome among the relevant runs; it is not the same statistic as the average.
The paper does not provide a complete account of random variation, confidence intervals or the number of repetitions behind every table entry. Nor does it establish that warmup has an identical effect at every learning rate. The evidence supports the chosen setting among those tested, without supplying a broader law about optimization.
Some exploratory comparisons remain qualitative
The authors state that BERT base performs better than BERT large in this application, with lower resource demands. They also report that representing rejection through the original pronoun performs slightly worse than using “none.” Neither comparison receives the same detailed numerical treatment as replacement.
Those observations are useful for understanding design choices. They are less suitable for estimating effect sizes or explaining mechanisms. Their proper role is to document alternatives the authors considered, while preserving the boundary between a qualitative report and a fully inspectable controlled result.
Limitations
Limits explicitly identified by the authors
The authors’ most direct representational limitation concerns gender. Their name-replacement procedure requires gender information and is intended for entities that can be handled through that assumption. This fits the shared task’s restricted pronoun inventory, but it constrains transfer to other forms of reference.
The data exclude neutral pronouns such as “it” and “they.” The reported experiments therefore do not establish behavior for those cases. Nor does the replacement mechanism itself explain how to handle an entity that does not fit the procedure’s gendered name selection.
The authors also explicitly identify the neither class as a persistent weakness. Their system is organized around predicting the correct name, while rejection requires recognizing that no supplied name is suitable. The ordinary word “none” is an imperfect representative of that task-level judgment.
They connect the difficulty to data availability as well. None cases have much less support than A or B throughout the reported training distributions. The authors propose examining these examples more closely and improving how the system learns to recognize them. They also identify adjustment of BERT’s own weights as a possible future improvement; their reported system keeps those weights fixed.
These limitations are connected but should remain distinct. More rejection examples might improve learning without resolving the lexical mismatch. A better rejection representation might help without eliminating class imbalance. Fine-tuning the pretrained component would change another part of the design and is not evaluated as a completed extension.
Limits visible in the task definition
A careful reader should distinguish candidate-based resolution from unrestricted coreference. The task supplies the target pronoun, its location and the candidate names. Successful classification therefore does not demonstrate mention discovery, document-wide entity clustering or identification of all possible antecedents.
This is not a defect in the shared task. It is a boundary on the conclusion. The system can be useful for the supplied problem without solving the entire broader field. Its measurements should remain attached to the task’s candidate and annotation assumptions.
The passages also come from Wikipedia, and the replacement procedure uses common English names. The paper does not report experiments on other document genres or languages. It consequently provides no direct measurement of transfer to conversation, specialist documents or different naming conventions.
Truncation adds another boundary. Preserving the target pronoun and candidate names ensures that the central expressions survive the sequence limit. It does not guarantee preservation of all information needed to interpret their relationships. The authors do not report a separate analysis of examples affected by truncation.
Limits on the explanation of improvement
The name-replacement experiment establishes an effective intervention, but its causal explanation is only partly resolved. Frequency, tokenization and multiword structure change together. The paper does not independently measure the effect of each factor.
Likewise, averaging exchanged names is intended to reduce a label-specific preference, but the paper does not directly quantify that preference before and after averaging. Its competition results show a conditional benefit rather than a direct measurement of invariance under renaming.
The rejection alternative also receives limited analysis. Using the original pronoun instead of “none” is reported as slightly worse, but no separate values or error breakdown are supplied. The experiment therefore does not settle which rejection representation would be most appropriate beyond the tested choice.
Limits on fairness claims
The paper’s motivation concerns bias and fairness, and GAP’s gender balance is relevant to that concern. Equal representation, however, is a property of the data distribution. It does not on its own establish equal error rates or equivalent behavior across groups.
The reported results do not provide a gender-separated performance table. They also do not offer a detailed measure of bias reduction attributable to name replacement. The authors’ claim about reducing the impact of name frequency should therefore not be expanded into a claim that every gender-related disparity has been removed.
Name replacement may reduce one surface influence while introducing dependence on the replacement inventory. The complementary-input procedure recognizes that possibility, but its mixed results show that the adjustment is not a complete guarantee. A fair evaluation must distinguish the design’s intention from the outcomes actually measured.
Limits on reproducibility and comparison
The paper provides the overall processing sequence and several important hyper-parameters, but the surrounding trainable network is not specified through a complete set of equations and layer dimensions. It also does not fully document the replacement-name inventory or a broad sensitivity analysis over different choices.
The tuning results include averages and minima without enough detail to reconstruct the uncertainty around every setting. No significance analysis is reported for the main comparisons. This does not erase the observed differences, but it limits how confidently they can be generalized beyond the reported runs.
The competition stages also change the evidence available for analysis. Stage 2 labels are unavailable to the authors, so only final loss can be discussed there. The ranking reversal between the systems is observable; its cause remains unresolved.
Finally, a vocabulary completion score is not automatically a reference probability. The system adapts those scores to the classification task, and its empirical results show that this can work. The paper does not provide a theoretical guarantee that the transformation yields calibrated probabilities or that it behaves consistently outside the tested distributions.
What came after
The paper closes with directions rather than demonstrated follow-up results. The authors want to understand the neither cases more thoroughly, improve training for that underrepresented outcome and investigate changing the pretrained BERT weights. Each direction targets a different limitation: error analysis, supervision and adaptation of the underlying language representation.
No subsequent study is identified in the available citation record for this discussion. There is therefore no documented chain of later results to attribute to the method. The paper’s own experiments establish the practical value of name replacement in its tested configuration, the usefulness of masked-word evidence for the shared task and the conditional benefit of exchanged-name processing.
Its reusable contribution is the experimental question behind those choices: when a system should reason about an entity’s role, how much of its answer instead comes from the entity’s surface name? The authors turn that concern into a concrete intervention and compare the resulting predictions. The remaining weaknesses make the same point from another direction: controlling a nuisance in the input can improve a decision without resolving candidate rejection, probability quality or the broader scope of reference understanding.
Cite
Cite as Felipe Alfaro, Marta R. Costa-jussà and José A. R. Fonollosa. 2019. BERT Masked Language Modeling for Co-reference Resolution. Proceedings of the First Workshop on Gender Bias in Natural Language Processing.
@inproceedings{alfaro2019bert,
title = {{BERT Masked Language Modeling for Co-reference Resolution}},
author = {Felipe Alfaro, Marta R. Costa-jussà and José A. R. Fonollosa},
booktitle = {Proceedings of the First Workshop on Gender Bias in Natural Language Processing},
year = {2019},
doi = {10.18653/v1/w19-3811},
url = {https://doi.org/10.18653/v1/w19-3811}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alfaro-2019-bert-masked-language-modeling-co/