paper-with-me

홈 › Papers

FlashRNN: Optimizing Traditional RNNs on Modern Hardware

2024-12-10 · Korbinian Pöppel, Maximilian Beck, Sepp Hochreiter

While Transformers and other sequence-parallelizable neural network architectures seem like the current state of the art in sequence modeling, they specifically lack state-tracking capabilities. These are important for time-series tasks and logical reasoning. Traditional RNNs like LSTMs and GRUs, as well as modern variants like sLSTM do have these capabilities at the cost of strictly sequential processing. While this is often seen as a strong limitation, we show how fast these networks can get with our hardware-optimization FlashRNN in Triton and CUDA, optimizing kernels to the register level on modern GPUs. We extend traditional RNNs with a parallelization variant that processes multiple RNNs of smaller hidden state in parallel, similar to the head-wise processing in Transformers. To enable flexibility on different GPU variants, we introduce a new optimization framework for hardware-internal cache sizes, memory and compute handling. It models the hardware in a setting using polyhedral-like constraints, including the notion of divisibility. This speeds up the solution process in our ConstrINT library for general integer constraint satisfaction problems (integer CSPs). We show that our kernels can achieve 50x speed-ups over a vanilla PyTorch implementation and allow 40x larger hidden sizes compared to our Triton implementation. Our open-source kernels and the optimization library are released here to boost research in the direction of state-tracking enabled RNNs and sequence modeling: \url{https://github.com/NX-AI/flashrnn}

📄 PDF Abstract BibTeX arXiv:2412.07752

Code (1)

nx-ai/flashrnn 공식 구현 pytorch

Tasks

GPULogical Reasoning

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

The Ant Swarm Neuro-Evolution Procedure for Optimizing Recurrent Networks

2019-09-26 · AbdElRahman A. ElSaid, Alexander G. Ororbia, Travis J. Desell

Hand-crafting effective and efficient structures for recurrent neural networks (RNNs) is a difficult, expensive, and time-consuming process. To address this challenge, we propose a novel neuro-evolution algorithm based o…

Inductive BiasL2 RegularizationTime Series Analysis

Optimizing Bayesian Recurrent Neural Networks on an FPGA-based Accelerator

2021-06-04 · Martin Ferianc, Zhiqiang Que, Hongxiang Fan, Wayne Luk 외

Neural networks have demonstrated their outstanding performance in a wide range of tasks. Specifically recurrent architectures based on long-short term memory (LSTM) cells have manifested excellent capability to model ti…

GPUTime Series Analysis

Recurrent Neural Networks With Limited Numerical Precision

2016-11-21 · Joachim Ott, Zhouhan Lin, Ying Zhang, Shih-Chii Liu 외

Recurrent Neural Networks (RNNs) produce state-of-art performance on many machine learning tasks but their demand on resources in terms of memory and computational power are often high. Therefore, there is a great intere…

Quantization

Recurrent Neural Networks With Limited Numerical Precision

2016-08-24 · Joachim Ott, Zhouhan Lin, Ying Zhang, Shih-Chii Liu 외

Recurrent Neural Networks (RNNs) produce state-of-art performance on many machine learning tasks but their demand on resources in terms of memory and computational power are often high. Therefore, there is a great intere…

Binarization

Towards Scalable and Stable Parallelization of Nonlinear RNNs

2024-07-26 · Xavier Gonzalez, Andrew Warrington, Jimmy T. H. Smith, Scott W. Linderman

Transformers and linear state space models can be evaluated in parallel on modern hardware, but evaluating nonlinear RNNs appears to be an inherently sequential problem. Recently, however, Lim et al. '24 developed an app…

State Space Models