TL;DR
GraSSLM (Graph Semi-Structured Language Model) treats Web tables and lists as graphs rather than flat text to better capture their inherent structural relationships. By combining graph-based reasoning with a novel "Neighbor Prediction" pre-training objective, the model achieves a significant performance boost in Web Question Answering, outperforming state-of-the-art baselines like TAPAS by up to 3.90 F1 points.
Introduction
A significant portion of the Web’s information is stored in semi-structured formats like HTML tables and lists. While humans intuitively understand the relationship between a table header and a cell, or between two cells in the same row, standard Natural Language Processing (NLP) models often struggle with these layouts.
Most existing QA systems "flatten" tables into a sequence of text to feed them into models like BERT. This approach loses critical "vertical" context; for example, a model might fail to realize that "New York" and "Tokyo" are both instances of a "City" column if they are separated by many other cells in a flattened string. GraSSLM aims to bridge this gap by explicitly modeling the structural and semantic correlations hidden within these data formats.
Methods
The GraSSLM framework utilizes a three-stage approach to process semi-structured data:
- Graph Construction: Instead of a string, the data is transformed into a graph where nodes represent the query, table caption, headers, and individual cells. Edges are defined by four semantic relations: Caption-Content, Header-Cell, Subject-Attribute (linking main entities to their properties), and Cell-Cell (linking adjacent cells).
- Graph Initialization & Reasoning: The model uses BERT to generate initial embeddings for text within each node, followed by a BiLSTM to create fixed-size node vectors. A two-layer Graph Convolutional Network (GCN) then performs "message passing," allowing nodes to update their representations based on their neighbors' structural context.
- Novel Pre-training Objectives:
- Whole Cell Masking (WCM): Masks entire cells to force the model to recover information using structural context.
- Neighbor Prediction Objective (NPO): This key innovation tasks the model with predicting a masked node's content using only the representations of its graph neighbors, baking structural "common sense" into the model.
Datasets
The study utilizes several benchmarks, including new datasets mined from a commercial search engine:
- Table-QM & List-QM: English QA datasets (34k and 62k cases) with query-table/list pairs labeled by human judges.
- DTable-QM (Deep Tables): A subset of complex tables (50+ cells, 10+ columns) designed to test reasoning on difficult layouts.
- Large-scale Pre-training Sets: Massive unlabeled datasets containing 7 million Web tables and 100 million Web lists used for structural pre-training.
Key Results
GraSSLM demonstrates superior performance across all tested benchmarks, particularly where structural complexity is high. The model achieved an average F1 score of 75.95%, consistently outperforming both BERT and the table-specific TAPAS model.
Key findings include:
- Significant Gains on Lists: The model showed its strongest improvement on the List-QM dataset, beating TAPAS by 3.90 points.
- Robustness on Complex Data: On the "Deep Tables" (DTable-QM) dataset, GraSSLM maintained a lead, suggesting that explicit graph modeling is especially beneficial as data structures become noisier.
- Ablation Success: Removing the GCN reasoning layer caused the largest performance drop (3.36% on average), proving that graph-based message passing is the primary driver of success.
Conclusion and Future Work
GraSSLM proves that treating structure as a "first-class citizen" significantly improves a model's ability to reason over Web data. By treating lists as single-column tables and utilizing neighbor-based pre-training, the model captures logic that flattened text models miss.
Future research may explore extending the model to generative QA (extracting specific answer strings) and handling multi-modal semi-structured data, such as tables containing images.
Summary updated