Elamur Research

Gendered Pronoun Resolution using BERT and an Extractive Question Answering Formulation

Paper · 2019 · Rakesh Chada

Summary

A passage can mention several people before using a pronoun such as she or his. A reader has to work out which person the writer means, and the same pronoun may refer to different people elsewhere in the passage. This paper studies that problem on GAP, a benchmark of ambiguous pronouns in English Wikipedia. The shared task supplies a target pronoun and two candidate mentions. A system has to decide whether the pronoun refers to the first candidate, the second, or neither. Earlier coreference resolution systems performed unevenly on examples grouped by pronoun gender, giving the benchmark a second purpose alongside measuring overall performance.

The paper recasts the task as extractive question answering. Rather than writing a question about a person, the authors take the words immediately around the target pronoun and use that short phrase to identify the occurrence they want to resolve. A system initialized from BERT reads the phrase and the passage, then scores where the answer could begin and end. This system, CorefQA, can retrieve an antecedent span without being told which mentions GAP has nominated. A related version, CorefQAExt, uses those same position scores together with the supplied candidate locations to produce the class probabilities required for the competition.

The best earlier GAP baseline cited in the paper scored 66.9% overall F1. The authors report a 21.4% absolute F1 improvement for CorefQA and a 22.2% absolute improvement for CorefQAExt. The competition submission averaged the probabilities from CorefQAExt and two other approaches that used the candidate mentions in different ways. It reached 90.2 overall F1, a reported improvement of 23.3 percentage points over the baseline, and placed 9th on the final leaderboard. The paper singles out the multiple-choice approach for its bias score of 0.99, where the score is female-pronoun F1 divided by male-pronoun F1.

The comparison separates two abilities that a candidate-based score can easily conflate. An extractor can locate a useful answer in the passage, while a classifier can assign probabilities to a list of permitted outcomes. The extractor’s gains show that access to the candidate list at prediction time was unnecessary for a substantial improvement on GAP. The competition results also show that the best class probabilities and the best overall F1 can come from different systems. After the deadline, an ensemble combining cased and uncased BERT variants reached 94.7% overall F1 on the Stage 2 test set. That experiment was separate from the submission that earned the leaderboard rank.

Deep dive: Gendered Pronoun Resolution using BERT and an Extractive Question Answering Formulation

See how Chada used BERT to resolve ambiguous pronouns by extracting their antecedents from Wikipedia passages, and what the GAP tests showed. · about 33 minutes to read

The problem and its context

Identifying the pronoun and finding its referent

Coreference resolution asks which pieces of a text refer to the same entity. A writer might use a full name, a surname and a pronoun for the same person. A general resolver can try to link those mentions across a passage. The paper narrows the task to an ambiguous pronoun that has already been identified. The central decision is which mention in the passage gives that pronoun its meaning.

An antecedent is a mention to which a pronoun refers. In GAP, the benchmark names two possible antecedents, conventionally labeled A and B. The label N covers cases in which neither supplied mention is the intended antecedent. The choices concern particular occurrences of text, so the benchmark supplies locations as well as strings. If a surname appears several times, knowing that surname alone supplies less information than knowing which occurrence the benchmark has selected.

The target pronoun also has a location. Knowing its spelling leaves an important ambiguity unresolved. A passage may contain several instances of he, including instances associated with different people. A question naming only that word would give the resolver a choice the benchmark has already made. The short phrase around the word carries information about the intended occurrence as well as about the sentence in which it appears. In the authors’ approach, the same piece of input can therefore help identify what to resolve and supply clues for resolving it.

N introduces another distinction. It means that the correct referent lies outside the benchmark’s candidate pair. A passage labeled N may still contain an antecedent that an extractor could return. A classifier can learn to predict N as a category, while an extractor can search beyond the pair and return text. The dataset gives direct supervision for the former through its candidate labels. To train the latter with a precise target, the authors need a span that the training record identifies as the correct answer.

Why GAP was a useful test

The paper situates GAP among studies of gender bias in coreference. It cites work that had found uneven treatment by existing systems and describes GAP as an attempt to evaluate ambiguous pronouns with balanced representation of male and female examples. Matching the prevalence of the groups makes performance within each group easier to examine. A single overall score can give little indication of whether a resolver is more reliable for one group, even when the groups contribute equally many examples. Gender Bias in Coreference Resolution and Evaluation and Debiasing Methods

The ambiguity in GAP also matters independently of the group comparison. A resolver has to make a local judgment in text where there is more than one plausible person to consider. The benchmark gives it a constrained decision about named candidates, while the article’s extraction variant opens up the answer space to the passage. Those are different tests. The constrained decision asks whether the resolver can judge designated mentions. The extraction test asks whether the resolver can find a mention in the first place.

The baselines in the paper’s account come from earlier coreference research rather than from earlier versions of its own extractive system. The work it names includes an entity-centric approach with stacking, an approach that learns global features, and an end-to-end neural resolver. Their role in the paper is to establish how general coreference systems fared on the specific GAP decision. The comparison gives the authors a reason to build a resolver around the structure of the shared task and the limited amount of annotated data available for it. Entity-Centric Coreference Resolution, Learning Global Features for Coreference Resolution and End-to-End Neural Coreference Resolution

What question answering had already contributed

The paper describes earlier research that had expressed coreference as question answering. In the dynamic memory network work it cites, a question could ask who a particular pronoun refers to by giving the pronoun’s spelling. The authors point out that when the same form occurs repeatedly, this wording can require a separate indicator for the target occurrence. They also distinguish that setup from extraction because its answer did not have to occur in either the question or the passage. Ask Me Anything

Another precedent came from work that cast several language tasks as question answering. Its formulation for pronoun resolution on the Winograd Schema Challenge placed the proposed antecedents in the question. This gave the question a dual purpose. It identified the decision the system was being asked to make and supplied the choices available to it. The GAP paper changes this arrangement by building the question around the pronoun’s surroundings and allowing the extraction head to search the passage. The Natural Language Decathlon

The reference point for the extraction architecture is SQuAD. A SQuAD-style system returns a range of text from a passage. The boundaries of that range provide a ready-made way to represent an antecedent such as a full name. The paper takes the answer format from that setting and changes the form of the question. The input on the question side is usually an ordinary fragment of the passage, which may have no interrogative wording at all. It functions as a query because it tells the system which occurrence needs an answer.

This choice puts two kinds of information in different places. The full passage supplies the evidence and the possible answers. The shorter fragment draws attention to the occurrence under discussion. The candidate-free version leaves the benchmark’s proposed answers outside both inputs. The authors could then examine whether a system trained in this format would find an antecedent on its own and whether its underlying span scores could also be used for the competition’s narrower decision.

The method, step by step

Turning a GAP record into a question and an answer

A GAP record contains the Wikipedia passage, the page URL, the target pronoun, the candidate names and the offsets for the pronoun and both candidates. An offset records where a mention occurs in the text. The record also includes flags giving the annotated relation between the pronoun and each candidate. The same record can support different training tasks depending on which fields are used as input and which are retained as answers.

For extraction, the authors locate the target using its offset and take a window of up to 5 words around it. The window includes the pronoun and up to two words on either side. When the target is too close to an edge of the passage for a full window, the available words are used. At this point the paper counts words by spaces. The window is chosen before the text is broken into the smaller units used by BERT.

Consider the example in the architecture discussion. The target is his in a sentence that names John and describes Carol as his wife. The question window contains both names and the words immediately surrounding the pronoun. The fact that Carol is present in the question has no special status. She is present because her name falls in the window. CorefQA receives neither a mark assigning her to a candidate category nor an instruction that the antecedent must be present in the window. It can select an answer elsewhere in the passage.

The training record provides an exact answer when A or B is marked as the antecedent. The corresponding mention supplies the span to be learned. For the question-answering training data, the paper excludes records labeled N because they do not supply a precise answer span. This is a choice about supervision. In particular, the benchmark’s N flag does not by itself identify which token should receive credit as the start of an answer. At prediction time, the extractor’s search is still over the passage, so the absence of N in span training leaves it able to select text beyond the designated candidates.

From a target pronoun to a span or class probabilities

The steps in order.

From a target pronoun to a span or class probabilitiesStep 1: Locate the designated pronoun in the passage1. Locate the designated pronoun in the passageStep 2: Copy the words around the pronoun2. Copy the words around the pronounStep 3: Encode the window and full passage together3. Encode the window and full passage togetherStep 4: Score each token as an answer boundary4. Score each token as an answer boundaryStep 5: Extract a span or pool candidate scores5. Extract a span or pool candidate scoresStep 6: Convert pooled scores to class probabilities6. Convert pooled scores to class probabilities

Encoding the passage and scoring boundaries

The paper gives the input for the question-answering architecture in this compact form.

I = [CLS] Q W

I is the input sequence. The equals sign introduces its representation, and adjacent items appear in sequence order. [CLS] is the BERT marker at the beginning of the sequence. Q is the pronoun window used as the question, and W is the Wikipedia passage. The prose also names [SEP] as a BERT delimiter, though its position is absent from the printed expression.

The authors use the uncased BERT WordPiece tokenizer for preprocessing, with a vocabulary of 30,522 entries. Subword tokenization allows a space-separated word to be represented by several tokens. This distinction matters at both ends of the pipeline. The width of the question is defined in words, whereas start and end scores are produced for tokens. A name can therefore occupy several scored positions even when its written form contains no spaces.

The encoder is initialized from BERT Large Uncased. Its 24 layers produce contextual representations of the input tokens, with a hidden representation of dimension 1024 at each layer. A representation gives the next part of the system a numerical description of a token in its context. With the window and passage in the same input sequence, the scoring head has access to representations conditioned on the query and its surrounding evidence.

The dense output layer assigns each token a start logit and an end logit. A logit here is a score before conversion into a probability. The start and end tasks are distinct. A token at the beginning of a full name can receive a high start score, while a token later in the same name can receive a high end score. Together, the two types of scores make it possible to give a multi-token answer. They also leave room for errors in which the right person is nearby but the predicted range encloses too much text.

CorefQA ends at this boundary-scoring architecture. Its scores can be decoded into a highest-scoring answer span using the procedure associated with BERT’s SQuAD setup. Candidate names and candidate offsets do not enter the extractor as separate inputs. Their role in the creation of the training answers is important. They supply labeled spans during training on A and B cases, even though the extractor receives only the question window and passage when it has to produce an answer.

Turning boundary scores into competition probabilities

CorefQAExt adds a stage for the shared task. The competition wants probabilities for A, B and N. An answer span alone cannot express how strongly the resolver favors each candidate or how plausible it considers the neither outcome. The authors use the original boundary scores to build features for a classifier that can express those judgments.

The candidate offsets indicate which token positions belong to A and B. Inside each candidate span the authors take the highest start score and the highest end score. They take the same two maxima across the entire input sequence. The pooling operation can be expressed uniformly for each of those ranges.

Mₖ(R) = max { ℓₖ(t) : t ∈ R }

R is the set of token positions in the range being pooled, which is the A span, the B span or the entire sequence. t denotes one token position. The index k specifies the boundary type, start or end, and ℓₖ(t) is that boundary’s logit at position t. The braces collect the scores subject to the condition after the colon. The symbol ∈ means that t belongs to R. max selects the largest collected value. Mₖ(R) names the resulting pooled score for that range and boundary type.

This gives the classifier six features. Each candidate contributes evidence for a start and an end, and the sequence-wide pair supplies a point of comparison. The input to the classifier is the set of pooled values. It includes no single feature claiming that the highest-scoring start and end are the boundaries of a valid mention. In particular, the two independent maxima across the sequence do not have to describe the same prospective answer. Their purpose is to summarize the strength of the boundary evidence the encoder found.

A multiclass logistic regression turns these features into the probabilities the paper denotes by Pₐ, Pᵦ and Pₙ. The subscripts identify the outcome being scored. Pₐ is the probability assigned to the first candidate, Pᵦ to the second candidate, and Pₙ to neither. A classifier of this kind can use the relative evidence across several inputs. For example, strong scores somewhere in the sequence alongside weaker scores at both candidates are a pattern it could use when assigning probability to N. The paper describes the features and classifier instead of reporting what weights the classifier learned for such a pattern.

CorefQAExt therefore uses the candidate pair at a later point than a system that puts the names in its question. The boundary scorer first reads the passage and the pronoun window. The classifier then looks at how the scorer’s outputs line up with the supplied candidate ranges. This architecture lets an engineer inspect the candidate-free answer separately from the probabilities computed for the benchmark, even though both depend on the same form of token-level scoring.

Training the extraction approach

The authors initialize the encoder with pretrained weights and adapt part of it using the task data. This process, called fine-tuning, changes the representations as well as fitting the task-specific outputs. In the question-answering setup, encoder layers 1 to 12 are frozen. Layers 13 to 24 remain trainable, and the overall trainable parameter count is on the order of 150 million. The paper uses the term end-to-end for this setup with the stated restriction on which encoder weights can change.

The optimizer is Adam. The learning rate is 1e-5, with β₁ set to 0.9 and β₂ to 0.999. The two beta parameters govern the optimizer’s moving estimates used in updating the weights. L2 weight decay is 0.01. The learning rate warms up over the first 10% of training steps and then follows a linear decay. Warmup starts the updates at a smaller rate and increases it at the beginning, while decay reduces the rate as training advances.

The maximum input sequence length is 300 tokens and the training batch size is 12. The training lasts 2 epochs, meaning that the training examples are passed through the procedure for that many rounds. The authors apply no dropout in this setup. They set the logistic regression hyper-parameter C to 0.1. The paper reports about 30 minutes for the training with cross-validation on an NVIDIA K80 GPU.

The authors use 5-fold cross-validation stratified by pronoun gender. Stratification means that the folds are formed with that grouping in mind. The aim was to retain a balanced representation of male and female examples in training. The authors note that a fold chosen on this basis can have a different mix of A and B labels from another fold. Stratifying by gender organizes one variable directly and places no comparable constraint on the exact candidate-label distribution.

A fold trains on its portion of the development examples and yields predictions for the separate test set. The paper averages test predictions across folds for the final prediction. This use of folds has a different purpose from combining different architectures. Fold averaging combines repetitions of the same approach trained on different subsets. The final submission also averages across approaches, after they have each made predictions in the competition’s common probability format.

Giving BERT the choices directly

CorefMulti frames the problem as multiple choice in the style of SWAG. It joins paired input sequences. The first is the passage with a short addition at the end that names the pronoun and follows it with is. The second supplies a proposed completion. The paper names A’s name, B’s name and the word neither as the completions.

Here is the input template in compact form.

S₁ = W + P + " is "

S₁ is the first sequence of the pair. W stands for the passage and P for the text of the pronoun. The quoted characters are the fixed ending after the pronoun. The plus signs mean concatenation in the displayed order, with the pronoun prompt appended as an additional sentence. S₂, the second sequence, is whichever proposed completion is being evaluated. The paper says that it constructs four input sequences per example, then specifies the three class completions. It gives no account of an additional sequence.

With this formulation, the name a system is being asked to evaluate occurs as a choice in the input pair. The architecture can compare the evidence in the passage against a proposed completion. Unlike the window in CorefQA, the appended prompt contains the pronoun’s spelling without its immediate neighbors. The published description of CorefMulti’s main input gives it this shorter identifying cue. An experiment that attempted to supply explicit token-level mention identities is reported separately.

CorefMulti is initialized with BERT Large Uncased and fine-tunes layers 12 to 24. The preceding layers stay frozen. Its training batch size is 4, with the remaining hyper-parameters described as following CorefQAExt. The authors again use 5-fold cross-validation and average the test predictions. For Stage 1 data, the reported runtime is about 100 minutes on an NVIDIA K80 GPU.

Classifying the marked spans together

CorefSeq takes the Wikipedia passage without an appended prompt or a set of candidate completions. The locations of the pronoun and of A and B determine which contextual representations are passed to the classifier. For each of those mentions, the system extracts the last encoder layer’s vector at the opening token, the vector at the closing token, and the element-wise product of the two vectors. A vector is an ordered set of numerical components. An element-wise product multiplies components at the same positions and retains the resulting components as a vector.

The construction for each mention can be written as follows.

v(R) = [ hₛ ; hₑ ; hₛ ⊙ hₑ ]

R is the mention span being represented, and v(R) is the resulting span vector. hₛ is the final encoder vector for its start token and hₑ is the vector for its end token. The brackets and semicolons indicate that the vectors inside are concatenated in order. ⊙ denotes element-wise multiplication, so hₛ ⊙ hₑ gives a component-by-component interaction between the two boundary vectors.

The vectors for A, B and the pronoun are concatenated and passed to a feed-forward network with one hidden layer of 512 units. That layer uses a ReLU activation, which sets negative inputs to zero and preserves positive inputs. A softmax at the output turns the class scores into probabilities for A, B and N. This design gives the classification network the pronoun and both candidates together while keeping the passage itself in its original form.

The span construction uses the boundary positions even for a mention with several tokens. The intervening tokens do not supply additional vectors directly to the classification network. They are still present in the text processed by BERT, where they can contribute context to the boundary representations. This differs from the pooling in CorefQAExt. There the classifier sees maxima over scalar boundary scores. Here it sees richer vectors taken from particular positions in the encoder’s output.

CorefSeq applies dropout of 0.1 between the encoder and the feed-forward classifier during training. Training runs for 30 epochs at a learning rate of 1e-5, using batches of 10. Its triangular schedule varies the learning rate in cycles, with the steps per cycle set to 100 times the length of the training data. Layers 12 to 24 are fine-tuned, as in CorefMulti, and earlier layers are frozen. The paper again uses 5-fold cross-validation with test prediction averaging. The reported Stage 1 runtime is 105 minutes on an NVIDIA K80 GPU.

Combining the predictions

The competition ensemble averages the A, B and N probabilities from CorefQAExt, CorefMulti and CorefSeq. Each of these systems yields a probability for the same label, even though their inputs or classification features differ. CorefQA is evaluated separately because its natural output is a span and it does not supply the required class probabilities. The shared probability format is what allows the other approaches to be combined directly.

The differences between the systems run deeper than how their classifiers are trained. CorefQAExt first asks where an answer can be extracted and then uses the candidate locations to summarize that evidence. CorefMulti supplies the proposed answers to the encoder as choices. CorefSeq selects contextual representations for the passages’ marked spans and feeds them jointly to a classifier. Their predictions can agree on the label while relying on different parts of the input and different ways of representing it.

The authors implemented the systems with the pytorch-pretrained-bert library and released the official code in the corefqa repository. The data used in the experiments are GAP, with the splits and prediction requirements of its Kaggle shared task.

Experiments and results

Data, splits and baselines

The competition ran in Stage 1 and Stage 2. The paper describes the data for each stage using T for all examples and A, B and N for the counts by correct candidate outcome. The development, validation and test data are described as having a 50-50 split of male and female pronoun examples, with an exception for the Stage 2 test set. That final set contains 377 male-pronoun examples and 383 female-pronoun examples. Gender here refers to the grouping used for the target pronouns in the dataset.

The labeling scheme affects what the training data can teach. In an A or B example, the record names a candidate that can stand as the span target for CorefQA. In an N example, it gives the negative judgment about both candidates but supplies no exact replacement span. The extraction training set consequently omits those cases. The benchmark itself still poses the N decision, and the paper distinguishes evaluating a returned mention from evaluating probabilities assigned to the explicit class.

The baseline figure the authors cite is 66.9% overall F1 on GAP for the strongest previously reported baseline. The paper names earlier general coreference systems in its discussion of that baseline. It uses the best published figure as the reference for its improvements. The comparison concerns the performance of complete systems on GAP, so it leaves open how much of the gain comes from pretrained representations, how much comes from the particular way of specifying the question, and how much comes from the other training and scoring choices.

What the metrics measure

The paper reports overall F1, male F1, female F1, a gender bias ratio and log loss. F1 summarizes performance in terms of precision and recall. Precision asks how frequently a predicted link is right, while recall asks how frequently a link that should be made is recovered. Overall F1 describes performance on the test data taken together. The grouped scores evaluate predictions on the examples assigned to each pronoun group.

The bias ratio used in the paper can be written directly from the two grouped scores.

B = Fꜰ / Fₘ

B is the metric the paper calls bias. Fꜰ is the F1 score on female-pronoun examples and Fₘ is the F1 score on male-pronoun examples from the same evaluation split. The slash denotes division. Equal scores give a ratio at parity, and a female-pronoun score below the male-pronoun score gives a ratio below parity. The ratio measures the relationship between the two scores. It conveys their overall level only when read alongside the F1 results.

Log loss evaluates the probability placed on the correct class. An answer that chooses a class with considerable uncertainty and an answer that chooses the same class with high confidence can count alike for a decision metric. Their probabilities can earn different log loss. In particular, log loss penalizes a system for assigning very little probability to an outcome that turns out to be correct. It therefore supplies information about the submitted probabilities even when a decision based on them stays the same.

This distinction explains an otherwise easy-to-miss entry in the results. CorefQA returns text and the paper reports its log loss as N/A. A start score or a decoded span does not specify a probability distribution over the nominated candidate pair and N. CorefQAExt, CorefMulti and CorefSeq produce such distributions, so they can be compared on both types of metric. A missing log-loss result for the extractor follows from its output format.

The candidate-free result and the submitted ensemble

The paper reports a 21.4% absolute improvement in F1 over the prior GAP baseline for CorefQA. In Stage 1 overall F1, the span extractor slightly exceeded both CorefMulti and CorefSeq. The comparison is informative because both of those approaches explicitly use the candidates. On this test, having the candidate pair at prediction time was unnecessary for CorefQA to outperform those individual alternatives on the reported decision metric.

CorefQAExt had the largest reported improvement among the individual systems, at 22.2% absolute F1 over the GAP baseline. Its feature design shows how evidence gathered in the extraction formulation can be converted into a score for a constrained decision. The gain reported for CorefQA also makes clear that much of the improvement over the earlier baseline was already present when the task was performed by extracting an answer.

The results discussion gives the submitted ensemble an overall F1 of 90.2 and states an improvement of 23.3 percentage points over the baseline. The averaging rule combined the probabilities already produced by the three component approaches. On the final leaderboard the submission placed 9th. The paper also identifies CorefMulti as the approach that appeared most robust on its gender ratio, reporting 0.99. The ratio is a measure of grouped F1 parity and has a different meaning from either the leaderboard rank or the ensemble’s overall F1.

On the Stage 2 test set, the reported comparison favored the full ensemble on log loss and CorefQAExt on overall F1. This is a split-specific distinction about which result was best among the configurations in that comparison. The authors suggest probability calibration as a possible explanation. Calibration concerns how the probabilities correspond to observed outcomes. They also suggest the smaller Stage 2 set as a possible factor. The paper gives those as interpretations of the divergence between the metrics.

The tests after the deadline

After the competition, the authors returned to the Stage 2 test data and tried different ensembles. They removed components from the original combination and tried variants initialized with cased BERT. The contrast between cased and uncased variants changes whether letter case is retained in the input representation. The paper reports a 3% absolute F1 improvement on Stage 2 for an ensemble of the cased and uncased CorefQAExt versions relative to uncased CorefQAExt alone.

The broadest cased-and-uncased combination used both versions of CorefQAExt, CorefMulti and CorefSeq. On the Stage 2 test set it achieved 94.7% overall F1, with male F1 of 94.8% and female F1 of 94.6%. The reported bias ratio was 1.0, and log loss was 0.197. The subgroup scores and ratio are given at the precision the authors report. The F1 values show how close the group results were, while the ratio reports their relationship at its own displayed precision.

Removing CorefSeq from the original ensemble yielded the configuration the paper calls QAMul Ensemble. In the post-deadline Stage 2 comparison it obtained a log loss of 0.195. The chart compares that result with the log loss of the ensemble containing cased and uncased versions of all the components.

Post-deadline ensembles on GAP Stage 2 test log loss

The ensemble without CorefSeq assigned better probabilities by this metric than the combined cased and uncased ensemble.

Post-deadline ensembles on GAP Stage 2 test log lossQAMul Ensemble (this paper): 0.195QAMul Ensemble (this paper)0.195All cased and uncased variants: 0.197All cased and uncased variants0.197
The numbers
System or settinglog loss
QAMul Ensemble (this paper)0.195
All cased and uncased variants0.197

The configurations in this chart were studied after scoring for the competition had finished. The 94.7% overall F1 result and the 0.195 log-loss result belong to different configurations. This matters when describing the paper’s strongest results. The configuration that produced the highest F1 figure highlighted after the deadline is distinct from the reduced combination with the lower of the two reported log-loss values.

What the ablations show

Frozen layers and the choice of representation

The clearest controlled comparison in the paper freezes the entire BERT encoder for CorefQAExt and changes which encoder outputs the task head reads. Freezing keeps the pretrained encoder weights fixed. The rest of the system must use the representations that the encoder already supplies, with the chosen layer determining which representations are available.

Reading the final layer in this setting gave CorefQAExt a Stage 1 overall F1 of 63.6%. Reading layer 18 yielded 72.1%. Concatenating the final four layer outputs yielded 74.4%. This last change gives the downstream computation access to several representations of each position at once, so the comparison concerns both the layers selected and the information available to the scoring head.

Frozen CorefQAExt encoder outputs on GAP Stage 1 test overall F1

Combining outputs from the last encoder layers gave the strongest result among the frozen settings reported.

Frozen CorefQAExt encoder outputs on GAP Stage 1 test overall F1Final encoder layer: 63.6Final encoder layer63.6Encoder layer 18: 72.1Encoder layer 1872.1Concatenated final four layers (this paper): 74.4Concatenated final four layers (thispaper)74.4
The numbers
System or settingoverall F1 %
Final encoder layer63.6
Encoder layer 1872.1
Concatenated final four layers (this paper)74.4

These trials establish that the choice of output layer makes a substantial difference when the encoder is frozen. The last layer was the weakest of the reported frozen choices even though it is the ordinary source of contextual vectors in the main sequence-classification system. That latter use occurs under fine-tuning, where the upper layers can adapt to the task. The same layer can therefore play quite different roles in the two setups.

The authors describe an overall F1 gap of about 15% between the frozen trials and the fine-tuned result. That is the paper’s own characterization of a preliminary comparison. The evidence supports adapting the encoder in the tested setup and shows that a better choice of frozen representations recovered some performance. It leaves the mechanisms behind the improvement open. The trials do not identify which syntactic or contextual cues the trainable layers came to encode, and the paper calls for a more systematic analysis of the layer effects.

What the question window contributes

The authors experimented with the width of the question window and found the results sensitive to it. They say that smaller windows worked better in their trials and selected a window of 5 words as their preferred setting. The paper does not give a series of scores for alternative widths. It supplies the direction of the finding and the chosen setting.

One plausible reading of this design is that a short query helps the encoder identify the occurrence of interest while the accompanying passage supplies wider context. Lengthening the query would repeat more of the passage in the question part of the input. The paper’s results support its particular choice of window, but they do not isolate the effect of repetition from other effects of changing the input. They also do not show how often the short phrase is unique in a passage or how much the words on either side contribute individually.

The window-size experiment should be distinguished from the comparison with the multiple-choice system. CorefMulti uses a prompt containing the pronoun itself and sees the candidates as choices. It also has a different prediction architecture. Performance differences between that setup and CorefQA include the choice of inputs, the output format and details of training. The within-extractor observation about window size focuses on a narrower change.

When a component helps the ensemble

In discussing the competition-stage results, the authors say that including CorefSeq improved the ensemble even though CorefSeq was individually weaker than the other approaches. A system’s standalone score measures its own decisions across the test set. Its value inside a probability average also depends on how its predictions relate to the other components. For example, different systems can make errors on different examples, and the probability placed on the correct outcome can improve when their predictions are combined.

The post-deadline comparison puts a condition on that observation. On the Stage 2 test data, removing CorefSeq gave the QAMul Ensemble its reported log loss of 0.195. The question there was how the probabilities behaved on a particular split under a particular metric. The competition-stage observation about including the component and the later log-loss finding describe different comparisons. Together they show why it is important to state both the setting and the metric when assessing an ensemble member.

The cased and uncased experiments test another way of adding variety. The gain reported for combining the two CorefQAExt variants establishes a benefit for their combination on the tested Stage 2 set. The paper gives no breakdown of the examples where case mattered. A benefit from averaging both variants can arise from complementary predictions. The experiment alone does not decompose the gain into effects of capitalization, training variation and probability averaging.

Changes that failed to improve the systems

The authors tried additional unsupervised training on text from the Wikipedia pages named in the GAP records. The plan was to adapt the encoder to the source passages before using it for the supervised task. Initial runs were computationally expensive and did not produce promising improvements. The authors suggest that Wikipedia’s role in BERT pretraining could have limited the amount of new information available from a further round on related text. Their account concerns initial runs and provides no test that distinguishes that explanation from the effects of the amount of training or the chosen setup.

For CorefMulti, the authors tried adding an entity embedding to each token’s input representation. This extra vector indicated whether the WordPiece token belonged to the pronoun or one of the designated candidates. It attempted to make the positions of those mentions explicit. The authors could not turn this addition into a performance improvement within the competition deadline. The comparison shows how a missing cue in the basic input was approached experimentally, while its outcome applies to the implementation and tuning they tried.

For CorefQAExt, the authors used the Wikipedia URL to recover the page title and appended the title to the input. The idea was to test whether the named page gave information useful for resolving the passage. Performance became slightly worse. That result applies to appending the title in this setup. The paper gives no numerical size for the change and does not examine in which kinds of examples a title might help or hurt.

What the sample answers reveal

The supplemental examples show the candidate-free output directly. In the passage about Pausch, the extractor correctly returns his surname for a target occurrence of him in the description of a speech. The snippet includes several masculine pronouns and mentions a speaker as well as the person being praised. The short query identifies which occurrence is under consideration, and the answer shows that the extractor can select a name elsewhere in the passage.

In a passage about a census and a marriage, the extractor correctly selects Margaret and retains the parenthetical surname as part of the answer. Another successful case returns the role description Special Agent. This example is useful alongside the authors’ observation that CorefQA usually chooses named entities. The system’s output can be a descriptive mention where the text calls for it, because the architecture learns to retrieve a span and does not impose a separate named-entity requirement.

The error cases illustrate distinct failures. In the example featuring Sheffer and Platz, the system chooses Sheffer and the authors mark this as wrong. The answer is a plausible person mention in the passage, but it does not identify the right referent for the chosen occurrence. In the passage about Lindsay Lohan and Nicks, the output stretches from one name towards the other and includes intervening words. The authors call attention to the excessive span length. A prediction can therefore fail at finding the person, at fixing the boundaries of the mention, or at both.

These examples show what the aggregate scores leave implicit. The output of CorefQA is an actual piece of text. Its errors can be examined as choices of entities and ranges, while the output of a probability classifier is examined in terms of its preferences among A, B and N. The appendix illustrates both successful extractions and mistakes. It supplies individual cases without measuring how prevalent each error pattern is.

Limitations

Limits identified by the authors

The authors restrict their main evidence to ambiguous gendered pronouns in English Wikipedia passages from GAP. They propose applying the techniques to the Winograd Schema Challenge, Definite Pronoun Resolution, and the Winogender schema dataset. They also suggest using the CoNLL 2012 shared task data to explore other languages. These are directions they identify for future work. The reported scores establish performance on GAP under the conditions of the shared task and the follow-up tests.

The role of the pretrained encoder remains an open question in their account. The frozen-layer trials show sensitivity to the representations selected, and the authors call for a more thorough comparison of those representations and of ways of adapting them. Their conclusion points to alternative contextual representations and fine-tuning methods as possible comparisons. The baseline gains and frozen-encoder tests leave room for a study designed specifically to isolate how much each change contributes. Deep Contextualized Word Representations

The authors also acknowledge uncertainty about the Stage 2 metric rankings. They propose calibration and the smaller test set as possible explanations for why the ensemble had the best log loss while CorefQAExt had the best overall F1 in the main comparison. The disagreement between metrics is observed. Determining why it arose would require evidence about the probabilities or the stability of the rankings beyond what the paper reports.

The unsuccessful variants have similarly bounded meanings. The Wikipedia adaptation experiment was costly and gave little encouragement in early runs. The entity-indicator experiment was limited by the competition deadline. The title experiment changed performance slightly in the unfavorable direction. These outcomes document specific attempts. The paper singles out the entity-indicator approach as an avenue it still considered promising.

Limits visible in the setup

GAP presents an already located pronoun in a given passage. Even when the candidate names and offsets are withheld from CorefQA at prediction time, the system still receives the target occurrence through the question window. Automatically finding all relevant pronouns and linking all mentions throughout a document would require additional decisions. The paper’s candidate-free result concerns finding an antecedent given a target. It does not evaluate that wider workflow.

The question window is also evidence about the target, rather than a unique identifier by construction. A repeated phrase can in principle produce repeated local wording. At a passage boundary the fragment can carry less neighboring text. The authors’ examples and window-size trials show how such a representation can work. They do not measure performance separately on cases where the window is repeated, shortened, or otherwise weak as a locator.

The gap in supervision for N affects the scope of the extraction claim. CorefQA may return a span beyond A and B, as its search space permits. The paper excludes N from span training because no exact alternative answer is given. That design demonstrates that it is possible to search outside the candidates, and the aggregate result shows effective extraction on the benchmark. A separate measurement of exact antecedent recovery within N examples would require gold spans for the alternative answers or another way to verify them. The reported results give no such breakdown.

The logistic regression interface has a related limitation. Its sequence-wide maxima allow the classifier to compare designated mentions with stronger boundary evidence elsewhere. The pooled values do not identify a coherent alternative span. As a result, a confident N prediction from CorefQAExt is a statement about the candidate pair. To identify the alternative mention, the reader would need the extraction output or a separate inspection of the span scores. The benchmark can reward the N decision without requiring that additional resolution.

The reported gender measure has a precise scope. It compares aggregate F1 for the male- and female-pronoun groups in GAP. The paper’s conclusion connects the near-parity result to balanced training data. The experiments described do not include a matched comparison with differently balanced training data that would establish the causal contribution of balance. Within this setup, the direct observation is that the tested systems can attain close group scores. The ratio is silent about whether the same kinds of errors occur in each group and how particular constructions or passages contribute to the aggregate.

The historical baseline comparison is also a whole-system comparison. A stronger pretrained encoder, a question centered on the target, a boundary-scoring objective and the classifier on pooled logits all offer possible sources of improvement. The paper places those changes in a working system and shows its gains relative to prior GAP results. Its controlled comparisons illuminate some choices, particularly output layers under freezing, while leaving many interactions between changes unmeasured.

Some implementation details remain ambiguous in the architecture descriptions. The printed input expression does not place the separator token discussed in the surrounding prose. The multiple-choice description gives an input count that does not match the completions it enumerates. The paper also describes exclusion of N for question-answering training and calls the extended architecture end-to-end, while giving limited detail about how the span-training exclusion relates to fitting the classifier that outputs N. The architecture and evaluation can be understood at the stated level in each case. Those passages alone leave details open for an exact reimplementation.

Finally, the post-deadline experiments revisit the final test set across several variations. Their scores document what each variation achieved on that set. Selection among configurations judged on the final set gives a different evidentiary status from evaluation on a fresh set after choices are fixed. The paper supplies no fresh split for that follow-up comparison. The final leaderboard placement belongs to the original submission, and the later Stage 2 scores characterize additional experiments.

What came after

The GAP Shared Task report cites the paper and concerns the same shared task for which the ensemble was submitted. That is the most direct connection among the citing works. The pronoun-resolution paper describes the choices made within one submission, including the decision to turn boundary scores into probabilities for A, B and N. The report’s subject is the shared evaluation in which submissions like this one were compared. Its citation places the extraction approach in the record of that evaluation. The connection is to the competition and its outcome. No specific reuse of the extraction head or pooled features is established by the citation alone.

Language (Technology) is Power cites the paper in a critical survey of bias in natural language processing. The subjects meet at the question of what a bias measurement captures. For the pronoun-resolution study, the measurement has a specific form. It compares F1 across the benchmark’s male- and female-pronoun groups. That narrow definition makes the paper an example of a particular evaluation practice within the broader subject the survey addresses. The citation establishes the connection to the survey. It does not by itself identify an endorsement of the ratio, a reproduction of the experiments, or an adoption of the architecture.

Age and Affect in Language also cites the paper. Its stated subject is how the expression of emotion on social media varies across adulthood. The citation connects the pronoun-resolution paper to a study with a different language phenomenon, source of text and grouping variable. The cited relationship is established, while a transfer of the pronoun-window method, an extraction architecture or a GAP evaluation measure is unspecified.

These citations give the paper a documented shared-task connection and a presence in later work concerned with differences across groups in language or language technology. The common thread is the study of how such differences are measured. Specific architectural follow-through beyond the shared-task submission remains undetermined.

Cite

Cite as Rakesh Chada. 2019. Gendered Pronoun Resolution using BERT and an Extractive Question Answering Formulation. Proceedings of the First Workshop on Gender Bias in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w19-3819 · arXiv 1906.03695

@inproceedings{rakesh2019gendered,
  title = {{Gendered Pronoun Resolution using BERT and an Extractive Question Answering Formulation}},
  author = {Rakesh Chada},
  booktitle = {Proceedings of the First Workshop on Gender Bias in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/w19-3819},
  eprint = {1906.03695},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/w19-3819}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chada-2019-gendered-pronoun-resolution-bert-extractive/

References

17 references, from the paper's own bibliography.

  1. Kevin Clark and Christopher D. Manning. 2015. Entity-centric coreference resolution with model stacking (https://doi.org/10.3115/v1/P15-1136). In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1405–1415, Beijing, China. Association for Computational Linguistics. our card
  2. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
  3. Jeremy Howard and Sebastian Ruder. 2018. Universal language model fine-tuning for text classification (https://www.aclweb.org/anthology/P18-1031). In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 328–339, Melbourne, Australia. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  4. Ankit Kumar, Ozan Irsoy, Peter Ondruska, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor Zhong, Romain Paulus, and Richard Socher. 2016. Ask me anything: Dynamic memory networks for natural language processing (http://proceedings.mlr.press/v48/kumar16.html). In Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 1378–1387, New York, New York, USA. PMLR. our card
  5. Kenton Lee, Luheng He, Mike Lewis, and Luke Zettlemoyer. 2017. End-to-end neural coreference resolution (https://doi.org/10.18653/v1/D17-1018). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 188–197, Copenhagen, Denmark. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  6. Hector Levesque, Ernest Davis, and Leora Morgenstern. 2012. The winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning. OpenAlex ↗ · Scholar ↗
  7. Bryan McCann, Nitish Shirish Keskar, Caiming Xiong, and Richard Socher. 2018. The natural language decathlon: Multitask learning as question answering. arXiv preprint arXiv:1806.08730. our card
  8. Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations (https://doi.org/10.18653/v1/N18-1202). In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, New Orleans, Louisiana. Association for Computational Linguistics. our card
  9. Sameer Pradhan, Alessandro Moschitti, Nianwen Xue, Olga Uryupina, and Yuchen Zhang. 2012. Conll-2012 shared task: Modeling multilingual unrestricted coreference in ontonotes. In Joint Conference on EMNLP and CoNLL-Shared Task, pages 1–40. Association for Computational Linguistics. our card
  10. Altaf Rahman and Vincent Ng. 2012. Resolving complex cases of definite pronouns: the winograd schema challenge. In Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 777–789. Association for Computational Linguistics. our card
  11. Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. Squad: 100, 000+ questions for machine comprehension of text (http://aclweb.org/anthology/D/D16/D16-1264.pdf). In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016, Austin, Texas, USA, November 1-4, 2016, pages 2383–2392. our card
  12. Rachel Rudinger, Jason Naradowsky, Brian Leonard, and Benjamin Van Durme. 2018. Gender bias in coreference resolution. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, New Orleans, Louisiana. Association for Computational Linguistics. our card
  13. Leslie N Smith. 2017. Cyclical learning rates for training neural networks. In 2017 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 464–472. IEEE. OpenAlex ↗ · Scholar ↗
  14. Kellie Webster, Marta Recasens, Vera Axelrod, and Jason Baldridge. 2018. Mind the gap: A balanced corpus of gendered ambiguou. In Transactions of the ACL, page to appear. OpenAlex ↗ · Scholar ↗
  15. Sam Wiseman, Alexander M. Rush, and Stuart M. Shieber. 2016. Learning global features for coreference resolution (https://doi.org/10.18653/v1/N16-1114). In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 994–1004, San Diego, California. Association for Computational Linguistics. our card
  16. Rowan Zellers, Yonatan Bisk, Roy Schwartz, and Yejin Choi. 2018. Swag: A large-scale adversarial dataset for grounded commonsense inference. arXiv preprint arXiv:1808.05326. our card
  17. Jieyu Zhao, Tianlu Wang, Mark Yatskar, Vicente Ordonez, and Kai-Wei Chang. 2018. Gender bias in coreference resolution: Evaluation and debiasing methods (https://doi.org/10.18653/v1/N18-2003). In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 15–20, New Orleans, Louisiana. Association for Computational Linguistics. our card