Inferring Missing Categorical Information in Noisy and Sparse Web Markup

Nicolas Tempelmeier, Elena Demidova, Stefan DietzearXiv 2018 · DOI · arXiv

TL;DR

While semantic web markup (like schema.org) is embedded in nearly 40% of web pages, individual annotations are notoriously sparse and noisy, often omitting critical categorical details. This paper introduces a supervised machine learning approach that leverages contextual features—such as the hosting domain and surrounding page vocabulary—to automatically infer missing attributes. By treating this as a classification problem and introducing a domain-aware sampling strategy, the authors achieve F1 scores of up to 83%, significantly outperforming traditional knowledge graph completion baselines.

What Problem Does This Paper Address?

Structured data markup (such as RDFa and Microdata) helps search engines and applications understand web content. However, web developers rarely provide complete descriptions. For instance, in a massive crawl of 26 million event annotations, 59% contained fewer than six statements, and less than 1% specified a precise subtype (like s:Festival or s:TheaterEvent), defaulting instead to the generic, uninformative s:Event.

Traditional Knowledge Graph (KG) completion methods fail in this environment. They rely on dense graph structures and explicit links between entities. Web markup, by contrast, consists of isolated nodes, missing links, typos, and vocabulary misuse. The authors tackle the challenge of automatically inferring missing categorical information (such as movie genres or specific event subtypes) within this noisy, disconnected web ecosystem.

Methods

The authors frame the inference problem as a supervised classification task, utilizing a three-stage pipeline:

  1. Data Cleansing: Heuristics are applied to fix common developer mistakes, such as correcting malformed namespaces (e.g., https vs http) and fixing capitalization errors in schema terms.
  2. Feature Extraction: Instead of relying on non-existent graph links, the model extracts three types of features:
  3. tld/pld: The top-level domain and pay-level domain (e.g., imdb.com), capturing the intuition that specific websites specialize in specific topics.
  4. node-vocab: The frequency of schema.org predicates used within the specific target node.
  5. page-vocab: The frequency of schema.org predicates used anywhere on the same web page, providing broader context.
  6. Classification Models: The authors evaluate several standard classifiers, including Naïve Bayes, Decision Trees, Support Vector Machines (SVM), and Random Forests.

Crucially, they introduce a pld-aware sampling strategy. Because web markup is heavily dominated by a few massive websites (like ticket-selling giants), standard random sampling causes models to overfit to those dominant players. This new sampling strategy ensures that the long-tail of smaller, diverse websites is fairly represented in the training data.

Datasets

The training and evaluation datasets were extracted from the Web Data Commons (WDC) October 2016 corpus, which is derived from the Common Crawl. The authors evaluated their approach on two distinct tasks:

  • Event Classification: Predicting 19 specific subtypes of s:Event. The dataset was balanced to focus on the top 7 most frequent subtypes plus an "Other" category.
  • Movie Genre Classification: A multi-label problem mapped to 22 standard IMDB genres, evaluated as 7 individual binary classification tasks for the top genres.

The cleansed and labeled datasets have been made publicly available by the authors.

Key Insights and Ideas

  • Context Over Structure: Traditional KG completion relies on structural graph connections. In web markup, where the data lives (the domain and the surrounding page vocabulary) is a far more powerful predictor of missing attributes than the internal structure of the sparse node itself.
  • The Power-Law Trap: Web markup data distributions follow a strict power law. A tiny fraction of pay-level domains provide the vast majority of web annotations.
  • Sampling Matters: Switching from standard stratified random sampling to a domain-aware (pld-aware) sampling method drastically improves model generalization, boosting F1 scores by up to 17 percentage points depending on the category.

Key Results

The Random Forest classifier consistently emerged as the top-performing model across all metrics.

  • Event Subtype Prediction: The proposed approach achieved a 79.59% F1 score using pld-aware sampling. This vastly outperformed the adapted state-of-the-art baseline, SD-Type (56.99%), and a traditional Knowledge Graph baseline (2.96%).
  • Movie Genre Prediction: The Random Forest model achieved an 83.14% F1 score, compared to 67.62% for SD-Type and 47.42% for the KG baseline.

The significant performance jump highlights the benefit of using domain-balanced training data:

Figure 4: F1 scores macro averages [%] for the Random For- est classifier with respect to dataset and sampling method.

Limitations and Future Work

  • Unknown Domains: Because the model relies heavily on the tld/pld feature, its performance is expected to degrade when classifying markup from entirely new or unseen web domains (though the authors note that page-vocab acts as a partial buffer).
  • Evaluation Scope: The experiments were limited to two specific domains (movies and events). Feature importance and vocabulary correlations may vary significantly when applied to other schema types, like products or local businesses.
  • Ground Truth Bias: The evaluation dataset was built using nodes that already contained the target categorical information. This introduces a potential bias toward higher-quality markup overall.

In future work, the authors plan to test their approach on unconstrained, randomly selected data, explore graph embedding techniques tailored for web markup, and integrate this method directly into data fusion and knowledge graph augmentation pipelines.

Summary updated

Abstract

Embedded markup of Web pages has seen widespread adoption throughout the past years driven by standards such as RDFa and Microdata and initiatives such as schema.org, where recent studies show an adoption by 39% of all Web pages already in 2016. While this constitutes an important information source for tasks such as Web search, Web page classification or knowledge graph augmentation, individual markup nodes are usually sparsely described and often lack essential information. For instance, from 26 million nodes describing events within the Common Crawl in 2016, 59% of nodes provide less than six statements and only 257,000 nodes (0.96%) are typed with more specific event subtypes. Nevertheless, given the scale and diversity of Web markup data, nodes that provide missing information can be obtained from the Web in large quantities, in particular for categorical properties. Such data constitutes potential training data for inferring missing information to significantly augment sparsely described nodes. In this work, we introduce a supervised approach for inferring missing categorical properties in Web markup. Our experiments, conducted on properties of events and movies, show a performance of 79% and 83% F1 score correspondingly, significantly outperforming existing baselines.
BibTeX
@misc{tempelmeier2018inferring,
  author = {Nicolas Tempelmeier and Elena Demidova and Stefan Dietze},
  title = {{Inferring Missing Categorical Information in Noisy and Sparse Web Markup}},
  year = {2018},
  eprint = {1803.00446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.00446},
}
Figure