Accelerating Deep Learning by Focusing on the Biggest Losers

TL;DR

Selective-Backprop accelerates deep learning by prioritizing high-loss samples, achieving up to 3.5x faster convergence.

cs.LG 🔴 Advanced 2019-10-02 60 views
Angela H. Jiang Daniel L. -K. Wong Giulio Zhou David G. Andersen Jeffrey Dean Gregory R. Ganger Gauri Joshi Michael Kaminksy Michael Kozuch Zachary C. Lipton Padmanabhan Pillai
deep learning sample selection training acceleration importance sampling neural networks

Key Findings

Methodology

The approach uses forward pass loss outputs as a proxy for gradient magnitude, dynamically sampling high-loss examples based on their percentile rank within a buffer of recent losses. The sampling probability P(L) is computed via a monotonic function controlled by parameter β, favoring difficult samples. The method incorporates a 'stale' variant (Stale-SB), reusing previous forward pass losses every n epochs to reduce computational overhead. Extensive experiments on CIFAR10, CIFAR100, and SVHN with models like ResNet, DenseNet, and MobileNetV2 demonstrate that SB reduces training time to reach target error rates by up to 3.5x, outperforming importance sampling methods by 1.02-1.8x, with an additional 26% speedup when using stale forward pass results.

Key Results

  • On CIFAR10, SB achieved a 3.5x speedup to target error, significantly reducing training epochs and wall-clock time compared to standard SGD.
  • Similar gains were observed on CIFAR100 and SVHN, with average acceleration factors around 2.8x, maintaining comparable final accuracy.
  • The stale variant (n=3) further decreased total training time by 26%, with minimal impact on final performance, confirming robustness.

Significance

This work addresses the core bottleneck of computational cost in deep neural network training, especially for large datasets and complex architectures. By intelligently focusing on the most informative samples, it reduces unnecessary gradient computations, enabling faster deployment of models in industry. The simplicity and broad applicability of SB make it a practical solution for accelerating deep learning workflows, potentially transforming training paradigms across domains.

Technical Contribution

The paper introduces an online, loss-based sampling mechanism that avoids maintaining historical loss data, relying solely on current forward pass outputs. It employs a percentile-based probability calculation, combined with a buffer of recent losses, to adaptively prioritize difficult samples. The 'stale' loss reuse mechanism further reduces forward pass overhead, compatible with various optimizers and data augmentation techniques. The approach is validated across multiple datasets and models, demonstrating superior efficiency over existing importance sampling methods.

Novelty

This is the first method to leverage real-time forward pass losses as a basis for sample importance, eliminating the need for historical loss tracking. Its percentile-based probabilistic sampling and 'stale' loss reuse constitute a novel, scalable, and effective approach to training acceleration, setting it apart from prior importance sampling techniques that rely on stored loss histories or additional models.

Limitations

  • In datasets with high label noise or class imbalance, high-loss samples may include noisy or uninformative data, potentially degrading performance.
  • Sensitivity to the parameter β requires careful tuning to balance speed and accuracy, which may vary across tasks.
  • While the 'stale' approach reduces computation, it may introduce some staleness in sample importance estimation, especially in highly dynamic training scenarios.

Future Work

Future directions include integrating hardware-accelerated loss computation, extending the approach to multi-task and multi-modal learning, and developing adaptive mechanisms for parameter β. Exploring robustness against noisy labels and class imbalance, as well as combining with other training acceleration techniques, are promising avenues.

AI Executive Summary

Training deep neural networks efficiently remains a critical challenge as models grow larger and datasets expand. Traditional methods allocate equal computational effort across all samples, regardless of their contribution to learning progress. This often results in wasted resources on easy or already well-learned examples, slowing down the overall training process.

The proposed solution, Selective-Backprop (SB), introduces a simple yet powerful idea: prioritize samples with high loss during training. By leveraging the loss output from the forward pass as an indicator of sample difficulty, SB probabilistically skips the backward pass for low-loss examples. This targeted approach significantly reduces the number of expensive gradient computations required, leading to faster convergence.

Extensive experiments on datasets like CIFAR10, CIFAR100, and SVHN across multiple architectures demonstrate that SB can accelerate training by up to 3.5 times compared to standard stochastic gradient descent. The method outperforms existing importance sampling techniques, which typically require maintaining historical loss data, by achieving 1.02-1.8x faster training. Furthermore, a variant that reuses previous forward pass losses (Stale-SB) reduces overall training time by an additional 26%, with negligible impact on final accuracy.

This work offers a practical, easy-to-implement strategy that integrates seamlessly with existing training pipelines. Its reliance on real-time loss metrics makes it adaptable and scalable, suitable for industrial applications where training efficiency is paramount. Looking ahead, combining SB with hardware accelerators and extending it to multi-task learning could further revolutionize deep learning workflows, making training faster, cheaper, and more accessible.

Deep Dive

Abstract

This paper introduces Selective-Backprop, a technique that accelerates the training of deep neural networks (DNNs) by prioritizing examples with high loss at each iteration. Selective-Backprop uses the output of a training example's forward pass to decide whether to use that example to compute gradients and update parameters, or to skip immediately to the next example. By reducing the number of computationally-expensive backpropagation steps performed, Selective-Backprop accelerates training. Evaluation on CIFAR10, CIFAR100, and SVHN, across a variety of modern image models, shows that Selective-Backprop converges to target error rates up to 3.5x faster than with standard SGD and between 1.02--1.8x faster than a state-of-the-art importance sampling approach. Further acceleration of 26% can be achieved by using stale forward pass results for selection, thus also skipping forward passes of low priority examples.

cs.LG stat.ML