Multi-Dimensional Hyena for Spatial Inductive Bias

Itamar Zimerman, Lior Wolf
9/24/2023
cs.CVcs.LG

No official code found. Best implementation: Itamarzimm/HyenaND (3 stars, Apache-2.0, last commit 2024-03-09).

Abstract

In recent years, Vision Transformers have attracted increasing interest from computer vision researchers. However, the advantage of these transformers over CNNs is only fully manifested when trained over a large dataset, mainly due to the reduced inductive bias towards spatial locality within the transformer's self-attention mechanism. In this work, we present a data-efficient vision transformer that does not rely on self-attention. Instead, it employs a novel generalization to multiple axes of the very recent Hyena layer. We propose several alternative approaches for obtaining this generalization and delve into their unique distinctions and considerations from both empirical and theoretical perspectives. Our empirical findings indicate that the proposed Hyena N-D layer boosts the performance of various Vision Transformer architectures, such as ViT, Swin, and DeiT across multiple datasets. Furthermore, in the small dataset regime, our Hyena-based ViT is favorable to ViT variants from the recent literature that are specifically designed for solving the same challenge, i.e., working with small datasets or incorporating image-specific inductive bias into the self-attention mechanism. Finally, we show that a hybrid approach that is based on Hyena N-D for the first layers in ViT, followed by layers that incorporate conventional attention, consistently boosts the performance of various vision transformer architectures.

View on arXivView PDF

Code Implementations(1)

Itamarzimm/HyenaNDCommunity58%
Apache-2.0

Official PyTorch Implementation of "Multi-Dimensional Hyena for Spatial Inductive Bias"

30Shell, PythonMar 8, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{zimerman2023multidimensional,
  title  = {Multi-Dimensional Hyena for Spatial Inductive Bias},
  author = {Itamar Zimerman and Lior Wolf},
  year   = {2023},
  eprint = {2309.13600},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.13600v1}
}

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/2309.13600.svg)](https://codeofpaper.com/paper/2309.13600)

Discussion