Cursor-based adaptive quantization for deep neural networks
AssigneesBaidu USA LLC, Baidu.Com Times Technology (Beijing) Co., Ltd.
InventorsBaopu LI, Yanwen FAN, Zhiyu CHENG, Yingze BAO
Life of this patent
Estimating the term…
Loading patent…
AssigneesBaidu USA LLC, Baidu.Com Times Technology (Beijing) Co., Ltd.
InventorsBaopu LI, Yanwen FAN, Zhiyu CHENG, Yingze BAO
Estimating the term…
Deep neural networks (DNN) model quantization may be used to reduce storage and computation burdens by decreasing the bit width. Presented herein are novel cursor-based adaptive quantization embodiments. In embodiments, a multiple bits quantization mechanism is formulated as a differentiable architecture search (DAS) process with a continuous cursor that represents a possible quantization bit. In embodiments, the cursor-based DAS adaptively searches for a quantization bit for each layer. The DAS process may be accelerated via an alternative approximate optimization process, which is designed for mixed quantization scheme of a DNN model. In embodiments, a new loss function is used in the search process to simultaneously optimize accuracy and parameter size of the model. In a quantization step, the closest two integers to the cursor may be adopted as the bits to quantize the DNN together to reduce the quantization noise and avoid the local convergence problem.
A computer-implement method for reducing memory size of a neural network, which comprises a plurality of layers, the method comprising:
A system comprising:
A non-transitory computer-readable medium or media storing one or more sequences of instructions which, when executed by one or more processors, causes steps to be performed comprising:
Dependencies are inferred from the claim text.