Web Page Classification using LLMs for Crawling Support

Yuichi Sasazawa, Yasuhiro SogawaarXiv 2025 · DOI

Introduction

Web crawlers serve as the foundational infrastructure for search engines and data aggregators. However, maintaining up-to-date indices is a significant challenge, particularly for websites that lack structured metadata like XML sitemaps or RSS feeds. In these scenarios, crawlers often resort to inefficient "brute force" methods, re-visiting every known page to detect updates, which consumes excessive bandwidth and computational resources. Researchers from Hitachi have proposed a novel solution: using Large Language Models (LLMs) to distinguish between "Index Pages" and "Content Pages" to prioritize crawling paths.

Classifying Pages for Targeted Discovery

The core insight of this research is that web pages generally fall into two functional categories. Index Pages act as hubs, containing links to various articles or sub-sections (e.g., homepages, category archives). Content Pages are the final destinations containing the primary information (e.g., news articles, blog posts). By accurately identifying Index Pages, a crawler can focus its efforts on these high-value hubs to discover new content more rapidly.

Visual comparison between an Index Page (listing multiple articles) and a Content Page (a specific article).

Methodology

The researchers framed this as a binary classification task utilizing zero-shot prompting with GPT-4o and GPT-4o-mini. The models were provided with varying levels of input: either the page Title alone or a combination of the Title and Body Text.

To evaluate the system, a dataset of 10,000 pages from major news outlets (such as CNN and TechCrunch) was curated. The performance was measured against two baselines:

  1. Rule-based: Classifying any page with a title shorter than nine words as an Index Page.
  2. All Pages: A baseline where every page is treated as a potential hub for discovery.

Performance Evaluation

The experimental results demonstrated that LLMs significantly outperform traditional heuristics. GPT-4o, when provided with both the title and body text, achieved the highest classification accuracy, reaching an F1 score of 0.894.

Classification performance metrics comparing rule-based baselines with LLM-based approaches.

Interestingly, the study revealed a "noise penalty" for smaller models. While GPT-4o benefited from the additional context of body text, GPT-4o-mini's performance actually declined when body text was included. This suggests that smaller models are more susceptible to the "noise" inherent in raw HTML extractions, such as navigation menus and sidebars, whereas larger models are robust enough to filter this information effectively.

Key Insights and Discovery Coverage

Beyond raw classification scores, the researchers simulated real-world crawling to measure "Discovery Coverage"—the ability to find pages published within the last 30 days. LLM-based methods consistently outperformed the baselines, with GPT-4o-mini (using Title only) achieving a coverage of 0.880 compared to 0.848 for the "All Pages" approach.

The study also noted that classification accuracy eventually hits a point of diminishing returns. Once a certain F1 threshold is reached, further improvements in classification do not necessarily translate to better crawling coverage. This indicates that the strategic importance of the identified index pages (e.g., a "Breaking News" hub vs. a static "About Us" page) is a critical factor for future optimization.

Conclusion and Future Work

This research proves that LLMs can effectively serve as zero-shot classifiers to guide web crawlers, even in "cold-start" environments without sitemaps. While the computational cost of API-based LLMs remains a consideration, the authors suggest that these results could be used to train smaller, specialized local models. Future research will focus on refining the classification categories and testing these strategies in live, dynamic web environments where site structures shift in real-time.

Summary updated

BibTeX
@misc{sasazawa2025web,
  author = {Yuichi Sasazawa and Yasuhiro Sogawa},
  title = {{Web Page Classification using LLMs for Crawling Support}},
  year = {2025},
  eprint = {2505.06972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.06972},
}
Figure