The Fast and the Private: Task-based Dataset Search

Zezhou Huang, Jiaxiang Liu, Haonan Wang, Eugene Wu · DOI

Abstract

Modern dataset search platforms employ ML task-based utility metrics instead of relying on metadata-based keywords to comb through extensive dataset repositories. In this setup, requesters provide an initial dataset, and the platform identifies complementary datasets to augment (join or union) the requester's dataset such that the ML model (e.g., linear regression) performance is improved most. Although effective, current task-based data searches are stymied by (1) high latency which deters users, (2) privacy concerns for regulatory standards, and (3) low data quality which provides low utility. We introduce Mileena, a fast, private, and high-quality task-based dataset search platform. At its heart, Mileena is built on pre-computed semi-ring sketches for efficient ML training and evaluation. Based on semi-ring, we develop a novel Factorized Privacy Mechanism that makes the search differentially private and scales to arbitrary corpus sizes and numbers of requests without major quality degradation. We also demonstrate the early promise in using LLM-based agents for automatic data transformation and applying semi-rings to support causal discovery and treatment effect estimation.

Introduction

Traditional dataset discovery tools, such as Google Dataset Search, primarily rely on keyword matching and metadata. For data scientists, however, the utility of a dataset is defined by its ability to improve a specific machine learning (ML) task. This "task-based search" identifies datasets that, when joined or unioned with a requester's local data, maximize model performance (e.g., $R^2$ or accuracy).

Despite its potential, task-based search faces three critical challenges:

  1. Latency: Evaluating thousands of candidate datasets typically requires expensive join operations and model retraining, often taking hours.
  2. Privacy: Sharing raw data for search risks exposing sensitive information, while standard differential privacy (DP) methods often introduce excessive noise.
  3. Data Quality: Raw "data lake" content is frequently messy, requiring manual cleaning to be useful.

The Mileena Framework

Mileena addresses these hurdles through a decentralized architecture that decouples model training from the search process.

Mileena System Architecture

The system relies on three core innovations:

  • Semi-ring Sketches: Data providers pre-compute mathematical aggregates (sketches) of their data. These sketches follow semi-ring properties, allowing the central search engine to estimate model performance across joins and unions in milliseconds without accessing raw data.
  • Factorized Privacy Mechanism (FPM): Mileena applies Gaussian noise to sketches at the provider level. Because these sketches are reusable building blocks, requesters can perform unlimited searches without exhausting the provider's privacy budget.
  • LLM-based Agents: To automate data preparation, Mileena employs a pipeline of Large Language Model (LLM) agents—EDA, Coder, Debugger, and Reviewer—to suggest and implement data transformations, significantly boosting the utility of raw datasets.

Experimental Results

The researchers evaluated Mileena using NYC Open Data (517 datasets) and Kaggle Airbnb data.

Search Efficiency and Utility

Mileena demonstrates a significant leap in efficiency. While baseline methods like ARDA require nearly 50 minutes to identify high-utility augmentations, Mileena achieves comparable or superior $R^2$ scores in a matter of seconds.

Performance Comparison: R2 vs. Runtime

As shown in the performance benchmarks, Mileena (evaluated as Kitana) consistently finds high-performing augmentations within a tight runtime budget, significantly outperforming traditional AutoML and proxy-based search methods.

Privacy and Transformation

The Factorized Privacy Mechanism (FPM) maintained high utility (40-90% of non-private performance) even as the number of requests scaled, unlike existing mechanisms that degrade quickly. Furthermore, the LLM-based transformation pipeline proved highly effective; on the Airbnb dataset, it improved $R^2$ scores from near-zero to over 0.5 by automatically engineering relevant features.

Discussion and Future Work

Mileena shifts the paradigm of dataset search from "Big Data" processing to "Small Metadata" aggregation. By privatizing the building blocks of models rather than query results, it enables infinite, private exploration of data lakes.

While currently optimized for models expressible via semi-rings (like Linear Regression), future work aims to extend these techniques to more complex non-linear architectures. Additionally, the team is exploring the application of semi-ring sketches to causal inference, moving beyond simple correlation to help researchers discover underlying causal mechanisms in large-scale data repositories.

Summary updated

BibTeX
@misc{huang2023fast,
  author = {Zezhou Huang and Jiaxiang Liu and Haonan Wang and Eugene Wu},
  title = {{The Fast and the Private: Task-based Dataset Search}},
  year = {2023},
  eprint = {2308.05637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.05637},
}
Figure