Abstract
Extracting structured information from HTML documents is essential for knowledge base construction, search, and recommendation systems. However, existing methods often require extensive human labeling—either hundreds of pages per target site or thousands across seed sites—to achieve generalization. This process is expensive and time-consuming due to noisy content and low site-level consistency. We present LEAST (Label-Efficient Self-Training), a framework that utilizes only a few human-labeled pages to pseudo-annotate a large corpus of unlabeled data. By employing an iterative teacher-student training loop and an uncertainty-aware re-weighting mechanism, LEAST mitigates error propagation from noisy labels. Our experiments demonstrate that LEAST outperforms state-of-the-art models by over 26 F1 points on unseen websites while requiring 10x fewer human-labeled pages.
Introduction
The modern web is built on "detail pages"—semi-structured documents like product listings or movie profiles that follow a consistent internal template but vary wildly across different websites. Extracting attributes (e.g., a movie's director or a product's price) from these pages is a core challenge in data science.
Traditional "wrapper induction" methods are site-specific and brittle. While neural models offer better transferability, they typically demand a massive volume of labeled data. LEAST addresses this bottleneck by enabling a model to "teach itself" using a tiny sliver of human-labeled data and a vast amount of unlabeled web content.
The LEAST Methodology
LEAST operates through an end-to-end framework designed to handle the inherent noise of the internet. The process is centered around a Teacher-Student self-training loop that bridges the gap between limited human supervision and large-scale unlabeled data.
1. Semi-Supervised Generative Modeling
To generate initial training data, LEAST uses a generative model that treats website creation as an "inverse rendering" problem. It assumes that a website is generated by populating an HTML template with data from a structured relation. By identifying overlapping data across different sites (using heuristics), the model infers these rendering rules to create high-quality pseudo-labels for unlabeled pages.
2. Iterative Teacher-Student Training
The framework utilizes a dual-model approach. A "Teacher" model, initially trained on the few available human labels, works alongside the generative model to label a large unlabeled corpus. A "Student" model is then trained on this augmented dataset. In subsequent iterations, the Student model is promoted to the role of Teacher, refining the pseudo-labels and improving the extraction accuracy over time.
3. Node-level Adaptive Re-weighting
Not all pseudo-labels are equally reliable. To prevent the model from learning and propagating errors, LEAST estimates the uncertainty of each label at the DOM node level. If the model is uncertain about a specific element in the HTML tree, it down-weights that node during training. This ensures that the student model prioritizes high-confidence labels while still benefiting from the broader context of the page.
Experimental Evaluation
We evaluated LEAST using the SWDE (Structured Web Data Extraction) dataset, covering four verticals: NBA Players, Autos, Movies, and Universities. Each vertical contains 10 websites with thousands of pages. We specifically focused on "zero-shot" scenarios, where the model is trained on a small subset of websites and tested on entirely unseen ones.
Key Results
- Superior Generalization: On unseen websites, LEAST improved the average F1 score by 26.77 points compared to previous state-of-the-art models like SimpDOM.
- Extreme Label Efficiency: LEAST achieved high performance with a fraction of the human effort. For instance, in the Movie vertical, LEAST reached the same performance level using only 18 human-labeled pages that a standard model required 818 pages to achieve—a more than 40x reduction in labeling needs.
- Robustness to Noise: The adaptive re-weighting and noise-robust loss functions allowed the model to effectively leverage thousands of unlabeled pages without being misled by the errors inherent in automated pseudo-labeling.
Conclusion
LEAST represents a significant step forward in making web data extraction scalable. By combining the strengths of heuristic-based generative models with the flexibility of neural networks, it eliminates the need for massive human-labeled datasets. This "label-efficient" approach not only reduces the cost of building knowledge bases but also allows for faster deployment of extraction systems to new, unseen domains on the web.
Summary updated