A Vision for Semantically Enriched Data Science

Udayan Khurana, Kavitha Srinivas, Sainyam Galhotra, Horst SamulowitzarXiv 2023 · DOI

Abstract

While current Automated Machine Learning (AutoML) excels at mathematical optimization, it remains "semantic-oblivious," often ignoring the real-world meaning of the data it processes. This paper proposes a vision for Semantically Enriched Data Science, a framework that leverages knowledge graphs, code mining, and text analysis to automate domain-aware feature engineering and create more trustworthy, explainable models.

The Semantic Gap in Data Science

The "last mile" of data science—utilizing domain knowledge and data semantics—remains largely manual. While tools can automatically tune hyperparameters or select models, they don't "understand" that a column labeled "Ht" represents "Height" or that "Height" and "Weight" can be combined into a "Body Mass Index (BMI)."

Figure 1: Mapping raw tabular data to real-world concepts and external knowledge sources like Wikipedia and Knowledge Graphs.

Without this semantic layer, automated systems may perform nonsensical operations (e.g., adding height to weight), miss obvious features known to experts, and produce "black box" models that are difficult to explain, potentially biased, and brittle when faced with real-world distribution shifts.

A Framework for Semantic Augmentation

The authors outline a "Semantics Machinery" for data science that moves beyond pure statistics. This framework integrates semantic awareness into every stage of the traditional data science pipeline.

Figure 2: The data science pipeline augmented by semantics, showing advantages and examples across data acquisition, preparation, training, and analysis.

Key Methodologies

  • Table Understanding: Using Knowledge Graphs (like DBpedia or Wikidata) and massive web table corpora to map raw columns to real-world concepts (e.g., mapping a "Patient" column to the concept of a "Person").
  • Mining Semantics from Code and Text: Automatically extracting formulas and relationships from data science notebooks (Kaggle) and unstructured text (Wikipedia). For example, a system could mine the formula for the Case Fatality Rate (CFR) from a COVID-19 notebook and suggest it as a new feature.
  • Semantic AutoFE (Feature Engineering): Applying domain-specific constraints to feature construction. Instead of a random search, the system uses a "grammar" of valid operations (e.g., dimensions must be consistent to add two variables).
  • Semantics in AutoML: Pruning the massive search space of hyperparameters by analyzing Python DocStrings and code patterns to see which configurations are typically used for specific types of data.

Datasets and Knowledge Sources

As a vision and survey paper, it references a wide array of existing datasets and knowledge sources:

  • Knowledge Bases: DBpedia, Wikidata.
  • Table Corpora: WikiTables (1.6 million tables), Viznet, and the Common Crawl Web Corpus (3.5 billion HTML pages).
  • Code Repositories: Large-scale mining of Kaggle notebooks and scripts.
  • Benchmarks: The authors highlight the need for new, realistic human-annotated benchmarks specifically for numeric column-to-concept mapping.

Key Insights and Results

  • The "Recall Problem": A major hurdle is that only about 3% of web tables can currently be matched to structured knowledge bases like DBpedia. This necessitates "knowledge-agnostic" approaches that learn from large, unorganized "data lakes."
  • Code as a Knowledge Source: Data science notebooks are essentially "executable documentation," containing the collective wisdom of thousands of experts.
  • Explainability and Fairness: By understanding causal relationships between concepts (e.g., "Age" and "Marital Status"), systems can better identify bias. Furthermore, mapping features to a Knowledge Graph allows predictions to be rooted in real-world concepts rather than abstract mathematical weights.
  • Performance Gains: Systems using semantic joins, such as PEXESO, have shown a 1.9% higher micro-F1 score and 10% lower mean squared error on machine learning tasks compared to non-semantic baselines.

Limitations and Future Work

The authors identify several open research problems, including the Numeric Gap—the struggle of current semantic tools with units, scales, and quantities. Future work must also address LLM Integration, as Large Language Models face challenges with tabular sequence lengths and numerical magnitude representation. Finally, developing techniques to automatically organize "schema-on-read" data in massive enterprise data lakes remains a significant challenge for the field.

Summary updated

BibTeX
@misc{khurana2023vision,
  author = {Udayan Khurana and Kavitha Srinivas and Sainyam Galhotra and Horst Samulowitz},
  title = {{A Vision for Semantically Enriched Data Science}},
  year = {2023},
  eprint = {2303.01378},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.01378},
}
Figure