Semantics-aware Dataset Discovery from Data Lakes with Contextualized Column-based Representation Learning

Grace Fan, Jin Wang, Yuliang Li, Dan Zhang, Renée J. Miller

TL;DR

Starmie is a new end-to-end framework that uses unsupervised contrastive learning to discover "unionable" tables within massive, messy data lakes. By leveraging pre-trained language models to create contextualized column embeddings, it outperforms state-of-the-art methods by nearly 7% in accuracy while achieving up to a 3,000x speedup in query processing.

What Problem Does This Paper Address?

Data lakes—vast repositories of raw data in various formats—are gold mines for researchers and businesses, but they are notoriously difficult to search. The authors focus on table union search: given a query table, find other tables in the lake that are "unionable" (i.e., they share the same semantic structure and can be appended to the query table).

Existing solutions often fail because they treat columns in isolation. They might use simple syntactic overlap (like Jaccard similarity) or word embeddings for a single column. However, the meaning of a column often depends on its neighbors. For example, a column named "Year" could represent a birth year in a table of people or a production year in a table of cars. Without looking at the "context" of the surrounding columns, discovery tools often return irrelevant results.

Methods

The authors introduce Starmie, which features three primary innovations:

  1. Contextualized Column Encoders: Instead of encoding columns one by one, Starmie serializes a table into a sequence and feeds it into a pre-trained language model (RoBERTa). By using the model's self-attention mechanism, the representation of each column is "contextualized" by the other columns in the same table.
  2. Contrastive Self-Supervised Learning: Training these encoders usually requires massive amounts of labeled data, which doesn't exist for most data lakes. Starmie uses a SimCLR-based contrastive learning strategy. It creates "positive" pairs by taking a table and applying augmentations (like dropping random rows or columns). It treats any two randomly selected columns from the lake as "negative" pairs. The model learns to pull similar (augmented) columns together in vector space and push different columns apart.
  3. Efficient Retrieval & Pruning: To handle millions of tables, Starmie uses a Hierarchical Navigable Small World (HNSW) index for fast vector similarity search. It also implements a "filter-and-verification" framework that uses mathematical lower and upper bounds to prune candidate tables quickly, avoiding the expensive computation of exact bipartite matching for every potential match.

Datasets

The researchers evaluated Starmie on several benchmarks:

  • SANTOS Small: 550 real-world tables from open data portals (Canada, UK, US, Australia).
  • TUS Small & TUS Large: Benchmarks derived from Canadian open data, containing ~1,500 and ~5,000 tables respectively.
  • SANTOS Large: ~11,000 tables used for scalability testing.
  • WDC Web Tables: A massive corpus of 50 million relational tables extracted from the Common Crawl, used to test the system's limits.

Key Insights and Ideas

  • The "Forest" Matters as Much as the "Trees": The core "aha moment" is that column semantics are not intrinsic to the column values alone. By allowing columns to "talk" to each other via the Transformer architecture, the model captures the "intent" of the table.
  • Unsupervised Learning is a Necessity: In the context of data lakes, supervised learning is a bottleneck. Starmie proves that contrastive learning can bridge the gap, allowing a model to learn high-quality semantic representations without a single human label.
  • HNSW vs. LSH: While Locality Sensitive Hashing (LSH) has been the standard for high-dimensional search in this field, the authors found that HNSW (a graph-based index) provides significantly better performance and recall, especially as the data lake grows to the scale of millions of tables.

Key Results

  • Effectiveness: Starmie achieved a 99% Mean Average Precision (MAP) on the SANTOS Small benchmark, outperforming the previous best-known solution (SANTOS) by 6.8%.
  • Scalability: On the 50-million-table WDC dataset, Starmie with an HNSW index provided a 3,000x performance gain over a linear scan and was 400x faster than the state-of-the-art LSH index.
  • Downstream Utility: In a case study for Machine Learning, using Starmie to find and join relevant features from a data lake reduced the Mean Squared Error (MSE) of a regression model by over 25%.

Limitations and Future Work

  • Token Limits: Like all BERT-based models, there is a 512-token input limit. For massive tables with thousands of rows, Starmie must rely on aggressive preprocessing and sampling (using TF-IDF) to select the most "important" cells to represent the column.
  • Focus on Union Search: While the paper touches on joinable search and clustering, the primary optimization and evaluation are centered on table union search.
  • Future Directions: The authors suggest exploring more complex table structures and extending the self-supervised approach to other data discovery tasks like relationship discovery and data cleaning.

Summary updated

BibTeX
@article{fan2023semantics,
  author = {Grace Fan and Jin Wang and Yuliang Li and Dan Zhang and Renée J. Miller},
  title = {{Semantics-aware Dataset Discovery from Data Lakes with Contextualized Column-based Representation Learning}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  doi = {10.14778/3587136.3587146},
}
Figure