Refined Coreset Selection: Towards Minimal Coreset Size under Model Performance Constraints

Xiaobo Xia, Jiale Liu, Shaokun Zhang, Qingyun Wu, Hongxin Wei, Tongliang Liu

Introduction

In the era of massive datasets, training deep learning models is computationally expensive and time-consuming. Coreset selection offers a powerful workaround by identifying a small, representative subset of data. Training on this subset ideally yields a model that performs nearly as well as one trained on the entire dataset.

However, traditional coreset selection algorithms require practitioners to pre-define a target subset size (e.g., "retain exactly 10% of the data"), aiming to maximize model performance within that fixed budget. This paper flips the script by introducing Refined Coreset Selection (RCS): seeking the smallest possible data subset that maintains a specific, target performance level. To solve this, the authors propose Lexicographic Bilevel Coreset Selection (LBCS), an innovative method that consistently finds smaller, more effective coresets than existing state-of-the-art techniques.

The Problem: The Guesswork in Coreset Sizing

In practice, engineers rarely know the optimal coreset size in advance. They simply want the minimum amount of data necessary to avoid breaking their model's performance. Identifying this "sweet spot" is the core of the RCS problem.

Solving RCS is non-trivial because it requires balancing two competing objectives: minimizing error and minimizing dataset size. Traditional multi-objective optimization typically relies on a weighted sum (e.g., $Loss + \lambda \cdot Size$). The authors demonstrate that this approach is often intractable because the scales of loss and size vary wildly across different architectures and datasets, making the hyperparameter $\lambda$ incredibly difficult to tune.

The Solution: Lexicographic Bilevel Coreset Selection (LBCS)

To overcome the limitations of weighted sums, the authors propose LBCS, which relies on four key pillars:

  1. Bilevel Optimization: The problem is structured into two nested loops. The inner loop trains a model on a candidate coreset. The outer loop evaluates that model's performance on the full dataset and updates the coreset selection (represented as a binary mask).
  2. Lexicographic Preferences: Instead of combining performance and size into a single messy score, LBCS treats them like words in a dictionary, applying a strict priority order. Model performance is the primary priority. The algorithm only attempts to minimize the coreset size if the model's performance meets a predefined threshold.
  3. Voluntary Performance Compromise ($\epsilon$): The user can specify a small tolerance ($\epsilon$) for performance loss. This flexibility allows the algorithm to significantly prune the dataset size if the resulting drop in performance is negligible.
  4. Black-box Optimization: Because the relationship between a discrete data mask and final model performance is not easily differentiable, the authors utilize a randomized direct search algorithm (LexiFlow) to iteratively "evolve" the best data mask.
Convergence of optimization metrics across outer loop iterations in the LBCS algorithm.

Key Insights and Empirical Success

The LBCS method was rigorously evaluated on standard computer vision benchmarks, including F-MNIST, SVHN, CIFAR-10, and ImageNet-1k. It proved highly effective across various architectures, including CNNs, ResNets, and Vision Transformers (ViT).

  • Superior Efficiency: LBCS consistently outperformed baselines, often achieving higher accuracy with fewer samples. For instance, on F-MNIST, LBCS achieved 84.5% accuracy using only 3,745 samples. In contrast, the best probabilistic baseline achieved only 84.2% despite using a larger fixed budget of 4,000 samples.
  • Scaling to ImageNet: On the large-scale ImageNet-1k dataset, LBCS reached a top-5 accuracy of 89.98% while automatically optimizing the coreset down to just 68.53% of the original data size.
  • Generalization through Pruning: Surprisingly, allowing a tiny compromise in training performance ($\epsilon$) can actually improve generalization on test data. By not forcing the model to fit every single point in a potentially noisy coreset, the algorithm naturally avoids overfitting.
  • Robustness to Noise: When tested on datasets injected with 30-50% label noise, LBCS significantly outperformed competitors. It effectively "filtered out" the noisy labels because they hindered the primary objective (performance), naturally leading to a cleaner, smaller coreset.

Limitations and Future Work

While LBCS represents a significant step forward, it is not without limitations. Although more efficient than some gradient-based probabilistic methods (which require complex policy gradient estimations), bilevel optimization still requires multiple training runs in the inner loop. This makes it computationally heavier than simple one-shot selection methods like random sampling.

Furthermore, for massive datasets, the search space for the binary mask becomes enormous. While the authors employ grouping strategies to manage this, scaling to ultra-large datasets remains an open challenge. Finally, while the authors provide a convergence guarantee, the optimal convergence rate for this specific lexicographic bilevel setup remains an active area for future theoretical research.

The official implementation is available at https://github.com/xiaoboxia/LBCS.

Summary updated

BibTeX
@inproceedings{xia2024refined,
  author = {Xiaobo Xia and Jiale Liu and Shaokun Zhang and Qingyun Wu and Hongxin Wei and Tongliang Liu},
  title = {{Refined Coreset Selection: Towards Minimal Coreset Size under Model Performance Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=yb5xV8LFDq},
}
Figure