Hyena Hierarchy: Towards Larger Convolutional Language Models
Michael Poli, Stefano Massaroli, Eric Nguyen, Daniel Y. Fu, Tri Dao,, Stephen Baccus, Yoshua Bengio, Stefano Ermon, Christopher R\'e

TL;DR
Hyena introduces a subquadratic convolution-based operator that replaces attention in language models, enabling larger context processing with reduced computational costs and matching the performance of traditional Transformers.
Contribution
The paper presents Hyena, a novel subquadratic operator that replaces attention, allowing for larger sequence modeling with improved efficiency and accuracy.
Findings
Hyena improves accuracy by over 50 points on recall and reasoning tasks.
It achieves state-of-the-art results on language modeling benchmarks.
Hyena operators are significantly faster than traditional attention at large sequence lengths.
Abstract
Recent advances in deep learning have relied heavily on the use of large Transformers due to their ability to learn at scale. However, the core building block of Transformers, the attention operator, exhibits quadratic cost in sequence length, limiting the amount of context accessible. Existing subquadratic methods based on low-rank and sparse approximations need to be combined with dense attention layers to match Transformers, indicating a gap in capability. In this work, we propose Hyena, a subquadratic drop-in replacement for attention constructed by interleaving implicitly parametrized long convolutions and data-controlled gating. In recall and reasoning tasks on sequences of thousands to hundreds of thousands of tokens, Hyena improves accuracy by more than 50 points over operators relying on state-spaces and other implicit and explicit methods, matching attention-based models. We…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗Zymrael/hyena-small-150b-tokmodel· ♡ 17♡ 17
- 🤗LongSafari/hyenadna-tiny-1k-seqlenmodel· 118 dl· ♡ 6118 dl♡ 6
- 🤗LongSafari/hyenadna-medium-160k-seqlenmodel· 81 dl· ♡ 281 dl♡ 2
- 🤗LongSafari/hyenadna-large-1m-seqlenmodel· 42 dl· ♡ 3042 dl♡ 30
- 🤗LongSafari/hyenadna-medium-450k-seqlenmodel· 24 dl· ♡ 724 dl♡ 7
- 🤗LongSafari/hyenadna-small-32k-seqlenmodel· 98 dl· ♡ 198 dl♡ 1
- 🤗LongSafari/hyenadna-tiny-1k-seqlen-d256model· 3 dl· ♡ 13 dl♡ 1
- 🤗LongSafari/hyenadna-tiny-16k-seqlen-d128model· 13 dl13 dl
- 🤗LongSafari/hyenadna-small-32k-seqlen-hfmodel· 18k dl· ♡ 218k dl♡ 2
- 🤗LongSafari/hyenadna-medium-160k-seqlen-hfmodel· 1.5k dl· ♡ 41.5k dl♡ 4
Videos
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Label Smoothing · Dense Connections · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Adam · Dropout · Byte Pair Encoding
