TOPJoin: A Context-Aware Multi-Criteria Approach for Joinable Column Search

Harsha Kokel, Aamod Khatiwada, Tejaswini Pedapati, Haritha Ananthakrishnan, Oktie Hassanzadeh, Horst Samulowitz, Kavitha SrinivasarXiv 2025 · DOI

Abstract

Discovering joinable tables in large-scale data lakes is a critical but challenging task. Traditional methods relying solely on syntactic or semantic similarity often produce irrelevant results because they ignore the broader context of the data. We present TOPJoin, a context-aware framework that treats join discovery as a multi-criteria decision-making problem. By integrating syntactic overlap, semantic embeddings, and join-size estimation using the TOPSIS ranking method, TOPJoin significantly improves the precision and recall of join recommendations. Evaluation on real-world and public datasets demonstrates that TOPJoin outperforms state-of-the-art baselines, providing more analytically meaningful joins.

Introduction

In large enterprise "data lakes," finding the right tables to join is often compared to finding a needle in a haystack—except many of the needles are actually "rusty nails" or false positives. Traditional search methods rely on syntactic similarity (value overlap) or semantic similarity (vector embeddings of column names). However, these methods frequently fail in real-world scenarios. For example, a "County" column in a Texas dataset and a "County" column in a Missouri dataset might look identical to an algorithm, but joining them is nonsensical for a user analyzing specific regional demographics.

Example of context-dependent tabular data where column names like 'County' appear across different regions, illustrating the need for context-aware joinability.

The authors argue for context-aware joinability. A join should only be recommended if the tables are conceptually related and the resulting combined table provides analytical value, avoiding "explosive" join sizes or irrelevant data mappings.

The TOPJoin Framework

TOPJoin is a two-step framework that treats join discovery as a multi-criteria decision-making problem.

1. Candidate Identification

Instead of relying on a single metric, TOPJoin employs three distinct strategies to identify potential matches:

  • Syntactic: Utilizes an inverted index (JOSIE) to find columns with high value overlap.
  • Metadata Semantics: Employs sentence transformers to embed table names, descriptions, and column tags to identify conceptually related tables.
  • Value Semantics: Embeds actual data values to find matches even when formatting differs (e.g., "NYC" vs. "New York").

2. Multi-Criteria Ranking (TOPSIS)

Once candidates are identified, TOPJoin ranks them using the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS). It scores each candidate across several preference criteria:

  • Unique Values: Favors columns that function like primary keys.
  • Intersection Size: Measures the actual overlap of values.
  • Join Size & Reverse Join Size: Estimates if the join will result in a manageable table or a redundant, oversized result.
  • Disjoint Value Semantics: A novel check that examines values not shared between columns. If these disjoint values are still semantically similar (e.g., "London" and "Paris" are both cities), it provides a strong signal that the columns represent the same entity type.

Experimental Evaluation

The researchers evaluated TOPJoin on two distinct benchmarks:

  • CIO Real-World Datalake: A replica of an enterprise Operational Data Store containing 59 tables with up to 90 million rows, with ground truth derived from SQL query logs.
  • OpenData: A collection of public government tables with human annotations from 15 participants to determine if joins were "contextually" meaningful.

Key Results

TOPJoin consistently outperformed existing baselines like LSH Ensemble (syntactic) and DeepJoin (semantic) across all metrics.

Performance comparison of TOPJoin against baselines on CIO and Open Data benchmarks, showing significant improvements in MRR, MAP, and Recall.
  • CIO Datalake: TOPJoin achieved a Recall of 0.68, nearly 66% higher than LSH Ensemble (0.41) and more than double DeepJoin (0.29).
  • OpenData: TOPJoin reached a Mean Average Precision (MAP) of 0.49, significantly outperforming the baselines.
  • Efficiency: The authors introduced TOPJoin-Minhash, which uses probabilistic sketches to reduce the memory footprint of a 2.6GB index down to just 508KB while maintaining competitive performance.

Conclusion and Future Work

The paper demonstrates that "similarity" is not synonymous with "joinability." By incorporating table-level metadata and join-size estimation, TOPJoin avoids recommending analytically useless joins.

A current limitation is that underlying models (like BERT) are often pre-trained on general text rather than tabular data, which can lead to "hallucinated" similarities between distinct entities. Future work involves fine-tuning language models specifically for data discovery tasks and integrating these techniques into conversational AI data assistants.

Summary updated

BibTeX
@misc{kokel2025topjoin,
  author = {Harsha Kokel and Aamod Khatiwada and Tejaswini Pedapati and Haritha Ananthakrishnan and Oktie Hassanzadeh and Horst Samulowitz and Kavitha Srinivas},
  title = {{TOPJoin: A Context-Aware Multi-Criteria Approach for Joinable Column Search}},
  year = {2025},
  eprint = {2507.11505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.11505},
}
Figure