Flash Inference: Near Linear Time Inference for Long Convolution Sequence Models and Beyond
Not on the map. Why?
Abstract (arXiv)
While transformers have been at the core of most recent advancements in sequence generative models, their computational cost remains quadratic in sequence length. Several subquadratic architectures have been proposed to address this computational issue. Some of them, including long convolution sequence models (LCSMs), such as Hyena, address this issue at training time but remain quadratic during inference. We propose a method for speeding up LCSMs' exact inference to quasilinear O(Llog2L) time, identify the key properties that make this possible, and propose a general framework that exploits these. Our approach, inspired by previous work on relaxed polynomial interpolation, is based on a tiling which helps decrease memory movement and share computation. It has the added benefit of allowing for almost complete parallelization across layers of the position-mixing part of the architecture. Empirically, we provide a proof of concept implementation for Hyena, which gets up to 7.8× end-to-end improvement over standard inference by improving 110× within the position-mixing part.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 26 of its 35 references that are in the map. First posted on arXiv 16 Oct 2024.
Builds on
26 of 35 references.
References · 26
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2016WaveNet: A Generative Model for Raw Audiocited by 1,722
- 2020Efficient Transformers: A Surveycited by 790
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 424
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2022Diagonal State Spaces are as Effective as Structured State Spacescited by 350
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
14 more
- 2022Mega: Moving Average Equipped Gated Attentioncited by 179
- 2021CKConv: Continuous Kernel Convolution For Sequential Datacited by 120
- 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 87
- 2021FlexConv: Continuous Kernel Convolutions with Differentiable Kernel Sizescited by 66
- 2023Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecturecited by 63
- 2023Simple Hardware-Efficient Long Convolutions for Sequence Modelingcited by 62
- 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
- 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 33
- 2023Laughing Hyena Distillery: Extracting Compact Recurrences From Convolutionscited by 24
- 2023Sequence Modeling with Multiresolution Convolutional Memorycited by 19
- 2016Fast Wavenet Generation Algorithmcited by 14
- 2024FutureFill: Fast Generation from Convolutional Sequence Modelscited by 7
- 2024Orchid: Flexible and Data-Dependent Convolution for Sequence Modelingcited by 6
- 2024How do Hyenas deal with Human Speech? Speech Recognition and Translation with ConfHyenacited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025Log-Linear Attentioncited by 40
- 2026The Recurrent Transformer: Greater Effective Depth and Efficient Decodingcited by 6
- 2026Long-Context Demonstration Selection Using State Space Modelscited by 0
- 2026Long-Context Demonstration Selection Using State Space Models15 Sep 2026
- 2026The Recurrent Transformer: Greater Effective Depth and Efficient Decoding23 Apr 2026
- 2025Log-Linear Attention5 Jun 2025