HyenaPixel: Global Image Context with Convolutions

Julian Spravil, Sebastian Houben, Sven Behnke
2/29/2024
cs.CV

No official code found. Best implementation: spravil/HyenaPixel (4 stars, Apache-2.0, PyTorch, last commit 2025-09-16).

Abstract

In computer vision, a larger effective receptive field (ERF) is associated with better performance. While attention natively supports global context, its quadratic complexity limits its applicability to tasks that benefit from high-resolution input. In this work, we extend Hyena, a convolution-based attention replacement, from causal sequences to bidirectional data and two-dimensional image space. We scale Hyena's convolution kernels beyond the feature map size, up to 191$\times$191, to maximize ERF while maintaining sub-quadratic complexity in the number of pixels. We integrate our two-dimensional Hyena, HyenaPixel, and bidirectional Hyena into the MetaFormer framework. For image categorization, HyenaPixel and bidirectional Hyena achieve a competitive ImageNet-1k top-1 accuracy of 84.9% and 85.2%, respectively, with no additional training data, while outperforming other convolutional and large-kernel networks. Combining HyenaPixel with attention further improves accuracy. We attribute the success of bidirectional Hyena to learning the data-dependent geometric arrangement of pixels without a fixed neighborhood definition. Experimental results on downstream tasks suggest that HyenaPixel with large filters and a fixed neighborhood leads to better localization performance.

View on arXivView PDF

Code Implementations(1)

spravil/HyenaPixelCommunity100%
PyTorchApache-2.0

Official PyTorch implementation for "HyenaPixel: Global Image Context with Convolutions"

40Shell, PythonJan 25, 20241 years agoApache-2.0
ade20kcocodeep-learninghyenaimage-classification+7 more

Similar Papers

Cite this paper

@article{spravil2024hyenapixel,
  title  = {HyenaPixel: Global Image Context with Convolutions},
  author = {Julian Spravil and Sebastian Houben and Sven Behnke},
  year   = {2024},
  eprint = {2402.19305},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.19305v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.19305.svg)](https://codeofpaper.com/paper/2402.19305)

Discussion