Abstract
In our experience of working with domain experts who are using today's AutoML systems, a common problem we encountered is what we call "unrealistic expectations" -- when users are facing a very challenging task with a noisy data acquisition process, while being expected to achieve startlingly high accuracy with machine learning (ML). Many of these are predestined to fail from the beginning. In traditional software engineering, this problem is addressed via a feasibility study, an indispensable step before developing any software system. In this paper, we present Snoopy, with the goal of supporting data scientists and machine learning engineers performing a systematic and theoretically founded feasibility study before building ML applications. We approach this problem by estimating the irreducible error of the underlying task, also known as the Bayes error rate (BER), which stems from data quality issues in datasets used to train or evaluate ML model artifacts. We design a practical Bayes error estimator that is compared against baseline feasibility study candidates on 6 datasets (with additional real and synthetic noise of different levels) in computer vision and natural language processing. Furthermore, by including our systematic feasibility study with additional signals into the iterative label cleaning process, we demonstrate in end-to-end experiments how users are able to save substantial labeling time and monetary efforts.
Introduction
Building a machine learning (ML) model often feels like a gamble. Developers start with a dataset, a target accuracy, and a budget for compute and labeling. However, if the goal is fundamentally impossible due to high data noise, the project is "doomed to disappoint." In traditional software engineering, this risk is mitigated through a feasibility study. In ML, this step is frequently skipped, leading to expensive training runs that fail to meet expectations.
Researchers from ETH Zurich and Microsoft Research have introduced Snoopy, a system designed to integrate feasibility studies into the ML workflow. Snoopy provides a fast, theoretically grounded assessment of whether a target accuracy is realistic given the current data quality.
The Feasibility Gap in ML
The core problem addressed by Snoopy is the prevalence of "unrealistic expectations" in ML development. Domain experts often expect high accuracy from datasets plagued by label noise or poor acquisition processes. Currently, developers face two suboptimal choices for checking feasibility:
- Cheap Proxies: Using simple models like logistic regression. If performance is poor, it remains unclear if the model is insufficient or the data is flawed.
- Expensive AutoML: Running exhaustive searches for optimal architectures. This is resource-intensive and, if it fails, results in significant wasted effort.
Snoopy fills this gap by quantifying the relationship between upstream data quality and downstream task requirements.
Snoopy: System Architecture
Snoopy operates by estimating the Bayes Error Rate (BER)—the irreducible error of a task. It provides a "realistic vs. unrealistic" signal to the user, alongside insights like convergence plots and estimated labeling requirements.
The system takes a dataset and a target accuracy as input. It then leverages a library of kNN-based BER estimators to determine if the target is achievable. If the estimated BER is higher than the target error (1 - target accuracy), the goal is flagged as unrealistic, prompting the user to take action on the data rather than wasting resources on modeling.
Technical Core: Estimating the Bayes Error Rate
Snoopy’s technical foundation relies on several key innovations designed for speed and accuracy:
1NN-Based Estimation
Snoopy utilizes the 1-Nearest Neighbor (1NN) classifier. According to classic theory by Cover and Hart (1967), the error rate of a 1NN classifier is closely related to the BER, providing a practical bound for estimation without the need for complex model training.
Multi-Embedding Aggregation
To handle high-dimensional data like images or text, Snoopy applies 1NN on various pre-trained feature transformations (embeddings) from repositories like TensorFlow Hub and HuggingFace (e.g., BERT, ResNet). By taking the minimum estimated error across these diverse representations, Snoopy provides a robust lower bound on the BER.
Successive-Halving with Tangents
To ensure scalability, Snoopy adapts the "Successive-Halving" algorithm. Rather than processing every data point through every embedding, it evaluates embeddings in batches. A novel "tangent method" is used to prune underperforming embeddings early, significantly reducing computational overhead.
Evaluation and Results
The researchers evaluated Snoopy across six datasets spanning Computer Vision (MNIST, CIFAR10, CIFAR100) and NLP (IMDB, SST2, YELP). They also tested against noisy benchmarks like CIFAR-N and synthetically noisy datasets.
Key findings include:
- Predictive Accuracy: Snoopy consistently outperformed simple proxy models and matched the predictive power of expensive AutoML systems in identifying achievable accuracy.
- Efficiency: Snoopy is orders of magnitude faster than training state-of-the-art models. On CIFAR100, Snoopy requires approximately 16 minutes on a single GPU, compared to over 10 hours for fine-tuning a top-tier model.
- Cost Savings: In end-to-end experiments, Snoopy helped users identify the "diminishing returns" point in data cleaning, preventing unnecessary labeling costs and focusing efforts where they matter most.
Conclusion
Snoopy represents a significant move toward Data-Centric AI. By providing a "reality check" before model development begins, it empowers engineers to make informed decisions about data acquisition and cleaning. While currently focused on label noise, future iterations may address broader data quality issues like feature completeness and distributional drift, further solidifying the feasibility study as an essential step in the ML lifecycle.
Summary updated