Improving a Page Classifier with Anchor Extraction and Link Analysis

William W. CohenNeurIPS 2002

Introduction

This paper introduces a method to significantly boost the accuracy of web page classifiers when applied to new, unseen websites. By combining a traditional "bag-of-words" approach with a novel "one-step co-training" technique that exploits the HTML structure of "hub" pages, the authors successfully reduced classification error rates by approximately 50%.

The Challenge of Unseen Websites

Most text categorization systems treat web pages as isolated "bags of words." While effective on familiar data, this approach struggles when applied to a new website where the vocabulary, layout, or style differs significantly from the training data.

However, websites possess a hidden structural advantage. Many sites utilize "hub" or index pages—such as a directory of employees or a product list—that link directly to the target pages we want to classify. These hubs often feature a highly consistent HTML structure. For example, all links to "Executive Biographies" might be uniformly located in the left-hand column of a specific table. The primary challenge is automatically discovering and exploiting these site-specific structural patterns without requiring a human to manually write rules for every new website.

Methodology: One-Step Co-Training

To bridge the gap between content and structure, the authors propose a system utilizing one-step co-training. This process operates in four main stages:

  1. Initial Labeling: A standard bag-of-words classifier (the "base learner") makes its initial predictions on pages from a new, unlabeled website.
  2. Anchor Mapping: The system examines the "anchors" (clickable links) on hub pages that point to these predicted pages. If the base learner classifies a target page as a "positive" match, the corresponding link is tentatively labeled as a "positive anchor."
  3. Wrapper Induction ($WL^2$): A specialized learner called $WL^2$ is used to find HTML patterns (wrappers) that describe these positive anchors. Instead of just analyzing text, it looks for structural cues, such as "the third item in every list" or "links inside a <b> tag."
  4. Final Integration: These discovered structural patterns are converted into new features. A final learner (like Winnow or C4.5) combines the original bag-of-words predictions with these structural features to produce a much more accurate final classification.

The "one-step" nature of this co-training is crucial: it uses the noisy, imperfect labels from the initial content classifier to "teach" the secondary structural classifier, which in turn smooths out the errors of the first.

Datasets and Key Results

The researchers evaluated their technique on a specific real-world task: identifying executive biography pages. They crawled nine different company websites, yielding 879 pages in total (128 of which were actual biographies). To ensure the system was tested on truly "unseen" site styles, the base bag-of-words classifier was trained on a completely separate, disjoint set of websites.

The results across the nine test sites demonstrated substantial improvements:

Accuracy results across nine test sites
  • Baseline Performance: The simple bag-of-words classifier ($f'_1$) achieved an average accuracy of 91.6%.
  • Improved Performance: By incorporating the proposed structural analysis (Algorithm 2 with Winnow), the average accuracy jumped to 96.4%.
  • Error Reduction: This improvement represents a ~50% reduction in the overall error rate. The boost in performance was statistically significant and consistent across different types of final learners, including both Winnow and C4.5 decision trees.

Key Insights

  • Hubs Provide Crucial Context: The context around a link on a hub page is often more informative than the content of the target page itself when adapting to a new site's unique layout.
  • Structural Independence: The textual content on a target page and the HTML structure of the hub linking to it are roughly independent. This makes them ideal candidates for co-training, as one can provide a "second opinion" to correct the other.
  • Robustness to Noise: By using a bagging-like approach—feeding many small subsets of data to the wrapper learner—the system successfully identifies reliable structural rules even if the initial bag-of-words classifier makes several mistakes.

Limitations and Future Work

While highly effective, the method assumes that the target website employs a "hub-and-spoke" architecture. If a site is poorly organized or lacks central index pages, the structural features will be less useful.

The authors note that while their co-training approach is successful, future work should compare it more rigorously against emerging probabilistic models (like "scoped learning") to determine which handles site-specific features more efficiently. Additionally, because the study was limited to nine company sites, testing the system on a broader variety of web architectures—such as social media platforms or news aggregates—remains a logical next step.

Summary updated

BibTeX
@inproceedings{cohen2002improving,
  author = {William W. Cohen},
  title = {{Improving a Page Classifier with Anchor Extraction and Link Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2002},
}
Figure