bio.rodeo
ModelsOrganizationsProvidersLeaderboardAboutSign in
bio.rodeo

The authoritative source for evaluating biological foundation models. No hype, just honest analysis.

Categories
  • DNA & Gene
  • RNA
  • Protein
  • Small molecule
  • Single-cell
  • Spatial omics
  • Pathology
  • Imaging
  • Metabolomics
  • Biosignals
  • Language model
bio.rodeoModelsOrganizationsProvidersLeaderboardAboutFAQSubmit a modelTermsPrivacyContact
© 2026 Pulsatance. All rights reserved. ~
Built by Pulsatance
models / dna-gene / barcodemae
DNA & Gene
University of WaterlooSimon Fraser UniversityVector InstituteReleased February 2025

BarcodeMAE

DNA barcode foundation model whose masked-autoencoder pretraining keeps mask tokens out of the encoder, for arthropod taxonomic classification.

The short version

  • —Assigns genus to specimens whose species never appeared in training
  • —Clusters barcodes into candidate species groups with no labels or fine-tuning
  • —Mask tokens go only to the decoder, so the encoder never wastes capacity on them
  • —The decoder is discarded after pretraining, leaving a clean frozen feature extractor
92Openness

Where to run it

No providers recorded yet. Browse all providers

Masked language modelling is the default recipe for genomic encoders, but it contains a quiet mismatch. During pretraining the model spends much of its capacity learning what to do with [MASK] tokens; at deployment those tokens never appear, because the encoder is being used to embed real sequences. The encoder has therefore been optimized partly for a task nobody runs. BarcodeMAE, from the BIOSCAN-ML consortium spanning the University of Waterloo, the University of Guelph, Simon Fraser University, the Vector Institute, and the Alberta Machine Intelligence Institute, removes that mismatch by borrowing the masked-autoencoder arrangement from vision.

The fix is structural rather than a tuning trick. Masked positions are withheld from the encoder entirely and introduced only in a separate decoder, which is responsible for reconstruction. The encoder therefore only ever sees real nucleotide tokens — exactly the condition it faces at inference — and after pretraining the decoder is thrown away.

The application domain is DNA barcoding: short standardized gene fragments used to identify specimens and estimate biodiversity, where an enormous fraction of the world's species has never been formally described. This makes the classification problem genuinely open-world, and it makes frozen-feature quality the metric that matters, since fine-tuning on labels is impossible for taxa that have no labels.

#Key Features

  • Mask tokens confined to the decoder: The encoder never receives a [MASK] token, so its representations are trained under the same distribution used at deployment.
  • Frozen-encoder evaluation: Downstream performance is measured with the encoder untouched — nearest-neighbour probing and zero-shot clustering — reflecting how barcode pipelines actually consume embeddings.
  • Open-world taxonomy: Evaluation includes reconstructing Barcode Index Numbers for specimens whose species are absent from the training taxonomy, testing whether the model can group genuinely novel organisms.
  • Frame-shift augmentation: Sequences are randomly offset during training so that non-overlapping k-mer tokenization does not lock the model to one arbitrary reading frame.
  • Balanced encoder-decoder depth: An ablation shows DNA reconstruction benefits from a decoder as deep as the encoder, contrary to the shallow-decoder convention inherited from natural language.

#Technical Details

BarcodeMAE is a symmetric transformer encoder-decoder: six layers with six attention heads on each side, hidden dimension 768 throughout, with barcode embeddings obtained by global average pooling over output vectors excluding padding and special tokens. Sequences are tokenized into non-overlapping k-mers with a vocabulary of 4^k + 2 including [UNK] and [MASK]; k = 6 performed best in ablation. Pretraining uses a 50% token masking rate on the BIOSCAN-5M dataset, which contains 5.15 million arthropod records and roughly 2.4 million unique DNA barcodes, partitioned so that a held-out set contains species absent from training. Two evaluations are reported. Genus-level 1-nearest-neighbour probing on unseen species reaches 69.0% accuracy, more than ten percentage points above BarcodeBERT, the previous best barcode-trained model, and ahead of DNABERT-2, DNABERT-S, and the Nucleotide Transformer, all trained on non-barcode DNA. On zero-shot Barcode Index Number reconstruction, BarcodeMAE reaches 80.3% adjusted mutual information, behind DNABERT-S at 87.7% but ahead of DNABERT-2 and BarcodeBERT; its harmonic mean of 74.2% across the two tasks is the highest of any model tested. A controlled variant that keeps the encoder-decoder split but restores standard masking still beats the encoder-only baselines, isolating the contribution of the architecture from that of the masking change. Code is MIT-licensed and a pretrained checkpoint is linked from the repository.

#Applications

The direct beneficiaries are biodiversity monitoring and molecular taxonomy programs, which process large volumes of barcode reads from bulk specimen collections and need to assign each read to a taxon or flag it as something new. BarcodeMAE's embeddings support both: nearest-neighbour assignment against a reference library for known genera, and unsupervised clustering to propose operational taxonomic units for the unknown remainder. Because the encoder is used frozen, it drops into existing pipelines as a feature extractor without any per-dataset training. The masking argument itself generalizes beyond barcodes to any genomic encoder that is deployed for feature extraction rather than fine-tuned.

#Impact

BarcodeMAE's value is partly a specific model and partly a diagnosis. It supplies empirical evidence that the [MASK] distribution shift measurably degrades genomic encoders in exactly the regime where they are most used — frozen feature extraction — and shows that a modest architectural change recovers a double-digit accuracy gain without more data or parameters. Its ablation finding, that DNA reconstruction wants a deep decoder where language modelling wants a shallow one, is a concrete argument against porting NLP defaults into genomics unexamined. Within the BIOSCAN-ML lineage it succeeds BarcodeBERT and BarcodeMamba as the strongest frozen encoder for arthropod barcode taxonomy.

At a glance

Released
February 2025
Category
DNA & Gene
Organizations
University of Waterloo / Simon Fraser University / Vector Institute

Links

GitHub RepositoryResearch Paper

Tags

autoencoderbiodiversitydna_barcodingembeddingsfoundation_modelrepresentation_learningself_supervisedtaxonomic_classificationtransformer

Something wrong?

Much of this page is generated or calculated automatically. Flag anything that looks off and we will re-run it.