Skip to main content
QUICK REVIEW

[Paper Review] Bolt: Bridging the Gap between Auto-tuners and Hardware-native Performance

Jiarong Xing, Leyuan Wang|arXiv (Cornell University)|Oct 25, 2021
Parallel Computing and Optimization TechniquesComputer Science25 references21 citations
TL;DR

Bolt bridges the performance gap between auto-tuners and hardware-native libraries by enabling auto-tuners to search within templated, reconfigurable vendor libraries (e.g., CUTLASS) to generate hardware-optimized tensor programs. It achieves 2.5× faster inference on convolutional neural networks with auto-tuning completed in under 20 minutes, leveraging templated search, persistent kernel fusion, and system-model codesign principles.

ABSTRACT

Today's auto-tuners (e.g., AutoTVM, Ansor) generate efficient tensor programs by navigating a large search space to identify effective implementations, but they do so with opaque hardware details. Thus, their performance could fall behind that of hardware-native libraries (e.g., cuBLAS, cuDNN), which are hand-optimized by device vendors to extract high performance. On the other hand, these vendor libraries have a fixed set of supported functions and lack the customization and automation support afforded by auto-tuners. Bolt is based on the recent trend that vendor libraries are increasingly modularized and reconfigurable via declarative control (e.g., CUTLASS). It enables a novel approach that bridges this gap and achieves the best of both worlds, via hardware-native templated search. Bolt provides new opportunities to rethink end-to-end tensor optimizations at the graph, operator, and model levels. Bolt demonstrates this concept by prototyping on a popular auto-tuner in TVM and a class of widely-used platforms (i.e., NVIDIA GPUs) -- both in large deployment in our production environment. Bolt improves the inference speed of common convolutional neural networks by 2.5x on average over the state of the art, and it auto-tunes these models within 20 minutes.

Motivation & Objective

  • To close the performance gap between auto-tuners and hardware-native libraries like cuBLAS and cuDNN.
  • To enable auto-tuners to leverage hardware-optimized, templated libraries (e.g., CUTLASS) for faster, more efficient search.
  • To introduce new graph-level optimizations such as persistent kernel fusion for sequential GEMMs and Conv2Ds.
  • To explore system-model codesign principles that improve model efficiency without sacrificing accuracy.
  • To demonstrate that auto-tuning can be both fast and high-performing by integrating low-level hardware knowledge into the search space.

Proposed method

  • Bolt integrates with auto-tuners (e.g., Ansor in TVM) to perform search over hardware-native templates from templated libraries like CUTLASS.
  • It enables templated search by exposing declarative parameters of vendor libraries, allowing auto-tuners to explore optimized configurations without low-level CUDA coding.
  • Persistent kernel fusion is introduced to fuse multiple sequential GEMMs or Conv2Ds into a single kernel, improving memory bandwidth utilization.
  • The method supports joint optimization at the graph, operator, and model levels by exposing hardware-aware abstractions to the auto-tuning pipeline.
  • System-model codesign principles are proposed, guiding model design to be compatible with Bolt’s optimizations, such as using 1×1 convolutions and ReLU-like activations.
  • The approach is evaluated on NVIDIA GPUs using CUTLASS, with results validated in production and open-sourced.

Experimental results

Research questions

  • RQ1Can auto-tuners achieve hardware-native performance by operating within templated, reconfigurable vendor libraries?
  • RQ2Can persistent kernel fusion improve performance for memory-bound operators like GEMMs and Conv2Ds in a way that traditional fusion cannot?
  • RQ3Can system-model codesign principles enable models to be both accurate and efficiently executable on modern hardware?
  • RQ4Can the integration of hardware-optimized templates into auto-tuning reduce tuning time while improving performance?
  • RQ5To what extent can Bolt outperform state-of-the-art auto-tuners like Ansor in terms of inference speed and tuning efficiency?

Key findings

  • Bolt achieves an average 2.5× speedup in inference performance over the state of the art on widely used convolutional neural networks.
  • Auto-tuning with Bolt completes in under 20 minutes, a significant improvement over prior methods that take hours or days.
  • Persistent kernel fusion improves performance by up to 1.3× for GEMMs and 2.0× for Conv2Ds on memory-bound workloads.
  • Augmenting RepVGG models with 1×1 convolutions and Hardswish activations increases Top-1 accuracy by 1.83% while maintaining similar speed, demonstrating effective system-model codesign.
  • The RepVGGAug-B0 model achieves 77.22% Top-1 accuracy with 3,842 images/sec, showing that system-friendly design enhances both accuracy and efficiency.
  • Bolt is deployed in production and open-sourced, validating its practicality and scalability in real-world workloads.

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.