SegmentNT: annotating the genome at single-nucleotide resolution with DNA foundation models

Bernardo P de Almeida, Hugo Dalla-torre, Guillaume Richard, Christopher Blum, Lorenz Hexemer, Maxence Gélard, Javier Mendoza-Revilla, Priyanka Pandey, Stefan Laurent, Marie Lopez, Alexandre Laterre, Maren Lang, Ugur Sahin, Karim Beguir, Thomas PierrotBioArxiv 2024

Abstract

Foundation models have achieved remarkable success in several fields such as natural language processing, computer vision and more recently biology. DNA foundation models in particular are emerging as a promising approach for genomics. However, so far no model has delivered granular, nucleotide-level predictions across a wide range of genomic and regulatory elements, limiting their practical usefulness. In this paper, we build on our previous work on the Nucleotide Transformer (NT) to develop a segmentation model, SegmentNT, that processes input DNA sequences up to 30kb-long to predict 14 different classes of genomic elements at single nucleotide resolution. By utilizing pre-trained weights from NT, SegmentNT surpasses the performance of several ablation models, including convolution networks with one-hot encoded nucleotide sequences and models trained from scratch. SegmentNT can process multiple sequence lengths with zero-shot generalization for sequences of up to 50kb. We show improved performance on the detection of splice sites throughout the genome and demonstrate strong nucleotide-level precision. Because it evaluates all gene elements simultaneously, SegmentNT can predict the impact of sequence variants not only on splice site changes but also on exon and intron rearrangements in transcript isoforms. Finally, we show that a SegmentNT model trained on human genomic elements can generalize to elements of different human and plant species and that a trained multispecies SegmentNT model achieves stronger generalization for all genic elements on unseen species. In summary, SegmentNT demonstrates that DNA foundation models can tackle complex, granular tasks in genomics at a single-nucleotide resolution.

Introduction

Annotating a genome—identifying exactly where genes, exons, introns, and regulatory elements like enhancers and promoters start and end—is a cornerstone of modern biology. Traditionally, this has been a fragmented process, with researchers relying on separate, specialized tools for gene finding, splice site detection, and enhancer identification. These legacy tools are often trained from scratch on small datasets and struggle to generalize to new species or handle the complexity of the non-coding genome. SegmentNT addresses these limitations by introducing a unified, high-resolution framework that treats genome annotation as a multi-label semantic segmentation task.

Methods

The researchers framed genome annotation as a semantic segmentation problem, a technique borrowed from computer vision where every "pixel" (in this case, every single nucleotide) is assigned a label.

  1. The Backbone: The model leverages the Nucleotide Transformer (NT), a DNA foundation model pre-trained on hundreds of billions of tokens across diverse species.
  2. The Architecture: The standard language model head is replaced with a 1D U-Net. This architecture allows the model to capture features at multiple scales, downsampling the DNA sequence to identify broad patterns and then upsampling it back to single-nucleotide resolution.
  3. Context Extension: To handle long-range biological interactions, the authors used RoPE rescaling to extend the context length, allowing SegmentNT to process sequences up to 50kb.
  4. Training: The model was trained to predict 14 different labels simultaneously for every nucleotide, using a focal loss function to manage the extreme class imbalance between common elements (like introns) and rare ones (like splice sites).
The SegmentNT architecture utilizes a U-Net segmentation head on top of DNA encoder embeddings to produce nucleotide-level probabilities for multiple genomic elements simultaneously.

Results

SegmentNT-30kb achieved an average Matthews Correlation Coefficient (MCC) of 0.45 across all 14 elements. A critical finding was that pre-training is non-negotiable: SegmentNT converged seven times faster and performed twice as well as models initialized with random weights.

Performance comparison of SegmentNT against various ablation models and alternative architectures across multiple metrics, highlighting the importance of pre-training.

Key performance highlights include:

  • Efficiency: In a single 50kb window, the model makes 700,000 predictions (14 elements × 50,000 nucleotides) simultaneously.
  • Benchmarking: SegmentNT outperformed the industry-standard HMM-based tool, AUGUSTUS, and achieved performance comparable to specialized tools like SpliceAI while offering much greater versatility.
  • Zero-Shot Generalization: A model trained only on human DNA could accurately annotate exons and splice sites in plants, suggesting that core genetic "grammar" is highly conserved across evolution.

Discussion and Conclusion

While SegmentNT represents a significant leap forward, challenges remain. Predicting enhancers is currently "noisier" than gene annotation, likely due to cell-type specificity that a general model may not fully capture. Additionally, while the model identifies all possible exons and introns, it does not yet explicitly link them into specific gene isoforms. Future work will focus on scaling to even longer genomic contexts and refining the prediction of regulatory elements. By providing a high-resolution, unified view of the genome, SegmentNT offers a new paradigm for analyzing and interpreting the "dark matter" of DNA.

Summary updated

BibTeX
@inproceedings{almeida2024segmentnt,
  author = {Bernardo P de Almeida and Hugo Dalla-torre and Guillaume Richard and Christopher Blum and Lorenz Hexemer and Maxence Gélard and Javier Mendoza-Revilla and Priyanka Pandey and Stefan Laurent and Marie Lopez and Alexandre Laterre and Maren Lang and Ugur Sahin and Karim Beguir and Thomas PIERROT},
  title = {{SegmentNT: annotating the genome at single-nucleotide resolution with DNA foundation models}},
  booktitle = {BioArxiv},
  year = {2024},
  url = {https://openreview.net/forum?id=ztx8ZHE1la},
}
Figure