Correlation Sketches for Approximate Join-Correlation Queries
Aécio Santos, Aline Bessa, Fernando Chirigati, Christopher Musco, Juliana Freire
TL;DR
This work introduces join-correlation queries to discover datasets that are both joinable on a common key and have attributes correlated with a query column. It presents Correlation Sketches, a hashing-based synopsis that can reconstruct a uniform sample of the join outcome without performing the full join, enabling fast, scalable correlation estimation across large collections. The authors derive confidence-interval bounds for correlation estimates via concentration inequalities and design risk-aware scoring functions to rank candidate datasets under uncertainty. Experimental results on synthetic and real datasets demonstrate accurate correlation estimates, effective ranking improvements, and interactive query times, highlighting practical impact for data discovery and augmentation tasks.
Abstract
The increasing availability of structured datasets, from Web tables and open-data portals to enterprise data, opens up opportunities~to enrich analytics and improve machine learning models through relational data augmentation. In this paper, we introduce a new class of data augmentation queries: join-correlation queries. Given a column $Q$ and a join column $K_Q$ from a query table $\mathcal{T}_Q$, retrieve tables $\mathcal{T}_X$ in a dataset collection such that $\mathcal{T}_X$ is joinable with $\mathcal{T}_Q$ on $K_Q$ and there is a column $C \in \mathcal{T}_X$ such that $Q$ is correlated with $C$. A naïve approach to evaluate these queries, which first finds joinable tables and then explicitly joins and computes correlations between $Q$ and all columns of the discovered tables, is prohibitively expensive. To efficiently support correlated column discovery, we 1) propose a sketching method that enables the construction of an index for a large number of tables and that provides accurate estimates for join-correlation queries, and 2) explore different scoring strategies that effectively rank the query results based on how well the columns are correlated with the query. We carry out a detailed experimental evaluation, using both synthetic and real data, which shows that our sketches attain high accuracy and the scoring strategies lead to high-quality rankings.
