bioRxivGenomicsPreprint
Selective State Space Models Outperform Transformers at Predicting RNA-Seq Read Coverage
Abstract
Transformers are the basis for many state-of-the-art machine learning tools, including those for predicting gene expression data from DNA sequence. The considerable time and cost of training transformer models has motivated development of alternative approaches inspired by ideas from the signal-processing literature, such as state-space models (Mamba), Fourier transforms (Hyena), and wavelet transforms (MultiResNet). To evaluate these methods as potential replacements (or complements) for attention, we developed a software library bilby, implemented using Python and Jax/Flax, providing convolutional, attention, bidirectional Hyena, bidirectional Mamba, and striped-architecture models for supervised multi-task learning in functional genomics. We report a comparison of these architectures, testing several hyperparameters and variations, and reporting performance statistics for the withheld test set as well as downstream SNP classifiers. Relative to models comprising convolution and attention layers (implemented in Python and TensorFlow via the Baskerville library used by the Borzoi software), models comprising convolutional, bidirectional Mamba, and (optionally) attention layers achieve small but consistent improvements in prediction accuracy, for roughly comparable training times and parameter counts, when averaged across all output tracks and data splits (a proportional increase of 3-4% in Pearson R, and 1-2% in r2, with the highest gains achieved when Mamba and attention layers were combined in a striped architecture). In contrast, Hyena (when reimplemented as described in the literature) was not competitive with attention-based models at these tasks, while MultiResNet proved too slow to be practical. The gains in prediction accuracy of the Mamba-based models do not yet translate to significantly improved performance on downstream SNP classification tasks: benchmarks using a GTEx eQTL dataset yield roughly similar results for Mamba- and attention-based classifiers, with attention marginally outperforming Mamba in one metric (a difference of +0.007 in area under ROC) and slightly underperforming by another metric (a difference of -0.006 in Spearman rank correlation). We argue that these results suggest selective state-space models (such as Mamba and Striped Mamba) warrant further exploration for functional genomics tasks. Our code and trained models are publicly available at https://github.com/ihh/bilby.
- assay: bulk RNA-seq
- research focus: differential expression
- research focus: benchmarking
- research focus: variant effect prediction
- research focus: gene regulatory network inference
- approach: statistical model
- approach: machine learning (classical)
- Citations
- 4
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- RNA-xLSTM: Evaluating xLSTM as an Alternative Foundation to Transformers in RNA Modeling
Matija Pintarić, Rafael Josip Penić, Mile Šikić·bioRxiv·Jul 14, 2025
- FlashRNA: An Efficient Model for Regulatory Genomics
Andreas Jung, Helen Zhu, … Brendan J. Frey·bioRxiv·Oct 14, 2025
- Novel transformer networks for improved sequence labeling in genomics
Jim Clauwaert, Willem Waegeman·IEEE Transactions on Computational Biology and BioinformaticsPeer-reviewed·Oct 30, 2020
- Predicting gene and protein expression levels from DNA and protein sequences with Perceiver
Matteo Stefanini, Marta Lovino, … Elisa Ficarra·Computer Methods and Programs in BiomedicinePeer-reviewed·Mar 22, 2023
- LIMBER: A Hybrid RNA Foundation Model for Predicting and Understanding RNA Structure and Function
Ziyao Wang, Yunrui Qiu, … Ang Li·bioRxiv·Nov 1, 2026
- Modeling positional effects of regulatory sequences with spline transformations increases prediction accuracy of deep neural networks
Žiga Avsec, Mohammadamin Barekatain, … Julien Gagneur·BioinformaticsPeer-reviewed·Nov 15, 2017