q-bio.GNSep 26, 2026

BarcodeMAE+: Rethinking Masked Pretraining and Global Representations for DNA Barcode Foundation Models

Authors: Monireh Safari, Pablo Millan Arias, Scott C. Lowe, Lila Kari, Angel X. Chang, Graham W. Taylor

Organizations: Cheriton School of Computer Science, University of Waterloo, Ontario, Canada · Vector Institute, Ontario, Canada · School of Computing Science, Simon Fraser University, British Columbia, Canada · Alberta Machine Intelligence Institute (Amii), Alberta, Canada · 

Abstract

Many DNA foundation models are pretrained by masking parts of a sequence and asking the model to reconstruct them. Standard masked pretraining exposes the encoder to special [MASK] tokens that are absent at inference, creating a mismatch between training and downstream use. The role of an explicit global sequence representation such as a [CLS] token and how it should be trained also remain poorly understood for DNA barcodes. We introduce BarcodeMAE+ and study model architecture, global [CLS] representation, and auxiliary pretraining objectives across arthropod COI (BIOSCAN-5M) and fungal ITS (UNITE+INSD) barcodes. Across both barcode regions, the encoder-decoder MAE-LM architecture outperforms its matched encoder-only counterpart in nearly all evaluated configurations, supporting MAE-LM as an effective architectural design for DNA barcode foundation models. A trained global [CLS] representation provides substantial additional gains: on BIOSCAN-5M, [CLS] accuracy increases from 47.53% without an auxiliary objective to 80.65% with cross-entropy genus classification. The best auxiliary objective is region-dependent: cross-entropy performs best on BIOSCAN-5M, whereas pairwise same-genus classification performs best on UNITE+INSD, reaching 73.19% on Yeast and 63.07% on Filamentous Fungi. BarcodeMAE+ outperforms published DNA foundation model baselines on BIOSCAN-5M and achieves the highest Yeast accuracy among the evaluated UNITE+INSD baselines using frozen encoder representations. Similarity-weighted softmax KNN voting further stabilizes accuracy as neighbourhood size increases. Overall, encoder-decoder masked pretraining and an explicitly trained global representation are strong design choices for DNA barcode foundation models, while the optimal objective for learning that representation depends on the biological domain.

Figures & tables

Appendix figures & tables19 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. In Search of Lost DNA Sequence Pretraining

    Apr 17, 2026Zhijiang Tang, Jiaxin Qi, Yan Cui +3Language Model PretrainingMasked Language Modeling

  2. JEPA-DNA: Grounding Genomic Foundation Models through Joint-Embedding Predictive Architectures

    Feb 19, 2026Ariel Larey, Elay Dahan, Amit Bleiweiss +15Genomic Foundation ModelsMolecular Representation Learning

  3. D3LM: A Discrete DNA Diffusion Language Model for Bidirectional DNA Understanding and Generation

    Mar 2, 2026Zhao Yang, Hengchang Liu, Chuan Cao +1Molecular Foundation ModelsGenomic Foundation Models