DBToken: A Database Tokenizer for Medical Event Foundation Models
I. Shin, K. McCann, G. Marino, U. T. Siam, H. Li, E. Stutz, R. Edara, A. J. Loza
Key points
From the paper's conclusion- We introduce DBToken, an open-source library, and bits-per-row (BPR), a metric for comparing tokenization strategies.
Abstract
Objectives Transformer models for electronic health records require converting clinical data into token sequences, however standardized tokenization and evaluation frameworks are lacking. We introduce DBToken, an open-source library, and bits-per-row (BPR), a metric for comparing tokenization strategies. Materials and Methods DBToken accepts Medical Event Data Standard (MEDS)-compatible input and supports multiple text, numeric, and temporal tokenization strategies. BPR extends the bits-per-byte metric used in language models to enable comparison across tokenization strategies. Results DBToken efficiently tokenized data across configurations. BPR identified the vocabulary size associated with the best clinical outcome performance and localized differences in numeric tokenization performance by token class. Discussion Optimal tokenization strategies for medical foundation models are a subject of active research. DBToken enables reproducible tokenization experiments, while BPR efficiently screens vocabulary sizes and numeric representations before downstream evaluation. Conclusion DBToken and the BPR metric provide open-source infrastructure for reproducible EHR tokenization and cross-strategy evaluation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Continuous Value Tokenization Improves Medical Event Foundation Models.medRxiv : the preprint server for health sciences · 2026
- Discrete Neural Interlingua for Ontology-Agnostic EHR ModelingarXiv · 2026
- Large language models are powerful electronic health record encodersnpj Digital Medicine · 2026
- Richer database context improves LLM-generated EHR phenotyping algorithms.medRxiv : the preprint server for health sciences · 2026
- M3: Conversational LLMs simplify secure clinical data access, understanding, and analysis.PLOS digital health · 2026
- Block Diffusion for Longitudinal EHR: Accuracy, Efficiency, and Representation Trade-offsarXiv · 2026