Combining Language and Graph Models for Semi-structured Information Extraction on the Web

Zhi Hong, Kyle Chard, Ian T. FosterarXiv 2024 · DOI

Introduction

The World Wide Web is a vast repository of human knowledge, much of which is contained within "semi-structured" HTML pages, such as product listings, movie databases, and scientific repositories. While these pages follow templates, the diversity of templates across different websites makes automated data extraction difficult. Traditional methods typically fall into two categories: Closed Information Extraction (ClosedIE), which requires site-specific rules and lacks scalability, and Open Information Extraction (OpenIE), which uses Large Language Models (LLMs) but often struggles with "schema alignment"—mapping site-specific labels (e.g., "MSRP") to standard categories (e.g., "Price").

GraphScholarBERT is introduced as a novel open-domain extraction model that addresses these limitations by combining the structural intelligence of Graph Neural Networks (GNNs) with the semantic power of LLMs. The system is designed to extract specific relations from unseen websites using only a short keyword and description as a guide.

Methodology

The core of the GraphScholarBERT architecture is a joint task approach between a graph model and a language model.

The Graph Model

The webpage's Document Object Model (DOM) tree is represented as a graph. Using Graph Attention Network (GAT) layers, the model processes features such as HTML tags, sibling indices, and text frequency. A key innovation is the introduction of "virtual edges," which connect nodes that are physically adjacent on the rendered page even if they are distant in the HTML code.

The Language Model and Fusion

The system utilizes ScholarBERT, a version of BERT pretrained on scientific literature. The model processes a query—consisting of the target relation and its description—alongside text from candidate nodes. Structural features from the graph model are fed directly into the LLM’s classification head, allowing the model to make extraction decisions based on both semantic content and layout context.

Architecture of GraphScholarBERT showing the integration of GAT layers and the LLM classification head.

Experimental Evaluation

The researchers evaluated GraphScholarBERT on three major benchmarks: the standard SWDE (Structured Web Data Extraction) dataset (covering Auto, Book, Camera, and Movie verticals), an Expanded SWDE dataset with higher relation density, and the PPPDB (Polymer Property Predictor and Database) for specialized scientific technical data.

Key Results and Insights

GraphScholarBERT demonstrated significant performance gains, achieving a state-of-the-art (SOTA) improvement of up to 34.8% in F1 score in zero-shot settings.

Performance of GraphScholarBERT on the SWDE dataset across various domains in intra-vertical and inter-vertical settings.

Structural Context as a Semantic Filter

A primary finding is that layout provides critical context that text alone lacks. For example, the graph model helps distinguish between "Price" and "MSRP" by recognizing their specific structural positions relative to other elements like the product title. Ablation studies confirmed this, showing that removing graph features caused F1 scores to drop by 6 to 24 points.

Zero-Shot Generalization

The model excels in "inter-vertical" scenarios, where it is trained on one domain (e.g., movies) and tested on another (e.g., books). In these tests, the model maintained a high average F1 score, such as 0.66 in the Book vertical, proving its ability to learn generalizable patterns of web information organization.

Limitations and Future Work

While highly effective, the model still faces challenges with alphanumeric strings (like ISBNs) that lack strong semantic signatures. It can also be sensitive to noise on pages with many similar values, leading to potential false positives. Future research will explore automating the generation of relation descriptions and improving the model's robustness in dense, high-noise environments.

Summary updated

BibTeX
@misc{hong2024combining,
  author = {Zhi Hong and Kyle Chard and Ian T. Foster},
  title = {{Combining Language and Graph Models for Semi-structured Information Extraction on the Web}},
  year = {2024},
  eprint = {2402.14129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.14129},
}
Figure