Skip to main content
QUICK REVIEW

[Paper Review] CPT: Efficient Deep Neural Network Training via Cyclic Precision

Yonggan Fu, Han Guo|arXiv (Cornell University)|Jan 25, 2021
Machine Learning and Data ClassificationComputer Science57 references11 citations
TL;DR

This paper proposes Cyclic Precision Training (CPT), a dynamic low-precision training method that cyclically varies precision between two bounds during DNN training to improve optimization and efficiency. CPT achieves better generalization and reduced training variance, consistently boosting training efficiency by up to 48% while maintaining or improving accuracy across diverse models and datasets.

ABSTRACT

Low-precision deep neural network (DNN) training has gained tremendous attention as reducing precision is one of the most effective knobs for boosting DNNs' training time/energy efficiency. In this paper, we attempt to explore low-precision training from a new perspective as inspired by recent findings in understanding DNN training: we conjecture that DNNs' precision might have a similar effect as the learning rate during DNN training, and advocate dynamic precision along the training trajectory for further boosting the time/energy efficiency of DNN training. Specifically, we propose Cyclic Precision Training (CPT) to cyclically vary the precision between two boundary values which can be identified using a simple precision range test within the first few training epochs. Extensive simulations and ablation studies on five datasets and eleven models demonstrate that CPT's effectiveness is consistent across various models/tasks (including classification and language modeling). Furthermore, through experiments and visualization we show that CPT helps to (1) converge to a wider minima with a lower generalization error and (2) reduce training variance which we believe opens up a new design knob for simultaneously improving the optimization and efficiency of DNN training. Our codes are available at: https://github.com/RICE-EIC/CPT.

Motivation & Objective

  • Address the high computational and energy cost of training large deep neural networks (DNNs), especially for edge devices with limited resources.
  • Overcome the limitations of static low-precision training, which fixes precision throughout training and may hinder convergence and generalization.
  • Explore dynamic precision scheduling as a new optimization knob, inspired by the analogy between precision and learning rate in DNN training dynamics.
  • Develop a practical, automatically tunable method to identify optimal precision bounds early in training with minimal overhead.
  • Demonstrate consistent improvements in training efficiency and model accuracy across diverse models and tasks, including image classification and language modeling.

Proposed method

  • Propose Cyclic Precision Training (CPT), a framework that dynamically cycles precision between two user-defined bounds during DNN training.
  • Use a simple precision range test during the first few epochs to automatically identify the optimal lower and upper precision bounds with negligible computational cost.
  • Apply a cosine-shaped cyclic schedule for precision variation, emulating cyclical learning rate strategies to balance exploration (low precision) and convergence (high precision).
  • Integrate CPT into standard DNN training pipelines, supporting mixed-precision training for weights, activations, gradients, and errors.
  • Support multiple cyclic patterns (e.g., triangular, cosine annealing) and evaluate their impact on performance and robustness.
  • Enable backward pass with low-precision gradients and error compensation to maintain training stability and accuracy.

Experimental results

Research questions

  • RQ1Does dynamically varying precision during DNN training improve optimization and generalization compared to static low-precision training?
  • RQ2Can the optimal precision bounds be automatically identified early in training with minimal computational overhead?
  • RQ3How does CPT affect convergence to wider minima and generalization error across different models and datasets?
  • RQ4What is the impact of different cyclic precision schedules (e.g., cosine, triangular) on training efficiency and model accuracy?
  • RQ5Can CPT consistently improve the Pareto frontier of accuracy and training efficiency across diverse DNN architectures and tasks?

Key findings

  • CPT reduces computational cost by up to 48.0% on ResNet-74 and CIFAR-100 while improving test accuracy by up to 2.03% compared to static baselines.
  • CPT consistently achieves higher accuracy (up to +2.03%) and lower computational cost (down to -48.0%) across eleven models and five datasets, including ImageNet and language modeling tasks.
  • CPT reduces training variance, with boxplots showing tighter accuracy distributions across repeated experiments, indicating more stable training.
  • CPT with different cyclic patterns (cosine, triangular, cosine annealing) consistently outperforms static baselines, with some patterns exceeding the cosine schedule in accuracy on certain models.
  • Loss surface visualization confirms that CPT converges to wider minima with lower generalization error, supporting its optimization benefits.
  • The precision range test identifies optimal bounds in the first few epochs with negligible overhead, enabling practical deployment of CPT without prior hyperparameter tuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.