paper-with-me

홈 › Papers

Optimized Speculative Sampling for GPU Hardware Accelerators

2024-06-16 · Dominik Wagner, Seanie Lee, Ilja Baumann, Philipp Seeberger, Korbinian Riedhammer, Tobias Bocklet

In this work, we optimize speculative sampling for parallel hardware accelerators to improve sampling speed. We notice that substantial portions of the intermediate matrices necessary for speculative sampling can be computed concurrently. This allows us to distribute the workload across multiple GPU threads, enabling simultaneous operations on matrix segments within thread blocks. This results in profiling time improvements ranging from 6% to 13% relative to the baseline implementation, without compromising accuracy. To further accelerate speculative sampling, probability distributions parameterized by softmax are approximated by sigmoid. This approximation approach results in significantly greater relative improvements in profiling time, ranging from 37% to 94%, with a minor decline in accuracy. We conduct extensive experiments on both automatic speech recognition and summarization tasks to validate the effectiveness of our optimization methods.

📄 PDF Abstract BibTeX arXiv:2406.11016

Code (1)

dwgnr/optimized-speculative-sampling 공식 구현 pytorch

Tasks

Automatic Speech RecognitionGPUspeech-recognitionSpeech Recognition

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding

2024-02-19 · Zhuoming Chen, Avner May, Ruslan Svirschevski, Yuhsun Huang 외

As the usage of large language models (LLMs) grows, performing efficient inference with these models becomes increasingly important. While speculative decoding has recently emerged as a promising direction for speeding u…

A Full-Stack Search Technique for Domain Optimized Deep Learning Accelerators

2021-05-26 · Dan Zhang, Safeen Huda, Ebrahim Songhori, Kartik Prabhu 외

The rapidly-changing deep learning landscape presents a unique opportunity for building inference accelerators optimized for specific datacenter-scale workloads. We propose Full-stack Accelerator Search Technique (FAST),…

Optical Character Recognition (OCR)Scheduling

Exploring Parallelism in FPGA-Based Accelerators for Machine Learning Applications

2025-11-09 · Sed Centeno, Christopher Sprague, Arnab A Purkayastha, Ray Simar 외 arxiv

Speculative backpropagation has emerged as a promising technique to accelerate the training of neural networks by overlapping the forward and backward passes. Leveraging speculative weight updates when error gradients fa…

A Compilation Flow for the Generation of CNN Inference Accelerators on FPGAs

2022-03-08 · Seung-Hun Chung, Tarek S. Abdelrahman

We present a compilation flow for the generation of CNN inference accelerators on FPGAs. The flow translates a frozen model into OpenCL kernels with the TVM compiler and uses the Intel OpenCL SDK to compile to an FPGA bi…

CPUHigh-Level Synthesis

LLM-Aided Compilation for Tensor Accelerators

2024-08-06 · Charles Hong, Sahil Bhatia, Altan Haan, Shengjun Kris Dong 외

Hardware accelerators, in particular accelerators for tensor processing, have many potential application domains. However, they currently lack the software infrastructure to support the majority of domains outside of dee…