Manuscript Offprint

arXiv:2608.22849

RIBOSPAN: A Long-Context RNA Foundation Model for Versatile RNA Modeling

Ziyuan Wang, Bohao Tang, Fei Zhang, Shuo Han, Pengfei Liu

上海创智学院 Shanghai Innovation Institute

CEMCS

中国科学院分子细胞科学卓越创新中心 (生物化学与细胞生物学研究所) Center for Excellence in Molecular Cell Science, CAS

SHANGHAI INNOVATION INSTITUTE SHANGHAI INNOVATION INSTITUTE

SII-GAIR

RIBOSPAN: A Long-Context RNA Foundation Model for Versatile RNA Modeling

Ziyuan Wang †1,2,4,5^{\dagger 1,2,4,5} Bohao Tang †1,3,5^{\dagger 1,3,5} Fei Zhang 1,3,5^{1,3,5} Shuo Han ∗2,4^{*2,4} Pengfei Liu ∗1,3,5^{*1,3,5}

1^{1}Shanghai Innovation Institute

2^{2}Center for Excellence in Molecular Cell Science, CAS

3^{3}Shanghai Jiao Tong University

4^{4}University of Chinese Academy of Sciences

5^{5}Generative Artificial Intelligence Research Lab

GitHub

Hugging Face

†^{\dagger}Equal contribution.

∗^{*}Co-corresponding authors.

Abstract

Full-length RNAs, particularly messenger RNAs, often exceed the context lengths used to pretrain existing RNA foundation models, limiting complete-transcript modeling at single-nucleotide resolution. We present RIBOSPAN, a 1.61-billion-parameter bidirectional RNA foundation model natively pretrained with context lengths up to 10,240 nt. RIBOSPAN combines dense bidirectional self-attention, single-nucleotide tokenization, and attention-isolated sequence packing to enable high-resolution modeling of complete long RNAs. Native 10K pretraining preserves strong reconstruction at 10,240 tokens and, in a controlled long-context benchmark, maintains strong contextual responsiveness and context-specific representation separation while keeping perturbation-induced changes highly localized. Inference-time YaRN scaling recovers much of the contextual organization lost by direct short-context extrapolation, but induces substantially greater distal representation diffusion. Frozen RNA-type evaluations show that RIBOSPAN learns state-of-the-art RNA representations, with a particularly clear advantage on long RNAs. Across downstream biological benchmarks, RIBOSPAN emerges as the strongest encoder-only RNA foundation model, achieving state-of-the-art performance in both full-transcript biological property prediction and zero-shot mutation-fitness modeling. Building on the same backbone, we develop a multidimensionally conditioned discrete-diffusion framework for full-length mRNA generation and redesign, including synonymous-codon diffusion for protein-preserving CDS optimization. Together, RIBOSPAN establishes a powerful long-context foundation for transferable RNA representation learning, biological prediction, and full-transcript mRNA design.