Table Fact Verification with Structure-Aware Transformer

Hongzhi Zhang, Yingyao Wang, Sirui Wang, Xuezhi Cao, Fuzheng Zhang, Zhongyuan Wang

Table Fact Verification with Structure-Aware Transformer

Introduction

Large language models (LLMs) have revolutionized natural language processing, yet they often falter when faced with semi-structured data like tables. The standard approach—"linearizing" a table into a flat string of text—strips away the vital 2D spatial relationships that define a table's meaning. To address this, researchers have introduced the Structure-Aware Transformer (SAT), a model that preserves structural context through specialized attention mechanisms.

The Challenge of Table Understanding

When a table is flattened, a cell's value can become separated from its column header or its row neighbors by hundreds of tokens. This loss of "cell alignment" makes it difficult for models to perform symbolic reasoning, such as comparing values across rows or counting specific occurrences.

Figure 2: Example of table fact verification. Statements are classified as entailed (true) or refuted (false) based on the provided table data.

As shown in Figure 2, verifying a statement like "There are three series of cpu designed for desktop market" requires the model to scan the "market" column and count unique entries—a task that is inherently structural.

Methodology: Injecting Structure into Attention

The core innovation of SAT is Structure-Aware Masking. Instead of the standard "all-to-all" self-attention, SAT constrains what each token can "see" based on its position in the original 2D grid.

  1. Hierarchical Masking:
    • Lower Layers: A cell token is restricted to attending only to its own row, its column header, the table caption, and the statement. This captures local lexical context.
  2. Upper Layers: The mask is relaxed to allow cells to attend to other cells within the same column. This enables cross-row reasoning, allowing the model to compare values across different records.
Figure 4: The SAT architecture uses structure-aware masking to guide attention. Lower layers focus on row-wise context, while upper layers enable column-wise comparisons.
  1. The Summary Row: To further assist with symbolic reasoning, SAT appends a "summary row" to the table. This row contains pre-calculated first-order aggregations, such as the frequency of duplicate values in a column. This transforms complex counting tasks into simpler semantic matching problems.

Experimental Results

SAT was evaluated on the TabFact dataset, which consists of over 118,000 statements derived from Wikipedia tables. The model achieved a state-of-the-art accuracy of 73.23%, outperforming the previous baseline (Table-BERT) by nearly 5%.

The impact of the structural injection was most evident in "Complex" reasoning tasks—those requiring aggregation or multi-row comparisons—where SAT saw a 5.75% improvement. Ablation studies confirmed that the attention mask was the primary driver of performance, as removing it led to a significant drop in accuracy (5-9%).

Conclusion and Future Directions

By treating the Transformer's attention mechanism as a structural filter, SAT effectively bridges the gap between unstructured text and structured data. While the model still faces challenges with extremely large tables (due to sequence length limits) and high-level conditional logic, it represents a significant step toward more robust automated fact-checking. Future work may extend this structure-aware approach to other complex formats like knowledge graphs or flowcharts.

Summary updated

BibTeX
@inproceedings{zhang2020table,
  author = {Hongzhi Zhang and Yingyao Wang and Sirui Wang and Xuezhi Cao and Fuzheng Zhang and Zhongyuan Wang},
  title = {{Table Fact Verification with Structure-Aware Transformer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.126},
}
Figure