Snoopy: Effective and Efficient Semantic Join Discovery via Proxy Columns

Yuxiang Guo, Yuren Mao, Zhonghao Hu, Lu Chen, Yunjun Gao

Introduction

In the era of massive data lakes, the ability to enrich local datasets with external information is a cornerstone of modern data science. However, discovering joinable columns across millions of tables—often referred to as "semantic join discovery"—remains a significant technical hurdle. Traditional equi-join methods, which rely on exact string matching, frequently fail due to variations in data representation (e.g., "NYC" vs. "New York City"). Conversely, existing semantic discovery methods often struggle to balance computational efficiency with the nuanced requirements of joinability.

This paper introduces Snoopy, a framework designed to bridge the gap between high-accuracy cell-level methods and high-speed column-level embedding techniques. By utilizing a novel "proxy column" architecture and rank-aware learning, Snoopy achieves state-of-the-art performance while maintaining the scalability required for industrial-scale data repositories.

The Challenges of Semantic Join Discovery

Current approaches to join discovery generally fall into two categories, both of which possess inherent limitations:

  1. Cell-Level Methods: These techniques perform fine-grained comparisons between individual values across columns. While highly accurate, they are computationally expensive. For a data lake with millions of columns, the quadratic complexity of cell-to-cell comparison makes interactive search impossible.
  2. Column-Level Methods: These leverage Pre-trained Transformers (PTMs) like BERT to encode entire columns into single vectors. While this allows for fast similarity searches, PTMs often prioritize "semantic type" over "joinability." For instance, a PTM might see two columns of city names and conclude they are identical because they both contain "cities," even if the specific sets of cities (e.g., US vs. European) do not overlap. Furthermore, PTMs are limited by token constraints and are sensitive to the order of rows, which is often arbitrary in relational data.

Methodology: The Snoopy Framework

Snoopy addresses these challenges through three core innovations: Proxy Columns, Approximate Graph Matching (AGM) projection, and Rank-Aware Contrastive Learning (RCL).

Proxy Columns as Landmarks

Rather than comparing a query column directly against every candidate in a repository, Snoopy projects columns onto a set of "proxy columns." These proxies act as learned landmarks in the data space. A column’s identity is defined by its relationship (joinability) to these proxies, creating a robust embedding that captures specific value distributions rather than just broad semantic categories.

Efficient Projection via AGM

To maintain efficiency, Snoopy employs Approximate Graph Matching (AGM) for the projection step. Instead of solving a computationally taxing optimal matching problem, AGM uses a lightweight, greedy mechanism to calculate the alignment between a column and a proxy. This approach offers two critical mathematical advantages:

  • Size-Unlimited: It can process tables of any length without truncation.
  • Permutation-Invariance: The resulting embedding remains constant regardless of the row order in the source table.

Rank-Aware Contrastive Learning (RCL)

Standard contrastive learning typically uses binary labels (match vs. non-match). However, join discovery requires nuanced ranking. Snoopy’s RCL paradigm trains the model to distinguish between degrees of joinability. By learning that Column A is a superior match to a query compared to Column B, the model produces significantly more accurate top-k search results.

Experimental Evaluation

The authors evaluated Snoopy against four diverse benchmarks: WikiTable, Opendata (Canadian and UK portals), and WDC (Small and Large). The WDC Large dataset, containing one million columns, served as the primary test for scalability.

Performance and Accuracy

Snoopy demonstrated a clear advantage over existing column-level baselines such as DeepJoin and Starmie:

  • Accuracy: It achieved a 16% improvement in Recall@25 and a 10% increase in NDCG@25, indicating a superior ability to rank relevant joins correctly.
  • Efficiency: Snoopy proved to be 3.5x faster than other embedding-based methods on average. More impressively, when compared to cell-level exact solutions like PEXESO, Snoopy was five orders of magnitude faster.
  • Scalability: On the million-column WDC dataset, Snoopy maintained a query latency of approximately 5 milliseconds, making it suitable for real-time applications in massive data environments.

Conclusion and Future Directions

Snoopy represents a significant step forward in making semantic join discovery both practical and precise. By shifting the focus from broad semantic types to value-aware proxy projections, it overcomes the "semantics-joinability gap" that plagues previous embedding methods.

While highly effective, the framework currently focuses on single-column joins. Future work may explore multi-column join discovery (e.g., joining on "City" and "State" simultaneously) and the integration of Snoopy into automated data cleaning and machine learning pipelines.

Summary updated

BibTeX
@article{guo2025snoopy,
  author = {Yuxiang Guo and Yuren Mao and Zhonghao Hu and Lu Chen and Yunjun Gao},
  title = {{Snoopy: Effective and Efficient Semantic Join Discovery via Proxy Columns}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2025},
  doi = {10.1109/tkde.2025.3545176},
}
Figure