본문 바로가기
KERD
논문KCI 등재

GPU 가속기를 통한 비트 연산 최적화 및 DNN 응용

Bit Operation Optimization and DNN Application using GPU Acceleration

0

조회

0

다운로드

0

인용

0

참고문헌

키워드

초록

본 논문에서는 소프트웨어 환경에서 비트연산을 최적화 하고 DNN으로 응용하는 방법을 제안한다. 이를 위해 비트연산 최적화를 위한 패킹 함수와 DNN으로 응용을 위한 마스킹 행렬 곱 연산을 제안한다. 패킹 함수의 경우는 32bit의 실제 가중치값을 2bit로 변환하는 연산을 수행한다. 연산을 수행할 땐, 임계값 비교 연산을 통해 2bit 값으로 변환한다. 이 연산을 수행하면 4개의 32bit값이 1개의 8bit 메모리에 들어가게 된다. 마스킹 행렬 곱 연산의 경우 패킹된 가중치 값과 일반 입력 값을 곱하기 위한 특수한 연산으로 이루어져 있다. 그리고 각각의 연산은 GPU 가속기를 이용해 병렬로 처리되게 하였다. 그 결과HandWritten 데이터 셋에 환경에서 32bit DNN 모델에 비해 약 16배의 메모리 절약을 볼 수 있었다. 그럼에도 정확도는32bit 모델과 비슷한 1% 이내의 차이를 보였다.

Abstract

In this paper, we propose a new method for optimizing bit operations and applying them to DNN(Deep NeuralNetwork) in software environment. As a method for this, we propose a packing function for bitwise optimization anda masking matrix multiplication operation for application to DNN. The packing function converts 32-bit real value to2-bit quantization value through threshold comparison operation. When this sequence is over, four 32-bit real valuesare changed to one 8-bit value. The masking matrix multiplication operation consists of a special operation formultiplying the packed weight value with the normal input value. And each operation was then processed in parallelusing a GPU accelerator. As a result of this experiment, memory saved about 16 times than 32-bit DNN Model. Nevertheless, the accuracy was within 1%, similar to the 32-bit model.

참고문헌 (10)

  1. "Binary Connect: Training Deep Neural Networks with binary weights during propagations" (2015)[URL]
  2. C. Zhu, "Trained ternary quantization", International Conference on Learning Representations (2017)
  3. S. Han, "Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding", NIPS Deep Learning Symposium (2015)
  4. "Maximizing Unified Memory Performance in CUDA"[URL]
  5. "Bridging the Accuracy Gap for 2-bit Quantized Neural Networks(QNN)"[URL]
  6. "Differentiable Quantization of Deep Neural Networks"[URL]
  7. M. Rastegari, "Xnor-net: Imagenet classification using binary convolution neural networks", European Conference on Computer Vision, pp.525~542 (2016)
  8. "Accurate And Efficient 2-bit Quantized Neural Networks"[URL]
  9. "Ternary Weight Networks"[URL]
  10. "Low Memory Neural Network Training: A Technical Report"[URL]

관련 논문AI추천

이 간행물의 다른 논문 (52건)