Abstract
As transfer learning models and datasets grow larger, efficient adaptation and storage optimization have become critical needs. Coreset selection addresses these challenges by identifying and retaining the most informative samples, constructing a compact subset for target domain training. However, current methods primarily rely on instance-level difficulty assessments, overlooking crucial category-level characteristics and consequently under-representing minority classes. To overcome this limitation, we propose Non-Uniform Class-Wise Coreset Selection (NUCS), a novel framework that integrates both class-level and instance-level criteria. NUCS automatically allocates data selection budgets for each class based on intrinsic category difficulty and adaptively selects samples within optimal difficulty ranges. By explicitly incorporating category-specific insights, our approach achieves a more balanced and representative coreset, addressing key shortcomings of prior methods. Comprehensive theoretical analysis validates the rationale behind adaptive budget allocation and sample selection, while extensive experiments across 14 diverse datasets and model architectures demonstrate NUCS's consistent improvements over state-of-the-art methods, achieving superior accuracy and computational efficiency. Notably, on CIFAR100 and Food101, NUCS matches full-data training accuracy while retaining just 30% of samples and reducing computation time by 60%.
Introduction
Coreset selection aims to identify a small, representative subset of a large dataset that allows a model to achieve performance comparable to training on the full dataset. This is particularly vital for fine-tuning large-scale foundation models, where training on massive target datasets is computationally expensive.
Traditional coreset methods are typically class-agnostic, treating the entire dataset as a single pool. However, this approach has a significant flaw in transfer learning: pre-trained models do not perceive all categories as equally difficult. For instance, a model pre-trained on general images might find "apples" easy to recognize but struggle with "edamame." A class-agnostic pruner might inadvertently discard a large portion of samples from "hard" classes due to their high error scores, leading to poor performance on those specific categories during fine-tuning.
The NUCS Framework
To address the limitations of class-agnostic selection, we introduce Non-Uniform Class-Wise Coreset Selection (NUCS). NUCS recognizes that inter-class difficulty variation is pronounced in pre-trained models and employs a two-tier strategy to optimize data selection.
1. Inter-Class Budget Allocation
Instead of a uniform budget per class, NUCS quantifies Global Class Difficulty ($S_j$). It calculates difficulty scores for every sample (e.g., using the EL2N metric—error L2 norm) and applies a winsorized average to determine the overall difficulty of a category. Classes identified as "harder" are automatically allocated a larger portion of the total data budget. Mathematical analysis suggests that the optimal error-minimizing strategy is to allocate data proportional to the variance (difficulty) of the class.
2. Intra-Class Window Selection
Once budgets are assigned, NUCS must select specific samples. Rather than simply picking the hardest samples, it uses a "windowing" approach. It selects a contiguous block of samples sorted by difficulty, recognizing that "moderate" difficulty samples often provide the most effective signal for fine-tuning.
3. Automated Optimization
To avoid expensive hyperparameter searches for the optimal window, NUCS utilizes linear ridge regression. By extracting features from the pre-trained model and solving a fast regression problem for candidate subsets, the framework efficiently identifies the subset that best represents the training data, acting as a proxy for full fine-tuning.
Experimental Evaluation
NUCS was evaluated across 10 diverse visual classification tasks, including balanced datasets (CIFAR10, Food101), imbalanced scenarios (CIFAR100-LT), and specialized domains (NIH ChestX-ray14).
Key Results
- Superior Accuracy: On CIFAR100-LT with a 90% pruning rate, NUCS outperformed the next best method by 5.6%.
- Efficiency Gains: On Food101, NUCS achieved a 2x speedup in the fine-tuning pipeline compared to full-data training while maintaining high performance.
- Bias Reduction: The method significantly improved Worst-Class Accuracy (WCA). By ensuring difficult and minority classes were not over-pruned, the resulting models demonstrated more consistent performance across all categories.
- Scalability: NUCS is designed to be hyperparameter-free and scales effectively to datasets with tens of thousands of classes, such as iNaturalist 2021.
Conclusion
NUCS demonstrates that characterizing category difficulty is essential for efficient transfer learning. By moving from class-agnostic to non-uniform class-wise selection, we can build more representative coresets that maintain high accuracy while drastically reducing computational and storage requirements. Future work includes extending this logic to Large Language Models (LLMs) and multi-modal architectures.
Summary updated