HyenaDNA is a genomic foundation model that replaces the standard self-attention mechanism with the Hyena operator, a subquadratic sequence mixer combining implicit long convolutions and element-wise gating. This architectural shift allows the model to process DNA sequences up to 1 million nucleotides in length—a 500x increase over standard Transformer-based genomic models—while maintaining linear time complexity with respect to sequence length.
Glossary
HyenaDNA

What is HyenaDNA?
A genomic language model built on the Hyena operator that processes sequences up to 1 million nucleotides in length, enabling whole-genome context learning without the quadratic cost of standard attention.
By learning directly from raw nucleotide sequences at single-base resolution, HyenaDNA captures long-range dependencies between distal regulatory elements, such as enhancers and promoters, without the need for tokenization schemes like k-mer tokenization or byte-pair encoding. The model is pretrained using a next-nucleotide prediction objective on the human reference genome, enabling it to generate high-quality contextualized sequence representations for downstream tasks including zero-shot variant effect prediction and regulatory element identification.
Key Architectural Features
The HyenaDNA architecture replaces standard self-attention with a subquadratic operator, enabling the processing of sequences up to 1 million nucleotides in length. This design captures whole-genome context without the prohibitive computational cost of traditional Transformers.
Hyena Operator
The core computational unit replacing self-attention. It combines implicit long convolutions with element-wise multiplicative gating to achieve subquadratic time complexity (O(N log N)). Unlike attention, which explicitly compares every pair of positions, the Hyena operator learns a data-controlled filter that mixes information across the sequence without materializing an N x N matrix, enabling efficient processing of megabase-length DNA.
Single-Nucleotide Tokenization
HyenaDNA processes the genome at character-level resolution using single nucleotides (A, T, C, G) as tokens rather than fixed-length k-mers. This design choice:
- Preserves single-nucleotide polymorphism (SNP) information natively
- Avoids arbitrary k-mer boundary artifacts
- Enables fine-grained variant effect prediction directly from token probabilities
- Increases sequence length capacity by a factor of k compared to k-mer tokenization
Global Context Window
The architecture supports a native context length of up to 1 million nucleotides, a 160x increase over standard 512-token BERT-based genomic models. This enables the model to directly learn interactions between distal regulatory elements—such as enhancers and promoters separated by hundreds of kilobases—without artificial sequence truncation or hierarchical aggregation strategies.
Implicit Convolutional Filter
Instead of explicit attention weights, the Hyena operator parameterizes a long convolution kernel implicitly via a neural network. This filter is data-dependent, meaning its shape adapts to the specific input sequence. The convolution is computed efficiently in the frequency domain using the Fast Fourier Transform (FFT), reducing the computational bottleneck from O(N²) to O(N log N).
Multi-Head Gating Mechanism
Following the long convolution, the operator applies element-wise gating across multiple heads. Each head learns a distinct gating pattern that selectively amplifies or suppresses information at each position. This mechanism serves as a form of content-based filtering, analogous to the query-key interaction in self-attention, but without computing pairwise dot products across the full sequence.
Chromatin Profile Prediction Head
For downstream fine-tuning, HyenaDNA attaches a linear prediction head that maps the contextualized nucleotide embeddings to experimental readouts. The model predicts chromatin accessibility (DNase-seq), histone modification ChIP-seq signals, and transcription factor binding across 100+ cell types directly from raw DNA sequence, leveraging the global context to capture distal regulatory interactions.
HyenaDNA vs. Other Genomic Architectures
Comparison of core architectural properties and capabilities of HyenaDNA against standard Transformer and Mamba-based genomic models for long-range sequence processing.
| Feature | HyenaDNA | Transformer (Self-Attention) | Mamba (SSM) |
|---|---|---|---|
Sequence Mixing Operator | Hyena (Long Convolution + Gating) | Self-Attention (Quadratic) | Selective State Space Model |
Computational Complexity | O(N log N) | O(N²) | O(N) |
Max Context Length (Genomic) | 1,000,000 nt | 8,192 nt (typical) | 1,000,000 nt |
Whole-Genome Context | |||
Implicit Long Convolution | |||
Input-Dependent Filtering | |||
Single-Nucleotide Resolution | |||
Pretraining Objective | Next Token Prediction (Autoregressive) | Masked Language Modeling | Next Token Prediction (Autoregressive) |
Frequently Asked Questions
Clear, technical answers to the most common questions about the Hyena operator, its application in genomic language models, and how it achieves whole-genome context without the quadratic cost of attention.
HyenaDNA is a genomic foundation model that replaces the standard self-attention mechanism with the Hyena operator, a subquadratic sequence mixing module. It works by combining implicitly parametrized long convolutions with element-wise multiplicative gating. Instead of computing pairwise interactions between every nucleotide in a sequence—an O(L²) operation—HyenaDNA's operator scales in O(L log L) time. This allows it to process sequences up to 1 million nucleotides in length during pretraining, enabling single-pass analysis of entire bacterial genomes or megabase-scale human loci. The architecture stacks Hyena blocks, each containing a projection layer, a long convolution filter parameterized by a small neural network, and a gating mechanism that controls information flow based on local context. This design captures both fine-grained regulatory motifs and distal enhancer-promoter interactions spanning hundreds of thousands of base pairs without the memory bottleneck that cripples standard Transformers on long DNA sequences.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Key concepts and architectural components that define the HyenaDNA genomic language model and its subquadratic approach to long-range sequence analysis.
Hyena Operator
The core computational primitive replacing self-attention in HyenaDNA. It combines implicit long convolutions with element-wise multiplicative gating to achieve subquadratic O(N log N) scaling. Unlike standard attention, which compares all token pairs, the Hyena operator learns a data-controlled filter that captures long-range dependencies without the quadratic memory cost, enabling processing of sequences up to 1 million nucleotides on a single GPU.
Implicit Convolution Parameterization
Rather than storing an explicit convolution kernel of length equal to the sequence, HyenaDNA parameterizes the kernel in the Fourier domain using a lightweight neural network. This network takes positional encodings as input and outputs the kernel's frequency components. The result is a sub-linear parameter count relative to sequence length, making megabase-scale genomic context computationally tractable without sacrificing the ability to model distal regulatory elements.
Element-wise Gating Mechanism
A critical component of the Hyena operator that provides input-dependent selectivity. After the long convolution projects the sequence, a gating network computes multiplicative masks that control information flow on a per-token basis. This gating allows HyenaDNA to filter irrelevant genomic background and amplify functionally significant motifs, mimicking the selective focus of attention without computing pairwise scores.
Single-Nucleotide Tokenization
HyenaDNA tokenizes raw DNA sequences at the single nucleotide level (A, C, G, T) rather than using k-mer aggregation. This fine-grained representation preserves single-nucleotide polymorphism (SNP) resolution and enables precise variant effect scoring. The model learns to compose higher-order motifs from individual bases through its hierarchical layers, avoiding the vocabulary explosion and information loss associated with fixed k-mer tokenization strategies.
Genomic Pretraining Objective
HyenaDNA employs a next nucleotide prediction objective during pretraining on the Human Reference Genome. This autoregressive task forces the model to learn the statistical grammar of regulatory elements, splice sites, and coding regions. The resulting representations capture evolutionary constraints and enable zero-shot variant effect prediction by comparing the log-likelihood of reference versus alternate alleles at a given locus.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us