FracBits: 분수 비트 너비를 통한 혼합 정밀도 양자화
FracBits: Mixed Precision Quantization via Fractional Bit-Widths
FracBits: Mixed Precision Quantization via Fractional Bit-Widths
@misc{yang2020fracbits,
title = {FracBits: Mixed Precision Quantization via Fractional Bit-Widths},
author = {Linjie Yang and Qing Jin},
year = {2020},
eprint = {2007.02017},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2007.02017}
}
Yang, L., & Jin, Q. (2020). FracBits: Mixed Precision Quantization via Fractional Bit-Widths [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2007.02017
YANG L, JIN Q. FracBits: Mixed Precision Quantization via Fractional Bit-Widths[EB/OL]. (2020-07-04)[2026-11-29]. https://arxiv.org/abs/2007.02017.
초록
모델 양자화는 심층 신경망의 모델 크기와 지연 시간을 줄이는 데 도움을 줍니다. 여러 비트 폭에서 산술 연산을 지원하는 커스터마이즈드 하드웨어와 함께 혼합 정밀도 양자화는 최대 효율성을 달성하는 데 유리합니다. 우리는 목표 연산 제약 조건과 모델 크기를 고려하여 엔드 투 엔드 방식으로 혼합 정밀도 모델을 유도하는 새로운 학습 기반 알고리즘을 제안합니다. 최적화 과정에서 모델의 각 레이어/핵심은 두 연속된 비트 폭 사이의 분수 상태에 있으며, 이를 점진적으로 조정할 수 있습니다. 미분 가능한 정규화 항을 통해 양자화 인식 훈련 동안 자원 제약 조건을 충족시켜 최적화된 혼합 정밀도 모델을 도출합니다. 또한, 본 방법은 채널 가지치기와 자연스럽게 결합되어 더 나은 연산 비용 할당에 기여합니다. ImageNet 데이터셋에서 다양한 자원 제약 조건 하에 MobilenetV1/V2, ResNet18 모델에서 이전 양자화 방법과 비교하거나 더 나은 성능을 달성했습니다.
Model quantization helps to reduce model size and latency of deep neural networks. Mixed precision quantization is favorable with customized hardwares supporting arithmetic operations at multiple bit-widths to achieve maximum efficiency. We propose a novel learning-based algorithm to derive mixed precision models end-to-end under target computation constraints and model sizes. During the optimization, the bit-width of each layer / kernel in the model is at a fractional status of two consecutive bit-widths which can be adjusted gradually. With a differentiable regularization term, the resource constraints can be met during the quantization-aware training which results in an optimized mixed precision model. Further, our method can be naturally combined with channel pruning for better computation cost allocation. Our final models achieve comparable or better performance than previous quantization methods with mixed precision on MobilenetV1/V2, ResNet18 under different resource constraints on ImageNet dataset.