Towards Debiasing Fact Verification Models
Fact verification requires validating a claim in the context of evidence. We show, however, that in the popular FEVER dataset this might not necessarily be the case. Claim-only classifiers perform competitively with top evidence-aware models. In this paper, we investigate the cause of this phenomenon, identifying strong cues for predicting labels solely based on the claim, without considering any evidence. We create an evaluation set that avoids those idiosyncrasies. The performance of FEVER-trained models significantly drops when evaluated on this test set. Therefore, we introduce a regularization method which alleviates the effect of bias in the training data, obtaining improvements on the newly created test set. This work is a step towards a more sound evaluation of reasoning capabilities in fact verification models.111Data and code: https://github.com/TalSchuster/FeverSymmetric
Creating quality datasets is essential for expanding NLP functionalities to new tasks. Today, such datasets are often constructed using crowdsourcing mechanisms. Prior research has demonstrated that artifacts of this data collection method often introduce idiosyncratic biases that impact performance in unexpected ways (Poliak et al., 2018; Gururangan et al., 2018). In this paper, we explore this issue using the FEVER dataset, designed for fact verification Thorne et al. (2018).
The task of fact verification involves assessing claim validity in the context of evidence, which can either support, refute or contain not enough information. Figure 1(A) shows an example of a FEVER claim and evidence. While validity of some claims may be asserted in isolation (e.g. through common sense knowledge), contextual verification is key for a fact-checking task (Alhindi et al., 2018). Datasets should ideally evaluate this ability. To assess whether this is the case for FEVER, we train a claim-only BERT Devlin et al. (2019) model that classifies each claim on its own, without associated evidence. The resulting system achieves 61.7%, far above the majority baseline (33.3%).
Our analysis of the data demonstrates that this unexpectedly high performance is due to idiosyncrasies of the dataset construction. For instance, in section 2 we show that the presence of negation phrasing highly correlates with the Refutes label, independently of provided evidence.
To address this concern, we propose a mechanism for avoiding bias in the test set construction. We create a Symmetric Test Set where, for each claim-evidence pair, we manually generate a synthetic pair that holds the same relation (e.g. Supports or Refutes) but expressing a different, contrary, fact. In addition, we ensure that in the new pair, each sentence satisfies the inverse relation with the original pair’s sentence. This process is illustrated in Figure 1, where an original Refutes pair is extended with a synthetic Refutes pair. The new evidence is constrained to support the original claim, and the new claim is supported by the original evidence. In this way, we arrive at three new pairs that complete the symmetry.
Determining veracity with the claim alone in this setting would be equivalent to a random guess. Unsurprisingly, the performance of FEVER-trained models drop significantly on this test set, despite having complete vocabulary overlap with the original dataset. For instance, the leading evidence-aware system in the FEVER Shared Task, the NSMN classifier by Nie et al. (2019)222https://github.com/easonnie/combine-FEVER-NSMN, achieves only 58.7% accuracy on the symmetric test set compared to 81.8% on the original dataset.
While this new test set highlights the aforementioned problem, other studies have shown that FEVER is not the only biased dataset (Poliak et al., 2018; Gururangan et al., 2018). A potential solution which may be applied also in other tasks is therefore to develop an algorithm that alleviates such bias in the training data. We introduce a new regularization procedure to downweigh the give-away phrases that cause the bias.
The contributions of this paper are threefold:
We show that inherent bias in FEVER dataset interferes with context-based fact-checking.
We introduce a method for constructing an evaluation set that explicitly tests a model’s ability to validate claims in context.
We propose a new regularization mechanism that improves generalization in the presence of the aforementioned bias.
2 Motivation and Analysis
In this section, we quantify the observed bias and explore the factors causing it.
Claim-only aware classifiers can significantly outperform all baselines described by Thorne et al. (2018).333We evaluate on the development set as the test set is hidden. Hyper-parameter fine-tuning is performed on a 20% split of the training set, which is finally joined to the remaining 80% for training the best setting. See Appendix B.1. BERT, for instance, attains an accuracy of 61.7%, which is just 8% behind NSMN. We hypothesize that these results are due to two factors: (1) idiosyncrasies distorting performance and (2) word embeddings revealing world knowledge.
Idiosyncrasies Distorting Performance
We investigate the correlation between phrases in the claims and the labels. In particular, we look at the n-gram distribution in the training set. We use Local Mutual Information (LMI) (Evert, 2005) to capture high frequency n-grams that are highly correlated with a particular label, as opposed to that is biased towards low frequency n-grams. LMI between and is defined as follows:
where is estimated by , by , by and is the number of occurrences of all n-grams in the dataset.
Table 1 shows that the top LMI-ranked n-grams that are highly correlated with the Refutes class in the training set exhibit a similar correlation in the development set. Most of the n-grams express strong negations, which, in hindsight, is not surprising as these idiosyncrasies are induced by the way annotators altered the original claims to generate fake claims.
Word embeddings encompass world knowledge, which might augment the performance of claim-only classifiers. To factor out the contribution of world knowledge, we trained two versions of claim-only InferSent Poliak et al. (2018) on the FEVER claims: one with GloVe embeddings Pennington et al. (2014) and the other with random embeddings.444We use InferSent because BERT, being pretrained on Wikipedia, comprises world knowledge Talmor et al. (2019). The performance with random embeddings was 54.1%, compared to 57.3% with GloVe, which is still far above the majority baseline (33.3%). We conjecture that world knowledge is not the main reason for the success of the claim-only classifier.
3 Towards Unbiased Evaluation
Based on the analysis above, we conclude that an unbiased verification dataset should exclude ‘give-away’ phrases in one of its inputs and also not allow the system to solely rely on world knowledge. The dataset should enforce models to validate the claim with respect to the retrieved evidence. Particularly, the truth of some claims might change as the evidence varies over time.
For example, the claim “Halep failed to ever win a Wimbledon title” was correct until July 19. A fact-checking system that retrieves information from Halep’s Wikipedia page should modify its answer to “false” after the update that includes information about her 2019 win.
Towards this goal, we create a Symmetric Test Set. For an original claim-evidence pair, we manually generate a synthetic pair that holds the same relation (i.e. Supports or Refutes) while expressing a fact that contradicts the original sentences. Combining the Original and Generated pairs, we obtain two new cross pairs that hold the inverse relations (see Figure 1). Examples of generated sentences are provided in Table 2.
This new test set completely eliminates the ability of models to rely on cues from claims. Considering the two labels of this test set555Not Enough Info cases are easy to generate so we focus on the two other labels., the probability of a label given the existence of any n-gram in the claim or in the evidence is , by construction.
Also, as the example in Figure 1 demonstrates, in order to perform well on this dataset, a fact verification classifier may still take advantage of world knowledge (e.g. geographical locations), but reasoning should only be with respect to the context.
|He played for the Giants and no other team.||Refutes|
4 Towards Unbiased Training
Creating a large symmetric dataset for training is outside the scope of this paper as it would be too expensive. Instead, we propose an algorithmic solution to alleviate the bias introduced by ‘give-away’ n-grams present in the claims. We re-weight the instances in the dataset to flatten the correlation of claim n-grams with respect to the labels. Specifically, for ‘give-away’ phrases of a particular label, we increase the importance of claims with different labels containing those phrases.
We assign an additional (positive) balancing weight to each training example , determined by the words in the claim.
Bias in the Re-Weighted Dataset
For each n-gram in the vocabulary of the claims, we define the bias towards class to be of the form:
where and are the indicators for being present in the claim from and label being of class , respectively.
Optimization of the Overall Bias
Finding the values which minimize the bias leads us to solving the following objective:
Re-Weighted Training Objective
We calculate the values separately from the model optimization, as a pre-processing step, by optimizing Eq. 3. Using these values, the training objective is re-weighted from the standard to
This re-weighting is independent of the model architecture and can be easily added to any objective, similar to Jiang and Nachum (2019) where they learn instance weights to address labeling bias in datasets.
We use the Symmetric Test Set to (1) investigate whether top performing sequence classification models trained on the FEVER dataset are actually verifying claims in the context of evidence; and (2) measure the impact of the re-weighting method described in section 4 over a classifier.
To achieve the first goal, we use three classifiers. The first is a pre-trained, current FEVER state-of-the-art classifier, NSMN (Nie et al., 2019) which is a variation of the ESIM Chen et al. (2017) model, with a number of additional features, such as contextual word embeddings (Peters et al., 2018). In addition, we train our own ESIM model with GloVe embeddings, using the available code from Gardner et al. (2017). The third is a BERT classifier666https://github.com/huggingface/pytorch-pretrained-BERT that we fine-tune for 3 epochs to classify the relation based on the concatenation of the claim and evidence (with a delimiter token). To measure the impact of our regularization method, we also train the ESIM and BERT models with the re-weighting method.
Symmetric Test Set
The full Symmetric Test Set consists of 956 claim-evidence pairs, created following the procedure described in section 3. The new pairs originated from 99 Supports and 140 Refutes pairs that were randomly picked from the cases which NSMN correctly predicts.777Due to our focus on the performance drop with respect to the newly generated pairs rather than on the intention of multiplying the difficulties for the top performing model. After its generation, we asked two subjects to annotate randomly sampled 285 claim-evidence pairs (i.e. 30% of the total pairs in Symmetric Test Set) with one label among Supports, Refutes or Not Enough Info, flagging non-grammatical cases. They agreed with the dataset labels in 94% of cases, attaining a Cohen of 0.88 (Cohen, 1960). Typos and small grammatical errors were reported in 2% of the cases. Given the small size of this dataset, we only use it as a test set.
Table 3 summarizes the performance of the three models on the Supports and Refutes pairs from the FEVER Dev set and on the created Symmetric Test Set pairs. All models perform relatively well on FEVER Dev but achieve less than 60% accuracy on the synthetic ones. We conjecture that the drop in performance is due to training data bias that is also observed in the development set (see section 2) but not in the generated symmetric cases.
Our re-weighting method (section 4) helps to reduce the bias in the claims. In Table 4, we revisit the give-away bigrams from Table 1. Applying the weights obtained by optimizing Eq. 3, the weighted distribution of these phrases being associated with a specific label in the training set is now roughly uniform.
The re-weighting method increases the accuracy of the ESIM and BERT models by an absolute 3.4% and 3.3% respectively. One can notice that this improvement comes at a cost in the accuracy over the FEVER Dev pairs. Again, this can be explained by the bias in the training data that translates to the development set, allowing FEVER-trained models to leverage it. Applying the regularization method, using the same training data, helps to train a more robust model that performs better on our test set, where verification in context is a key requirement.
6 Related Work
Large scale datasets are fraught with give-away phrases McCoy et al. (2019); Niven and Kao (2019). Crowd workers tend to adopt heuristics when creating examples, introducing bias in the dataset. In SNLI (Stanford Natural Language Inference) Bowman et al. (2015), entailment based solely on the hypothesis forms a very strong baseline Poliak et al. (2018); Gururangan et al. (2018).
Similarly, as shown by Kaushik and Lipton (2018), reading comprehension models that rely only on the question (or only on the passage referred to by the question) perform exceedingly well on several popular datasets Weston et al. (2016); Onishi et al. (2016); Hill et al. (2016). To address deficiencies in the SQuAD dataset (Jia and Liang, 2017), researchers have proposed approaches for augmenting the existing dataset (Rajpurkar et al., 2018). In most cases, these augmentations are done manually, and involve constructing challenging examples for existing systems.
This paper demonstrates that the FEVER dataset contains idiosyncrasies that can be easily exploited by fact-checking classifiers to obtain high classification accuracies. Evaluating the claim-evidence reasoning of these models necessitates unbiased datasets. Therefore, we suggest a way to turn the evaluation FEVER pairs into symmetric combinations for which a decision that is solely based on the claim is equivalent to a random guess. Tested on these pairs, FEVER-trained models show degraded performance. To address this problem, we propose a simple method that supports a more robust generalization in the presence of bias.
Moving forward, we suggest using our symmetric dataset in addition to the current retrieval-based FEVER evaluation pipeline. This way, models could be tested both for their evidence retrieval and classification accuracy and for performing the reasoning with respect to the evidence.
We thank the MIT NLP group and the reviewers for their helpful discussion and comments. This work is supported by DSO grant DSOCL18002.
- Where is your evidence: improving fact-checking by justification modeling. In Proceedings of the First Workshop on Fact Extraction and VERification (FEVER), Brussels, Belgium, pp. 85–90. External Links: Cited by: §1.
- A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pp. 632–642. External Links: Cited by: §6.
- Enhanced lstm for natural language inference. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1657–1668. External Links: Cited by: §5.
- A coefficient of agreement for nominal scales. Educational and psychological measurement 20 (1), pp. 37–46. Cited by: §5.
- BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, pp. 4171–4186. External Links: Cited by: §1.
- The statistics of word cooccurrences: word pairs and collocations. Cited by: §2.
- AllenNLP: a deep semantic natural language processing platform. External Links: Cited by: §5.
- Annotation artifacts in natural language inference data. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pp. 107–112. External Links: Cited by: §1, §1, §6.
- The goldilocks principle: reading children’s books with explicit memory representations. In International Conference on Learning Representations 2016, External Links: Cited by: §6.
- Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 2021–2031. External Links: Cited by: §6.
- Identifying and correcting label bias in machine learning. arXiv preprint arXiv:1901.04966. External Links: Cited by: §4.
- How much reading does reading comprehension require? a critical investigation of popular benchmarks. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 5010–5015. External Links: Cited by: §6.
- Right for the wrong reasons: diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, pp. 3428–3448. External Links: Cited by: §6.
- Combining fact extraction and verification with neural semantic matching networks. In Association for the Advancement of Artificial Intelligence, External Links: Cited by: §1, §5.
- Probing neural network comprehension of natural language arguments. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, pp. 4658–4664. External Links: Cited by: §6.
- Who did what: A large-scale person-centered cloze dataset. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2230–2235. External Links: Cited by: §6.
- Glove: global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing, pp. 1532–1543. External Links: Cited by: §2.
- Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pp. 2227–2237. External Links: Cited by: §5.
- Hypothesis only baselines in natural language inference. In Proceedings of the Seventh Joint Conference on Lexical and Computational Semantics, New Orleans, Louisiana, pp. 180–191. External Links: Cited by: §1, §1, §2, §6.
- Know what you don’t know: unanswerable questions for squad. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 784–789. External Links: Cited by: §6.
- CommonsenseQA: a question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, pp. 4149–4158. External Links: Cited by: footnote 4.
- FEVER: a large-scale dataset for fact extraction and verification. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pp. 809–819. External Links: Cited by: §1, §2.
- Towards ai-complete question answering: a set of prerequisite toy tasks. In International Conference on Learning Representations, External Links: Cited by: §6.
Appendix A Claim-only vs. Evidence-aware Classification
Table 5 shows the performance of the claim-only BERT classifier and numerous evidence-aware baseline in a three-class (Support, Refute, Not Enough Info) setting.
|Claim-Only Aware Classifiers|
|InferSent (random emb.)||54.1|
Appendix B Additional Analysis
b.1 Fever Split
The split of the public FEVER dataset is described in Table 6.
|Split||Support||Refute||Not Enough Info|
b.2 Top LMI-ranked Bigrams in Train and Development Set
Table 7 and Table 8 summarize the top 10 bigrams for Support and Not Enough Info. The correlation between the biased phrases in the two dataset splits is not as strong as in the Refute label, presented in the paper. However, one can notice that some of the biased bigrams in the training set, such as “least one” and “starred movie”, translate to cues that can help in predictions over the development set. Bigrams are chosen for this exploratory analysis as they yield more comprehensible phrases.
We calculated the Pearson correlation score between ) for both train and development set. Figure 2 shows curves that start from very high correlations (i.e. 0.8 to 0.5) for the top -ranked 50-100 bigrams of Refute and Support (the curve for Not Enough Info is less stable), dropping at around rank 400, supporting the existence of ‘give-away-bigrams’ and that they are common in both training and development set.
b.3 Top Bigram Distribution in the Development Claims
Figure 3 illustrates the distribution of the top 1,000 LMI-ranked training set bigrams in the development set. In the case of the Refute class, we see that 57.6% of the Refute claims in the development set contain the top 1,000 LMI-ranked bigrams. Out of them, a high 59.5% are indeed labeled Refute. This concludes that 34.3% of all Refute claims are potentially biased. Following the same line of explanation, 32.8% and 16.2% of the Support and Not Enough Info claims also face this problem.