All models

hyenadna

A tiny HyenaDNA model: a stack of Hyena operators that predicts the next nucleotide in a DNA sequence.

Molecules, proteins and genomics · 125 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (12 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
HyenaDNA
Parameters
438.1K
Operations
125
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2023
Cited by
167 (as of 22 October 2026)
Authors
Eric Nguyen, Michael Poli, Marjan Faizi and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m5391
Graph hash
48f81e31a5c155d66a1a79a277a0e48d681a121e7153bf889aa1bbab13edf926
Skeleton hash
5529656adc509218c8951ef6d87df257d119e3ba7c8404f38457aa8059a83155
Architecture hash
b28973db23f8d8656135b96c9ca6adf078e1349feba7b7d4bfc480222d92d0d6
Diagram SHA-256
7075cf2dae23093558fd6f36a7aedd1d6de82930d51d7268a14f0a0a21121ec1
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

HyenaDNA is a genomic foundation model: a network pretrained on the human reference genome that reads DNA one nucleotide at a time, with context lengths of up to 1 million tokens. The paper starts from the observation that earlier Transformer-based genomic models used 512 to 4k tokens of context because attention scales quadratically with sequence length. Those models also relied on tokenizers or fixed k-mers, which lose single nucleotide resolution.

In place of attention, HyenaDNA uses a simple stack of Hyena operators, a subquadratic drop-in replacement for attention in Transformers. The Hyena operator is built from modified input projections, implicit convolutions and gating. The tokenizer works on single characters, with a primary vocabulary of 4 nucleotides plus special tokens. Pretraining is next token (nucleotide) prediction on the human reference genome (HG38).

On fine-tuned benchmarks from the Nucleotide Transformer, the paper reports the top result at the time on 12 of 18 datasets, using a model with orders of magnitude fewer parameters and less pretraining data. The authors also explore what longer context enables, including what they describe as the first use of in-context learning in genomics. The pretrained checkpoints come in different sizes and sequence lengths, and for tiny-1k, the configuration of this model, the authors suggest a T4 GPU for pretraining, fine-tuning and inference.

Key idea. HyenaDNA applies Hyena operators in place of attention to pretrain a genomic foundation model on contexts of up to 1 million tokens at single nucleotide resolution.

  • hyenadna
  • hyena dna
  • hyena-dna
  • genomic foundation model
  • dna language model
  • dna sequence modeling
  • long-range genomics
  • single nucleotide resolution
  • hyenadna tiny 1k

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{nguyen2023hyenadnalongrangegenomicsequence,
      title={HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution}, 
      author={Eric Nguyen and Michael Poli and Marjan Faizi and Armin Thomas and Callum Birch-Sykes and Michael Wornow and Aman Patel and Clayton Rabideau and Stefano Massaroli and Yoshua Bengio and Stefano Ermon and Stephen A. Baccus and Chris Ré},
      year={2023},
      eprint={2306.15794},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2306.15794}, 
}