Coresets from Trajectories: Selecting Data via Correlation of Loss Differences

Manish Nagaraj, Deepak Ravikumar, Kaushik Roy

Abstract

Deep learning's reliance on massive datasets creates significant computational bottlenecks. Coreset selection aims to identify a small, representative subset of data that preserves full-dataset performance. However, existing methods often struggle with either a lack of theoretical grounding or prohibitive computational costs. This paper introduces Correlation of Loss Differences (CLD), a metric that selects data by measuring the alignment between a training sample's loss trajectory and the validation set's average trajectory. CLD provides a theoretically sound, gradient-free approach that scales efficiently to large-scale datasets like ImageNet-1k, matching or exceeding the performance of state-of-the-art optimization-based methods with significantly lower overhead.

Introduction

Training deep learning models on millions of samples is increasingly constrained by time, compute, and memory. Coreset selection offers a solution by finding a tiny fraction of the data (e.g., 10%) that is as effective for training as the full set. Historically, researchers have faced a "Goldilocks" problem: heuristic methods like "Forgetting" scores are computationally fast but lack theoretical guarantees, while optimization-based methods like CRAIG or Glister are theoretically sound but require expensive gradient or Hessian computations that do not scale to datasets like ImageNet-1k. CLD bridges this gap, offering a principled method that is as efficient as simple heuristics.

Methodology: Correlation of Loss Differences (CLD)

The core innovation of this work is the CLD metric, which analyzes the trajectory of a sample's loss over time rather than a single snapshot. During a standard training run (often using a smaller "proxy" model), the algorithm records the change in loss for every training and validation sample at various checkpoints.

For each training sample, the algorithm calculates the Pearson correlation between its loss-change trajectory and the average loss-change trajectory of validation samples from the same class. Samples with high positive correlation are prioritized for the coreset. Intuitively, if a training sample’s loss moves in sync with the validation set, it is a representative example that helps the model generalize to the true data distribution.

CLD identifies representative samples by correlating training loss trajectories with validation averages.

Mathematically, the authors prove that loss differences over time approximate the inner product of gradients. This allows CLD to capture the same "influence" signal as expensive gradient-based methods using only simple scalar subtraction. Because it only logs scalar loss values, CLD "piggybacks" on the normal training loop with negligible overhead, requiring significantly less storage (e.g., ~0.46 GB for ImageNet) compared to feature-based methods.

Experimental Evaluation

The authors evaluated CLD on standard computer vision benchmarks, including CIFAR-100 and ImageNet-1k. A key finding is the "Proxy-to-Target" advantage: CLD scores can be calculated using a small proxy model (like ResNet-18) and then used to train a much larger target model (like ResNet-50) with minimal accuracy loss. This transferability suggests that "good data" is largely architecture-independent.

CLD outperforms or matches state-of-the-art coreset selection methods on CIFAR-100 and ImageNet-1k.

As shown in the results, CLD-selected coresets consistently outperformed or matched expensive baselines like DUAL and D2-Pruning across various subset sizes. Furthermore, CLD naturally reduces implicit bias; by aligning training samples with class-specific validation averages, it filters out outliers and mislabeled data while maintaining class balance without the need for complex stratified sampling.

Discussion and Future Work

While CLD is highly effective, it does depend on the availability of a representative held-out validation set. Additionally, an initial scoring run on the full dataset is required, though this can be mitigated by using small proxy models and "early-exit" scoring (using only the first 30–45 epochs).

Future research aims to adapt CLD for Large Language Models (LLMs). In NLP fine-tuning, models often exhibit a "squeezing effect" where probability mass is concentrated on specific sequences, potentially causing training and validation trajectories to diverge. Addressing these dynamics will be critical for extending CLD's efficiency to the domain of generative AI.

Summary updated

BibTeX
@article{nagaraj2025coresets,
  author = {Manish Nagaraj and Deepak Ravikumar and Kaushik Roy},
  title = {{Coresets from Trajectories: Selecting Data via Correlation of Loss Differences}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=QY0pbZTWJ9},
}
Figure