Data-Efficient Learning via Clustering-Based Sensitivity Sampling: Foundation Models and Beyond

Kyriakos Axiotis, Vincent Cohen-Addad, Monika Henzinger, Sammy Jerome, Vahab Mirrokni, David Saulpic, David Woodruff, Michael Wunder

Abstract

In the era of massive datasets and models, the computational cost of training and fine-tuning has become a significant bottleneck. This paper presents a novel data selection framework based on Clustering-Based Sensitivity Sampling. By leveraging $k$-means or $k$-median clustering and assuming H¨older continuity of the loss function, the proposed method identifies a small, representative "coreset" of data. Experimental results across Large Language Model (LLM) fine-tuning, image classification, and linear regression demonstrate that this approach significantly outperforms traditional uniform and diversity-based sampling methods, achieving high performance with as little as 1% of the original data.

1. Introduction

The current landscape of machine learning is defined by "massive everything"—models with billions of parameters and datasets spanning terabytes. While this scale has driven breakthroughs in generative AI and computer vision, it has also made the training process prohibitively expensive. Data selection, the process of identifying a high-quality subset of data that preserves the statistical properties of the full dataset, has emerged as a critical area of research to democratize access to high-performance models.

2. The Limitations of Current Selection Strategies

Existing data selection methods often fall into two categories: simple heuristics or computationally intensive active learning. Uniform sampling is computationally trivial but frequently overlooks rare yet informative examples. Conversely, active learning techniques—which select points based on model uncertainty—require evaluating the model on the entire dataset, often negating the efficiency gains they aim to provide.

Previous "coreset" approaches, such as those utilizing $k$-center clustering, focus on covering the embedding space to ensure diversity. However, $k$-center is notoriously sensitive to outliers, as it prioritizes the points furthest from the center. This often leads to the selection of noisy or irrelevant data, hindering the model's generalization capabilities.

3. Clustering-Based Sensitivity Sampling

The authors propose a more robust alternative: Clustering-Based Sensitivity Sampling. This method utilizes cheap, pre-computed embeddings (e.g., from a frozen BERT model) to guide the selection for larger, more complex target models (e.g., T5).

3.1 The Algorithm

The selection process involves three primary steps:

  1. Clustering: The dataset is partitioned into $k$ clusters using $k$-means or $k$-median. Unlike $k$-center, these methods focus on the average distance to the center, making the selection robust to outliers.
  2. Sensitivity Weighting: Each data point is assigned a sampling weight based on its distance to its respective cluster center and the model's loss at that center.
  3. H¨older Continuity: The theoretical foundation of this approach is the assumption that the loss function is $(z, \lambda)$-H¨older continuous. This implies that if two points are proximal in the embedding space, their losses are similar. This allows the algorithm to use cluster centers as proxies for the surrounding data points.

The paper introduces a general-purpose 1-round algorithm and a specialized version for linear regression that avoids the high cost of matrix inversions.

4. Experimental Evaluation

The methodology was validated across three distinct domains to test its versatility and scalability.

  • Foundation Model Fine-Tuning: Using the WMT T2T EnDe translation dataset (4.5 million examples), the method was used to fine-tune a T5 model.
  • Image Classification: Benchmarks were conducted on MNIST, Fashion MNIST, and CIFAR-10.
  • Linear Regression: The UCI Gas Sensor dataset was used to evaluate the efficiency of the regression-specific algorithm.

5. Key Results and Insights

The experiments yielded several significant findings:

  • Efficiency in LLMs: On the WMT task, the method achieved an accuracy of 0.6 using only 1% of the data (45,000 examples), outperforming both random and diversity-based sampling.
  • Robustness in Vision: On Fashion MNIST, the clustering-based approach yielded a 4% increase in accuracy over existing coreset methods when selecting small subsets.
  • Scalability in Regression: The algorithm matched the accuracy of traditional leverage score sampling while operating in linear time $O(n)$, providing a significant speedup over traditional matrix-based computations.
  • Theoretical Optimality: The authors proved that their required sample size $O(\epsilon^{-2})$ is essentially optimal for achieving a $(1 \pm \epsilon)$ approximation of the total dataset loss.

A notable insight is that embeddings from simple, frozen models are highly predictive of loss affinity in much larger models. This suggests that the "representativeness" of a data point is a property that transcends specific architectures.

6. Conclusion and Future Work

Clustering-Based Sensitivity Sampling offers a scalable, theoretically grounded path toward data-efficient learning. By prioritizing representative "typical" points over outliers, it achieves superior generalization in both language and vision tasks. While the current framework relies on the H¨older continuity of the loss function, future research may explore adaptive, multi-round versions of the algorithm and investigate how different embedding models influence selection quality across diverse architectures.

Summary updated

BibTeX
@inproceedings{axiotis2024data,
  author = {Kyriakos Axiotis and Vincent Cohen-Addad and Monika Henzinger and Sammy Jerome and Vahab Mirrokni and David Saulpic and David Woodruff and Michael Wunder},
  title = {{Data-Efficient Learning via Clustering-Based Sensitivity Sampling: Foundation Models and Beyond}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=WUQ4YzIQt2},
}
Figure