Table Enrichment System for Machine Learning

Yuyang Dong, Masafumi Oyamada

Abstract

In modern machine learning workflows, data scientists frequently encounter "feature poverty," where model performance is constrained not by the choice of algorithm, but by the lack of relevant data. This paper introduces an end-to-end Table Enrichment System designed to automatically augment a target dataset by searching massive data lakes. By integrating hybrid search techniques, task-specific filtering, and soft aggregation, the system identifies and merges external columns that provide meaningful predictive signals, effectively bridging the gap between raw data availability and model requirements.

Introduction

While Automated Machine Learning (Auto-ML) has significantly advanced the fields of model selection and hyperparameter optimization, these tools are inherently limited by the features present in the initial training set. In many domains, critical information remains "trapped" in external sources, such as product specifications, technical documentation, or web-scraped tables.

Extracting this information manually is often unfeasible due to the scale of modern data lakes. The Table Enrichment System addresses three primary challenges in automated data augmentation:

  1. Discovery: Identifying joinable tables within a corpus of millions of candidates.
  2. Relevance: Filtering candidate tables to ensure they contribute useful signals rather than introducing noise that could degrade model performance.
  3. Integration: Reconciling messy schemas, inconsistent naming conventions, and missing values across disparate sources.

System Architecture

The proposed system utilizes a four-stage pipeline to transform a user's query table into an enriched dataset optimized for ML tasks.

The system employs Elasticsearch to perform a broad search for candidate rows across the data lake. To account for the lexical variations common in web data (e.g., "Mario Bros" vs. "Super Mario Brothers"), the search combines three distinct methodologies:

  • Jaccard Similarity: A set-based approach for overlap detection.
  • BM25: A probabilistic keyword-based ranking function.
  • Semantic Similarity: Utilizing BERT and fastText embeddings to capture conceptual relationships beyond literal string matches.

A core innovation of this system is the explicit filtering of tables based on the specific ML task. Rather than joining every table with a matching key, the system ranks candidates by comparing their metadata—such as titles and context—against the user's task description. This ensures that the added features are contextually relevant, mitigating the risk of the "curse of dimensionality."

3. Row and Column Alignment

To handle the one-to-many relationships often found in external data, the system maps the highest-similarity matches to the query rows. It addresses schema heterogeneity through "Soft Aggregation." By applying k-means clustering to column name embeddings, the system groups semantically similar columns (e.g., "Price," "MSRP," and "Cost") into unified features, reducing sparsity and dimensionality.

4. Feature Selection and Evaluation

The final stage involves pruning the newly integrated features. Using statistical techniques such as L1 regularization or Random Forest importance, the system retains only those features that demonstrate a measurable improvement in model performance, ensuring the final training set is both lean and informative.

Experimental Evaluation

The system was evaluated using the WDC Web Table Corpus, a massive data lake containing 10 million web tables. Testing was conducted on two primary query tables: an Amazon toy dataset (focused on product category classification) and a Car Sales dataset.

Key Results

Experimental results demonstrated that the enrichment process consistently improved model metrics. On the Amazon toy dataset benchmark:

  • F1-Score: Improved from 0.963 to 0.972.
  • Precision and Recall: Increased by 1.01% and 0.87%, respectively.

Analysis of feature importance indicated that the columns discovered and aggregated from the WDC corpus frequently ranked among the top predictors in the final model, validating the system's ability to find high-value external data.

Discussion and Insights

The research highlights that "joinability" does not equate to "usefulness." The success of the Table Enrichment System relies heavily on its ability to filter for task relevance and use semantic embeddings for schema matching. By moving beyond exact keyword matches, the hybrid search and soft aggregation components allow the system to navigate the inherent messiness of web-scale data.

Limitations and Future Work

Despite its success, several areas for improvement remain. The system currently assumes a baseline level of data quality in the source tables; future iterations could benefit from integrated automated data cleaning. Additionally, while text-based semantic matching is robust, aligning numerical data across different units and scales remains a significant challenge. Finally, optimizing the computational overhead of processing millions of potential joins for large-scale query tables is a priority for future development.

Summary updated

BibTeX
@inproceedings{dong2022table,
  author = {Yuyang Dong and Masafumi Oyamada},
  title = {{Table Enrichment System for Machine Learning}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2022},
}
Figure