[Paper Review] FracTrain: Fractionally Squeezing Bit Savings Both Temporally and Spatially for Efficient DNN Training
FracTrain combines progressive fractional quantization and input-adaptive dynamic fractional quantization to reduce DNN training cost while preserving accuracy, demonstrated across multiple models and datasets.
Recent breakthroughs in deep neural networks (DNNs) have fueled a tremendous demand for intelligent edge devices featuring on-site learning, while the practical realization of such systems remains a challenge due to the limited resources available at the edge and the required massive training costs for state-of-the-art (SOTA) DNNs. As reducing precision is one of the most effective knobs for boosting training time/energy efficiency, there has been a growing interest in low-precision DNN training. In this paper, we explore from an orthogonal direction: how to fractionally squeeze out more training cost savings from the most redundant bit level, progressively along the training trajectory and dynamically per input. Specifically, we propose FracTrain that integrates (i) progressive fractional quantization which gradually increases the precision of activations, weights, and gradients that will not reach the precision of SOTA static quantized DNN training until the final training stage, and (ii) dynamic fractional quantization which assigns precisions to both the activations and gradients of each layer in an input-adaptive manner, for only "fractionally" updating layer parameters. Extensive simulations and ablation studies (six models, four datasets, and three training settings including standard, adaptation, and fine-tuning) validate the effectiveness of FracTrain in reducing computational cost and hardware-quantified energy/latency of DNN training while achieving a comparable or better (-0.12%~+1.87%) accuracy. For example, when training ResNet-74 on CIFAR-10, FracTrain achieves 77.6% and 53.5% computational cost and training latency savings, respectively, compared with the best SOTA baseline, while achieving a comparable (-0.07%) accuracy. Our codes are available at: https://github.com/RICE-EIC/FracTrain.
Motivation & Objective
- Motivate efficient on-device or edge DNN training given limited resources.
- Develop training-time quantization strategies that are not static but adapt over the training trajectory and per input.
- Propose Progressive Fractional Quantization (PFQ) to gradually raise precision during training.
- Propose Dynamic Fractional Quantization (DFQ) to adapt layer precisions per input using lightweight gating.
- Integrate PFQ and DFQ into a unified FracTrain framework and evaluate its training cost savings and accuracy.
Proposed method
- Introduce PFQ which uses a four-stage precision schedule and an epoch-differenced loss-change-based indicator to progressively increase precision.
- Introduce DFQ with a gating network per layer that selects between bit-precisions via soft intermediate variants and a cost-aware training objective.
- Define the FracTrain objective by combining PFQ and DFQ; PFQ controls temporal precision progression while DFQ handles spatial, input-adaptive precision.
- Model the layer computation as a sum of gated, low-bit convolutions plus a skip connection to realize fractional updates.
- Use a cost-aware loss term cp(W_base, W_G) and adjust the sign of a weighting parameter to target a target training cost cp.
- Evaluate on six models (ResNet-18/34/38/74, MobileNetV2, Transformer-base) across CIFAR-10/100, ImageNet, and WikiText-103.
Experimental results
Research questions
- RQ1Can progressively increasing precision during training (PFQ) achieve lower training cost without sacrificing accuracy?
- RQ2Can input-adaptive, per-layer precision selection (DFQ) further reduce training cost beyond PFQ?
- RQ3What are the combined benefits of temporally and spatially fractional quantization (FracTrain) across diverse models, datasets, and tasks?
- RQ4How does FracTrain compare to state-of-the-art static low-precision training baselines in terms of accuracy and training cost?
Key findings
- FracTrain achieves substantial training cost savings and often comparable or better accuracy across multiple models and datasets.
- PFQ consistently reduces training cost while maintaining or slightly improving accuracy compared to SBM across ResNet-38/74 and CIFAR-10/100.
- DFQ reduces computational cost while maintaining or improving accuracy relative to SBM, outperforming selective-layer-update methods.
- FracTrain (PFQ+DFQ) achieves large reductions in MACs (up to tens of percent) and hardware metrics like energy and latency with comparable accuracy.
- On ImageNet and WikiText-103, PFQ reduces cost by about 21% and 44% respectively while maintaining or improving accuracy/perplexity.
- Across adaptation and fine-tuning scenarios for CIFAR-100, FracTrain maintains or slightly improves accuracy while substantially reducing MACs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.