Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation
Paper · 2021 · Max Bartolo, Tristan Thrush, Robin Jia et al.
Summary
A reader can write a question whose answer is plainly present in a passage and still get a confident wrong answer from a question answering system. One way to improve such a system is to ask people to find its mistakes, then use their questions as training material. The difficulty is that finding a valid question that exposes an error takes more effort than writing an ordinary question. Bartolo and colleagues ask how much more training material they can get from an existing collection of human-written challenges. They focus on extractive reading comprehension, where the system must answer by selecting a continuous stretch of text from a passage it has been given.
Their method starts with a Wikipedia passage, identifies stretches of text that might make good answers, and uses BART to write a question for each selected stretch. The question writer learns from both ordinary SQuAD examples and questions that people wrote to defeat systems during the collection of AdversarialQA. Because a generated question can point to a different answer from the one intended, several independently trained readers attempt to answer it. Their agreement helps determine whether to keep the original answer, replace it, or discard the example. SynQA, the main system, practices on the resulting synthetic data before a final round of training on human-written questions.
Synthetic augmentation improved the AdversarialQA test results. The paper reports an overall advance of 3.7 F1 on that benchmark, with different gains across its subsets. On the subset originally collected against RoBERTa, SynQA scored 58.0 F1, compared with 53.1 for the system trained on the same human-written datasets alone. Augmentation also helped on nine of the twelve MRQA development tasks. The gains varied by dataset, and extending generation to additional Wikipedia passages helped some evaluations more than others.
The authors also let crowdworkers see answers from a live system and rewarded them for finding errors that survived expert review. Averaged across workers, the validated error rate was 8.8% for SynQA and 17.6% for the strongest human-data baseline. The version trained with additional external passages reached 12.3% on that same measure. The live results establish that the main system was harder for these workers to defeat under the study’s rules. They also show why the choice of evaluation matters. The version with the wider pool of passages led on some fixed tests, while SynQA was harder to fool in direct interaction.
Deep dive: Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation
Bartolo and colleagues generate challenging reading comprehension questions from Wikipedia and test whether the extra practice makes QA systems harder to fool. · about 33 minutes to read
The problem and its context
Getting questions that expose a weakness
In extractive reading comprehension, the system sees both the question and the passage from which its answer must come. A correct answer therefore requires selecting the right words from available evidence. Even a passage containing all the relevant information can offer several tempting spans. It might name several people with similar roles, give an earlier date and a later correction, or describe one person acting on another. Finding a plausible answer is easy in such cases. Determining which span satisfies the particular question is the work the benchmark is supposed to measure.
The paper places SQuAD and SNLI in the tradition of large, labelled datasets that made it possible to train and compare systems on a shared task. It also draws on earlier studies of what can happen when a dataset is collected independently of the systems that will be tested on it. Regularities in the way people write examples can give a system a shortcut to the expected answer. A predictor can succeed on familiar examples by exploiting those regularities, even when it struggles with carefully chosen questions that demand a more exact reading. The paper connects this problem to work on annotation artifacts and on the influence of annotator habits on dataset patterns.
A static benchmark asks every system the same questions. That consistency makes comparisons possible, but it leaves the test questions unchanged when the systems improve. Dynamic collection lets the current system participate in writing the examples. A worker sees a passage, asks a question, and observes how the system answers. The answer can reveal whether the question exposes a genuine weakness or simply falls within what the system already handles. The worker can use that feedback to try another question. This is the sense in which the paper uses adversarial. The worker aims to elicit an error while preserving the original task and supplying an answer a reader can find in the passage.
“Beat the AI,” the earlier study that produced AdversarialQA, applied this procedure to passages from SQuAD1.1. Workers wrote questions against BiDAF, BERT, or RoBERTa, producing corresponding subsets called D BiDAF, D BERT, and D RoBERTa. These names identify the systems involved in collecting the questions. A score on D BERT in the new paper can therefore come from a RoBERTa reader. The name describes how the test examples were obtained. The paper situates this work alongside other efforts to collect difficult examples in reading comprehension and in tasks such as natural language inference.
Dynamic collection serves two purposes. It can expose weaknesses in an existing reader, and the resulting questions can give a future reader practice with those weaknesses. The feedback also gives annotators a reason to move beyond questions that follow familiar patterns. But finding a challenge can take several attempts. A worker must understand the passage, find a question with a defensible span, and locate something the target system mishandles. That extra effort raises the cost per collected example. Bartolo and colleagues start with questions for which people have already done this work and ask whether a generator can learn enough from them to make further examples worth training on.
What generation adds to dynamic collection
Earlier work had already shown ways to generate reading comprehension questions from passages. The paper describes a common design in which a system first finds a possible answer and then writes a question using that answer and its surrounding text. Each stage has a distinct job. A span selector decides what in the passage is worth asking about. A question writer expresses a request that could lead a reader back to the span. The authors build within this tradition of neural question generation and paragraph-level question generation.
For the present task, a question that sounds natural may still be poor training material. It could ask about a different person from the one marked as the answer. It could depend on information outside the passage, or refer to several equally plausible spans. And a perfectly answerable question may give a reader little practice with the kinds of distinctions that human adversaries have found difficult. The paper studies where these problems enter the generation process, from the choice of what to ask about to the decision about which answer to record.
The related work includes generative augmentation for commonsense reasoning. That work considered ways to select synthetic examples using estimated influence on training or the diversity of the resulting collection. The authors adapt influence-based selection to reading comprehension and investigate agreement among readers as another source of evidence. Extractive QA makes such a check possible because a system can point to a particular stretch of the passage. When readers independently select the same text, the authors can compare it with the original target span and decide whether the question deserves to stay in the training set.
The paper also draws on self-training. In its general description, a system learns from labelled examples and uses predictions on unlabelled examples to make further training possible. Earlier work discussed in the paper connects self-training with gains alongside pretraining and with adaptation when the data distribution changes. Here, the authors must first create the questions to which they can assign predicted answers. The answer initially given to the question writer is a proposed label. Once the question exists, an independent reader may find that the words actually ask for a different part of the passage.
Why test the finished reader with people
A benchmark assembled by challenging earlier readers can measure how well a new reader handles the resulting questions. It leaves another issue open. People who can see the new reader’s responses might find different ways to make it fail. The paper describes human judgment as a goal for automatic evaluation and live interaction as comparatively hard to scale. The authors use Dynabench to make that interaction part of the evaluation.
This choice brings the study back to the process that produced its seed data. People first supplied examples of failures that a generator could learn from. After synthetic data had been added to training, a new group of workers attempted to elicit failures from the resulting readers. Performance on a saved set of challenges measures how well the training transfers to established questions. Performance against active workers measures how frequently those workers can find a valid failure under a common interface and incentive scheme.
The method, step by step
From passages to training material
The pipeline starts with text that contains no new questions. It first chooses pieces of that text to use as possible answers. The question writer then sees the passage and a chosen span and produces a question intended to have that span as its answer. Other readers attempt the question, making it possible to spot a disagreement between the wording and the intended label. The accepted pairs become a source of practice for the final reader, which then returns to the original human-written material for the last stage of training.
From Wikipedia passages to a trained question answering system
The steps in order.
The pipeline contains several systems with different roles. The span selector asks which text might answer some worthwhile question. The question generator asks how to express that question. The readers that check it see the result and decide where the passage supports an answer. The final reader receives training pairs produced through this process. Distinguishing these jobs helps explain why, for example, a highly confident span selector cannot by itself verify that the generator wrote the intended question.
Choosing passages and keeping evaluation separate
The main pool consists of Wikipedia passages from the SQuAD1.1 training split. SQuAD and AdversarialQA share source passages and partition them in the same way, so the authors can align examples referring to the same passage. For fitting the answer selector and question generator, the SQuAD subset contains 10,000 training examples drawn from 2,596 of the 18,891 available training passages. The chosen examples correspond to passages used in the AdversarialQA training data. The generator can then be applied to many training passages it did not encounter while learning to write questions. This arrangement limits opportunities to reproduce the training questions from memory while allowing generation to stay within the main source of reading material.
The external-data variant also generates questions from Wikipedia passages outside SQuAD. For this pool, the authors normalize text to lower-case alphanumeric words separated by single spaces and look for shared 8-grams with the evaluation datasets. An n-gram is a sequence of adjacent units, here words. The authors found overlap for 0.3% of the external passages and removed the passages flagged by the check. The procedure addresses direct overlap detectable at that length after normalization.
The SQuAD1.1 development material had already been divided by passage into a development portion and a test portion for the earlier AdversarialQA work. That earlier setup also used a majority vote to reduce multiple answers to a single reference. Bartolo and colleagues use D SQuAD dev for validation alongside the AdversarialQA development sets and D SQuAD test for reporting the corresponding fixed-test results. The live evaluation takes its passages from the test sets. The passages were therefore held out from training and validation for the systems in the live comparison, and the workers formulate fresh questions about them.
Deciding what in a passage might be an answer
An extractive answer is a span with a beginning and an end. The same words can belong to several defensible spans. A short organization name can be an answer by itself, while a longer phrase containing it can identify a role or describe an event. The paper’s example about the Super Bowl illustrates the point. A reader might be asked to identify the stadium, the city where the game took place, or a more complete location that includes the city and state. Spans for some of those answers overlap. Limiting each token to membership in a single answer would lose possibilities that could support different questions.
The authors use the union of annotated answers on aligned passages to train and evaluate candidate selection. In the aligned training split, 29.2% of answers overlap, and 90.4% of passages have overlapping answers. In the aligned test split those figures are 33.3% of answers and 94.1% of passages. Overlap is thus common at the passage level even though many individual answers do not overlap. The answer selector needs to allow several start and end combinations to remain plausible at once.
The methods compared in the paper represent several views of what makes a plausible answer. Some apply linguistic rules and propose text such as named entities or noun chunks. The extended part-of-speech method proposes more categories, including adjectives, numbers, proper names and clauses. A learned RoBERTa Large span extractor ranks candidates and keeps a chosen number. The authors tune that number using the validation set, considering values in {1, 5, 10, 15, 20}. They also try using BART Large to generate answers, with a variant that produces answers on their own and a variant that produces answers and questions together. The answer-only approach gives them more control over the variety of answers they can pass to the next stage.
The authors’ span selector, self-attention labelling, is abbreviated SAL. It learns a separate yes-or-no judgment for each allowable span. It starts with token representations from RoBERTa Large and produces representations for the role of beginning an answer and the role of ending one. The representations interact using scaled dot-product attention, adapted from the Transformer. Where ordinary attention can express how strongly different tokens relate, SAL uses each score to assess whether a particular pair of boundaries forms a plausible answer candidate.
p(aᵢⱼ | c) = σ((∑ₖ₌₁ᵈ sᵢₖ eₖⱼ) / √d)
Here p(aᵢⱼ | c) is the estimated probability that the span aᵢⱼ is a valid candidate in passage context c. The vertical bar means that the estimate is conditional on that context. The indices i and j identify the start and end token positions. The value sᵢₖ is component k of the start representation at position i, and eₖⱼ is the corresponding component of the end representation at position j. The summation sign ∑ adds the componentwise products as k runs from 1 through d, the representation dimension. Dividing by √d, the square root of that dimension, scales the dot product. The function σ is the sigmoid, which turns the resulting score into a probability for that span.
The scores form a matrix in which a cell corresponds to a start and end pair. Because each cell receives its own sigmoid probability, two cells can both have high scores even when their spans share words. During training, the authors use binary cross-entropy, which penalizes assigning the wrong probability to each span’s yes-or-no target. They exclude impossible cells, such as those whose boundaries fall outside the passage or place the end before the start. They also mask spans beyond the permitted length. They give positive examples greater weight because plausible answer spans are scarce relative to the available boundary pairs.
At generation time, a reversible tokenizer lets the authors map the selected boundaries back to the text. A probability threshold of 0.5 is the ordinary candidate selection rule described for SAL. Raising the threshold requires more evidence for each candidate and can alter the balance between precision and recall. It also allows the number of candidates to vary by passage. A passage with many confident span scores can yield more questions than a passage with few such scores. The authors implement SAL with the Transformers library and apply it through fine-tuning RoBERTa Large on the aligned answer data.
Writing a question from the chosen span
The BART Large generator receives both the text and the candidate answer. It writes the question autoregressively, meaning that each new token depends on the input and the question tokens it has already produced. The authors train versions of this generator on different sources so that they can separate the effect of conventional questions from that of questions collected with an adversarial reader in the loop. The eventually selected source combines the small SQuAD subset with the pooled AdversarialQA training questions, referred to as D AQA.
The source of the questions matters because a generator can learn more than how to produce a sentence with a question mark. It can learn which relations people tend to ask about and what distinctions they expect the reader to make. A question can identify an actor by giving an episode title, by describing the actor’s role in bringing back a character, or by asking the reader to establish the order of two appearances. Each formulation can direct attention to different parts of the passage. The paper uses variations on such an example to show how the training source can change what BART asks even when the answer supplied to it is the same.
Decoding is the procedure for choosing a completed question from the generator’s possible continuations. Beam search maintains a set of promising partial questions and extends them as it goes. The authors also try a version that encourages diversity within the beam, and nucleus sampling, which samples from a high-probability group of continuations whose size can vary during generation. The pipeline used for the later experiments adopts standard beam search with a beam size of 5. It supplies one question for each selected answer. The beam size controls how many partial sequences are considered, while the number of questions retained controls how many training examples the pipeline gets from the answer.
Checking the answer and keeping useful disagreements
The pipeline can measure the span selector’s confidence in an answer and the question writer’s confidence in its own wording. These scores answer different questions. A span can be a plausible answer in the passage even when the generated question refers to a different span. A fluent question can receive a high generation score even when its expected answer has been attached incorrectly. The authors test both confidence signals, and also compare them with selection using influence functions. In the latter approach, the authors estimate the effect of including a training example on validation loss and discard examples estimated to raise it.
The roundtrip check starts with a proposed answer, generates a question, and asks a separate reader to recover the answer from the passage. The paper adapts this idea by using six fine-tuned QA readers with different random seeds. Their differences give the authors repeated judgments on a question even though the readers are trained for the same task. The strict roundtrip rule retains an example when all six recover the answer used to prompt the generator. The authors study agreement counts as an alternative to comparing confidence values across separately trained readers, whose confidence scores can be calibrated differently.
Self-training makes use of agreement even when it points away from the original answer. In the best-performing rule described in the paper, the original label is retained when at least five of the six readers agree with it. For the other cases, the rule can relabel a question when at least two readers agree among themselves. It discards cases for which no readers agree. This lets a question survive if the generator appears to have asked something answerable about the passage but chose a different subject or relation from what was intended. The answer selected by the readers is a training label based on their agreement.
The final filtering recipe combines self-training with an answer candidate confidence threshold of 0.5. Candidate confidence limits what the pipeline considers a suitable starting answer. Reader agreement tests the completed question against the passage and allows its label to change. In particular, a question can pass the candidate gate and still require relabelling. The two signals operate on different parts of the pipeline.
Teaching the downstream reader
The authors compare mixing the generated and human-written data with presenting them in successive stages. In the successive setup, the downstream reader first trains on synthetic examples and then continues on the human-written SQuAD and AdversarialQA data. That is the setup they use for their final augmented systems. The human-written examples still determine the reader’s final training stage. Synthetic examples add practice before it.
There are two augmented conditions. SynQA starts with 380,785 generated questions on the passages in the SQuAD training set. SynQA Ext has those questions and another 1.5M synthetic questions from the external Wikipedia passages. Each reader then continues training on SQuAD and AdversarialQA. The comparison conditions use either SQuAD alone or SQuAD and AdversarialQA together, with the combined human-written dataset shuffled for training. The authors select individual readers using a combined, equally weighted validation measure across a split of SQuAD and the AdversarialQA validation sets.
Experiments and results
What the scores measure
The fixed reading comprehension tests use exact match, abbreviated EM, and F1. Exact match checks whether a predicted answer matches the reference as a whole after normalization. F1 gives partial credit for overlapping answer tokens by balancing how much of the prediction is in the reference and how much of the reference is recovered. If a reader returns a person’s title along with the right name when only the name is expected, it can receive some token credit while missing exact match. The paper also uses F1 for the intrinsic answer selection task. In that case the objects of comparison are sets of distinct normalized candidate answers, with precision measuring agreement among proposed candidates and recall measuring coverage of the annotated candidates.
The principal comparisons use RoBERTa Large throughout. In the final fixed-test and development-set tables, the authors report a mean and standard deviation over 6 runs with different random seeds. Each training condition determines which examples the reader sees and, for the augmented systems, when it sees them. The AdversarialQA test subsets offer a comparison on questions already collected under adversarial conditions. CheckList asks how the readers respond to examples constructed to probe specific skills. MRQA applies the readers to development sets from a broad suite of reading comprehension datasets. The live experiment supplies a separate error measure from interaction with workers.
Fixed adversarial tests
Across the AdversarialQA test subsets, the strongest human-only comparison is the reader that uses both SQuAD and AdversarialQA. Its F1 scores are 73.9 on D BiDAF, 64.8 on D BERT, and 53.1 on D RoBERTa. The SQuAD-only baseline scores 64.2, 43.3, and 26.4 F1 on those respective test sets. The difference between the baselines shows how much the human adversarial questions already contribute. The synthetic training stage is evaluated in addition to that contribution.
SynQA reaches 76.0 F1 on D BiDAF, 68.3 on D BERT, and 58.0 on D RoBERTa. SynQA Ext reaches 76.2, 68.9, and 57.8 F1 on the same test subsets. The stronger augmented result varies by split. The paper reports gains over the human-only baseline of 2.3 F1 on D BiDAF, 4.1 on D BERT, and 4.9 on D RoBERTa, and describes the overall advance on AdversarialQA as 3.7 F1. The numbers characterize the respective fixed test sets. In particular, the D RoBERTa gain concerns questions collected with that system as the original adversary.
Mean F1 on the AdversarialQA D RoBERTa test split
Both synthetic training conditions improve on the combined human-data baseline, with SynQA leading this split.
The numbers
| System or setting | F1 |
|---|---|
| SQuAD only | 26.4 |
| SQuAD and AdversarialQA | 53.1 |
| SynQA (this paper) | 58.0 |
| SynQA Ext | 57.8 |
On D RoBERTa, the exact match results follow the same broad pattern. The combined human-data baseline reaches 41.7 EM, compared with 46.7 for SynQA and 46.8 for SynQA Ext. Exact match and F1 can rank the augmented variants differently on that split, since a system can improve the frequency of completely correct spans without gaining the most token overlap overall. The standard deviations for the corresponding F1 means are 0.8 for the combined baseline, 1.8 for SynQA, and 0.8 for SynQA Ext. Their closeness on the mean scores gives little basis for picking one augmented variant as the universally stronger reader.
The development results show the same overall advantage for augmentation. For instance, on D BERT dev, the combined human-data baseline reaches 60.4 F1, SynQA reaches 65.8, and SynQA Ext reaches 65.5. Those are validation-set measurements. The test-set scores give the comparison on held-out questions after validation has been used in selecting readers.
The authors also take the synthetic data prepared using RoBERTa readers and use it to train ELECTRA Large. For that architecture, adding the synthetic stage raises D RoBERTa test F1 from 58.0 to 61.0 and D BERT test F1 from 68.1 to 70.3. On D SQuAD test, the ELECTRA comparison gives 88.5 F1 with human-written data and 88.6 with augmentation. The authors report a single initialization for ELECTRA because of computational cost. The experiment shows that the particular synthetic dataset can be useful to a different downstream architecture, with less evidence about run-to-run variation than in the main comparison.
Behavioral tests
CheckList groups test cases by the behavior expected of a reader. A test can distinguish an occupation from a nationality, check whether a pronoun refers to the right person, or ask whether a harmless change in wording leaves the answer stable. These probes are narrower than a dataset-wide average. They can identify what kind of distinction was learned and show where a reader with a higher aggregate score still fails.
The human-only addition of AdversarialQA accounts for much of the improvement in some skills. The macro-averaged failure rate across the CheckList suite is 34.3% for the SQuAD-only reader and 22.4% for the reader trained on both human-written datasets. It is 20.7% for SynQA and 19.3% for SynQA Ext. The paper reports the gains from adding synthetic data as 1.7% for SynQA and 3.1% for SynQA Ext. Here a lower score means fewer failures across the behavioral tests.
For the profession-versus-nationality test, the reader must return the attribute the question requests, even when a passage places both attributes together in a phrase. The mean failure rate for that test is 68.8 with SQuAD alone, 37.5 with both human datasets, 23.7 for SynQA, and 5.9 for SynQA Ext. For the possessive-pronoun test involving his and her, SynQA Ext reaches a mean failure rate of 8.7, compared with 33.4 for the combined human-data baseline. This is a test of coreference resolution because the reader has to attach the possessive to the right person before choosing the span.
Some other skills show a different pattern. The former and latter test has a failure rate of 94.7 for the combined human-data baseline and 100.0 for SynQA Ext. The subject-versus-object test has a rate of 29.9 for the combined baseline, 42.0 for SynQA, and 18.3 for SynQA Ext. These examples show what the behavioral suite adds to aggregate benchmark scores. Additional practice may help a reader track roles in some settings while leaving a particular expression or construction difficult. The paper also reports substantial differences between random initializations for some skills.
Transfer across reading comprehension datasets
The authors use the development sets from the MRQA shared task to test generalization. The original task groups the datasets into in-domain and out-of-domain sets. Bartolo and colleagues preserve those groupings in their report. Their readers use the training conditions defined in this paper, and the MRQA datasets serve as evaluation material. The shared-task submissions used a different training setup, so its scores answer a different comparison.
The paper finds improvements from synthetic augmentation on nine of the twelve development tasks. SearchQA is the largest gain highlighted in the text, at 8.8 F1. NewsQA development F1 is 58.0 for the combined human-data reader, 60.0 for SynQA, and 63.1 for SynQA Ext. On DROP development data, the corresponding means are 68.4, 72.5, and 73.0 F1. The MRQA SQuAD development material also shows strong performance after augmentation. Both synthetic variants reach 94.3 F1 there, compared with 90.2 for the combined human-data reader. That MRQA row and the held-out D SQuAD test split used for the generation experiments are reported separately in the paper.
Mean F1 on the MRQA SearchQA development set
Both augmented readers improve on the human-data baselines, with the external-passage variant scoring highest.
The numbers
| System or setting | F1 |
|---|---|
| SQuAD only | 20.8 |
| SQuAD and AdversarialQA | 25.5 |
| SynQA | 29.5 |
| SynQA Ext (this paper) | 34.3 |
The external pool is helpful in several places, but the development results give clear counterexamples to a uniform improvement with more synthetic data. On TriviaQA, the combined baseline reaches 70.8 F1, compared with 70.2 for SynQA and 65.5 for SynQA Ext. On DuoRC, the combined baseline reaches 62.2 F1, SynQA reaches 62.1, and SynQA Ext reaches 58.0. Across the in-domain tasks, the paper reports average F1 of 64.2 for the combined baseline, 66.3 for SynQA, and 66.9 for SynQA Ext. Across the out-of-domain tasks, the corresponding averages are 64.3, 65.8, and 65.1. The aggregate benefit therefore coexists with dataset-specific reversals.
The live challenge and its metric
For the adversarial human evaluation, the authors assign workers to one of the four final systems using a hash of the worker identifier. Workers train on the interface through onboarding and then ask questions of their assigned system, whose identity is hidden. The interaction can proceed even when a worker fails to beat it. Workers receive $0.20 per question and a $0.50 bonus for each validated question that fools the system. The base payment is the same across conditions. Each worker can write at most 50 questions, limiting how much of the material can come from the most prolific participants.
The study checks errors for validity because a system can fail for reasons other than poor reading. A question might lack a defensible answer, for instance, or the submitted span might not answer it. An expert validates all attempts that appear to fool the reader. Questions the reader answers correctly are ordinarily counted without individual review. The authors support that choice with a manual check of 50 correctly answered examples, all judged valid. The validated model error rate, vMER, is the share of counted valid examples on which the reader gives the wrong answer.
A pooled error rate gives greater influence to workers who write more questions. The paper’s primary live metric, the macro-averaged validated model error rate, first calculates a rate for each worker and then averages the rates.
mvMER = (1 / nₐₙₙ) × ∑ᵢ₌₁ⁿᵃⁿⁿ (validated model errorsᵢ / number of examplesᵢ)
The name mvMER refers to the macro-averaged rate. The quantity nₐₙₙ is the number of annotators in the condition, and i identifies an annotator. The sum ∑ runs from the first annotator, indexed by 1, through nₐₙₙ. For each annotator, validated model errorsᵢ counts the incorrect answers accepted on review as genuine failures, and number of examplesᵢ is the number of that annotator’s examples counted for the rate. Each division inside the sum gives an individual error proportion. The multiplier 1 / nₐₙₙ gives each worker the same weight, and the reported rate is expressed as a percentage.
Macro-averaged validated error rate in the live adversarial evaluation
SynQA is the hardest reader for the participating workers to fool under the study’s rules.
The numbers
| System or setting | mvMER % |
|---|---|
| SQuAD only | 20.7 |
| SQuAD and AdversarialQA | 17.6 |
| SynQA (this paper) | 8.8 |
| SynQA Ext | 12.3 |
The pooled vMER scores also favor the augmented readers. The combined human-data baseline has a pooled rate of 15.5%, SynQA reaches 6.7%, and SynQA Ext reaches 9.2%. The corresponding conditions involve 40, 32, and 30 annotators, who submitted 798, 820, and 769 question-answer pairs, respectively. The pooled and worker-averaged rates answer distinct questions about the same experiment. One gives every counted example equal influence. The other gives every worker equal influence, even if the worker has written relatively few questions.
The paper gives examples of valid questions that still defeated the augmented readers. In one, a passage about the Eleventh Doctor offers dates for different appearances and descriptions. The question asks for the later appearance of interest, and SynQA selects 2010 where the accepted answer is 2013. Another example asks which of two roles coordinates a project when the other role is absent. SynQA Ext returns the architect’s client instead of the architect. In both cases the passage contains a plausible distractor. The live evaluation shows that augmentation makes such failures harder to elicit on average while still leaving workers able to find them.
What the ablations show
Finding a wider range of usable spans
The authors test candidate selection both directly and by training readers on the resulting synthetic data. In the aligned answer selection test, the extended part-of-speech method reaches 65.2% recall and 12.7% precision. Its broad candidate list finds many annotated answers while also proposing many spans outside the recorded set. Named entities reach 30.3% precision and 30.0% recall. That approach proposes a narrower category of phrases. SAL reaches 28.6% precision, 44.2% recall, and 33.7% F1, the strongest F1 in that comparison. These figures measure reproduction of annotated candidates. The same passage can support plausible questions about spans absent from the annotations.
For the downstream comparison, the authors hold the question generator fixed and change the answer selector. The combination with SAL yields 566,730 synthetic pairs, and the corresponding reader reaches 59.3 F1 on D BiDAF test. The span extraction alternative yields 377,774 pairs and gives 53.9 F1 on that split. The extended part-of-speech method yields 999,034 pairs and gives 46.9 F1. The largest pool in this comparison provides weaker practice for the downstream reader. A broad inventory of answer candidates is useful only to the extent that the spans support informative and reliable questions.
The controlled-size experiment tests whether SAL’s advantage persists when each candidate method contributes the same number of examples. Each training set in that comparison has 87,000 pairs. On D RoBERTa test, the reader trained with SAL-selected answers reaches 33.5 F1, compared with 27.1 for spans from the conventional extractor. In the SAL threshold condition it reaches 33.9. The thresholded setting scores 58.6 F1 on D BiDAF test versus 55.2 for ordinary SAL, while on D BERT it scores 43.5 versus 45.6 for ordinary SAL. The controlled comparison supports the use of SAL, while the preferred threshold setting depends on which test set is emphasized.
The authors also let BART generate both the answer and the question in a single pipeline stage. They vary the training source, the number of generations and the decoding settings. The strongest end-to-end attempt reaches 77.9 F1 on D SQuAD test and 28.3 F1 on D RoBERTa test. Those results are competitive with some of the candidate baselines, while the pipeline using SAL reaches 82.6 and 32.8 F1 on those test sets in the ordinary SAL condition. The authors observe that the joint generator tends to repeat similar answers. A separate selector gives the pipeline more control over which parts of the passage receive questions.
What the question writer learns from its source
The question-source comparison deliberately starts from human-supplied answers so that span selection cannot explain the differences. The generated training collections have 87,598 examples each. A reader trained on questions from the generator that saw the combined SQuAD and AdversarialQA sources reaches 84.7 F1 on D SQuAD test, 58.8 on D BiDAF, and 44.1 on D BERT. The generator trained on the small SQuAD subset alone produces reader scores of 82.6, 52.1, and 32.3 F1 on those test sets. On D RoBERTa, the generator trained on pooled adversarial questions gives 33.3 F1, compared with 28.8 for the combined generator. This subset shows why the choice of source is a decision about the balance across tests.
The manual analysis inspects a random sample of 30 questions per generator setting. The reviewers look for a question answerable from a continuous span in the passage, with a single defensible answer or one clearly preferred answer. A person should be able to recover it with adequate time. For this analysis, a question is fully valid when that answer also corresponds to the span used during generation. These criteria distinguish a problem with the question itself from a mismatch between a usable question and its proposed label.
The generator trained on the combined sources has 93.3% valid questions in the sample and 6.7% answer mismatches. The SQuAD-only generator has 90.0% valid questions and 10.0% mismatches. The generator trained on D BiDAF has 70.0% valid questions and 30.0% mismatches. The sample contains well-formed questions that target a different answer from the original span. In the passage about actors who played the Master, the generator can shift from asking who brought the character back to asking about succession in a different role. A reviewer can understand the resulting question while still rejecting the proposed label. Such examples give a concrete reason to try relabelling.
The studies of decoding yield smaller and less consistent differences. With the designated question writer and human answers, nucleus sampling at top p = 0.75 reaches 83.2 F1 on D SQuAD test and 31.9 on D RoBERTa test. Beam search with a beam size of 5 reaches 83.0 and 30.1 F1 on those tests. The authors find beam search roughly twice as efficient with the same computing resources and use it for the subsequent experiments. They also find that retaining multiple questions from a single answer did not improve downstream performance in their trials. In these comparisons, diversity in the selected spans and in the generator’s training source matters more consistently than keeping extra decodings of the same requested answer.
Keeping a question whose label can be repaired
Filtering by span confidence, by generator confidence, or by estimated influence on validation loss yields weaker downstream results than the best methods that use reader agreement. On D RoBERTa test, the strict ensemble roundtrip condition reaches 40.3 F1 with 250,188 pairs. Self-training reaches 44.6 F1 with 528,694 pairs. The combined candidate-confidence and self-training setting reaches 45.9 F1 with 380,785 pairs. It also reaches 70.0 F1 on D BiDAF test and 58.7 on D BERT test. In this experiment, all of these readers train solely on the synthetic output of the corresponding filter.
Since the filters retain varying amounts of material, the authors repeat the comparison with 15,000 pairs per method. On D RoBERTa test, strict roundtrip consistency gives 31.0 F1, self-training gives 33.0, and the combination with candidate confidence gives 34.9. The combined filter also leads on D BiDAF in this comparison at 60.6 F1. On D BERT, self-training alone reaches 45.5 F1 and the combined condition reaches 43.4. The matched-size comparison supports the value of agreement-based relabelling without requiring the same filtering recipe to lead on every subset.
The authors also investigate how best to present the generated data to the final reader. They describe the improvement from synthetic-first training followed by human data as marginal relative to mixing the sources. The larger differences concern what the generator produces and how its labels are checked. The best large synthetic-only collection can approach the human-data reader on D SQuAD, yet the paper reports remaining deficits of 2.2 F1 on D BiDAF, 6.6 on D BERT, and 8.3 on D RoBERTa in that synthetic-only comparison. The augmentation results concern a recipe that gives the reader both kinds of training material.
Limitations
Limits identified by the authors
The paper studies English passages and questions in a bounded extractive task. Each expected answer is a span in a short passage. That structure enables strong supervision because the pipeline can both propose an answer and ask independent readers to locate it. The authors point to longer or otherwise expanded tasks as future directions, particularly as finding failures in short-passage QA becomes more effortful for workers. The experiments establish the method within the extractive setup. Tasks that require composing an answer, searching other sources, or responding without a suitable span would change both generation and validation.
The authors describe the efficiency of synthetic generation and manual collection as difficult to compare directly. Their curve for RoBERTa Large begins to flatten around 5-6k manually collected adversarial examples. They report a gain of 0.5 F1 on the overall AdversarialQA test set for training on 10k manual examples instead of 8k. This is a comparison over the authors’ existing data. The synthetic stage adds training material without commissioning additional human labels for each generated pair, but it still requires passage selection, question generation, verification by several readers and downstream training. The paper gives a basis for a claim about annotation effort. It leaves the full economic comparison open.
The authors also note substantial variation in some CheckList scores across random initializations. A behavior that improves on average can remain unstable between trained readers. The ELECTRA Large results broaden the architectural comparison but come from a single initialization, so the repeatability measured for the primary RoBERTa readers is unavailable for that experiment. The paper likewise leaves exploration of more diverse decoding for the end-to-end generator to future work.
The MRQA results belong to the paper’s particular training arrangement. The authors reuse MRQA development data for evaluation, whereas the shared-task submissions trained on its designated in-domain datasets. The measured transfer describes what happens when the authors’ SQuAD and AdversarialQA recipe is applied to those development sets. This also helps explain why the paper reports both dataset-specific outcomes and the group averages. The ability to handle a different collection of reading questions depends on the collection.
Limits visible in the experimental setup
Agreement among readers offers a scalable basis for assigning labels. The six readers nonetheless share the same task and broad training setup, so they can agree for the same mistaken reason. Conversely, a valid question that exposes a common weakness among the readers may produce scattered predictions and be discarded. The paper shows that agreement is useful for constructing training data through downstream tests and a manual sample of generated questions. Its method does not establish that each retained or changed label is correct. The manually examined samples are also drawn from particular generator settings, so their validity percentages describe those samples.
The alignment of SQuAD and AdversarialQA is a practical advantage for building the span-selection datasets. It also means the study starts with ordinary and adversarial questions on a common family of passages. Much of the generation stays within SQuAD’s training passages. The external condition broadens that material with more Wikipedia passages and removes direct overlaps detected by an 8-gram comparison. The resulting evidence supports transfer from these sources to the tested reading comprehension sets. It leaves open how well the same pipeline would learn from different annotation conventions, other languages, or passages whose useful answers have different shapes.
The human trial measures resistance to a particular group of people working under particular conditions. Workers are recruited through Amazon Mechanical Turk, meet the study’s experience and approval requirements, complete onboarding and receive a bonus for validated failures. They see assigned passages and the reader’s responses under a cap on submissions. Random allocation and a hidden system identity help support comparison within that setting. The observed error rates still reflect a combination of reader behavior, workers’ persistence, the interface, the passages and the incentive. Equal weighting across workers addresses unequal output volume while preserving the influence of those features of the experiment.
The validation policy is asymmetric because the experts review apparent failures and generally accept apparent successes. The checked sample of 50 successes supports that choice for the study. A question that seems to be answered correctly yet is itself ambiguous could still be counted among the successes outside the checked sample. The live metric is best read alongside that policy and the worker-level averaging rule. It estimates the rate at which participating workers find failures that the protocol accepts as valid.
Finally, the larger external data condition changes the amount and source of synthetic practice together. Its stronger results on some MRQA and CheckList tests coexist with a higher live error rate than SynQA. That contrast establishes a difference between the two tested recipes. It does not isolate additional volume, passage selection or the mix of generated questions as the cause. The experiments give separate evidence about fixed tests, behavioral skills, transfer and live challenges. A claim about robustness is most precise when it says which of those measurements improved.
What came after
The later papers that cite this work pursue several related problems. Some put a system under pressure by generating or collecting challenges. Others use generated data to address weaknesses in training collections. The connection is clearest when the task and the purpose of the new examples are specified. Bartolo and colleagues use human challenges to seed synthetic training examples, verify the proposed answers with readers, and then assess the resulting reader against people. Later studies also cite the work when they focus on one of those activities in a different task.
Red Teaming Language Models with Language Models uses language models to produce challenges for language models. The shared idea is to use generation to expand the pool of inputs that can expose failures. The objective in Bartolo and colleagues’ pipeline is to obtain questions with usable answer spans for training. In the red-teaming work, as its title indicates, the generated inputs serve the investigation of the system being tested. Red Teaming Language Models to Reduce Harms studies methods and scaling behaviors for red teaming with harm reduction as the goal. The criterion for a useful challenge shifts from an incorrect reading comprehension span to behavior relevant to the harms under investigation.
In dataset creation, WANLI brings workers and AI together to build a natural language inference dataset. The training example in that task concerns a relation between statements. What carries across from reading comprehension is the interest in combining human judgment and automatic generation to obtain examples worth keeping. Generating Data to Mitigate Spurious Correlations in Natural Language Inference Datasets applies generation to a more specific dataset problem, reducing the influence of misleading statistical patterns. That aim returns to one of the motivations of the QA paper. New examples can change which patterns are rewarded during training.
Two later studies bring generation back to question answering under limited supervision. QAmeleon addresses multilingual QA with a small example budget, shifting attention from scarce adversarial annotation to scarce examples for a multilingual task. Can LLMs Augment Low-Resource Reading Comprehension Datasets? asks directly about using language models to augment reading comprehension datasets in low-resource settings. Both examine the value of generation when the human-labelled starting point is limited. The English adversarial results provide a related case in which the value of generated data depends on whether it supplies the kind of practice the target task requires.
Other citing work changes what makes a question challenging. A Lightweight Method to Generate Unanswerable Questions in English makes unanswerability the aim of generation. Bartolo and colleagues need an answerable question for each passage-and-span example, so a missing answer is grounds for exclusion under their validity criteria. The later task makes such a question valuable for measuring whether a system can recognize the absence of an answer. Cancer-Myth evaluates responses to patient questions with false presuppositions. There the difficulty lies in how the system handles a premise built into the question. These directions extend the investigation of difficult questions to cases where selecting a span would leave the central problem unresolved.
Cite
Cite as Max Bartolo, Tristan Thrush, Robin Jia, Sebastian Riedel, Pontus Stenetorp and Douwe Kiela. 2021. Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{bartolo2021improving,
title = {{Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation}},
author = {Max Bartolo, Tristan Thrush, Robin Jia, Sebastian Riedel, Pontus Stenetorp and Douwe Kiela},
booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
year = {2021},
doi = {10.18653/v1/2021.emnlp-main.696},
url = {https://doi.org/10.18653/v1/2021.emnlp-main.696}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bartolo-2021-improving-question-answering-model-robustness/