Loading…
Loading…
bioformers/bioformer-8LBioformer-8L-RetroMAE is a compact biomedical BERT encoder (43M parameters) for dense retrieval. It was created by continuing to pretrain Bioformer-8L with RetroMAE, a pretraining objective designed for retrieval, on about 32 million PubMed titles and abstracts.
Important: This checkpoint is the RetroMAE-pretrained encoder. It has not been fine-tuned for retrieval. It is meant as a strong starting point (initialization) for training bi-encoder retrievers (for example, contrastive fine-tuning with hard negatives). Its raw [CLS] embeddings are not designed for zero-shot semantic search.
| Base model | bioformers/bioformer-8L |
| Architecture | BERT encoder, 8 layers, hidden size 512, 8 attention heads |
| Parameters | 43M (same as Bioformer-8L; the RetroMAE decoder is discarded) |
| Vocabulary | Cased biomedical WordPiece, 32,768 tokens (same as Bioformer-8L) |
| Max sequence length | 512 |
| Embedding dimension | 512 ([CLS] vector) |
| Language | English (biomedical literature) |
Standard masked language modeling (MLM) does not explicitly train the [CLS] vector, yet a bi-encoder uses that vector as the text representation. RetroMAE fixes this mismatch. The encoder reads a moderately masked input, and its [CLS] vector is passed to a lightweight one-layer decoder. The decoder must then reconstruct a separately and more heavily masked version of the same text from that single vector. This forces the [CLS] vector to summarize the whole text. The decoder is used only during pretraining, so the released encoder keeps the compact Bioformer-8L size and speed.
bioformers/bioformer-8L checkpoint.Use this checkpoint to initialize both the query encoder and the document encoder. Train with a contrastive objective such as InfoNCE, using in-domain query–document pairs and hard negatives. The setup we used in our paper:
The results below are for bi-encoders fine-tuned from each backbone. All backbones were fine-tuned with the same BioASQ Task 12B training questions, the same BM25 hard negatives, and the same settings. They are therefore results of the downstream retriever, not of this checkpoint used zero-shot.
Retrieval used the full corpus of 28.8 million PubMed abstracts, evaluated on 340 questions from the four official BioASQ Task 12B golden test batches.
| Retrieval setting | Backbone | MRR | MRRall | Recall@100 | Recall@500 | Recall@1000 |
|---|---|---|---|---|---|---|
| Dense | BioBERT-Base v1.2 | 0.086 | 0.015 | 7.3% | 11.4% | 14.9% |
| Dense | PubMedBERT | 0.182 | 0.025 | 11.0% | 20.4% | 25.4% |
| Dense | Bioformer-8L | 0.159 | 0.026 | 10.8% | 18.9% | 23.5% |
| Dense | Bioformer-8L-RetroMAE | 0.209 | 0.037 | 14.3% | 24.7% | 30.0% |
Intended uses
Limitations
Li Fang (fangli9@mail.sysu.edu.cn) and Kai Wang (wangk@chop.edu)