News Release

Biomedical language models need not rely on Transformers: BioMamba adapts Mamba2 with an 8:1:1 data recipe

Five open-weight model scales; lower PubMed perplexity with general fluency preserved

Peer-Reviewed Publication

Health Data Science

Fig. 1. Overview of BioMamba.

image: 

(A) Architecture comparison: recurrent neural network (RNN), Transformer, and Mamba (state space model [SSM]), with key distinguishing components highlighted. (B) Training and evaluation pipeline: Continued pretraining on a mixed PubMed/Colossal Clean Crawled Corpus (C4)/Wikipedia corpus produces BioMamba models at 5 scales (130M to 2.7B), which are then fine-tuned for biomedical question answering, clinical note completion, and discharge summary generation. WSD, Warmup–Stable–Decay learning-rate schedule.

view more 

Credit: Tianfan Fu

Biomedical research increasingly relies on unstructured text—PubMed abstracts, full-text articles, clinical guidelines, and clinical documentation. Domain-adapted language models are therefore important for information extraction, evidence synthesis, summarization, completion, and question answering.

Most such models have been built on the Transformer architecture, from BioBERT and PubMedBERT to GatorTron and ClinicalT5. But Transformer self-attention carries a known cost: computational cost scales quadratically with sequence length. When biomedical text is long and terminology-dense, this cost becomes restrictive.

State space models offer an alternative. Mamba introduced selective state space layers for linear-time sequence modeling, with much gentler cost growth on long contexts. Yet biomedical adaptation of Mamba models has remained limited, and domain adaptation carries a further risk—catastrophic forgetting, where a model improves on biomedical text but loses general fluency.

BioMamba addresses this gap with a reproducible solution.

The team performed continued pretraining on released Mamba2 checkpoints, producing models at five scales: 130M, 370M, 780M, 1.3B, and 2.7B parameters. The training corpus mixes three components in an 8:1:1 ratio: PubMed abstracts (80%), the C4 web corpus (10%), and Wikipedia (10%). The architecture is unchanged; the contribution is the adaptation recipe and the accompanying open-weight checkpoints.

The results hold across three levels.

For language modeling, PubMed perplexity dropped at every scale: from 9.41 to 8.42 for the smallest model, down to 5.28 for the largest, with relative reductions of 7% to 11%. Wikipedia-style perplexity fell by 1.46 to 4.72 points, while C4 perplexity changed by at most 0.17—meaning biomedical gains did not come at the expense of general ability.

On six out-of-domain multiple-choice benchmarks, BioMamba stayed within ±3 percentage points of Mamba2, with no systematic regression.

On three downstream tasks—MIMIC-IV clinical note completion, discharge summary generation, and yes/no question answering on BioASQ and PubMedQA—the fine-tuned BioMamba matched or exceeded Mamba2 at every scale. The strongest model, BioMamba-2.7B, reached a PubMed perplexity of 5.28 and accuracies of 90.24% on BioASQ and 73.00% on PubMedQA.

The authors emphasize that the main contribution lies as much in the reproducible biomedical continued pretraining recipe as in the empirical findings and a family of open-weight BioMamba checkpoints (130M / 370M / 780M / 1.3B / 2.7B), released with full training and evaluation code as a reusable resource for the biomedical NLP community.

The study also notes limitations: the continued pretraining corpus included only PubMed abstracts, without full-text articles, clinical narratives, electronic health records, or multimodal data; and the downstream evaluation covered three task families, not yet information extraction, retrieval, evidence attribution, or long-context reasoning.


Disclaimer: AAAS and EurekAlert! are not responsible for the accuracy of news releases posted to EurekAlert! by contributing institutions or for the use of any information through the EurekAlert system.