QPyTorch: A Low-Precision Arithmetic Simulation Framework
Tianyi Zhang, Zhiqiu Lin, Guandao Yang et al. · 2019
Low-precision training reduces computational cost and produces efficient models. Recent research in developing new low-precision training algorithms often relies on simulation to empirically evaluate the statistical effects of quantization while avoiding the substantial overhead of building specific hardware. To support this empirical research, we introduce QPyTorch, a low-precision arithmetic simulation framework. Built natively in PyTorch, QPyTorch provides a convenient interface that minimizes the efforts needed to reliably convert existing codes to study low-precision training. QPyTorch is general, and supports a variety of combinations of precisions, number formats, and rounding options. Additionally, it leverages an efficient fused-kernel approach to reduce simulator overhead, which enables simulation of large-scale, realistic problems. QPyTorch is publicly available at https://github.com/Tiiiger/QPyTorch.
Cited by 63 works. doi:10.1109/emc2-nips53020.2019.00010 Open-access PDF
Authors
References
- ImageNet Large Scale Visual Recognition Challenge
- Learning Multiple Layers of Features from Tiny Images
- TensorFlow: A system for large-scale machine learning
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
- BinaryConnect: Training Deep Neural Networks with binary weights during propagations
- DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients
- Deep Learning with Limited Numerical Precision
- Deep Learning with Limited Numerical Precision
- Binarized Neural Networks
- Training and Inference with Integers in Deep Neural Networks