KAKURENBO: Adaptively Hiding Samples in Deep Neural Network Training

Thao Nguyen Truong, Balazs Gerofi, Edgar Josafat Martinez-Noriega, François Trahay, Mohamed Wahib

Abstract

Training modern deep neural networks (DNNs) on massive datasets is computationally expensive. KAKURENBO is a dynamic data-hiding framework that accelerates training by adaptively excluding "easy" samples that contribute minimally to the learning process. By combining loss-based sorting with prediction confidence checks and automated learning rate adjustments, KAKURENBO achieves up to a 22.4% reduction in training time with negligible impact on final accuracy across benchmarks like ImageNet-1K and DeepCAM.

Introduction

The computational cost of training DNNs on datasets containing millions of samples has become a significant bottleneck. Research indicates that many samples become "easy" for a model early in the training process, providing diminishing returns for further optimization. While static data pruning and online importance sampling have been proposed, they often suffer from high pre-computation costs or significant runtime overhead. KAKURENBO addresses these challenges by providing a scalable, online method to "hide" unimportant samples dynamically.

Methodology

KAKURENBO (Japanese for "hide and seek") operates as an adaptive wrapper around standard Stochastic Gradient Descent (SGD). The workflow consists of four main pillars:

  1. Adaptive Hiding: At the start of each epoch, samples are sorted by their most recent loss. The algorithm tentatively hides a fraction $F$ of the samples with the lowest loss.
  2. The "Move Back" Safety Net: To prevent the accidental exclusion of "hard" samples that might have low loss but are still critical for generalization, KAKURENBO checks prediction accuracy (PA) and prediction confidence (PC). If a sample was mispredicted or predicted with low confidence (below a threshold $\tau$), it is moved back into the training set.
  3. Learning Rate Adjustment: Hiding samples reduces the total number of SGD updates per epoch. To maintain the "pace" of learning, KAKURENBO dynamically scales the learning rate by a factor of $1/(1-F_e)$, where $F_e$ is the actual fraction of hidden samples.
  4. Efficient Metadata Updates: To avoid the cost of a full forward pass just to calculate selection metrics, the system uses "lagging loss"—reusing loss and confidence values calculated during the previous epoch's training steps.
The KAKURENBO workflow: sorting, hiding, and moving back samples based on loss and confidence.

Experimental Evaluation

The authors evaluated KAKURENBO across a diverse set of large-scale benchmarks, including ImageNet-1K (1.2M images), CIFAR-100, DeepCAM (8.8TB climate simulation data), and Fractal-3K (3M synthetic images). These benchmarks verify the method's scalability and effectiveness across different tasks, from image classification to segmentation.

Results and Discussion

KAKURENBO achieved significant wall-clock speedups: 22.4% on DeepCAM and between 10.4% and 23% on ImageNet-1K, depending on the specific model architecture (ResNet-50 vs. EfficientNet-b3). Across most tests, the impact on Top-1 accuracy was minimal, typically around 0.4%. In some instances, such as training ResNet-50 on ImageNet, KAKURENBO actually slightly improved accuracy (+0.26%) compared to the baseline.

Convergence and speedup of KAKURENBO compared to baseline and other methods across different models and datasets.

The success of KAKURENBO is attributed to its ability to handle the shifting loss distribution during training. By epoch 30 on ImageNet, over 50% of samples are "solved" (loss < 5% of max). Unlike standard importance sampling (ISWR), which maintains the same number of updates per epoch, KAKURENBO's approach of reducing the number of updates while scaling the learning rate proved much more effective for wall-clock time reduction.

Conclusion

KAKURENBO provides a robust and scalable solution for accelerating DNN training. While current implementations show the greatest benefit in large-scale distributed environments, future work will focus on automating hyperparameter tuning and extending the methodology to other domains such as Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{truong2023kakurenbo,
  author = {Thao Nguyen Truong and Balazs Gerofi and Edgar Josafat Martinez-Noriega and François Trahay and Mohamed Wahib},
  title = {{KAKURENBO: Adaptively Hiding Samples in Deep Neural Network Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=GAsRl2ElHk},
}
Figure