Enabling On-Device CNN Training by Self-Supervised Instance Filtering and Error Map Pruning

Yawen Wu, Zhepeng Wang, Yiyu Shi, Jingtong Hu

Abstract

Training deep neural networks on resource-constrained IoT devices is hindered by high memory, computation, and power requirements. This paper introduces a dual-strategy framework designed to make on-device training feasible. The framework employs Self-Supervised Early Instance Filtering (EIF) to discard redundant data samples and Error Map Pruning (EMP) to skip insignificant computations during backpropagation. Evaluations across multiple datasets and architectures demonstrate up to 96% computation savings with minimal impact on accuracy, significantly extending the battery life of edge devices.

Introduction

While the deployment of pre-trained models to edge devices is now commonplace, on-device training remains a significant challenge. Training is essential for preserving privacy through local data processing, enabling personalization for specific users, and supporting lifelong learning in evolving environments. However, the massive resource requirements of standard training cycles often exceed the capabilities of battery-powered IoT devices. This research addresses these bottlenecks by optimizing both the data input and the algorithmic backpropagation process.

Methodology

The proposed framework integrates two complementary techniques to reduce the overhead of the training cycle.

Overview of the dual-strategy framework for efficient on-device training.

Self-Supervised Early Instance Filtering (EIF)

EIF operates at the data level, identifying and filtering out "easy" samples that contribute little to the model's learning. A small, lightweight filter network predicts the loss of an incoming instance. If the predicted loss is below an adaptive threshold, the instance is dropped, saving the computational cost of both forward and backward passes. To ensure the filter adapts as the main model learns, "uncertainty sampling" is used to periodically update the filter network using self-supervision from the main network's actual loss values.

Error Map Pruning (EMP)

EMP targets the algorithmic level, specifically the backward pass, which typically accounts for two-thirds of the total training cost. By identifying and pruning "insignificant" channels in the error maps—those with values too small to meaningfully impact weight updates—EMP skips expensive convolutional operations during gradient computation. This structured pruning maintains high accuracy while drastically reducing FLOPs.

Experimental Results

The framework was evaluated using standard benchmarks (MNIST, CIFAR-10/100, ImageNet) across various architectures (LeNet, ResNet, VGG).

Accuracy vs. computation savings for EIF compared to other methods.

Key findings include:

  • Computation Efficiency: For ResNet-110 on CIFAR-10, the framework achieved 68% computation savings with zero accuracy loss. When combined with quantization, savings reached 96% with less than 0.1% accuracy degradation.
  • Hardware Performance: On an NVIDIA Jetson TX2, the method extended battery life by 2.5x to 3.1x. On an MSP432 microcontroller, it saved 74% of energy while slightly improving accuracy by focusing on high-value data.
  • Comparison: As shown in the performance plots, EIF consistently outperforms baseline methods like SMD, SMB, and OHEM in the accuracy-computation trade-off space.

Conclusion

By addressing redundancy in training data and insignificance in error propagation, this dual-strategy framework enables efficient on-device CNN training. While the filter network introduces a small overhead, the overall gains in energy efficiency and battery life are substantial. Future work may explore finer-grained pruning and the long-term stability of these filters in continuous learning scenarios.

Summary updated

Abstract

This work aims to enable on-device training of convolutional neural networks (CNNs) by reducing the computation cost at training time. CNN models are usually trained on high-performance computers and only the trained models are deployed to edge devices. But the statically trained model cannot adapt dynamically in a real environment and may result in low accuracy for new inputs. On-device training by learning from the real-world data after deployment can greatly improve accuracy. However, the high computation cost makes training prohibitive for resource-constrained devices. To tackle this problem, we explore the computational redundancies in training and reduce the computation cost by two complementary approaches: 1) self-supervised early instance filtering on data level and 2) error map pruning (EMP) on the algorithm level. The early instance filter selects important instances from the input stream to train the network and drops trivial ones. The EMP further prunes out insignificant computations when training with the selected instances. Extensive experiments show that the computation and energy cost is substantially reduced without any or with marginal accuracy loss. For example, when training ResNet-110 on CIFAR-10, we achieve 67.8% computation saving while preserving full accuracy and 75.1% computation saving with a marginal accuracy loss of 1.3%. When training LeNet on MNIST, we save 79% computation while boosting accuracy by 0.2%. Besides, practical energy saving is measured on edge platforms. We achieve 67.6% energy saving when training ResNet-110 on mobile GPU and 74.1% energy saving when training LeNet on MCU without any accuracy loss.
BibTeX
@article{wu2020enabling,
  author = {Yawen Wu and Zhepeng Wang and Yiyu Shi and Jingtong Hu},
  title = {{Enabling On-Device CNN Training by Self-Supervised Instance Filtering and Error Map Pruning}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2020},
  url = {https://openreview.net/forum?id=8VImsjpHMC},
}
Figure