[Paper Review] ADaPTION: Toolbox and Benchmark for Training Convolutional Neural Networks with Reduced Numerical Precision Weights and Activation
ADaPTION is a Caffe-based toolbox that enables training and quantization of convolutional neural networks with reduced numerical precision for both weights and activations using fixed-point arithmetic. It achieves state-of-the-art ImageNet Top-1 accuracy (within 0.8% drop) when quantizing VGG16 to 16-bit fixed-point, while increasing sparsity by up to 50%—enabling efficient inference on fixed-point hardware accelerators like NullHop.
Deep Neural Networks (DNNs) and Convolutional Neural Networks (CNNs) are useful for many practical tasks in machine learning. Synaptic weights, as well as neuron activation functions within the deep network are typically stored with high-precision formats, e.g. 32 bit floating point. However, since storage capacity is limited and each memory access consumes power, both storage capacity and memory access are two crucial factors in these networks. Here we present a method and present the ADaPTION toolbox to extend the popular deep learning library Caffe to support training of deep CNNs with reduced numerical precision of weights and activations using fixed point notation. ADaPTION includes tools to measure the dynamic range of weights and activations. Using the ADaPTION tools, we quantized several CNNs including VGG16 down to 16-bit weights and activations with only 0.8% drop in Top-1 accuracy. The quantization, especially of the activations, leads to increase of up to 50% of sparsity especially in early and intermediate layers, which we exploit to skip multiplications with zero, thus performing faster and computationally cheaper inference.
Motivation & Objective
- To address the growing need for energy-efficient, low-memory inference in mobile and embedded devices by enabling reduced-precision training of CNNs.
- To overcome limitations in existing toolboxes that do not support fixed-point activation quantization, a key enabler for sparse computation and hardware efficiency.
- To provide a standardized benchmarking framework for evaluating CNN accelerators using diverse, customizable network architectures.
- To support end-to-end deployment of quantized models on fixed-point hardware accelerators such as NullHop by enabling precise bit-width control and dynamic range-aware quantization.
- To improve hardware efficiency through increased sparsity in activations and weights, especially in early and intermediate layers, enabling faster, lower-power inference.
Proposed method
- Extended the Caffe deep learning framework with three new low-precision layer types: LPInnerProduct, LPConvolution, and LPAct, which apply fixed-point quantization during forward and backward passes.
- Introduced three configurable parameters—BD (before decimal), AD (after decimal), and rounding_scheme—to define the fixed-point format (e.g., Q1.15) and rounding strategy for weights and activations.
- Implemented a dynamic, layer-wise bit allocation strategy that distributes available bits between integer and fractional parts based on the observed dynamic range of weights and activations.
- Enabled both fine-tuning of pre-trained high-precision models and training from scratch with user-defined precision and rounding schemes.
- Provided a pipeline to export quantized models into a NullHop-compatible file format for deployment on fixed-point hardware accelerators.
- Developed a new benchmark network, Giga1Net, with 1 GOp/frame and 38% ImageNet Top-1 accuracy after 36 hours of training, to support hardware accelerator evaluation.
Experimental results
Research questions
- RQ1Can fixed-point quantization of both weights and activations preserve high classification accuracy in deep CNNs while enabling efficient hardware deployment?
- RQ2How does layer-wise dynamic bit allocation between integer and fractional parts affect model accuracy and sparsity in low-precision networks?
- RQ3To what extent does quantizing activations increase sparsity, and can this be exploited for faster, lower-power inference on fixed-point accelerators?
- RQ4How does ADaPTION compare to existing toolboxes like Ristretto in supporting fixed-point activation quantization and hardware-compatible model deployment?
- RQ5Can a new, customizable benchmark network like Giga1Net serve as a realistic and diverse testbed for evaluating emerging CNN accelerator hardware designs?
Key findings
- ADaPTION enables training of CNNs with both weights and activations quantized to 16-bit fixed-point precision, achieving only a 0.8% drop in Top-1 ImageNet accuracy when applied to VGG16.
- Quantization of activations increases sparsity by up to 50%, especially in early and intermediate layers, enabling efficient skipping of zero-value multiplications during inference.
- The dynamic bit allocation strategy in ADaPTION effectively balances precision and range, allowing accurate quantization even when weights and activations have vastly different dynamic ranges.
- ADaPTION outperforms Ristretto in supporting fixed-point activation quantization, which is critical for enabling sparsity and hardware acceleration on platforms like NullHop.
- The Giga1Net benchmark network, trained using ADaPTION, achieves 38% Top-1 accuracy on ImageNet after 36 hours of training on a GTX980 Ti, with a computational cost of 1 GOp/frame.
- The toolbox is fully compatible with Caffe and supports both fine-tuning of pre-trained models and training from scratch, enabling flexible deployment on fixed-point hardware accelerators.
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.