An mRNA is one molecule.Read it that way.
Dense bidirectional attention in all 32 layers, one token per nucleotide, pretrained natively on whole transcripts — the 5′ UTR, CDS and 3′ UTR in one representation.
- Parameters
- 1.61 B
- Native context
- 10,240 nt
- RNA sequences
- 67.6 M
- Nucleotide tokens
- 85.7 B
- Query nucleotide
- 1
- In region
- 5′ UTR
- Attends to
- 10,240 nt, both directions
- In which layers
- all 32
Schematic transcript. Each arc is a position this nucleotide can attend to; arcs that cross into another region are drawn heavier.
Three properties, never all at once
A complete transcript needs all three. Every earlier RNA model gives up at least one.
| Approach | Full-transcript context | Dense bidirectional attention | Single-nucleotide tokens |
|---|---|---|---|
| Short-context encodersRNA-FM, RiNALMo, AIDO.RNA, RiboGRAM | Gives up: Pretrained at 1K | ||
| Causal decodersEVA, Evo2 | Gives up: Upstream only | ||
| Efficient long encodersHydraRNA, RNAret | Gives up: State-space or retention layers | ||
| Compressed-token encoderBiRNA-BERT | Gives up: Byte-pair tokens | ||
| RiboSpan1.61 B parameters | Keeps: 10,240 nt, natively | Keeps: All 32 layers | Keeps: One per nucleotide |
- In context
- 1,024 nt
- Truncated away
- 9,216 nt
- Covers
- 1,537–2,560
- Regions in view
- CDS
- In context
- 10,240 nt
- Truncated away
- none
- Covers
- 1–10,240
- Regions in view
- all three regions
Native long context, measured
Corpus, architecture and masking held fixed; only the pretrained context length varies.
One square per masked nucleotide, out of a hundred. Same positions for every model. Paper, Table 6 and Appendix Table 13.
One stack, one token per nucleotide
Select a stage for what it does and how it is set.
Pretraining objective
- the masked positions — 15%, then 40% in the continuation
- the corrupted sequence the model reads
- probability of the original nucleotide at position
Megatron-LM with variable-length packing: several RNAs share a training sequence, but attention and positional indices reset at each boundary.
67,567,085 sequences, 85.7 B tokens, 90,000 held out each for validation and test. Paper, Table 2.
De novo design of a better mRNAfor the protein you give it
The whole transcript is generated from scratch — 5′ UTR, CDS and 3′ UTR together — not a codon table applied to an existing one. Vast numbers of sequences encode the same protein, and they do not fold, last or translate alike; conditional diffusion searches that space under design conditions, while the protein stays fixed.
- Protein
- —
- Fixed by the protein
- —
- Free to choose
- —
- Still masked
- —
Positions identical across a residue’s synonymous codons are settled before the first step. The model chooses only the degenerate ones — the wobble base, plus the first base of Leu, Arg and Ser — and the UTRs.
Put the model to work
One vector per nucleotide, plus the pooled transcript vector. Download the pooled vectors as JSON and the full matrices as binary files.
Masked sites within each sequence are predicted jointly. Large batches are split automatically. Positions are 0-based indices within each sequence, matching the repository's example.
Every site is checked against its reference sequence here before anything is sent. Positions are 1-based. Join sites with a comma to change several at once, and name the sequence first when there is more than one.
More tasks coming soon
Temperature 1.00 sets how sharply each step samples; more steps mean smaller increments. The same seed, settings and protein return the same sequences.
Shade shows how many synonymous codons each residue allows.
Four checkpoints, one recipe
Pick the job; the matching checkpoint lights up.
Install, load, encode
Install and load
# clone and install git clone https://github.com/GAIR-NLP/RIBOSPAN-FM.git cd RIBOSPAN-FM pip install -e .
# public weights ckpt = "SII-GAIR-NLP/RIBOSPAN-1K-15" ckpt = "SII-GAIR-NLP/RIBOSPAN-1K-40" # access on request, via the Hugging Face model page ckpt = "SII-GAIR-NLP/RIBOSPAN-10K-15"
The tokenizer uppercases, converts U to T and adds boundary tokens, so RNA passes straight in. Restricted checkpoints need access on Hugging Face first.
Licence
- Source code
- Apache 2.0
- Model weights
- RiboSpan Non-Commercial Model License 1.0
The weights are for non-commercial research. Each link opens the licence in its own repository.
Cite
@misc{wang2026ribospan,
title = {{RIBOSPAN}: A Long-Context {RNA}
Foundation Model for Versatile {RNA} Modeling},
author = {Wang, Ziyuan and Tang, Bohao and Zhang, Fei
and Han, Shuo and Liu, Pengfei},
year = {2026},
eprint = {2608.22849},
archivePrefix = {arXiv},
primaryClass = {cs.LG}
}