NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PolyJoin: Semantic Multi-key Joinable Table Search in Data Lakes

Xuming Hu, Chuan Lei, Xiao Qin, Asterios Katsifodimos, Christos Faloutsos, Huzefa Rangwala

Introduction

Data analysts and scientists frequently face the daunting task of discovering joinable tables within massive "data lakes"—vast repositories of raw, heterogeneous tabular data. Finding relevant tables to combine is a critical step for data enrichment and insight discovery. However, existing table search methods struggle with two primary challenges: the Multi-Key Gap and the Semantic Gap.

Most current tools focus on "unary" joins, which link tables based on a single column (e.g., a unique ID). In practice, many joins are "n-ary," requiring multiple columns (e.g., City and Country) to uniquely identify records and avoid ambiguous matches. Furthermore, traditional systems often rely on exact string matching. If one table uses "USA" and another "United States," an exact-match system will fail to recognize them as joinable.

Comparison of PolyJoin with existing join discovery approaches.

PolyJoin addresses these issues by learning joint representations of multiple columns, ensuring that semantic relationships between keys are preserved during the search process.

Methodology

PolyJoin introduces a novel framework for representation learning that bridges the semantic and multi-key gaps through several key components:

The PolyJoin architecture featuring contextualized encoding and contrastive learning.

Contextualized Multi-Key Encoder

The system utilizes a BERT-based architecture to encode both cell values and column metadata (descriptions). By serializing these inputs, the model captures the context of the data, allowing it to understand the underlying concepts rather than just the raw text.

Adaptive Hierarchical Clustering

Recognizing that data types often exist in hierarchies (e.g., City within State within Country), PolyJoin employs Affinity Propagation. This technique automatically discovers latent semantic clusters at various levels of granularity without requiring a pre-defined number of groups.

Hierarchical Contrastive Learning

The core of PolyJoin's training is a self-supervised approach using two distinct losses:

  • Key-wise Loss: Aligns a column's data representation with its textual description.
  • Centroid-wise Loss: Encourages columns of similar semantic types across different tables to cluster together in the embedding space.

To maintain stability during training, a momentum encoder is used to provide consistent targets for the contrastive learning process.

Experimental Evaluation

The authors evaluated PolyJoin on two newly created, rigorous benchmarks designed to test multi-key complexity: NYC Open Data (3,150 tables) and a Kaggle Dataset (1,610 tables). To simulate real-world data quality issues, these datasets were infused with synthetic noise, such as typos, abbreviations, and varying numeric formats.

Key Results

PolyJoin demonstrated significant improvements over state-of-the-art methods:

  • Performance Gains: It outperformed TableFormer by 2.89% in MAP@30 and 3.67% in R@30.
  • Robustness: Unlike exact-match systems (e.g., MATE), which fail when faced with minor textual variations, PolyJoin maintained high accuracy due to its semantic understanding.
  • Metadata Generation: The study found that using ChatGPT to generate column descriptions was a highly effective substitute when official metadata was missing, achieving results comparable to human-annotated descriptions.

Conclusion and Future Work

PolyJoin represents a significant step forward in automated data discovery by enabling semantic, multi-key join searches. Future research will explore scaling the framework to larger language models (e.g., Llama), testing its performance in highly specialized domains like healthcare or finance, and extending its capabilities to support multi-lingual data lakes.

Summary updated

BibTeX
@inproceedings{hu2025polyjoin,
  author = {Xuming Hu and Chuan Lei and Xiao Qin and Asterios Katsifodimos and Christos Faloutsos and Huzefa Rangwala},
  title = {{PolyJoin: Semantic Multi-key Joinable Table Search in Data Lakes}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.23},
}
Figure