All models

Multi-Modal Foundation · FreakingPotato

NucEL

A 93M-parameter ELECTRA-style genomic foundation model for single-nucleotide DNA representation and sequence analysis.

What NucEL is

NucEL is a genomic foundation model developed by Ke Ding, Brian Parker, and Jiayu Wen. It adapts the ELECTRA pre-training methodology to DNA sequence analysis. Rather than employing traditional masked language modelling, which only generates learning signals for approximately 15% of masked positions, NucEL employs replaced-token detection to provide dense supervision across every nucleotide token in the sequence.

The model consists of 93 million parameters and is pre-trained on the human reference genome (GRCh38/hg38) using single-nucleotide tokenisation. Across standard benchmark suites including GUE, Genomic Benchmarks, and the Nucleotide Transformer benchmark, NucEL achieves performance on par with or exceeding masked language models that contain up to 25 to 27 times more parameters.

How it works

NucEL is trained using a two-part generator-discriminator framework. A compact generator network proposes single-nucleotide substitutions across masked positions in a DNA sequence. A larger discriminator network, built on a ModernBERT backbone, is trained to detect whether each nucleotide position is original or was replaced by the generator. The overall objective weights the discriminator loss 50 times higher than the generator loss, and only the discriminator is retained for downstream representation extraction.

The discriminator backbone comprises 22 layers, a hidden dimension of 512, 16 attention heads, and an intermediate dimension of 2048. It uses a hybrid attention scheme combining a 128-base-pair local attention window with global attention every third layer, accelerated by FlashAttention-2. Sequences are encoded at single-nucleotide resolution (k = 1) over a 27-token vocabulary. While pre-trained on 1024-base-pair segments, the backbone configuration supports inputs of up to 8192 base pairs.

Key facts

Architecture
ELECTRA replaced-token detection with ModernBERT discriminator
Parameter count
93 million
Input format
DNA sequences (single-nucleotide tokens, k = 1)
Output format
512-dimensional hidden state sequence embeddings
Pre-training data
Human reference genome GRCh38 / hg38
Maximum sequence length
1024 bp pre-trained (supports up to 8192 bp)
Vocabulary size
27 tokens

What you can use it for

Regulatory element classification
Distinguishing genomic functional regions, such as Ensembl regulatory sequences, enhancers, open chromatin regions, and non-TATA promoters.
Transcription factor binding prediction
Predicting transcription factor binding sites and profiles across human and mouse DNA sequences.
Structural genomic landmark prediction
Identifying splice sites, promoters, and histone-mark profiles from nucleotide sequences.
Cross-species zero-shot representation
Extracting sequence embeddings for zero-shot transfer analysis in non-human organisms, including mouse, yeast, and viral genomes.

Run it here

We list this model but cannot run it yet: it ships Python code of its own, which a person approves before it runs here (our automatic check found nothing unusual in it).

Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.

Strengths and limits

Good at

  • Dense training supervision evaluates every nucleotide position via replaced-token detection rather than the limited fraction used in masked language modelling.
  • Matches or outperforms substantially larger genomic models, such as NT-Multi-2.5B, while using 93 million parameters.
  • Single-nucleotide tokenisation preserves base-level resolution without relying on multi-base k-mer segmentations.
  • Combines local window and global attention with FlashAttention-2 to support context lengths up to 8192 base pairs.

Watch out for

  • Pre-training is confined to the human reference genome, which may restrict performance on non-coding repetitive elements, microbial sequences, and highly diverged taxa.
  • Ambiguous genomic bases ('N') are mapped to an unknown token ([UNK]) during tokenisation.

Inputs and outputs

You provide

  • Sequence or text

    A protein or nucleotide sequence, or free text — whichever this model was trained on.

You get back

  • Mean-pooled representation, one vector per input.

Licence

Check the licence before commercial use · apache-2.0

The apache-2.0 licence carries terms worth reading before you depend on it.

Questions

Can I use NucEL commercially?

Check the licence before commercial use. The apache-2.0 licence carries terms worth reading before you depend on it.

How does the training objective differ from models like DNABERT?

Standard models use masked language modelling, which masks and predicts around 15% of tokens. NucEL uses an ELECTRA-style replaced-token detection framework where a generator substitutes bases and a discriminator assesses whether every base in the sequence is original or replaced, producing supervision for all tokens.

What is the tokenisation strategy?

The model uses single-nucleotide tokenisation with k = 1 across a vocabulary of 27 tokens, consisting of four standard nucleotides, seven special tokens, and 16 reserved positions.

Can the model process sequences longer than 1024 base pairs?

Yes. Although pre-training used 1024-base-pair segments, the underlying ModernBERT architecture configuration supports sequence inputs up to 8192 base pairs.

Can NucEL be used on non-human genomes?

Yes. Even though it was pre-trained solely on human GRCh38/hg38 data, it has been demonstrated to transfer zero-shot to mouse, yeast, and viral sequences.

How to cite it

Ding, Ke and Parker, Brian and Wen, Jiayu. NucEL: Single-Nucleotide ELECTRA-Style Genomic Pre-training for Efficient and Interpretable Representations. bioRxiv, 2025. doi:10.1101/2025.08.17.670700.

Written from NucEL's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.