DataS^3: Dataset Subset Selection for Specialization

Neha Hulkund, Alaa Maalouf, Levi Cai, Daniel Yang, Tsun-Hsuan Wang, Abigail O'Neil, Timm Haucke, Sandeep Mukherjee, Vikram Ramaswamy, Judy Hansen Shen, Gabriel Tseng, Mike Walmsley, Daniela Rus, Ken Goldberg, Hannah Kerner, Irene Chen, Yogesh A. Girdhar, Sara Beery · DOI

TL;DR

Foundation models trained on massive, general datasets often struggle when deployed in specific, localized real-world settings due to distribution shifts. This paper introduces DataS³, a novel benchmark for "Dataset Subset Selection for Specialization" (DS3), revealing that while current automated data filtering methods fail at this task, expertly curated data subsets can drastically outperform models trained on all available data.

Introduction

Machine learning models are typically trained on the largest, most diverse datasets available to encourage broad generalization. However, in the real world, a model is rarely deployed "broadly." It is deployed in a specific context—a particular hospital, a specific national park, or a single city's streets.

These specific deployments often have unique, imbalanced data distributions that differ significantly from the general training pool, a phenomenon known as distribution shift. Counterintuitively, fine-tuning a model on all available training data can actually hurt performance in these specific settings by introducing noise or spurious correlations from irrelevant data points.

Comparison of Foundation Model Setup (Generalization) vs. Deployable Model Setup (Specialization).

The DS3 Problem Formulation

The authors formalize the problem of Dataset Subset Selection for Specialization (DS3): Given a large pool of general training data and a small (ideally unlabeled) "query set" representing the target deployment, how do we automatically select the best subset of the training pool to maximize performance on that specific deployment?

Methodology and Baselines

To study this, the authors built a standardized pipeline: split the data, select a subset using a query set, fine-tune a fixed model (such as ResNet50, YOLOv8, or ViT) on that subset, and evaluate it on the deployment test set. They evaluated several families of subset selection baselines:

  • Unlabeled Query Baselines: Methods that don't require labels for the deployment data, such as Image-Alignment (cosine similarity between training and query embeddings) and Nearest Neighbors (clustering embeddings to find overlapping feature spaces).
  • Labeled Query Baselines: Methods that assume labels are available for the target deployment, such as CLIP-score filtering, Match-Dist (matching the relative frequency of labels), and Match-Label (removing classes not present in the deployment).
  • Expert-Driven Subsets: Manually curated subsets created using hidden metadata (like GPS coordinates or specific domain knowledge) to serve as an "oracle" or upper bound for what a perfect selection algorithm could achieve.

The DataS³ Benchmark

The authors introduce the DataS³ Benchmark, which shifts the focus from generalization to deployment-specific specialization. It includes five diverse datasets, each broken into a general training pool and several distinct deployment scenarios:

  1. iWildCam: Camera trap species identification across specific geographic regions.
  2. GeoDE: Geographically diverse object classification (e.g., Nigeria vs. Indonesia).
  3. AutoArborist: Urban tree genus classification from street-level imagery in specific cities.
  4. FishDetection: Underwater video fish bounding box detection in specific bodies of water.
  5. NuScenes: Autonomous driving steering angle regression in specific city areas.

Key Insights

  • More data is not always better: Training on "irrelevant" data from the general pool actively harms performance for specialized deployments. Discarding out-of-distribution data forces the model to learn the specific features of the target environment.
  • The "perfect subset" exists: Manually curated Expert-Driven subsets consistently outperformed models trained on the entire dataset, proving that finding the right data can yield massive performance gains.
  • Current algorithms fall short: Existing coreset and data-filtering methods—primarily designed to speed up training while maintaining general performance—fail at specialization. They frequently performed worse than simply training on all the data.
  • Unsupervised specialization is an open challenge: Finding the optimal training subset without relying on expensive labeled query data or hidden metadata remains an unsolved problem for the AI community.

Results

  • Massive Accuracy Gains: Expert-curated subsets yielded accuracy improvements of up to 51.3% for AutoArborist, 11.9% for iWildCam, and 3.6% for GeoDE compared to training on the full pool.
  • Improvements in Regression/Detection: For NuScenes, the expert subset reduced Mean Squared Error (MSE) by 0.03; for FishDetection, it increased mAP50 by 0.13.
  • Extreme Sample Efficiency: These results were achieved using only a tiny fraction of the total training pool. On average, expert subsets used just 4% of the GeoDE pool, 8% of AutoArborist, 10% of NuScenes, and 11% of iWildCam.

Conclusion and Future Work

The primary limitation of current approaches is algorithmic: there is no "winning" automated method that performs well across multiple domains for the DS3 problem. The authors are open-sourcing the DataS³ benchmark to serve as a testbed for the community to develop better unsupervised subset selection algorithms. Future expansions will include high-stakes scientific domains such as histopathology, medical eICU mortality prediction, and satellite crop classification.

Summary updated

BibTeX
@misc{hulkund2025datas,
  author = {Neha Hulkund and Alaa Maalouf and Levi Cai and Daniel Yang and Tsun-Hsuan Wang and Abigail O'Neil and Timm Haucke and Sandeep Mukherjee and Vikram Ramaswamy and Judy Hansen Shen and Gabriel Tseng and Mike Walmsley and Daniela Rus and Ken Goldberg and Hannah Kerner and Irene Chen and Yogesh A. Girdhar and Sara Beery},
  title = {{DataS^3: Dataset Subset Selection for Specialization}},
  year = {2025},
  eprint = {2504.16277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.16277},
}
Figure