Native Multi-Dimensional Subquadratic Operators via Input Dependent Long Convolutions

David R. Wessels, Farhad Ramezanghorbani, Alireza Moradzadeh, David W. Romero, Olivia Viessmann, Maksim Zhdanov, John St. John, Ken Janik, David M Knigge, Yucheng Tang, Erik J Bekkers, Saee Gopal Paliwal

TL;DR

Transformers struggle with long multi-dimensional data due to their quadratic scaling, while subquadratic alternatives like Mamba force spatial data into artificial 1D lines. This paper introduces HyenaND, a subquadratic operator that processes multi-dimensional data natively using input-dependent global convolutions, achieving massive wall-clock speedups and matching or exceeding attention baselines across vision, genomics, and medical imaging.

What Problem Does This Paper Address?

High-resolution images, 3D medical scans, and physical simulations generate massive amounts of multi-dimensional data. Transformers handle this data well because attention is natively multi-dimensional, but their quadratic complexity ($\mathcal{O}(L^2)$) makes long contexts computationally impossible. To cope, engineers use "patchification" (grouping pixels into larger patches), which unfortunately discards fine-grained spatial detail.

Subquadratic alternatives like State-Space Models (SSMs) and Mamba scale linearly or near-linearly ($\mathcal{O}(L)$), but they are fundamentally 1D and causal. To process an image or 3D volume, they must flatten the data into an ad-hoc 1D scan order (rasterization), which destroys the native geometric and spatial relationships of the data. Standard convolutions preserve geometry but lack global receptive fields and input dependency.

Figure 1: (Left): Complexity of global multi-dimensional operators by token count L. Attention is natively multi-dimensional but scales quadratically. Mamba is subquadratic but inherently 1D, requiring ad-hoc 1D scan orders to process multi-dimensional data. HyenaND (ours) is global, natively multi-dimensional and subquadratic. (Right): Forward-pass time vs. sequence length using flash-attention, the official mamba chunk scan combined Mamba2 kernel and nSubQ; HyenaND scales gracefully to million-token sequences while attention collapses at long contexts.

Methods

The authors introduce HyenaND, which avoids 1D rasterization by performing true multi-dimensional convolutions using an implicit neural network parameterization.

  • Multi-Dimensional Continuous Kernels: Instead of learning a discrete grid of weights, HyenaND uses a coordinate-based neural network (a SIREN MLP with sinusoidal activations) to dynamically generate a continuous, global convolutional kernel over $N$-dimensional space.
  • Sample-Level Input Dependency: Traditional long convolutions are input-independent (the same kernel is used for every sample). HyenaND introduces data-control by prepending learnable "register" tokens to the input. These registers aggregate global context, which is then passed through a Feature-wise Linear Modulation (FiLM) layer to dynamically alter the SIREN network's weights for each specific input sample. This provides input dependency while preserving the fast, single-FFT convolutional path.
  • nSubQ Library: To translate theoretical $\mathcal{O}(L \log L)$ complexity into real-world wall-clock speedups, the authors developed nSubQ, an IO-aware CUDA library. It fuses padding, forward FFT, spectral modulation, and inverse FFT into a single GPU kernel, keeping intermediate representations in fast on-chip shared memory and avoiding expensive High Bandwidth Memory (HBM) round-trips.

Datasets

The model was evaluated across a diverse suite of benchmarks spanning multiple modalities:

  • Controlled Spatial-Recall Probes: Custom 1D, 2D, and 3D EMNIST-based tasks (simple_copy and color_cond) designed to test long-range routing and spatial associative recall.
  • Genomics (1D): The OpenGenome2 metagenomics subset for long-context language modeling.
  • Computer Vision (2D): ImageNet-1K for image classification.
  • PDE Surrogate Modeling (2D/3D): The Well, a collection of 8 physics simulation datasets including fluid dynamics, magnetohydrodynamics (MHD), and acoustics.
  • 3D Medical Image Segmentation: PanTS (Pancreatic Tumor Segmentation dataset), consisting of 3D abdominal CT scans.

Key Insights and Ideas

  • Deconflating the Subquadratic Landscape: The authors point out that State-Space Models (SSMs) like S4 happened to be both recurrent and convolutional due to Linear Time Invariance (LTI). Modern models like Mamba sacrificed the convolutional form for token-level input dependency. HyenaND takes the opposite path: it keeps the convolutional form and LTI bias (which is natural for images and physical fields) and introduces sample-level input dependency instead of token-level dependency.
  • Patchification is a Workaround, Not a Feature: Vision Transformers rely heavily on patchification to make token counts manageable. The authors demonstrate that this is purely a concession to attention's quadratic wall. Because HyenaND scales subquadratically, it can operate directly on raw, unpatched pixels or voxels, preserving fine-grained details.
  • Direct Long-Range Routing: Unlike recurrent models that must compress history into a fixed-size hidden state bottleneck, convolutional models route information directly across long distances by placing kernel mass at the exact spatial offset required.

Key Results

  • Spatial Recall: On 3D spatial copy tasks, Mamba's 1D rasterization caused it to degrade to near-random performance ($0.451$ vs floor of $0.482$), while HyenaND solved the task perfectly (achieving a 4-orders-of-magnitude lower error of $1.2 \times 10^{-4}$).
  • Genomics Scaling: HyenaND scaled gracefully to 16-million-token contexts on NVIDIA GB200 systems, maintaining a stable throughput of 443–461 TFLOP/s/GPU.
  • ImageNet-1K: A pure HyenaND backbone matched a ViT-Small baseline (81.5% vs 81.8% top-1) at standard 16x16 patch sizes. When shrinking the patch size to 2x2 (increasing token count), HyenaND provided an 82% FLOP reduction compared to attention.
  • PDE Modeling: HyenaND achieved the lowest variance-normalized RMSE across all 8 datasets in The Well, outperforming both Attention and ConvNeXt U-Net baselines.
  • 3D Medical Imaging: Replacing windowed attention in SwinUNETR with HyenaND improved the Mean Dice score on the PanTS dataset while reducing peak training memory by 11%.

Limitations and Future Work

  • Hyperparameter Tuning: The continuous kernel's frequency parameters (SIREN initialization) were kept fixed across all PDE datasets without individual tuning, suggesting even better performance is possible with dataset-specific optimization.
  • Hardware Scaling: While nSubQ provides massive speedups up to 16K sequence lengths using fully-fused single kernels, extending these exact efficiency gains to even longer sequences will require integrating Distributed Shared Memory (DSM) cluster-cooperation features available on Hopper and Blackwell architectures.

Summary updated

BibTeX
@inproceedings{wessels2026native,
  author = {David R. Wessels and Farhad Ramezanghorbani and Alireza Moradzadeh and David W. Romero and Olivia Viessmann and Maksim Zhdanov and John St. John and Ken Janik and David M Knigge and Yucheng Tang and Erik J Bekkers and Saee Gopal Paliwal},
  title = {{Native Multi-Dimensional Subquadratic Operators via Input Dependent Long Convolutions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YF3dDMGYTt},
}
Figure