Non-Uniform Class-Wise Coreset Selection for Vision Model Fine-tuning
Hanyu Zhang, Zhen Xing, Ruian He, Wenxuan Yang, Chenxi Ma, Weimin Tan, Bo Yan
TL;DR
This work tackles the ineffectiveness of class-agnostic coreset pruning in fine-tuning large vision models by introducing Non-Uniform Class-Wise Coreset Selection (NUCS). NUCS first computes a global class difficulty S_j via the winsorized average of per-sample difficulty scores and allocates the coreset budget non-uniformly across classes using $b_j = (1-\alpha) \mathbf{S_j} N_j / T$, with normalization $T = (\sum_i \mathbf{S_i} N_i)/N$; it then selects intra-class samples within a difficulty window, whose endpoint k is predicted through linear ridge regression on learned features. A theoretical toy-model demonstrates that class budgets should be proportional to class difficulty, with boundary cases saturating on the hardest class, supporting the non-uniform allocation strategy. Empirically, NUCS and its grid-search upper-bound NUCS-O achieve state-of-the-art or near-state-of-the-art performance across 10 diverse datasets and pretrained backbones, with notable accuracy gains and substantial efficiency improvements, including strong cross-domain results (e.g., NIH ChestX-ray14). These results reinforce that non-uniform class-wise coreset selection is a practical and scalable approach to enable efficient fine-tuning of large vision foundation models.
Abstract
Coreset selection aims to identify a small yet highly informative subset of data, thereby enabling more efficient model training while reducing storage overhead. Recently, this capability has been leveraged to tackle the challenges of fine-tuning large foundation models, offering a direct pathway to their efficient and practical deployment. However, most existing methods are class-agnostic, causing them to overlook significant difficulty variations among classes. This leads them to disproportionately prune samples from either overly easy or hard classes, resulting in a suboptimal allocation of the data budget that ultimately degrades the final coreset performance. To address this limitation, we propose Non-Uniform Class-Wise Coreset Selection (NUCS), a novel framework that both integrates class-level and sample-level difficulty. We propose a robust metric for global class difficulty, quantified as the winsorized average of per-sample difficulty scores. Guided by this metric, our method performs a theoretically-grounded, non-uniform allocation of data selection budgets inter-class, while adaptively selecting samples intra-class with optimal difficulty ranges. Extensive experiments on a wide range of visual classification tasks demonstrate that NUCS consistently outperforms state-of-the-art methods across 10 diverse datasets and pre-trained models, achieving both superior accuracy and computational efficiency, highlighting the promise of non-uniform class-wise selection strategy for advancing the efficient fine-tuning of large foundation models.
