Adaptive Precision Training for Resource Constrained Devices

Tian Huang, Tao Luo, Joey Tianyi Zhou

Abstract

Training deep neural networks (DNNs) on edge devices is often prohibited by severe memory and energy constraints. We present Adaptive Precision Training (APT), a novel framework that dynamically adjusts layer-wise bit-widths during training. By starting with low precision and increasing it only to prevent quantization underflow, APT achieves over 50% savings in energy and memory with negligible accuracy loss compared to full-precision training.

Introduction

The rise of Edge AI necessitates "in-situ" learning to enable personalization and preserve privacy. However, the resource intensity of training remains a significant barrier. While low-precision training offers potential savings, it typically faces two major hurdles:

  1. The Memory Paradox: Most existing methods require a high-precision (FP32) "master copy" of weights to accumulate small updates, which paradoxically increases memory requirements.
  2. Quantization Underflow: If precision is too low, calculated gradients become smaller than the representable resolution, causing updates to round to zero and halting learning.

Methodology

Adaptive Precision Training (APT) addresses these challenges through three primary mechanisms:

  • Unified Precision: APT utilizes the same low bit-width for both forward and backward passes, eliminating the need for a 32-bit master copy and significantly reducing the memory footprint.
  • The $Gavg$ Metric: To monitor learning health, we introduce $Gavg$, a heuristic measuring the ratio of average gradient magnitude to the minimum resolution of the current bit-width.
  • Dynamic Adjustment Policy: Training begins at a baseline low precision (e.g., 6-bit). If $Gavg$ drops below a threshold ($T_{min}$), indicating quantization underflow, the bit-width for that specific layer is increased to "unfreeze" learning.
Dynamic bitwidth adjustment across different layers during training.

Experimental Setup

We evaluated APT on CIFAR-10 and CIFAR-100 datasets using ResNet-20, ResNet-110, and MobileNetV2 architectures. These benchmarks represent a range of model complexities suitable for edge deployment.

Results and Discussion

APT demonstrates that precision can be treated as a dynamic resource rather than a static setting. By allocating higher bit-widths only to "difficult" layers or during critical learning phases, the model optimizes the accuracy-resource trade-off.

Resource Efficiency

APT achieved over 50% reduction in training energy and memory usage compared to FP32. Adjusting the $T_{min}$ hyper-parameter allows users to further trade a marginal amount of accuracy (e.g., 1%) for substantial additional energy savings (up to 20%).

Comparative Performance

As shown in the comparison below, APT remains highly competitive with existing methods while maintaining a lower memory profile during backpropagation. On CIFAR-10 with ResNet-20, APT reached 92.23% accuracy, outperforming several fixed-precision methods.

Comparison of APT against state-of-the-art low-precision training methods.

Conclusion

Adaptive Precision Training provides a viable path for training sophisticated DNNs on resource-constrained hardware. While current implementations rely on heuristic thresholds, future work will explore automated, data-driven parameter selection to enhance the framework's generalizability across diverse tasks and architectures.

Summary updated

BibTeX
@inproceedings{huang2020adaptive,
  author = {Tian Huang and Tao Luo and Joey Tianyi Zhou},
  title = {{Adaptive Precision Training for Resource Constrained Devices}},
  booktitle = {ICDCS},
  year = {2020},
  doi = {10.1109/icdcs47774.2020.00185},
}
Figure