Semantic Annotation for Tabular Data

Udayan Khurana, Sainyam GalhotraarXiv 2020

Abstract

Tabular data is the backbone of data science, yet it often arrives with cryptic or missing headers, complicating data integration and automated analysis. We present $C^2$, a novel framework for semantic column annotation that moves away from data-hungry deep learning toward a robust, ensemble-based likelihood estimation. By leveraging the "wisdom of the crowds" from millions of web tables and knowledge graphs, $C^2$ accurately identifies concepts for categorical, numerical, and mixed-type data. Our evaluation across nine benchmarks demonstrates that $C^2$ significantly outperforms existing methods in both accuracy and speed, particularly for numerical data and the "long tail" of semantic types.

Introduction

Semantic annotation—the task of identifying that a column contains specific concepts like "IATA Codes" or "City Populations"—is essential for data integration, cleaning, and automated machine learning. Current approaches generally fall into two categories: rule-based systems and deep learning (DL) models. Rule-based systems are often brittle and fail to generalize to noisy data. DL models, such as Sherlock or Sato, require massive amounts of "gold standard" training data, which is scarce for niche concepts. Furthermore, DL models often struggle to scale to thousands of classes and typically perform poorly on numerical data.

To address these challenges, we introduce $C^2$, a "column to concept" mapper designed to be scalable, noise-tolerant, and capable of handling diverse data types. $C^2$ shifts the strategy from pure classification to Maximum Likelihood Estimation (MLE) across an ensemble of sources.

The $C^2$ Framework

The $C^2$ architecture is built on three primary pillars: specialized indexing, contextual reasoning, and belief sharing. It processes input tables by querying pre-computed indexes derived from large-scale data lakes and knowledge graphs.

The $C^2$ framework architecture, showing the flow from raw data sources to indexed knowledge and final ranked concept lists.

Specialized Indexing

Instead of a one-size-fits-all approach, $C^2$ uses three distinct indexes to handle different data types:

  • Inverted Entity Concept Count Index: For categorical data, it maps entities (e.g., "JFK") to concepts (e.g., "Airport") across different data sources.
  • Numeric Interval Tree Index: For numbers, it uses a modified interval tree to match a column's range against historical ranges for specific concepts (e.g., distinguishing "Human Age" from "Year").
  • Composite Pattern Tree Index: For mixed data like emails or dates, it employs a regex-based decision tree.

Contextual Reasoning and Validation

A key innovation of $C^2$ is that it does not look at columns in isolation. It uses contextual signals to refine its predictions through a multi-stage validation process.

The multi-stage validation process in $C^2$, combining column-level prediction with co-occurrence and tuple-level validation to refine results.

This process includes Column Co-occurrence Validation, which recognizes that certain concepts (like "City" and "Country") frequently appear together, and Tuple-Concept Validation, which checks if specific row-pairs (e.g., "Casino Royale" and "1953") exist as valid instances in reference data.

Belief Sharing

To handle overlapping or synonymous concepts (e.g., "Scientist" vs. "Person"), $C^2$ uses Word2Vec and ontologies to redistribute "votes" among related categories. This ensures that synonymous labels support the overall prediction rather than competing for probability mass.

Evaluation and Results

The authors evaluated $C^2$ on nine different datasets, including standard benchmarks like Limaye and T2Dv2, as well as SemTab competition data.

  • Accuracy: $C^2$ achieved an average top-1 accuracy of 62.9%, vastly outperforming Sherlock (26.6%) and Sato (26%).
  • Numerical Performance: On datasets containing numbers, $C^2$ maintained over 40% accuracy, whereas competitors often failed to provide any prediction.
  • Speed and Scalability: $C^2$ is significantly faster due to its indexing approach. For the T2Dv2 dataset, $C^2$ performed lookups in under 10 seconds, while Colnet required over 12 hours. Unlike DL models, $C^2$ naturally scales to the "long tail" of concepts found in DBPedia and Wikidata.

Conclusion

$C^2$ demonstrates that leveraging the "wisdom of the crowds" from millions of noisy web tables is more effective for semantic annotation than training on small, clean datasets. By treating numbers as first-class citizens and utilizing contextual reasoning, $C^2$ provides a robust and efficient solution for real-world tabular data. Future work will investigate more sophisticated likelihood estimation methods and improved mapping of hierarchical relationships between concepts.

Summary updated

BibTeX
@misc{khurana2020semantic,
  author = {Udayan Khurana and Sainyam Galhotra},
  title = {{Semantic Annotation for Tabular Data}},
  year = {2020},
  eprint = {2012.08594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.08594},
}
Figure