bioRxivBioinformaticsPreprint
Genomic Tokenizer: Toward a biology-driven tokenization in transformer models for DNA sequences
Abstract
SummaryTransformer models are revolutionizing sequence analysis across various domains, from natural language processing to genomics. These models rely on tokenizers to split input sequences into manageable chunks -- a straightforward task in natural language but more challenging for long DNA sequences that lack distinct "words." Most biological tokenizers are data-driven and do not align with the "central dogma of molecular biology": DNA is transcribed into RNA, which is then translated into proteins, with each three-letter codon specifying a particular amino acid, some of which are synonymous for the amino acids they represent. Start codons signal the beginning of protein synthesis, while stop codons signal its termination. The Genomic Tokenizer (GT) incorporates this biological process flow into a standard tokenizer interface within the HuggingFace transformer package. GT can be used to pre-train foundational transformer models on DNA sequences. We compare the performance of GT with two alternate tokenization strategies and discuss its potential applications. Availability and implementationThe source code of GT is available from https://github.com/dermatologist/genomic-tokenizer under the MPL-2.0 license. It can be installed from Python Package Index (PyPI) and used as a tokenizer in transformer model training pipelines.
- assay: whole-genome sequencing
- research focus: software / tool
- research focus: benchmarking
- approach: transformer / foundation model
- approach: statistical model
- Citations
- 2
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
- GENA-LM: A Family of Open-Source Foundational DNA Language Models for Long Sequences
Veniamin Fishman, Yuri Kuratov, … Mikhail Burtsev·Nucleic Acids ResearchPeer-reviewed·Dec 26, 2024
- PatchDNA: A Flexible and Biologically-Informed Alternative to Tokenization for DNA
Alice Del Vecchio, Chantriolnt-Andreas Kapourani, … Cristian Regep·bioRxiv·Nov 28, 2025
- Effect of Tokenization on Transformers for Biological Sequences
Edo Dotan, Gal Jaschek, … Yonatan Belinkov·BioinformaticsPeer-reviewed·Mar 29, 2024
- Fine-Tuning Transformers For Genomic Tasks
Vlastimil Martinek, David Čechák, … Petr Šimeček·bioRxiv·Feb 7, 2022
- genomicBERT: A Light-weight Foundation Model for Genome Analysis using Unigram Tokenization and Specialized DNA Vocabulary
Tyrone Chen, Naima Vahab, … Sonika Tyagi·bioRxiv·May 31, 2023
- DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome
Yanrong Ji, Zhihan Zhou, … Ramana V. Davuluri·BioinformaticsPeer-reviewed·Feb 3, 2021