Skip to main content
QUICK REVIEW

[Paper Review] Accelerating Binarized Neural Networks via Bit-Tensor-Cores in Turing GPUs

Ang Li, Simon Su|arXiv (Cornell University)|Jun 30, 2020
Advanced Neural Network ApplicationsComputer Science69 references7 citations
TL;DR

This paper proposes a novel bit-data format and optimized kernel design to fully exploit NVIDIA Turing GPU's Bit-Tensor-Cores (BTC) for accelerating binarized neural networks (BNNs). By co-designing data layout and leveraging BTC's 8×128 and 128×8 tile operations, the authors achieve 77% faster inference on ImageNet (5.6K images/sec with ResNet-18) than state-of-the-art GPU-based BNNs, demonstrating superior performance through hardware-aware software optimization.

ABSTRACT

Despite foreseeing tremendous speedups over conventional deep neural networks, the performance advantage of binarized neural networks (BNNs) has merely been showcased on general-purpose processors such as CPUs and GPUs. In fact, due to being unable to leverage bit-level-parallelism with a word-based architecture, GPUs have been criticized for extremely low utilization (1%) when executing BNNs. Consequently, the latest tensorcores in NVIDIA Turing GPUs start to experimentally support bit computation. In this work, we look into this brand new bit computation capability and characterize its unique features. We show that the stride of memory access can significantly affect performance delivery and a data-format co-design is highly desired to support the tensorcores for achieving superior performance than existing software solutions without tensorcores. We realize the tensorcore-accelerated BNN design, particularly the major functions for fully-connect and convolution layers -- bit matrix multiplication and bit convolution. Evaluations on two NVIDIA Turing GPUs show that, with ResNet-18, our BTC-BNN design can process ImageNet at a rate of 5.6K images per second, 77% faster than state-of-the-art. Our BNN approach is released on https://github.com/pnnl/TCBNN.

Motivation & Objective

  • To investigate and fully exploit the new bit-computation capability of NVIDIA Turing GPU Tensor Cores for binarized neural network (BNN) acceleration.
  • To address the performance bottleneck caused by suboptimal memory access strides in existing BNN implementations on GPUs.
  • To co-design a bit-data format with the BTC hardware to maximize utilization of bit-level parallelism and achieve superior performance over software-only BNN solutions.
  • To implement and evaluate a full BNN inference framework using BTC-accelerated bit matrix multiplication and bit convolution on modern Turing GPUs.

Proposed method

  • Design a new bit-data format (FSB) that aligns with BTC's 8×128 and 128×8 tile sizes to minimize memory access stride penalties.
  • Implement optimized kernels for bit matrix multiplication (BMM) and bit convolution (BConv) using CUDA and CUTLASS, targeting the BTC hardware units.
  • Co-design the data layout and kernel scheduling to maximize occupancy and memory throughput on Turing GPUs.
  • Use collective communication primitives (NCCL, MPI) to scale BNN inference across multiple GPUs for ensemble methods like BENN.
  • Evaluate the framework on RTX 2080 and RTX 2080 Ti GPUs across six models (MLP, VGG-like, AlexNet, VGG-16, ResNet-14/18) and three datasets (MNIST, CIFAR-10, ImageNet).

Experimental results

Research questions

  • RQ1How does memory access stride impact the performance of BNN inference on Turing GPUs with Bit-Tensor-Cores?
  • RQ2What data format and software optimizations are required to fully exploit the bit-computation capability of BTC for BNNs?
  • RQ3Can BTC-accelerated BNNs achieve real-time inference on ImageNet, and how do they compare to state-of-the-art GPU-based BNNs?
  • RQ4How does scaling BNN inference across multiple GPUs affect performance, and what is the role of communication overhead in ensemble BNNs (e.g., BENN)?
  • RQ5To what extent can BNN accuracy be preserved or improved through architectural co-design and model ensemble techniques like boosting?

Key findings

  • The proposed FSB bit-data format significantly reduces memory access stride penalties, enabling efficient utilization of BTC's 8×128 and 128×8 tile operations.
  • On RTX 2080 and RTX 2080 Ti GPUs, the BTC-BNN framework achieves 5.6K images per second on ImageNet with ResNet-18, representing a 77% performance improvement over state-of-the-art GPU-based BNNs.
  • The framework achieves an average of 2.33× speedup in latency and 1.81× speedup in throughput across six models and three datasets compared to prior GPU-based BNNs.
  • Communication overhead is minimal in scaling-up (single node with multiple GPUs) but becomes dominant in scaling-out (multiple nodes), indicating that inter-node communication is a key bottleneck for distributed BNN inference.
  • The use of ensemble methods like BENN enables high-accuracy BNN inference (e.g., 61% top-1 accuracy on ImageNet with ResNet-18) while maintaining low latency due to efficient collective communication and BTC acceleration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.