Recognizing Variables from Their Data via Deep Embeddings of Distributions

Jonas Mueller, Alex Smola

TL;DR

This paper introduces a novel method for automatically identifying if different datasets contain measurements of the same real-world variable, even when variable names are uninformative or misleading. By learning deep embeddings of dataset distributions, their approach effectively captures the underlying meaning of data, outperforming traditional methods in tasks like schema matching and dataset retrieval.

What Problem Does This Paper Address?

In automated analytics and meta-learning, a significant challenge is recognizing when different datasets, potentially from disparate sources, actually measure the same underlying variable. For instance, "age" might be recorded as "Age" in one dataset and "Years" in another. Relying solely on variable names is unreliable due to inconsistent nomenclature. This paper tackles the problem of matching variables based purely on their data values, aiming to build systems that can intelligently leverage past data experiences, much like a human analyst would. This is crucial for tasks like dataset search, schema matching, and enabling more robust meta-learning across diverse data sources.

Methods

The core of the proposed method is learning a vector embedding for each dataset (which, in this context, refers to a single column of data values from a table). These embeddings are designed such that datasets originating from the same variable are mapped to nearby points in the embedding space, while those from different variables are pushed apart.

The authors leverage a "deep sets" architecture, which is adept at processing sets of data and producing a fixed-size representation. This architecture allows them to compute embeddings for both numeric and string data. For numeric data, they use a 32-bit binary representation of floating-point values to handle varying input ranges robustly. For string data, they employ fastText embeddings for natural language text and bidirectional character-level LSTMs for general strings.

A key innovation is the training objective, which goes beyond simple distributional similarity. They introduce a loss function that explicitly learns to distinguish between variables with similar distributions but different meanings, and to ignore natural variations (like batch effects) between datasets of the same variable. This is achieved through a probability adjustment network ($g_\psi$) that learns to increase the distance between datasets that are likely to be different variables, even if their distributions look similar.

Datasets

The primary dataset used for training and evaluation is OpenML. The authors split the OpenML data into training repositories (R) and held-out test sets (T) for various data types: numeric, language, and string. They also use datasets from previous work for specific benchmarks:

  • PUMS data: Used for instance-based schema matching.
  • Canadian/UK governments' Open Data portal: Used for table union search.

Key Insights and Ideas

  • Data Values Over Names: The fundamental insight is that the actual data values are a more robust signal for variable matching than potentially ambiguous or inconsistent variable names.
  • Deep Embeddings Capture Semantics: The learned deep embeddings effectively capture the semantic meaning of variables, allowing for generalization to unseen data.
  • Beyond Distributional Similarity: The method's strength lies in its ability to learn to ignore natural variations within the same variable (e.g., temperature in Celsius vs. Fahrenheit) and to distinguish between different variables that happen to have identical distributions (e.g., two boolean variables with the same proportion of true/false).
  • The Role of $g_\psi$: The probability adjustment network ($g_\psi$) is crucial for handling cases where variables have similar distributions but are semantically different. It learns to penalize such pairs, preventing false positives.
  • Scalability: The use of deep sets and approximate nearest neighbor search makes the approach computationally efficient and scalable to large repositories.

Key Results

  • Superior Classification Performance: In match/no-match classification tasks, their proposed method (Embed-Num) significantly outperforms traditional distributional similarity-based methods (MeanSD, KS, MMD, SCF) across various data sizes and settings (Split/Diff). For instance, in the "Diff" setting, their AUC is notably higher.
  • Effective Dataset Retrieval: In retrieval tasks (Split-Retrieve and Diff-Retrieve), their method consistently achieves higher precision (number of correct matches among top-k) compared to alternatives. For example, when querying for "age" data, their embeddings correctly identify other "age" columns from diverse medical datasets.
  • Calibrated Probabilities: Their method provides better calibrated match probabilities, meaning they are more reliable indicators of actual matches, especially for datasets with no annotated matches in the repository.
  • Generalization: Pre-trained embeddings from OpenML generalize well to downstream tasks like schema matching and table union search on entirely different datasets, outperforming existing state-of-the-art methods in these areas.

Limitations and Future Work

  • Data Augmentation for Positive Matches: The authors acknowledge that obtaining sufficient positive matches for training can be challenging. They propose a data augmentation strategy by splitting datasets, but this relies on the assumption that such splits represent valid matches, which might not always hold.
  • Computational Cost of Embeddings: While approximate nearest neighbor search is efficient, computing the initial embeddings for large datasets can still be time-consuming, though subsampling helps mitigate this.
  • Handling Missing Values: The current approach omits entries with missing values for simplicity. A more robust solution would need to handle missing data gracefully.
  • Future Directions: The paper suggests exploring more sophisticated sampling strategies and training objectives, as well as extending the method to handle more complex data structures beyond tabular data. The potential for combining their value-based matching with name-based methods is also highlighted.

Summary updated

BibTeX
@inproceedings{mueller2019recognizing,
  author = {Jonas Mueller and Alex Smola},
  title = {{Recognizing Variables from Their Data via Deep Embeddings of Distributions}},
  booktitle = {ICDM},
  year = {2019},
  doi = {10.1109/icdm.2019.00158},
}
Figure