AXE: Low-Cost Cross-Domain Web Structured Information Extraction
Abdelrahman Mansour, Khaled W. Alshaer, Moataz Elsaban
TL;DR
AXE tackles the challenge of cross-domain web information extraction by reframing HTML as a pruneable DOM and grounding outputs to exact source nodes. The pipeline combines lossless HTML preprocessing, aggressive DOM pruning, and a small 0.6B LLM with three LoRA adaptors (QA and schema-focused) to produce accurate structured JSON outputs with strong zero-shot generalization. Grounded XPath Resolution ensures every extraction maps to a concrete DOM node, mitigating hallucinations and enabling traceable outputs. Empirical results on SWDE and WebSRC show state-of-the-art zero-shot F1 scores and dramatic token reduction, highlighting AXE’s practicality and cost efficiency for large-scale web information extraction.
Abstract
Extracting structured data from the web is often a trade-off between the brittle nature of manual heuristics and the prohibitive cost of Large Language Models. We introduce AXE (Adaptive X-Path Extractor), a pipeline that rethinks this process by treating the HTML DOM as a tree that needs pruning rather than just a wall of text to be read. AXE uses a specialized "pruning" mechanism to strip away boilerplate and irrelevant nodes, leaving behind a distilled, high-density context that allows a tiny 0.6B LLM to generate precise, structured outputs. To keep the model honest, we implement Grounded XPath Resolution (GXR), ensuring every extraction is physically traceable to a source node. Despite its low footprint, AXE achieves state-of-the-art zero-shot performance, outperforming several much larger, fully-trained alternatives with an F1 score of 88.1% on the SWDE dataset. By releasing our specialized adaptors, we aim to provide a practical, cost-effective path for large-scale web information extraction.
