typebraintank dispatch
headlineTraining an RNA model on whole transcripts helps with long mRNAs, not single mutations
dekRiboSpan reads up to 10,240 RNA letters one at a time. It holds up on full-length transcripts where shorter-trained models falter, but the benefit varies by task.
date2026-11-23
sectionDiscovery · RNA foundation models
datelineBeijing · Chinese Academy of Sciences
paperRIBOSPAN: A Long-Context RNA Foundation Model for Versatile RNA Modeling
statuspreprint, not peer reviewed
originalhttps://braintank.ai/a/arxiv-2608.22849.html
cite
text

An RNA model trained to read up to 10,240 nucleotides at a time, one letter per input unit, keeps its grip on full-length messenger RNAs where versions trained on shorter stretches slip. That is the central finding of a 2026 preprint from researchers at the Shanghai Innovation Institute and partner institutions, which has not yet been peer reviewed. The gain is real but uneven. On tasks centred on single mutations, the same model trained at shorter lengths did better, which suggests long context is a tool for some biological questions and not a general upgrade.

Messenger RNA (mRNA) carries a gene's instructions to the cell's protein-making machinery. It has three parts: a leader sequence called the 5' UTR, the protein-coding region (CDS), and a trailer called the 3' UTR. Many mature mRNAs run to several thousand nucleotides. According to the authors, the large RNA models known as bidirectional encoders, such as RNA-FM, RiNALMo and AIDO.RNA, were pretrained on inputs of about 1,024 units. A bidirectional encoder looks at context on both sides of every position. Because of that limit, long transcripts get truncated or cropped, which makes it hard to keep a transcript's complete context. Other long-context RNA models make different compromises, in the authors' account. EVA reads only upstream context. HydraRNA uses full attention, the mechanism that lets every position consult every other, in only some of its layers. BiRNA-BERT merges letters into multi-letter chunks.

The authors' model, RiboSpan, is a 32-layer Transformer encoder with 1.61 billion parameters. It was trained by masked language modelling, in which some nucleotides are hidden and the model learns to fill them in from the surrounding sequence. The training data came from the RNAcentral and Ensembl databases: 67.6 million sequences totalling 85.7 billion nucleotides. Shorter RNAs were packed together into single training slots, with each one walled off so it could not see its neighbours. Training ran in two stages, first hiding 15% of letters and then 40%. As a control, the team trained matching models at 1,024 units, with the same data, architecture and schedule. They also tested YaRN, a technique that rescales a model's internal position markers at inference time so it can accept inputs longer than it was trained on, without retraining.

At 10,240 units, the long-trained model reconstructed hidden mRNA letters with a loss of 0.724, where lower is better. The short-trained equivalent scored 0.982 and AIDO.RNA-CDS scored 1.151. At 1,024 units the pattern flipped, and the short-trained model did better (0.674 against 0.761). The authors also built a benchmark of 50 complete mRNAs in which a small central window is scrambled. They then measured how well each model registers the change and how much distant, untouched positions are disturbed. The long-trained models showed the lowest cross-region similarity and very little distant disturbance. On a separate measure of how strongly the scrambled region stands apart, however, YaRN-extended models scored higher, and HydraRNA disturbed distant positions least. The authors report that short-context models stretched directly to longer inputs began to degrade at roughly four times their training length.

Further tests used the model's outputs without retraining it, judged by nearest-neighbour matching, simple linear probes or zero-shot scoring. On sorting RNAs by type, RiboSpan scored 0.899 accuracy overall against 0.865 for RNA-FM. It trailed RNA-FM, HydraRNA and RiNALMo on recognising RNA families. On the mRNABench suite, the long-trained model led on mRNA half-life (correlation 0.652 against HydraRNA's 0.623), ribosome loading, translation efficiency and protein binding. HydraRNA led on gene function, and the short-trained RiboSpan led on variant effects. On zero-shot mutation scoring in RNAGym, where effects are predicted with no task-specific training, every RiboSpan version beat the other encoders. The best was the short-trained one, at a rank correlation of 0.252 against RiNALMo's 0.208. Evo2-7B, a larger model of a different design, scored 0.276 in figures reported by RNAGym rather than rerun. Such task-by-task splits echo how single overall rankings can hide large differences between kinds of genomic task.

Several questions stay open. The authors describe a diffusion-based framework for redesigning mRNAs but report no results for it, and defer evaluation to later work. Their long-context benchmark is small, built by the team itself, and relies on proxy measures, not biological outcomes. Several evaluations draw on RiboSpan's own held-out test split, carved from the same corpus as its training data. In some tests, rival models were run at lengths they were never trained for. All downstream tests use the model without retraining, many margins are narrow, and the main tables give no measure of run-to-run variation.