Introduction
In the current landscape of Retrieval-Augmented Generation (RAG), Large Language Models (LLMs) are often treated as universal readers capable of parsing any text. However, a significant portion of the web's information is stored in semi-structured formats—such as product tables, financial reports, and directory listings—rather than narrative prose. These formats lack the grammatical cues that LLMs typically rely on for comprehension. This research investigates whether explicit Information Extraction (IE)—the process of converting messy HTML into structured (subject, predicate, object) triples—remains a critical step for high-quality question answering (QA) or if modern LLMs have rendered it obsolete.
Methodology
The study evaluates four primary strategies to bridge the gap between semi-structured data and LLM reasoning:
- Triple Extraction: Converting HTML content into structured knowledge triples using zero-shot and fine-tuned models.
- Script-Based Extraction: A cost-effective approach where an LLM generates a Python parsing script for a specific site layout, enabling efficient data extraction at scale.
- Multi-Task Fine-Tuning (MT): Training models to simultaneously perform QA and triple extraction, fostering "structural awareness" within the model's internal representations.
- Triple Augmentation: Providing the LLM with both the original webpage and the extracted triples as a structured "cheat sheet" to improve retrieval and reasoning.
Datasets and Benchmarking
The researchers extended the WebSRC benchmark to create SemiBench, which includes:
- Cleaned Webpages: 180 pages with noise (ads, navigation) removed, annotated with 4,741 ground-truth triples.
- Whole Webpages: 251 raw webpages containing over 30,000 triples, reflecting the noisy reality of real-world RAG systems.
Results and Discussion
The experimental results demonstrate that structured data serves as a powerful "force multiplier" for LLMs. While models perform reasonably well on cleaned HTML, their performance drops significantly on raw "whole" webpages.
Key findings include:
- Performance Boosts: On noisy "whole" webpages, augmenting the context with ground-truth triples increased Llama 70B's accuracy from 75.9% to 86.6%.
- Empowering Smaller Models: Multi-task fine-tuning (QA + Extraction) allowed the Llama 3B model to improve its accuracy on whole pages from 58.2% to 76.5%, effectively matching the baseline performance of the much larger 70B model.
- Computational Efficiency: The script-based approach achieved performance comparable to fine-tuned models on cleaned pages while being approximately 3,000 times more computationally efficient than full LLM extraction.
Conclusion
Explicit knowledge extraction remains highly relevant in the era of LLMs, particularly for handling the noise and structural complexity of real-world web content. By transforming semi-structured data into structured triples, researchers can significantly enhance the reasoning capabilities of both large and small models. Future work will focus on improving extraction quality on highly inconsistent "whole" webpages and refining low-cost pathways like script-based parsing for massive-scale applications.
Summary updated