Cross Modal Data Discovery over Structured and Unstructured Data Lakes

Mohamed Y. Eltabakh, Mayuresh Kunjir, Ahmed Elmagarmid, Mohammad Shahmeer AhmadarXiv 2023

TL;DR

CMDL (Cross-Modal Data Discovery) is a holistic system designed to find relevant information across the messy mix of structured tables and unstructured text documents found in modern data lakes. By leveraging a novel multi-modal joint embedding representation and a weakly-supervised training framework, CMDL enables seamless discovery tasks—like finding tables related to a specific research paper—while outperforming existing specialized baselines in both accuracy and scalability.

What Problem Does This Paper Address?

Organizations today are "drowning" in data, often dumping thousands of diverse datasets into centralized repositories called data lakes. These lakes are a mix of structured data (like SQL tables or CSVs) and unstructured data (like research articles, emails, or news reports).

The challenge is cross-modal discovery: how do you find a table that contains data relevant to a specific paragraph in a text document? Existing tools are usually siloed, focusing either on structured data (ignoring text) or transforming tables into text (destroying their structural properties like joinability). Furthermore, most advanced machine learning models require massive amounts of manually labeled data, which simply doesn't exist for most private enterprise data lakes.

Methods

The authors propose CMDL, a system that treats both tables and documents as "first-class citizens." Its architecture (seen in Figure 2) consists of several key innovations:

Figure 2: The CMDL system architecture.
  • Unified Format: Unstructured documents are transformed into a "bag of words" column-style format using an NLP pipeline, allowing the system to treat them similarly to table columns.
  • Weak Supervision with Snorkel: To avoid the need for manual labeling, CMDL uses the Snorkel framework to combine multiple "weak" signals—such as keyword overlap, syntactic similarity (LSH), and basic semantic embeddings—to automatically generate a large, probabilistic training dataset (Figure 3).
  • Multi-Modal Joint Representation: The core of the system is a deep neural network that maps both documents and table columns into a shared 100-dimensional vector space. In this space, related items are physically close to each other, regardless of their original format.
  • Triplet Loss with Hard Sampling: The model is trained using a triplet loss function, which pulls "positive" matches closer to an anchor point while pushing "negative" matches away. To make training efficient, the authors developed a hard sampling technique (Figure 5) that aggregates the most difficult examples within mini-batches, leading to 10x faster convergence.
Figure 5: Example of triplet generation.

Datasets

The system was evaluated on three diverse real-world data lakes:

  1. Pharma: A complex mix of pharmaceutical databases (DrugBank, ChEMBL) and a corpus of PubMed research abstracts.
  2. UK-Open: A collection of UK government open data in CSV format paired with synthetic text.
  3. ML-Open: A set of machine learning datasets from Kaggle and OpenML, combined with a corpus of text reviews.

The authors introduced several new benchmarks (labeled 1A, 1B, 1C, 2B, and 3B in the paper) specifically designed to test cross-modality and pharmaceutical discovery tasks, which they have made publicly available.

Key Insights and Ideas

  • Column-Level Granularity: By focusing on individual columns rather than entire tables or rows, CMDL captures coherent semantics (e.g., "drug names" or "city names") that are easier for embeddings to represent and scale better to massive datasets.
  • Preserving Structure Matters: Unlike "table-to-text" approaches, CMDL retains the structural properties of tables. This allows it to support traditional discovery tasks like joinability (finding tables that can be linked) and unionability (finding tables with similar schemas) alongside cross-modal queries.
  • Bootstrapping from Weak Signals: The paper proves that you can build a highly effective discovery system by integrating multiple "weak" similarity signals. The joint representation learned from these signals is more robust and accurate than any single signal used in isolation.

Key Results

  • Superior Accuracy: In "Document-to-Table" discovery, CMDL consistently outperformed baselines like ElasticSearch, standard Entity Matching, and containment-based search. The joint embedding representation provided a 5% to 10% accuracy boost over using simple "solo" embeddings.
  • Robustness to Skew: CMDL proved more robust than state-of-the-art structured discovery systems (like Aurum and D3L) when dealing with highly skewed data distributions, thanks to its use of Jaccard set containment instead of simple Jaccard similarity.
  • Interactive Performance: Despite the complex underlying models, the system is incredibly fast. An end-to-end discovery pipeline involving five distinct steps (illustrated in Figure 1) executes in just ~65 milliseconds, making it suitable for real-time human-in-the-loop exploration.
Figure 1: An example data discovery scenario on a lake of structured and unstructured pharmaceutical data.

Limitations and Future Work

While CMDL is a significant step forward, the authors note a few areas for improvement:

  • Output Summarization: Users in a usability study requested that the system provide "hints" or summaries of why certain tables were returned to help them filter results faster.
  • LLM Integration: The current framework is extensible. A promising future direction is integrating Large Language Models (LLMs) as additional high-quality labeling functions within the weak supervision pipeline.
  • Fine-Grained Matching: CMDL currently operates at the column/table level. Bridging this with row-level entity matching could provide even deeper insights but remains a challenging research problem.

Summary updated

BibTeX
@misc{eltabakh2023cross,
  author = {Mohamed Y. Eltabakh and Mayuresh Kunjir and Ahmed Elmagarmid and Mohammad Shahmeer Ahmad},
  title = {{Cross Modal Data Discovery over Structured and Unstructured Data Lakes}},
  year = {2023},
  eprint = {2306.00932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.00932},
}
Figure