Abstract
Extracting structured information from the vast array of semi-structured webpages remains a significant challenge due to the diversity of website templates. Traditional methods rely on site-specific wrappers that fail to generalize to unseen layouts. We present ZeroShotCeres, a system that treats webpages as multi-modal layout graphs and utilizes Graph Attention Networks (GATs) to perform zero-shot relation extraction. Our approach demonstrates that visual and structural patterns are universal across domains, allowing a model trained on one set of websites to successfully extract data from entirely different verticals. ZeroShotCeres achieves a 31% F1-score improvement over heuristic baselines in unseen vertical settings.
Introduction
The modern web is a repository of semi-structured data—pages where information is presented in consistent visual patterns but lacks a formal schema. Examples include movie cast lists, sports statistics, and university directories. Historically, extracting this data required "wrapper induction," a process of building specific extractors for every unique website template. This approach is brittle; a minor layout change breaks the extractor, and scaling to the "long tail" of the internet is impossible.
ZeroShotCeres addresses this by focusing on zero-shot relation extraction. The goal is to train a model on a source domain (e.g., NBA player stats) and have it accurately extract relations from a target domain (e.g., Movie details) without any site-specific training data or manual tuning.
Methodology: The Layout Graph
The core innovation of ZeroShotCeres is representing a webpage not as a linear string of HTML, but as a Layout Graph. This graph captures the spatial and structural relationships that humans use to interpret a page.
- Graph Construction: Each text field on a page is a node. Edges are established based on three criteria: horizontal proximity (side-by-side), vertical proximity (stacked), and DOM relationship (siblings or cousins in the HTML tree).
- Multi-modal Encoding: Nodes are enriched with visual features (font size, color, bounding box) and textual features (BERT embeddings for known schemas or word frequency for open-domain tasks).
- Graph Attention Network (GAT): A GAT allows information to propagate through the graph. This "contextual flow" enables the model to understand that a label like "Director" confers meaning to a nearby name like "Greta Gerwig."
Experimental Evaluation
The system was evaluated using an extended SWDE (Structured Web Data Extraction) dataset, comprising 21 websites across three verticals: Movies, NBA Players, and Universities. To test zero-shot capabilities, the researchers employed an "Unseen-Vertical" protocol, where the model is trained on two categories and tested on the third.
Key Results
ZeroShotCeres significantly outperformed traditional heuristics and non-graph neural models:
- Open Information Extraction (OpenIE): In the Unseen-Vertical setting, the GNN-based model outperformed a "Colon Baseline" (a heuristic identifying text ending in ":") by 31% in F1-score.
- Closed Information Extraction (ClosedIE): When extracting based on a fixed schema, the graph-aware approach provided a 26% F1 boost over standard feed-forward neural networks that lacked structural context.
Discussion and Insights
The success of ZeroShotCeres suggests that layout is a universal language. While HTML tags vary wildly between developers, the visual presentation of data—such as bold labels followed by values—is remarkably consistent across the web. By capturing these visual and structural intuitions mathematically, the model mimics how a human eye scans a page to locate specific facts.
Limitations and Future Work
Despite its strengths, the model faces challenges with n-ary relations (e.g., complex tables where one date links to multiple events) and long vertical lists, where information flow can become diluted. Future research will explore more complex pre-training objectives to further enhance the robustness of these learned representations for web-scale extraction.
Conclusion
ZeroShotCeres represents a major step toward automated, template-independent web data extraction. By moving beyond raw text to a structural layout graph, the system achieves unprecedented generalization, proving that models can indeed learn to extract knowledge from the unknown.
Summary updated