Learning block importance models for web pages

Ruihua Song, Haifeng Liu, Ji-Rong Wen, Wei-Ying Ma

Introduction

Web pages are complex digital artifacts composed of diverse regions, including headlines, navigation menus, sidebars, and advertisements. While traditional web mining often treats a page as a monolithic "atomic unit," human users naturally prioritize certain areas over others. This paper introduces a machine learning framework designed to automatically assign importance scores to these distinct blocks using vision-based segmentation and a combination of spatial and content features. The resulting models achieve performance levels nearly indistinguishable from human judgment.

The Problem: Beyond Atomic Web Pages

In the early 2000s, search algorithms and web mining tools typically assigned equal weight to every word on a page. However, a user seeking news is primarily interested in the main headline and body text, often ignoring copyright notices or navigation links.

While algorithms like PageRank effectively determine the importance of pages within a network, they lack the granularity to identify important parts of a single page. Distinguishing "signal" (primary content) from "noise" (ads, headers, footers) is essential for improving search relevance, optimizing web crawling, and adapting content for mobile devices with limited screen real estate.

Methodology: From Pixels to Importance

The researchers framed the determination of block importance as a supervised learning task, utilizing a three-stage pipeline.

1. Vision-based Page Segmentation (VIPS)

Rather than relying on the often-convoluted HTML DOM tree, the authors employed the VIPS algorithm. VIPS uses visual cues—such as font size, color, and background—to partition a page into a hierarchy of "semantic blocks" that reflect how a user actually perceives the layout.

Vision-based Page Segmentation (VIPS) extracts a hierarchical structure of semantic blocks from a web page.

2. Feature Extraction

For each identified block, two categories of features were extracted:

  • Spatial Features: These include the block's position (X, Y coordinates) and dimensions (width, height). To handle long pages, the authors introduced "window spatial features," which normalize coordinates based on a fixed-height viewing window rather than the total page length.
  • Content Features: These capture the internal characteristics of the block, such as the count of images, links, and words, as well as the presence of interactive elements like forms.

3. Learning Models

The study compared three machine learning approaches to map these features to importance levels: Linear Support Vector Machines (SVM), non-linear SVMs with a Radial Basis Function (RBF) kernel, and RBF Neural Networks.

Experimental Setup and Dataset

To train and evaluate the models, the authors constructed a dataset of 600 web pages from 405 sites across news, science, and shopping categories.

  • Segmentation: VIPS identified 4,539 distinct blocks.
  • Ground Truth: Five human assessors labeled each block on a 4-level scale (Level 1: Noise/Ads to Level 4: Headlines/Main Content).
  • Consensus: The final dataset consisted of 4,517 blocks where at least a 3/5 majority of assessors agreed on the importance level.

Key Findings and Results

The experiments yielded several critical insights into how we perceive web content:

  • Human Consensus: Importance is not purely subjective; human assessors agreed on block importance 92.9% of the time.
  • Layout Dominance: Spatial features (location and size) were found to be more influential than content features. However, content features provide necessary context to distinguish between visually similar blocks, such as a large advertisement versus a large news photograph.
  • Non-linearity: The SVM with an RBF kernel significantly outperformed the linear model, indicating a complex, non-linear relationship between layout and importance.
An example of a web page with blocks assigned different importance levels (1 to 4) by the model.

The RBF SVM achieved a Micro-F1 score of 79% and a Micro-Accuracy of 85.9%, coming remarkably close to the average human performance (~84.2% F1).

Conclusion and Future Directions

This research demonstrates that machine learning can effectively replicate human intuition regarding web page structure. By moving beyond the "atomic page" model, search engines can prioritize core content, and mobile browsers can more intelligently reformat pages for small screens. Future work could involve integrating these importance weights directly into ranking algorithms or using them to filter noise during the training of automated web classifiers.

Summary updated

BibTeX
@inproceedings{song2004learning,
  author = {Ruihua Song and Haifeng Liu and Ji-Rong Wen and Wei-Ying Ma},
  title = {{Learning block importance models for web pages}},
  booktitle = {The Web Conference},
  year = {2004},
  doi = {10.1145/988672.988700},
}
Figure