Abstract
HybriDNA is a decoder-only foundation model designed for genomics, integrating Transformer and Mamba2 architectures to process DNA sequences up to 131 kilobases at single-nucleotide resolution. By interleaving these layers, the model achieves state-of-the-art performance across 33 DNA understanding tasks while maintaining the efficiency required for designing complex synthetic regulatory elements.
Introduction
Modeling DNA, the "language of life," presents unique computational challenges. Biological functions often rely on long-range interactions—such as enhancers influencing genes hundreds of kilobases away—while remaining sensitive to single-nucleotide polymorphisms (SNPs). Existing models face a trade-off: Transformers offer high resolution but suffer from quadratic complexity ($O(L^2)$), while State Space Models (SSMs) like Mamba provide linear scaling ($O(L)$) but may miss dense local interactions. HybriDNA bridges this gap by combining both architectures into a single, efficient, long-range model.
Architecture and Methods
HybriDNA utilizes a hybrid Transformer-Mamba2 architecture in a decoder-only configuration. The core innovation lies in the interleaving of blocks: the model alternates between Mamba2 and Transformer layers in a 7:1 ratio. This allows Mamba2 to handle long-range dependencies efficiently while Transformer layers periodically "refocus" on fine-grained token-level details.
The model leverages the Mamba2 State-Space Duality (SSD) layer, which reformulates SSMs as structured matrix operations for improved training speed. Because it is a decoder-only model, it inherently captures sequence order, removing the need for explicit positional encodings.
Training and Fine-Tuning Strategies
To handle ultra-long sequences, the authors employed a two-stage training process with a context length warmup, scaling from 8k to 131k tokens. For downstream "understanding" tasks requiring bidirectional context, HybriDNA uses "echo embeddings"—repeating the input sequence and pooling hidden states from the second half to incorporate "future" token information.
Datasets and Evaluation
HybriDNA was pretrained on a multi-species dataset of 160 billion nucleotides from 845 species. Performance was evaluated across several benchmarks:
- GUE & BEND: Covering promoter detection, splice site prediction, and chromatin accessibility.
- LRB: Testing dependencies over extended genomic regions.
- regLM: Evaluating generative design of cis-regulatory elements (CREs).
Key Results and Insights
The hybrid approach proves superior to pure Mamba2 models, with Transformer layers acting as essential "anchors" for high-resolution patterns. HybriDNA achieved state-of-the-art results on 33 of 35 tasks across the GUE, BEND, and LRB benchmarks.
Efficiency gains are significant: at a 49k token context length, HybriDNA achieves 3.4x higher throughput than standard Transformers and avoids memory errors. In generative tasks, it outperformed previous baselines like HyenaDNA in both the activity and diversity of designed human enhancers and yeast promoters.
Conclusion
HybriDNA demonstrates that hybridization is the "sweet spot" for genomic foundation models, combining the scaling efficiency of SSMs with the representational power of Transformers. While future work will focus on wet-lab validation and broader data diversity, HybriDNA sets a new standard for long-range DNA modeling and synthetic sequence design.
Summary updated