T AB F ACT : A L ARGE - SCALE D ATASET FOR T ABLEBASED F ACT V ERIFICATION
Anonymous authors
Paper under double-blind review
A BSTRACT
The problem of verifying whether a textual hypothesis holds based on the given evidence, also known as fact veriﬁcation, plays an important role in the study of natural language understanding and semantic representation.
However, existing studies are mainly restricted to dealing with unstructured evidence (e.g., natural language sentences and documents, news, etc), while veriﬁcation under structured evidence, such as tables, graphs, and databases, remains under-explored.
This paper speciﬁcally aims to study the fact veriﬁcation given semi-structured data as evidence.
To this end, we construct a large-scale dataset called TabFact with 16k Wikipedia tables as the evidence for 118k human-annotated natural language statements, which are labeled as either ENTAILED or REFUTED.
TabFact is challenging since it involves both soft linguistic reasoning and hard symbolic reasoning.
To address these reasoning challenges, we design two different models: Table-BERT and Latent Program Algorithm (LPA).
Table-BERT leverages the state-of-the-art pre-trained language model to encode the linearized tables and statements into continuous vectors for veriﬁcation.
LPA parses statements into programs and executes them against the tables to obtain the returned binary value for veriﬁcation.
Both methods achieve similar accuracy but still lag far behind human performance.
We also perform a comprehensive analysis to demonstrate great future opportunities.
I NTRODUCTION
Verifying whether a textual hypothesis is entailed or refuted by the given evidence is a fundamental problem in natural language understanding (Katz & Fodor, 1963; Van Benthem et al., 2008). It can beneﬁt many downstream applications like misinformation detection, fake news detection, etc.
Recently, the ﬁrst-ever end-to-end fact-checking system has been designed and proposed in Hassan et al. The veriﬁcation problem has been extensively studied under different natural language tasks such as recognizing textual entailment (RTE) (Dagan et al., 2005), natural language inference (NLI) (Bowman et al., 2015), claim veriﬁcation (Popat et al., 2017; Hanselowski et al., 2018;
Thorne et al., 2018) and multimodal language reasoning (NLVR/NLVR2) (Suhr et al., 2017; 2019).
RTE and NLI view a premise sentence as the evidence, claim veriﬁcation views passage collection like Wikipedia 1 as the evidence, NLVR/NLVR2 views images as the evidence.
These problems have been previously addressed using a variety of techniques including logic rules, knowledge bases, and neural networks.
Recently large-scale pre-trained language models (Devlin et al., 2019; Peters et al., 2018; Yang et al., 2019; Liu et al., 2019) have surged to dominate the other algorithms to approach human performance on several textual entailment tasks (Wang et al., 2018; 2019).
However, existing studies are restricted to dealing with unstructured text as the evidence, which would not generalize to the cases where the evidence has a highly structured format.
Since such structured evidence (graphs, tables, or databases) are also ubiquitous in real-world applications like database systems, dialog systems, commercial management systems, social networks, etc, we argue that the fact veriﬁcation under structured evidence forms is an equivalently important yet underexplored problem.
Therefore, in this paper, we are speciﬁcally interested in studying fact veriﬁcation
District
Incumbent
Party
Result
Candidates California 3 John E. Moss democratic re-elected
John E. Moss (d) 69.9% John Rakus(r) 30.1% California 5 Phillip Burton democratic re-elected
Phillip Burton (d) 81.8% Edlo E. Powell (r) 18.2% California
George Paul Miller democratic lost renomination democratic hold
PeteStark(d) 52.9% Lew M. Warden , Jr. (r) 47.1% California 14 Jerome R. Waldie republican re-elected
Jerome R. Waldie (d) 77.6% Floyd E. Sims (r) 22.4% California 15 John J. Mcfall republican re-elected
John J. Mcfall(d) unopposed 1.
John E. Moss and Phillip Burton are both re-elected in the house of representative election.
John J. Mcfallis unopposed during the re-election. 3.
There are three different incumbents from democratic.
John E. Moss and George Paul Miller are both re-electedin the house of representative election.
John J. Mcfallfailed to be re-elected though being unopposed.
There are five candidates in total, two of them are democrats and three of them are republicans.
United States House of Representatives Elections,
[Figure]
Statement with semi-structured Wikipedia tables (Bhagavatula et al., 2013) 2 as evidences owing to its structured and ubiquitous nature (Jauhar et al., 2016; Zhong et al., 2017; Pasupat & Liang, 2015). To this end, we introduce a large-scale dataset called T AB F ACT , which consists of 118K manually annotated statements with regard to 16K Wikipedia tables, their relations are classiﬁed as ENTAILED and REFUTED 3 .
The entailed and refuted statements are both annotated by human workers.
With some examples in Figure 1, we can clearly observe that unlike the previous veriﬁcation related problems, T AB F ACT combines two different forms of reasoning in the statements, (i) Linguistic Reasoning : the veriﬁcation requires semantic-level understanding.
For example, “John J. Mcfall failed to be re-elected though being unopposed.”
requires understanding over the phrase “lost renomination ...” in the table to correctly classify the entailment relation.
Unlike the existing QA datasets (Zhong et al., 2017; Pasupat & Liang, 2015), where the linguistic reasoning is dominated by paraphrasing, T AB F ACT requires more linguistic inference or common sense.
(ii) Symbolic Reasoning : the veriﬁcation requires symbolic execution on the table structure.
For example, the phrase “There are three Democrats incumbents” requires both condition operation (where condition) and arithmetic operation (count). Unlike question answering, a statement could contain compound facts, all of these facts need to be veriﬁed to predict the verdict. For example, the ”There are ...”
in Figure 1 requires verifying three QA pairs (total count=5, democratic count=2, republic count=3).
The two forms of reasoning are interleaved across the statements making it challenging for existing models.
In this paper, we particularly propose two approaches to deal with such mixed-reasoning challenge: (i) Table-BERT , this model views the veriﬁcation task completely as an NLI problem by linearizing a table as a premise sentence p , and applies state-of-the-art language understanding pre-trained model to encode both the table and statements h into distributed representation for classiﬁcation.
This model excels at linguistic reasoning like paraphrasing and inference but lacks symbolic reasoning skills.
(ii) Latent Program Algorithm , this model applies lexical matching to ﬁnd linked entities and triggers to ﬁlter pre-deﬁned APIs (e.g. argmax, argmin, count, etc).
We adopt bread-ﬁrst-search with memorization to construct the potential program candidates, a discriminator is further utilized to select the most “consistent” latent programs.
This model excels at the symbolic reasoning aspects by executing database queries, which also provides better interpretability by laying out the decision rationale.
We perform extensive experiments to investigate their performances: the best-achieved accuracy of both models are reasonable, but far below human performance.
Thus, we believe that the proposed table-based fact veriﬁcation task can serve as an important new benchmark towards the goal of building powerful AI that can reason over both soft linguistic form and hard symbolic forms.
To facilitate future research, we released all the data, code with the intermediate results.
T ABLE F ACT V ERIFICATION D ATASET
First, we follow the previous Table-based Q&A datasets (Pasupat & Liang, 2015; Zhong et al., 2017) to extract web tables (Bhagavatula et al., 2013) with captions from WikiTables 4 .
Here we ﬁlter out overly complicated and huge tables (e.g. multirows, multicolumns, latex symbol) and obtain 18K relatively clean tables with less than 50 rows and 10 columns.
For crowd-sourcing jobs, we follow the human subject research protocols 5 to pay Amazon Mechanical Turk 6 workers from the native English-speaking countries “US, GB, NZ, CA, AU” with approval rates higher than 95% and more than 500 accepted HITs.
Following WikiTableQuestion (Pasupat &
Liang, 2015), we provide the annotators with the corresponding table captions to help them better understand the background.
To ensure the annotation quality, we develop a pipeline of “positive two-channel annotation” → “negative statement rewriting” → “veriﬁcation”, as described below.
2. P OSITIVE T WO -C HANNEL C OLLECTION & N EGATIVE R EWRITING S TRATEGY
To harvest statements of different difﬁculty levels, we design a two-channel collection process:
Low-Reward Simple Channel : the workers are paid 0.45 USD for annotating one Human Intelligent Task (HIT) that requires writing ﬁve statements.
The workers are encouraged to produce plain statements meeting the requirements: (i) corresponding to a single row/record in the table without too complicated symbolic reasoning.
(ii) mention the cell values without dramatic modiﬁcation or paraphrasing.
The average annotation time of a HIT is 4.2 min.
High-Reward Complex Channel :
the workers are paid 0.75 USD for annotating a HIT (ﬁve statements).
They are guided to produce more sophisticated statements to meet the requirements: (i) involving multiple rows in the tables with higher-order semantics like argmax, argmin, count, difference, average, summarize, etc.
(ii) rephrase the table records to involve more semantic understanding.
The average annotation time of a HIT is 6.8 min.
The data obtained from the complex channel are harder in terms of both linguistic and symbolic reasoning, the goal of the two-channel split is to help us understand the proposed models can reach under different levels of difﬁculty.
As suggested in (Zellers et al., 2018), there might be annotation artifacts and conditional stylistic patterns such as length and word-preference biases, which can allow shallow models (e.g. bag-ofwords) to obtain artiﬁcially high performance.
Therefore, we design a negative rewriting strategy to minimize such linguistic cues or patterns.
Instead of letting the annotators write negative statements from scratch, we let them rewrite the collected entailed statements.
During the annotation, the workers are explicitly guided to modify the words, phrases or sentence structures but retain the sentence style/length to prevent artiﬁcial cues.
We disallow naive negations by adding “not, never, etc” to revert the statement polarity in case of obvious linguistic patterns.
2. Q UALITY C ONTROL
To control the quality of the annotation process, we review a randomly sampled statement from each HIT to decide whether the whole annotation job should be rejected during the annotation process. Speciﬁcally, a HIT must satisfy the following criteria to be accepted: (i) the statements should contain neither typos nor grammatical errors. (ii) the statements do not contain vague claims like might, few, etc.
(iii) the claims should be explicitly supported or contradicted by the table without requiring additional knowledge, no middle ground is permitted.
After the data collection, we redistribute all the annotated samples to further ﬁlter erroneous statements, the workers are paid 0.
USD per statement to decide whether the statement should be rejected.
The criteria we apply are similar: no ambiguity, no typos, explicitly supported or contradictory.
Through the post-ﬁltering process, roughly 18% entailed and 27% refuted instances are further abandoned due to poor quality.
[Table]
[Table]
[Figure]
D ATASET S TATISTICS
Inter-Annotator Agreement : After the data collection pipeline, we merged the instances from two different channels to obtain a diverse yet clean dataset for table-based fact veriﬁcation.
We sample 1000 annotated (table, statement) pairs and re-distribute each to 5 individual workers to re-label them as either ENTAILED or REFUTED .
We follow the previous works (Thorne et al., 2018; Bowman et al., 2015) to adopt the Fleiss Kappa (Fleiss, 1971) as an indicator, where Fleiss κ = ¯ p c − ¯ p e 1 − ¯ p e is computed from from the observed agreement ¯ p c and the agreement by chance ¯ p e .
We obtain a Fleiss κ = 0 .
75 , which indicates strong inter-annotator agreement and good-quality.
Dataset Statistics : As shown in Table 1, the amount of data harvested via the complex channel slightly outnumbers the simple channel, the averaged length of both the positive and negative samples are indistinguishable.
More speciﬁcally, to analyze to which extent the higher-order operations are included in two channels, we group the common higher-order operations into 8 different categories.
As shown in Figure 2, we sample 200 sentences from two different channels to visualize their distribution.
We can see that the complex channel overwhelms the simple channel in terms of the higher-order logic, among which, count and superlatives are the most frequent.
We split the whole data roughly with 8:1:1 into train, validation, and test splits and shows their statistics in Table 1.
Each table with an average of 14 rows and 5-6 columns corresponds to 2-20 different statements, while each cell has an average of 2.1 words.
In the training split, the positive instances slightly outnumber the negative instances, while the validation and test split both have rather balanced distributions over positive and negative instances.
M ODELS
With the collected dataset, we now formally deﬁne the table-based fact veriﬁcation task: the dataset is comprised of triple instances ( T , S, L ) consisting of a table T , a natural language statement
S = s 1 , · · · , s n and a veriﬁcation label L ∈ { 0 , 1 } .
The table T =
{ T i,j | i ≤ R T , j ≤ C T } has
R T rows and C T columns with the T ij being the content in the ( i, j ) -th cell.
T ij could be a word, a number, a phrase or even a natural language sentence.
The statement S describes a fact to be veriﬁed against the content in the table T .
If it is entailed by T , then L = 1 , otherwise the label
L = 0 .
Figure 1 shows some entailed and refuted examples.
During training, the model and the learning algorithm are presented with K instances like ( T , S, L ) Kk =1 from the training split.
In the testing stage, the model is presented with ( T , S ) K (cid:48) k
=1 and supposed to predict the label as ˆ L .
We measure the performance by the prediction accuracy Acc = 1 K (cid:48) (cid:80) K (cid:48)
I (ˆ L k =
L k ) on the test set.
Before building the model, we ﬁrst perform entity linking to detect all the entities in the statements.
Brieﬂy, we ﬁrst lemmatize the words and search for the longest sub-string matching pairs between statements and table cells/captions, where the matched phrases are denoted as the linked entities.
To focus on statement veriﬁcation against the table, we do not feed the caption to the model and simply mask the phrases in the statements which links to the caption with placeholders.
The details of the entity linker are listed in the Appendix.
We describe our two proposed models as follows.
L ATENT P ROGRAM A LGORITHM (LPA)
In this approach, we formulate the table fact veriﬁcation as a program synthesis problem, where the latent program algorithm is not given in T AB F ACT .
Thus, it can be seen as a weakly supervised learning problem as discussed in Liang et al.
; Lao et al.
Under such a setting, we propose to break down the veriﬁcation into two stages: (i) latent program search, (ii) discriminator ranking.
In the ﬁrst program synthesis step, we aim to parse the statement into programs to represent its semantics.
We deﬁne the plausible API set to include roughly 50 different functions like min, max, count, average, ﬁlter, and and realize their interpreter with Python-Pandas.
Each API is deﬁned to take arguments of speciﬁc types ( number, string, bool and view (e.g sub-table) ) to output speciﬁctype variables.
During the program execution, we store the generated intermediate variables to different-typed caches N , R , B , V (Num, Str, Bool, View).
At each execution step, the program can fetch the intermediate variable from the caches to achieve semantic compositionality.
In order to shrink the search space, we follow NSM (Liang et al., 2017) to use trigger words to prune the API set and accelerate the search speed.
The deﬁnitions of all API, trigger words can be found in the
Appendix.
The comprehensive the latent program search procedure is summarized in Algorithm 1, arg 1 , · · · , arg n ) and concatenate the program trace P . 12: if Type(A)=Bool then 13: if N = S = B = ∅ then 14:
P .push (( P, A )) # The program P is valid since it consumes all the variables. P = ∅ # Collect the valid program P into set P and reset P 16: else 17: B .push
( A )
# The intermediate boolean value is added to the bool cache 18:
Q .push (( P, N , R , B , V ))
# Add the refreshed state to the queue again 19: if Type(A) ∈ { Num, Str, View } then 20: if N = S =
B = ∅ then 21: P = ∅ ;break # The program ends without consuming the cache, throw it.
22: else 23: push A into N or S or V # Add the refreshed state to the queue for further search 24: Q .push (( P, N , R , B , V )) 25: Return the triple ( T , S, P )
# Return (Table, Statement, Program Set) and the searching procedure is illustrated in Figure 3.
[Figure]
After we collected all the potential program candidates P = { ( P 1 , A 1 ) , · · · , ( P n , A n ) } for a given statement S (where ( P i , A i ) refers to i -th candidate), we need to learn a discriminator to identify the “appropriate” traces from the set from many erroneous and spurious traces.
Since we do not have the ground truth label about such discriminator, we use a weakly supervised training al-
Game
Date
Opponent Score
February 3 ,
Florida 3February 4 ,
Buffalo 0February 7 , 2010 Montreal 5Type Position
Word
February , [SEP] [CLS] [SEP]     0game
TOK date date date date
TOK TOK
TOK [SEP] Florida is playing
S
S
S 12-Layer BERT-Base Model one game is 51 ; date [CLS] is
February ; [SEP]   57     20 Position
Word row
Label
Florida
C on ca t
T e m p
l
a t e gorithm by viewing all the label-consistent programs as positive instances { P i | ( P i , A i ); A i = L } and the label-inconsistent program as negative instances { P i | ( P i , A i ); A i (cid:54) =
L } to minimize the cross-entropy of discriminator p θ ( S, P ) with the weakly supervised label.
Speciﬁcally, we build our discriminator with a Transformer-based two-way encoder (Vaswani et al., 2017), where the statement encoder encodes the input statement S as a vector Enc S ( S ) ∈ R n × D with dimension D , while the program encoder encodes the program P = p 1 , · · · , p m as another vector
Enc P ( P ) ∈ R m × D , we concatenate these two vectors and feed it into a linear projection layer to compute p θ ( S, P ) =
σ ( v Tp [ Enc S ( S ); Enc P ( P )]) as the relevance between S and P with weight v p ∈ R D .
At test time, we use the discriminator p θ to assign conﬁdence p θ ( S, P ) to each candidate
P ∈ P , and then either aggregate the prediction from all hypothesis with the conﬁdence weights or rank the highest-conﬁdent hypothesis and use their outputs as the prediction.
3. T ABLE -BERT
In this approach, we view the table veriﬁcation problem as a two-sequence binary classiﬁcation problem like NLI or MPRC (Wang et al., 2018) by linearizing a table T into a sequence and treating the statement as another sequence.
Since the linearized table can be extremely long surpassing the limit of sequence models like LSTM, Transformers, etc.
We propose to shrink the sequence by only retaining the columns containing entities linked to the statement to alleviate such a memory issue.
In order to encode such sub-table as a sequence, we propose two different linearization methods, as is depicted in Figure 4.
(i) Concatenation: we simply concatenate the table cells with [ SEP ] tokens in between and restart position counter at the cell boundaries; the column name is fed as another type embedding to the input layer.
Such design retains the table information in its machine format.
(ii) Template: we adopt simple natural language templates to transform a table into a “somewhat natural” sentence.
Taking the horizontal scan as an example, we linearize a table as “row one’s game is 51; the date is February; ..., the score is 3.4 (ot). row 2 is ...”.
The isolated cells are connected with punctuations and copula verbs in a language-like format. After obtaining the linearized sub-table ˜ T , we concatenate it with the natural language statement S and preﬁx a [CLS] token to the sentence to obtain the sequence-level representation
H = f BERT ([ ˜T , S ]) , with H ∈ R 768 from pre-trained BERT (Devlin et al., 2019).
The representation is further fed into multi-layer perceptron f MLP to obtain the entailment probability p θ ( ˜T , S )
=
σ ( f MLP ( H )) , where σ is the sigmoid function.
We ﬁnetune the model θ (including the parameters of BERT and MLP) to minimize the binary cross entropy L ( p θ ( ˜T , S ) , L ) on the training set.
At test time, we use the trained BERT model to compute the matching probability between the (table, statement) pair, and classify it as ENTAILED statement when p θ ( ˜T , S ) is greater than 0.5.
E XPERIMENTS
In this section, we aim to evaluate the proposed methods on T AB F ACT .
Besides the standard validation and test sets, we also split the test set into a simple and a complex partition based on the channel from which they were collected.
This facilitates analyzing how well the model performs under different levels of difﬁculty.
Additionally, we also hold out a small test set with 2K samples for human evaluation, where we distribute each (table, statement) pair to 5 different workers to approximate human judgments based on their majority voting, the results are reported in Table 2.
[Table] [Table] [Table]
[Table] [Table] [Table]
NSM We follow et al (2017) to modify their approach to ﬁt the setting of T AB F ACT . Specifically, we adopt an LSTM as an encoder and another LSTM with copy mechanism as a decoder to synthesize the program.
However, without any ground truth annotation for the intermediate programs, directly training with reinforcement learning is difﬁcult as the binary reward is underspeciﬁed, which is listed in Table 2 as ”NSM w/ RL”.
Further, we use LPA as a teacher to search the top programs for the NSM to bootstrap and then use reinforcement learning to ﬁnetune the model, which achieves reasonable performance on our dataset listed as ”NSM w/ ML + RL”. We build Table based on the open source implementation BERT using the model with 12-layer, 768-hidden, 12-heads, and 110M parameters trained in 104 lan guages
We use the standard BERT tokenizer to break the words in both statements and tables into subwords and join the two sequences with a [SEP] token in between.
The representation corresponding to [CLS] is fed into an MLP layer to predict the veriﬁcation label.
We ﬁnetune the model on a single TITAN X GPU with a mini batch size of
The best performance is reached after about 3 hours of around
We implement and compare the of
LPA We run the latent program search in a distributed fashion on three 64-core machines to generate the latent programs.
The search terminates once the buffer has more than 50 traces or the path length is larger than 7.
The average search time for each statement is about 2.5s.
For the discriminator model, we design two transformer-based encoders (3 layers, 128-dimension hidden embedding, and 4 heads at each layer) to encode the programs and statements, respectively.
The variants of LPA models considered include (i) Voting: assign each program with equal weight and vote without the learned discriminator.
(ii)
Weighted-Voting: compute a weighted-sum to aggregate the predictions of all latent programs with the discriminator conﬁdence as the weights.
(iii) Ranking: rank all the hypotheses by the discriminator conﬁdence and use the top-rated hypothesis as the output. (Caption) means feeding the caption as a sequence of words to the discriminator during ranking.
Preliminary Evaluation
In order to test whether our negative rewriting strategy eliminates the artifacts or shallow cues, we also ﬁne-tune a pre-trained BERT (Devlin et al., 2019) to classify the statement S without feeding in table information.
The result is reported as “BERT classiﬁer w/o
Table” in Table 2, which is approximately the majority guess and reﬂects the effectiveness of the rewriting strategy.
Before presenting the experiment results, we ﬁrst perform a preliminary study to evaluate how well the entity linking system, program search, and the statement-program discriminator perform.
Since we do not have the ground truth labels for these models, we randomly sample 100 samples from the dev set to perform the human study.
For the entity linking, we evaluate the precision of correctly linked entities and the recall of entities that should be linked.
For the latent program search, we evaluate whether the “true” programs are included in the candidate set P and report the recall score.
For discriminator, under the cases where the “true” program lies in the candidate set, we use the trained model to select the top K hypothesis and calculate the HITS@K accuracy (the chance of correct program being included in the top K candidates).
Please note that the discriminator can also select a spurious program that happens to obtain the same label as ground truth, but this does not count as a hit.
These preliminary case study results are reported in Table 3.
[Table]
Results We report the performance of different methods as well as human performance in Table 2.
First of all, we observe that the naive serialized model fails to learn anything effective (same as the
Majority Guess).
It reveals the importance of template when using the pre-trained BERT (Devlin et al., 2019) model: the “natural” connection words between individual cells is able to unleash the power of the large pre-trained language model and enable it to perform reasoning on the structured table form.
Such behavior is understandable given the fact that BERT is pre-trained on purely natural language corpora.
In addition, we also observe that the horizontal scan excels the vertical scan because it better captures the convention of human expression.
Among different LPA methods, we found that LPA-Ranking performs the best since it can better suppress the spurious programs than the voting-based algorithm.
As suggested in Table 3, the current LPA method is upper bounded by 77% (recall of “true” program hypothesis), but the real accuracy (65%) is still far from that.
Diving into speciﬁc cases to examine the performance of discriminator, we found that only 17% “true” programs are ranked at the top Table 3.
We hypothesize that the weakly supervised learning of the discriminator is the main bottleneck for LPA.
By comparing the performance of simple-channel with complex-channel split, we observe a signiﬁcant accuracy drop ( ≈ 20%), which reveals the weakness of existing models in dealing with higher-ordered semantics.
Besides, we observe that Table-BERT exhibits instability during training, after the model achieves the reported ceiling performance, it will gradually degrade to random guess for the following epochs.
Additionally, it also exhibits poor consistency during evaluation as it can miss some very simple cases but hit super hard test cases.
These two major weaknesses are yet to be solved in the future study.
In contrast, LPA behaves much more consistently and provides a clear latent rationale for its decision.
But, such a pipeline system requires laborious handcrafting of API operations and is also very sensitive to the entity linking accuracy.
Both methods have merits and weaknesses; how to combine the strengths of these two models still remains an open question.
R ELATED W ORK
Natural Language Inference & Reasoning: Modeling reasoning and inference in human language is a fundamental and challenging problem towards true natural language understanding.
There has been extensive research on RTE in the early years (Dagan et al., 2005) and more recently shifted to NLI (Bowman et al., 2015; Williams et al., 2017).
NLI seeks to determine whether a natural language hypothesis h can be inferred from a natural language premise p .
With the surge of deep learning, there have been many powerful algorithms like the Decomposed Model (Parikh et al., 2016), Enhanced-LSTM (Chen et al., 2017) and BERT (Devlin et al., 2019). Besides the textual evidence, NLVR (Suhr et al., 2017) and NLVR2 (Suhr et al., 2019) have been proposed to use images as the evidence for statement veriﬁcation on multi-modal setting.
Our proposed fact veriﬁcation task is closely related to these inference tasks, where our semi-structured table can be seen as a collection of “premises” exhibited in a semi-structured format.
Our proposed problem hence could be viewed as the generalization of NLI under the semi-structured domain.
Table Question Answering: Another line of research closely related to our task is the table-based question answering, such as MCQ (Jauhar et al., 2016), WikiTableQuestion (Pasupat & Liang, 2015), Spider (Yu et al., 2018), Sequential Q&A (Iyyer et al., 2017), and WikiSQL (Zhong et al., 2017), for which approaches have been extended to handle large-scale tables from Wikipedia (Bhagavatula et al., 2013).
However, in these Q&A tasks, the question types typically provide strong signals needed for identifying the type of answers, while T AB F ACT does not provide such speciﬁcity.
The uniqueness of T AB F ACT lies in two folds: 1) a given fact is regarded as a false claim as [Figure]
long as any part of the statement contains misinformation. Due to the conjunctive nature of veriﬁcation, a fact needs to be broken down into several sub-clauses or (Q, A) pairs to separate evaluate their correctness.
Such a compositional nature of veriﬁcation problem makes it more challenging than standard QA setting.
On one hand, the model needs to recognize the multiple QA pairs and their relationship. On the other hand, the multiple sub-clauses make the semantic form longer and logic inference harder than the standard QA setting.
2) some facts cannot even be handled using semantic forms, as they are driven by linguistic inference or common sense.
In order to verify these statements, more inference techniques have to be leveraged to enable robust veriﬁcation. We visualize the above two characteristics of T AB F ACT in Figure 5.
Program Synthesis & Semantic Parsing: There have also been great interests in using program synthesis or logic forms to solve different natural language processing problems like question answering (Liang et al., 2013;
Berant et al., 2013; Berant & Liang, 2014), visual navigation (Artzi et al., 2014; Artzi & Zettlemoyer, 2013), code generation (Yin & Neubig, 2017; Dong & Lapata, 2016), SQL synthesis (Yu et al., 2018), etc.
The traditional semantic parsing papers (Artzi et al., 2014; Artzi & Zettlemoyer, 2013; Zettlemoyer & Collins, 2005; Liang et al., 2013; Berant et al., 2013) greatly rely on rules, lexicon to parse natural language sentences into different forms like lambda calculus, DCS, etc.
More recently, researchers strive to propose neural models to directly perform formal reasoning like Theory Prover (Riedel et al., 2017; Rockt ¨ aschel & Riedel, 2017), Neural Turing Machine (Graves et al., 2014), Neural Programmer (Neelakantan et al., 2016; 2017) and Neural Symbolic Machines (Liang et al., 2017; 2018; Agarwal et al., 2019).
The proposed T AB F ACT serves as a great benchmark to evaluate the reasoning ability of different neural reasoning models. Speciﬁcally, T AB F ACT poses two great challenges: 1) spurious programs (i.e., wrong programs with the true returned answers): since the program output is only a binary label, which can cause serious spurious problems and misguide the reinforcement learning with the under-speciﬁed binary rewards.
2) compositionality: the model needs to decompose the statement into sub-clauses and verify the sub-clauses one by one, which normally requires the model to perform more logic inference steps to infer the statement verdict.
C ONCLUSION
This paper investigates a very important yet previously under-explored research problem: semistructured fact veriﬁcation.
We construct a large-scale dataset and proposed two methods, TableBERT and LPA, based on the state-of-the-art pre-trained natural language inference model and program synthesis.
In the future, we plan to push forward this research direction by inspiring more sophisticated architectures which can perform both linguistic and symbolic reasoning.
A A PPENDIX A. F UNCTION D ESCRIPTION
We list the detailed function description in Figure 6. We also visualize the functionality of the most Name Arguments
Output
Comment Count View Number Return
[Table] Within View, Header String, Cell String/Number Bool
Return whether the
[Table]
of
[Table]
view
Without
View, Header String,
[Table]
String/Number
Bool
Return whether
[Table]
of the
[Table]
None
String
Bool
Whether [Table] represents None, [Table]
[Table]
[Table] provided” [Table] Row
[Table]
View,
[Table]
Bool
[Table]
Row
[Table]
Hop
[Table]
[Figure] And/ Or [Figure]
inputs typical functions and their input/output examples in Figure 7.
Count Name Age ( ) =within ( , Name, A ) = 𝑇𝑟𝑢𝑒 Name
Age
A
B without ( , Name, A ) = 𝐹𝑎𝑙𝑠𝑒 Name Age A
B
None ( ) = 𝑇𝑟𝑢𝑒 -/Not Given/NA
Before Name
Age
A ( ) = 𝑇𝑟𝑢𝑒 Name
Age
[Figure] First Name
Age
A ( ) =
𝑇𝑟𝑢𝑒
Avg ( , Age ) = [Figure]
Age [Figure] [Figure] [Figure]
[Figure]
[Figure]
[Figure] A [Figure] B
Hop
[Figure] Age [Figure] ( , Name ) =
𝐴
Diff (2, 1 ) = Greater (2, 1 ) = 𝑇𝑟𝑢𝑒 Equal (2, 2 ) =
𝑇𝑟𝑢𝑒 ,
We list all the trigger words for different functions in Figure [Figure] [Table] [Figure]
[Table] [Figure] [Table] [Figure]
[Table] [Figure] [Table] [Figure]
[Table] [Figure] [Table] [Figure]
[Table] [Figure] [Table] [Figure]
[Table] [Figure] [Table] [Figure]
[Table] [Figure] [Table] [Figure]
B H IGHER - ORDER O PERATIONS
Aggregation: the aggregation operation refers to sentences like “the averaged age of all ....”, “the total amount of scores obtained in ...”, etc. 2.
Negation: the negation operation refers to sentences like “xxx did not get the best score”, “xxx has never obtained a score higher than 5”.
Superlative: the superlative operation refers to sentences like “xxx achieves the highest score in”, “xxx is the lowest player in the team”.
Comparative: the comparative operation refers to sentences like “xxx has a higher score than yyy”.
Ordinal: the ordinal operation refers to sentences like “the ﬁrst country to achieve xxx is xxx”, “xxx is the second oldest person in the country”.
Unique: the unique operation refers to sentences like “there are 5 different nations in the tournament, ”, “there are no two different players from U.S” 7.
All: the for all operation refers to sentences like “all of the trains are departing in the morning”, “none of the people are older than 25.”
None: the sentences which do not involve higher-order operations like “xxx achievespoints in xxx game”, “xxx player is from xxx country”. C E RROR A NALYSIS
Before we quantitatively demonstrate the error analysis of the two methods, we ﬁrst theoretically analyze the bottlenecks of the two methods as follows:
Symbolic We ﬁrst provide a case in which the symbolic execution can not deal with theoretically in Figure 9.
The failure cases of symbolic are either due to the entity link problem or function coverage problem.
For example, in the given statement below, there is no explicit mention of ”7-5, 6-4” cell. Therefore, the entity linking model fails to link to this cell content. Furthermore, even though we can successfully link to this string, there is no deﬁned function to parse ”7-5, 6-5” as ”won two games” because it requires linguistic/mathematical inference to understand the implication from the string. Such cases are the weakness of symbolic reasoning models.
[Table]
Bologna
[Table]
Italy clay
Alberto
[Table]
Paolo
[Table]
clay
David
[Table]
Miguel
[Table]
Agénor
[Table]
[Table]
Horst
[Table]
BERT In contrast, Table-BERT model seems to have no coverage problem as long as it can feed the whole table content.
However, due to the template linearization, the table is unfolded into a long sequence as depicted in Figure 10.
The useful information, ”clay” are separated in a very long span of unrelated words.
How to grasp such a long dependency and memorize the history information poses a great challenge to the Table-BERT model.
[Table]
Bologna
[Table]
Italy
[Table]
Alberto Tous
Paolo Canè Simone Colombo
[Table]
David
[Table]
Miguel
Ronald
[Table]
[Figure]
Statistics Here we pick 200 samples from the validation set which only involve single semantic and divide them into different categories.
We denote the above-mentioned cases as ”linguistic inference”, and the sentences which only describe information from one row as ”Trivial”, the rest are based on their logic operation like Aggregation, Superlative, Count, etc.
We visualize the accuracy of LPA and Table-BERT in Figure 11.
From which we can observe that the statements with linguistic inference are much better handled with BERT model, while LPA achieves an accuracy barely higher than random guess.
The BERT model can deal with trivial cases well as it uses a horizontal scan order.
In contrast, the LPA model outperforms BERT on higher-order logic cases, especially when the statement involves operations like Count and Superlative.
[Figure]
Error
[Figure]
D R EASONING D EPTH
Given that our LPA has the breadth to cover a large semantic space.
Here we also show the reasoning depth in terms of how many logic inference steps are required to tackle verify the given claims.
We visualize the histogram in Figure 12 and observe that the reasoning steps are concentrated between 4 to 7.
Such statistics indicate the difﬁculty of fact veriﬁcation in our T AB F ACT dataset.
[Figure] E W HETHER TO KEEP W IKIPEDIA CONTEXT Before crowd-sourcing the annotation for the tables, we observed that the previous WikiTableQuestion Pasupat & Liang (2015) provides context (Wikipedia title) during annotation while the WikiSQL Zhong et al.
(2017) does not.
Therefore, we particularly design ablation annotation tasks to compare the annotation quality between w/ and w/o Wikipedia title as context.
We demonstrate a typical example in Figure 13, where a Wiki table 8 aims to describe the achievements of a tennis player named Dennis, but itself does not provide any explicit hint about “Tennis Player Dennis”.
Unsurprisingly, the sentence ﬂuency and coherence signiﬁcantly drops without such information.
Actually, a great portion of these Wikipedia tables requires background knowledge (like sports, celebrity, music, etc) to understand. We perform a small user study to measure the ﬂuency of annotated statements.
Speciﬁcally, we collected 50 sentences from both annotation w/ and w/o title context and randomly shufﬂe them as pairs, which are distributed to the 8 experts without telling them their source to compare the language ﬂuency.
It turns out that the experts ubiquitously agree that the statements with Wikipedia titles are more human-readable.
Therefore, we argue that such a context is necessary for annotators to understand the background knowledge to write more ﬂuent sentences.
On the other end, we also hope to minimize the inﬂuence of the textual context in the table-based veriﬁcation task, therefore, we design an annotation criterion: the Wikipedia title is provided to the workers during the annotation, but they are explicitly banned from bring any unrelated background information other than the title into the annotation.
As illustrated in Figure 13, the title only acts as a placeholder in the statements to make it sound more natural.
Context(Title)
Richard Dennis Ralston (born July 27, 1942, an American former tennis player
No Information is provided
Annotate
From 1960 to 1969, Ralston won five major double championships.
Winner is on the grass surface.
Rafael Osuna is partner in the Wimbeldon outcome year championship surface partner winner
Wimbledon championships grass
Rafael Osuna winner
US Championships grass
Chuck Mckinley runner - up
US Championships grass
Chuck Mckinley winner
US Championships (2) grass
Chuck Mckinley
F E NTITY L INKING
Here we propose to use the longest string match to ﬁnd all the candidate entities in the table, when multiple candidates coexist, we select the one with the minimum edit distances.
The visualization is demonstrated in Figure 14. [Figure]
[Table]
[Figure]
[Table]
[Figure]
[Table]
[Figure]
[Table]
Statement: John E. Moss is a democratic who is from California 3 district
John
[Figure] [Table] [Figure]
[Table]
John
[Table] [Figure]
John
[Figure]
[Table] [Figure]
[Table] John [Figure]
G T HE PROGRAM CANDIDATES
Here we demonstrate some program candidates in Figure 15, and show how our proposed discriminator is designed to compute the matching probability between the statement and program.
Specifically, we employ two transformer-based encoder Vaswani et al.
(2017), the left one is aimed to encode the program sequence and the right one is aimed to encode the statement sequence.
Their output from [CLS] position is concatenated and fed into an MLP to classify the veriﬁcation label. H HIT I NTERFACE
We provide the human intelligent task interface on AMT in the following, where very detailed instructions on what are trivial statements and what are non-trivial statements.
Comprehensive examples have been given to guide the Turkers to write well-formed while logically plausible statements. In order to harvest fake statements without statistical cues, we also provide detailed instructions on how to re-write the ”fake” statements. During the annotation, we hire 8 experts to perform sanity checks on each of the HIT to make sure that the annotated dataset is clean and meets our requirements.
[Table]
Program Encoder
Statement Encoder
Label https:/ amazonaws
Survey Instructions (Click to expand)
You are given a table with its wikipedia source, your job is to compose non-trivial statements supported by the table.
- "Trivial" : the sentence can be easily generated by looking only a certain row without understanding the table. - "Non-trivial" : the sentence requires reading multiple rows of the table and understanding of the table content. For example, the sentences which include summarization, comparative, negation, relational, inclusion, superlative, aggregational, rephrase or combinations of them are non-trivial. But non-trvial is not limited to these types, any statement involving understanding and reasoning is accepted.
We list two examples below to help you understand, you are encouraged to open the table wikipedia link to understand the context of the table.
(Everything in the table is lower-cased, you are free to use lower or upper case in your sentence):
[Table]
place colie edison
[Table]
: denver
[Table]
cohutta grindstaff
[Table]
: sydney
[Table]
tyrie ballard
[Table]
ashli robson
[Table]
sydney
[Table]
rachel robinson
[Table]
campus crawl
[Table]
abram boise rr : south pacific
[Table]
dave malinosky
[Table]
: hollywood
[Table]
Rejected ("Trivial") examples :
In the TV series "The Island", Derrick Kosinski is a male character.
(Easy!
You can simply look into ﬁrst row to produce this sentence.)
Derrick Kosinski has the placing of winner in the TV series.
Kenny Santucci is from original season of "Fresh Meat".
[Table]
Tips1: We set minimum length to 9, and sentences with more complicated grammar structures are preferred.
Tips2: Do not limited to only one type of description like superlative or relative.
Tips3:
Copying the records from the table is encouraged, which can help avoid typos and mis-spelling as much as possible, .
[Table]
: Do not vague words like "maybe", "perhaps", "good", "excellent", "most", etc.
[Table]
(Superlative): In the TV series "The Island", Evelyn Smith is the highest ranked female.
(Comparitive): In the TV series "The Island", Jenn Grijalva appears later than Colie Edison in the series.
(Relational): Ashli Robson appears one episode later than Rachel Robinson in the TV series.
(Summarization): there are three male winners in the challenge.
(Rephrase): Evelyn Smith never eliminated in any episode in the TV series.
(Combination): Derrick Kosinski is the winner and Jenn Grijalva is Runner-Up of the challenge.
(Negation): jenn grijalva is not the female winning the challenge.
(Inclusion): Evelyn smith is one of the four winner for the challenge.
[Table]
In the rank, it has 0 play - oﬀ. 2.
ratar is in rank 2. 3.
When member association is india, the points is 106.4.
Accepted ("Non-Trivial") examples :
(Negation):
iran is one of the two countries getting into the 4th stage
(Average): uae
and
qatar
have an average of 1 play oﬀ during the
champion league.
(Algorithmic): saudi arabia achieves 22.3 more points than qatar.
(Comparison): india got lower points than jordan in the league.
(Summarization): there are two team which have won the afc cup twice.
(Superlative):
In the Champions League, saudi arabia achieves the highest points.
(Combination): saudi arabia is the group stage 4 while iran is in group stage 3.
First Read the following table, then write ﬁve diverse non-trivial facts for this given table:
[Table]
Please write a non-trivial statement, minimum 9 words
Please write a non-trivial statement, minimum 9 words
Please write a non-trivial statement, minimum 9 words
Please write a non-trivial statement, minimum 9 words
Please write a non-trivial statement, minimum 9 words
Survey Instructions (Click to expand)
Please ﬁrst read a table to understand its content, an example is shown below, which contains the leaderboard of a competition
[Table]
You are given a sentence to describe a fact in the table, please follow the following two cases to ﬁnish the job: * If the given sentence is ﬂuent and consistent with the table, then please re-write it to make it "fake" based on the following criteria :
Contradictory: it should still be a ﬂuent and coherent, but it needs be explicitly contrdictory to the facts in the table .
Do not simply add NOT to revert the sentence meaning.
Do not write neutral or non-veriﬁable sentences , you need to conﬁrm it in the table.
The fake statement needs to be clear, explicit and natural, do not use vague or ambiguous words like "bad", "good", "many", etc. 4.
try to use diverse fake types during annotatoin.
Example 1.
Given statement: Ashli Robson was eliminated in episode 4.
Good Faking: Ashli Robson survives through episode 1 to episode 5.
Good Faking: Ashli Robson is not the only one eliminated in episode 4.
Bad Faking (Simply add not): Ashli Robson was not eliminated on episode 4.
https://s
5b2TrRmw9TnD5hSI html
Bad Faking (Ambiguous, who is Ashli?):
Ashli was not eliminated on episode 4.
Bad Faking (Irrelevant): Ashli was born in Mexico.
Bad Faking (Too subjective, what do you mean by "early"): AshlDerrick Kosinski lost the game very early.
Bad Faking (Not veriﬁable): AshlDerrick Kosinski was the most popular player.
Example 2.
Given statement: Tonya Cooley is in the 20th place.
Good Faking: Tonya Cooley is not the last in placing.
Good Faking: Tonya Cooley is eliminated in episode 1 but not the last in placing.
Bad Faking:
(There is nothing larger than 20th)
Tonya Cooley is after the 20th place.
Bad Faking: (Half Wrong/half Right)
When the gneder is female, the player is Tonya Colley.
Bad Faking (Introduce values outside the table): Tonya Cooley is in the 43th place.
Bad Faking (Typo): Tonya Cooler is in the 20th palace.
* If the given statement is erroneous (see following) please type in N/A in the input box.
critical grammar error like missing verbs, nouns, etc.
Do not count small errors like tense, singular/plural, case errors.
serious typo, misspelling.
the described fact is contradictory to the table.
You can use the highlight button to help you ﬁnd the mentions in the table, you can use either upper or lower case, not important https://s3.amazonaws.com/
_bulk/hits/391922557/v_5b2TrRmw9TnD5hSI_
.html 3/
Submit
First Read the given tables, then rewrite the statements to make them fake :
Table Source: 2003 - 04 isu junior grand prix (https://en.wikipedia.org/wiki/2003%E2%80%9304_ISU_Junior_Grand_Prix)
[Table]
Hightlight Mentions, Click Me!
Given Statement: russia won the most silver medals in the grand prix
Please rewrite a sentence which is contradictory to the table
Hightlight Mentions, Click Me!
Given Statement: france and ﬁnland won the least medals in the grand prix
Please rewrite a sentence which is contradictory to the table
Hightlight Mentions, Click Me!
Given Statement: hungary and ﬁnland were the only countries that idd not win any silver medals
Please rewrite a sentence which is contradictory to the table
Hightlight Mentions, Click Me!
Given Statement: the united states won more gold medals than canada
Please rewrite a sentence which is contradictory to the table
Hightlight Mentions, Click Me!
Given Statement: canada won the most bronze medals in the grand prix
Please rewrite a sentence which is contradictory to the table