Batch Loss Score for Dynamic Data Pruning

Qing Zhou, Bingxuan Zhao, Tao Yang, Hongyuan Zhang, Junyu Gao, Qi WangarXiv 2026

TL;DR

Dynamic data pruning accelerates deep learning by skipping less informative training samples, but calculating individual sample losses is an engineering nightmare for complex models. This paper introduces Batch Loss Score (BLS), a method that tracks sample importance using only the standard, readily available mean batch loss via a clever exponential moving average. By treating random batch composition as high-frequency noise, BLS filters it out to losslessly prune 20–50% of training data with just three lines of code.

What Problem Does This Paper Address?

Training state-of-the-art deep learning models requires massive datasets and immense computational power. Dynamic data pruning mitigates this by identifying and skipping "easy" or less informative samples at different stages of training. Typically, a sample's informativeness is measured by its individual loss—the higher the loss, the more the model needs to learn from it.

However, extracting individual per-sample losses in practice is incredibly difficult. Modern deep learning frameworks are highly optimized to aggregate individual losses into a single mean batch loss scalar for gradient updates, discarding the individual components post-aggregation. Forcing a framework to output per-sample losses requires intrusive pipeline modifications. This engineering friction becomes an absolute bottleneck for complex tasks like object detection (which use multi-component losses) or semi-supervised learning, where defining a clean per-sample scalar is conceptually ambiguous and architecturally painful.

Methods

The authors propose Batch Loss Score (BLS) to bypass per-sample loss extraction entirely.

The Core Insight

From the perspective of a single sample $i$, the mean batch loss can be mathematically decomposed into two parts:

  1. A scaled version of its own true loss (the Signal).
  2. The average loss of all the other randomly selected samples in that mini-batch (the Batch Composition Noise).

EMA as a Low-Pass Filter

BLS maintains a running importance score for each sample in the dataset using a conditional Exponential Moving Average (EMA). Crucially, a sample's score is updated only during training iterations where that specific sample is included in the mini-batch.

The authors provide a rigorous signal-processing proof showing that this conditional EMA acts as a first-order low-pass filter. Because mini-batches are sampled randomly at every step, the batch composition noise fluctuates rapidly from iteration to iteration (high-frequency noise). Conversely, the model's true performance on a specific sample changes slowly as weights gradually update over multiple epochs (low-frequency signal). The EMA attenuates the high-frequency noise, leaving a clean, smoothed proxy of the sample's persistent contribution to the loss.

Seamless Integration

Because BLS only requires the standard mean batch loss scalar, it acts as a black-box, drop-in proxy for existing pruning frameworks (like InfoBatch or SeTa). It requires a one-line proxy wrapper and a three-line injection into standard training loops, leaving downstream scheduling logic completely untouched.

Datasets

To demonstrate its universal applicability, the authors evaluated BLS across an extensive suite of 14 datasets spanning 11 distinct tasks and 18 model architectures:

  • Image Classification: CIFAR-10, CIFAR-100, ImageNet-1K
  • Object Detection & Instance Segmentation: COCO
  • Vision-Language & Captioning: ToCa, SS1M, NoCaps, MSR-VTT
  • Scene Text Recognition: MJ+ST
  • Generative Modeling: MNIST, CIFAR-10 (using VAEs and Diffusion Models)
  • Semi-Supervised Learning: Yelp Review (text classification), ESC-50 (audio classification)
  • Multi-View Stereo: WHU-MVS

No new datasets were introduced, but this diverse evaluation proves that BLS is entirely task- and architecture-agnostic.

Key Insights and Ideas

  • Batch Loss as a Noisy Sensor: The fundamental "aha!" moment is realizing that you don't need to look inside the batch aggregation box. The aggregated batch loss scalar itself contains enough historical information to rank individual samples if tracked correctly over time.
  • Frequency Separation: Random batching creates a textbook high-frequency noise distribution. Because model learning and random sampling operate on completely different timescales, standard signal processing tools can cleanly disentangle them.
  • Bypassing Loss Disentanglement: In complex architectures like YOLOv5, the final loss is a weighted sum of bounding box regression, classification, and objectness losses. BLS completely bypasses the need to manually disentangle these sub-losses at a per-sample level.

Key Results

  • Minimal Engineering Complexity: Traditional per-sample loss tracking on complex frameworks like YOLOv5 requires intrusive modifications across multiple core files (33+ lines of code). BLS achieves identical results with a simple 3-line injection.
Figure 1. Score acquisition complexity (excluding scheduling logic). BLS: 3 line | InfoBatch: 33+ lines + intrusive modifications.
  • Lossless Acceleration: BLS successfully prunes 20% to 50% of training data across various models (including CNNs, Transformers, and Mamba architectures) while maintaining or occasionally even slightly improving final baseline accuracy.
  • Empirical Validation of Theory: Power Spectral Density (PSD) analysis using Welch's method confirmed the authors' frequency separation hypothesis: the batch composition noise ($N_i$) possesses significantly higher energy density at higher frequencies compared to the true scaled signal ($S_i$).
Figure 2. Empirical validation of frequency separation. Top: Aver- age PSD for scaled signal (Mean Si) and batch noise (Mean Ni). Bottom: Time series for a representative sample. Si magnitude is much smaller (see inset).

Limitations and Future Work

  • Dependency on External Schedulers: BLS is strictly an importance scoring mechanism. It replaces how sample difficulty is calculated, but it still relies entirely on external frameworks (like InfoBatch or SeTa) to dictate the actual pruning schedules or curriculum designs.
  • Hyperparameter Sensitivity: The performance of BLS hinges on the EMA decay factor ($\alpha$). As shown in the paper's ablation studies, if $\alpha$ is too low (0.5–0.6), the scores are too noisy and accuracy drops. If $\alpha$ is too high ($\ge 0.9$), the scores become overly smoothed and static, causing the pruning ratio to drop to zero. Finding the sweet spot (experimentally determined as $\alpha = 0.7$ to $0.8$) is critical.
Figure 3. Effect of EMA decay factor α. Accuracy and Pruning Ratio are shown for ResNet18 and ResNet50.

Summary updated

BibTeX
@misc{zhou2026batch,
  author = {Qing Zhou and Bingxuan Zhao and Tao Yang and Hongyuan Zhang and Junyu Gao and Qi Wang},
  title = {{Batch Loss Score for Dynamic Data Pruning}},
  year = {2026},
  eprint = {2604.04681},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.04681},
}
Figure