Better schedules for low precision training of deep neural networks

Cameron R. Wolfe, Anastasios Kyrillidis

Abstract

Training deep neural networks (DNNs) is computationally intensive. Low-precision training offers a solution, and Cyclic Precision Training (CPT) further optimizes this by varying precision during training. This paper systematically explores the design space of precision schedules, moving beyond standard learning rate-inspired heuristics. We identify that early-stage aggressive quantization can permanently impair model performance and demonstrate that optimized schedules can significantly reduce compute costs while maintaining or even improving accuracy across various domains, including Computer Vision, NLP, and Graph Neural Networks.

Introduction

The escalating costs of training state-of-the-art DNNs necessitate efficient alternatives. Low-precision training reduces the bit-width of numerical representations, saving time and energy. Cyclic Precision Training (CPT) dynamically adjusts this precision throughout the training process. However, previous work largely relied on schedules borrowed from learning rate optimization. This research addresses the lack of a systematic framework for precision scheduling and investigates the impact of these schedules on model convergence and final accuracy.

Methodology

The authors propose a three-step framework to deconstruct and design CPT schedules:

  1. Profile Selection: Defining the functional shape of precision change, such as Cosine, Linear, Exponential, or Reverse Exponential (REX).
  2. Cycle Determination: Setting the frequency of precision fluctuations.
  3. Form Selection: Choosing between Repeated cycles (resetting to low precision) or Triangular cycles (smoothly oscillating via reflection).
Taxonomy of precision schedules including profiles (Cosine, REX, Exponential, Linear) and forms (Repeated, Triangular).

Efficiency is quantified using BitOps, a metric that accounts for varying precisions across layers and iterations, providing a more accurate measure of compute savings than simple iteration counts.

Key Insights: Precision as a Control Lever

A central finding is that precision schedules act as a direct "knob" for the performance/cost trade-off. While "Large" (aggressive) schedules maximize compute savings, they risk accuracy. Conversely, "Small" (conservative) schedules often act as a regularizer, improving accuracy over full-precision baselines while still reducing costs.

Crucially, the study identifies a "Critical Learning Period" for precision. Aggressive quantization during the initial stages of training can cause a "learning impairment"—a performance deficit that cannot be recovered even with high precision later in the training cycle. This suggests that the timing of low-precision phases is as critical as their duration.

Results and Discussion

The proposed schedules were evaluated across diverse tasks. In Graph Neural Networks (GNNs), models proved surprisingly robust to quantization, especially when the aggregation step remained in full precision. On the OGBN-Products dataset, aggressive schedules halved compute requirements while slightly increasing accuracy.

Test accuracy vs. GBitOps for various CV models, illustrating the trade-off between compute savings and model performance across different schedules.

In Computer Vision, the "Medium" ETV schedule on PascalVOC achieved a 1.02 mAP improvement with a 25% reduction in training cost. Across multiple benchmarks, new profiles like REX and Exponential consistently outperformed the standard cyclical cosine schedule, particularly in NLP tasks.

Conclusion and Future Work

This work establishes a systematic approach to precision scheduling in DNN training. By understanding the trade-offs and the risks of early-stage quantization, researchers can better optimize training efficiency. Future directions include exploring hardware that natively supports flexible bit-widths to realize theoretical BitOps gains as actual wall-clock speedups, and using automated methods to discover optimal per-architecture schedules.

Summary updated

BibTeX
@article{wolfe2024better,
  author = {Cameron R. Wolfe and Anastasios Kyrillidis},
  title = {{Better schedules for low precision training of deep neural networks}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-023-06480-0},
}
Figure