henhaobio
Sign in

bioRxivBioinformaticsPreprint

Genomic Tokenizer: Toward a biology-driven tokenization in transformer models for DNA sequences

Bell Raj EapeniD

PDFDOICode

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.

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.

Similarity Map
SelectedSame fieldCross-field
THISFishman '24Vecchio '25Dotan '24Martinek '22Chen '23Ji '21
69% semantic matchBioinformatics
Veniamin Fishman, Yuri Kuratov, Aleksei Shmelev+6 more·Nucleic Acids Research·Dec 26, 2024· 137 citations