Abstract
Genome annotation models that directly analyze DNA sequences are indispensable for modern biological research, enabling rapid and accurate identification of genes and other functional elements. This capability is paramount as the volume of sequenced genomes rapidly expands, making the need for efficient and accurate annotation methods increasingly critical, particularly in the context of genetic variant prediction and in-silico sequence design. Current annotation tools are typically developed for specific element classes and trained from scratch using supervised learning on datasets that are often limited in size. This approach constrains their performance and ability to generalize to new genomes. Here, we frame the genome annotation problem as instance segmentation and introduce a novel methodology for fine-tuning pre-trained DNA foundation models to segment 14 different genic and regulatory elements at single-nucleotide resolution. We leverage the self-supervised pre-trained model Nucleotide Transformer (NT) to develop a general segmentation model, SegmentNT, capable of processing DNA sequences up to 50kb long. By utilizing pre-trained weights from NT, SegmentNT surpasses the performance of several ablation models and baselines, including convolutional networks with one-hot encoded nucleotide sequences and large models trained from scratch. We demonstrate state-of-the-art performance on gene annotation, splice site and regulatory elements detection throughout the genome. We also leveraged our framework to accommodate two extra DNA foundation models, Enformer and Borzoi, extending the sequence context up to 500kb and enhancing performance on regulatory elements. Finally, we show that a SegmentNT model trained on human genomic elements generalizes to elements of different species, and a multi-species SegmentNT model achieves strong generalization across unseen species. Our approach is readily extensible to additional genomic elements and species.
Introduction
Despite the explosion of genomic data, our ability to "read" the functional map of DNA remains fragmented. Most existing deep learning models in genomics are "specialists"—designed for a single task, such as identifying a promoter or a splice site. Furthermore, these models often lack precision, providing a single probability for a whole sequence or low-resolution "bins" (e.g., 128bp windows). A critical gap exists for a "generalist" model that can provide granular, nucleotide-level predictions across a wide range of genomic elements within a single framework. This study addresses the challenge of "context length"—the ability of a model to look far enough upstream or downstream to understand how a specific nucleotide functions within a larger gene structure.
Methods
The researchers developed SegmentNT, which combines two powerful architectural ideas. First, it utilizes a DNA Foundation Model Backbone (the Nucleotide Transformer, NT), pre-trained on massive unlabeled DNA datasets to capture the underlying "grammar" of the genome. Second, it employs a 1D U-Net Segmentation Head, an architecture adapted from computer vision to provide pixel-level (nucleotide-level) predictions.
To handle sequences up to 50kb, the model uses "NTK-aware" RoPE (Rotary Position Embedding) rescaling, allowing it to interpolate positional information beyond its training context. Training and evaluation were performed on high-quality human (GENCODE, ENCODE) and multi-species (Ensembl) datasets. The model was also validated against experimental saturation mutagenesis splicing assays to confirm its ability to predict variant effects.
Key Results and Insights
SegmentNT achieved an average Matthews Correlation Coefficient (MCC) of 0.46 across 14 elements on 30kb sequences, significantly outperforming models trained from scratch or using simple one-hot encoding. The results demonstrate that foundation models are essential; pre-trained weights provide a "latent knowledge" of DNA that significantly boosts accuracy and training speed.
By framing genome annotation as a segmentation task, the model learns spatial relationships between elements, such as splice sites at exon-intron boundaries. Notably, SegmentNT exhibited remarkable zero-shot generalization; a model trained only on human data could identify genomic elements in plants with significant accuracy, suggesting a partially conserved "universal grammar" of DNA across the tree of life. Furthermore, performance for genic elements (like exons and introns) improved significantly as the input sequence length increased from 3kb to 30kb, proving that the model uses long-range information to make local decisions.
Discussion and Future Work
While SegmentNT is a major step forward, challenges remain. Predictions for enhancers are noisier due to their high complexity and cell-type specificity. Future iterations could incorporate cell-type-specific data (like ATAC-seq or ChIP-seq) to predict how these elements function in specific tissues or disease states. Additionally, while 50kb is a major step forward, some genomic interactions occur over megabases. Integrating newer architectures like State Space Models (SSMs) could push this boundary even further. Nonetheless, SegmentNT's inference speed (100x faster than Enformer) and multi-species generalization make it a powerful tool for large-scale genome annotation.
Summary updated