paper-with-me

Papers

FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores

2023-11-10 · Daniel Y. Fu, Hermann Kumbong, Eric Nguyen, Christopher Ré

Convolution models with long filters have demonstrated state-of-the-art reasoning abilities in many long-sequence tasks but lag behind the most optimized Transformers in wall-clock time. A major bottleneck is the Fast Fourier Transform (FFT)--which allows long convolutions to run in $O(N logN)$ time in sequence length $N$ but has poor hardware utilization. In this paper, we study how to optimize the FFT convolution. We find two key bottlenecks: the FFT does not effectively use specialized matrix multiply units, and it incurs expensive I/O between layers of the memory hierarchy. In response, we propose FlashFFTConv. FlashFFTConv uses a matrix decomposition that computes the FFT using matrix multiply units and enables kernel fusion for long sequences, reducing I/O. We also present two sparse convolution algorithms--1) partial convolutions and 2) frequency-sparse convolutions--which can be implemented simply by skipping blocks in the matrix decomposition, enabling further opportunities for memory and compute savings. FlashFFTConv speeds up exact FFT convolutions by up to 7.93$\times$ over PyTorch and achieves up to 4.4$\times$ speedup end-to-end. Given the same compute budget, FlashFFTConv allows Hyena-GPT-s to achieve 2.3 points better perplexity on the PILE and M2-BERT-base to achieve 3.3 points higher GLUE score--matching models with twice the parameter count. FlashFFTConv also achieves 96.1% accuracy on Path-512, a high-resolution vision task where no model had previously achieved better than 50%. Furthermore, partial convolutions enable longer-sequence models--yielding the first DNA model that can process the longest human genes (2.3M base pairs)--and frequency-sparse convolutions speed up pretrained models while maintaining or improving model quality.

📄 PDF Abstract BibTeX arXiv:2311.05908

Code (1)

togethercomputer/stripedhyena pytorch

Methods 이 논문이 사용한 방법론

BASE 설명 없음
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…

Similar Papers 제목 키워드 기반

Tensor Representations for Action Recognition

2020-12-28 · Piotr Koniusz, Lei Wang, Anoop Cherian

Human actions in video sequences are characterized by the complex interplay between spatial features and their temporal dynamics. In this paper, we propose novel tensor representations for compactly capturing such higher…

Action RecognitionAction Recognition In VideosSkeleton Based Action Recognition

Hardware-Aware Reformulation of Convolutions for Efficient Execution on Specialized AI Hardware: A Case Study on NVIDIA Tensor Cores

2026-01-09 · Ganesh Bikshandi arxiv

Convolutional Neural Networks (CNNs) are central to modern AI, but their performance is often limited by hardware constraints. NVIDIA Tensor Cores, for instance, require input channels to be multiples of 8 and sometimes …

Tensor Slicing and Optimization for Multicore NPUs

2023-04-06 · Rafael Sousa, Marcio Pereira, Yongin Kwon, TaeHo Kim 외

Although code generation for Convolution Neural Network (CNN) models has been extensively studied, performing efficient data slicing and parallelization for highly-constrai\-ned Multicore Neural Processor Units (NPUs) is…

Code GenerationCompiler Optimization

MobileDets: Searching for Object Detection Architectures for Mobile Accelerators

2020-04-30 · CVPR 2021 1 · Yunyang Xiong, Hanxiao Liu, Suyog Gupta, Berkin Akin 외

Inverted bottleneck layers, which are built upon depthwise convolutions, have been the predominant building blocks in state-of-the-art object detection models on mobile devices. In this work, we investigate the optimalit…

CPUGPUNeural Architecture SearchObject+2

Do we really need temporal convolutions in action segmentation?

2022-05-26 · Dazhao Du, Bing Su, Yu Li, Zhongang Qi 외

Action classification has made great progress, but segmenting and recognizing actions from long untrimmed videos remains a challenging problem. Most state-of-the-art methods focus on designing temporal convolution-based …

Action ClassificationAction SegmentationInductive Bias