Multimodal Medical Code Tokenizer
Not on the map. Why?
Abstract (arXiv)
Foundation models trained on patient electronic health records (EHRs) require tokenizing medical data into sequences of discrete vocabulary items. Existing tokenizers treat medical codes from EHRs as isolated textual tokens. However, each medical code is defined by its textual description, its position in ontological hierarchies, and its relationships to other codes, such as disease co-occurrences and drug-treatment associations. Medical vocabularies contain more than 600,000 codes with critical information for clinical reasoning. We introduce MedTok, a multimodal medical code tokenizer that uses the text descriptions and relational context of codes. MedTok processes text using a language model encoder and encodes the relational structure with a graph encoder. It then quantizes both modalities into a unified token space, preserving modality-specific and cross-modality information. We integrate MedTok into five EHR models and evaluate it on operational and clinical tasks across in-patient and out-patient datasets, including outcome prediction, diagnosis classification, drug recommendation, and risk stratification. Swapping standard EHR tokenizers with MedTok improves AUPRC across all EHR models, by 4.10% on MIMIC-III, 4.78% on MIMIC-IV, and 11.32% on EHRShot, with the largest gains in drug recommendation. Beyond EHR modeling, we demonstrate using MedTok tokenizer with medical QA systems. Our results demonstrate the potential of MedTok as a unified tokenizer for medical codes, improving tokenization for medical foundation models.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 37 of its 68 references that are in the map. First posted on arXiv 6 Feb 2025.
Builds on
37 of 68 references.
References · 37
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2017Neural Discrete Representation Learningcited by 4,650
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2021iBOT: Image BERT Pre-Training with Online Tokenizercited by 891
- 2025Cosmos World Foundation Model Platform for Physical AIcited by 833
- 2021SoundStream: An End-to-End Neural Audio Codeccited by 756
- 2021Vector-quantized Image Modeling with Improved VQGANcited by 656
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generationcited by 633
- 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 525
25 more
- 2019vq-wav2vec: Self-Supervised Learning of Discrete Speech Representationscited by 335
- 2017Multitask learning and benchmarking with clinical time series datacited by 287
- 2023Towards Generalist Biomedical AIcited by 286
- 2019BEHRT: Transformer for Electronic Health Recordscited by 258
- 2024TokenFlow: Unified Image Tokenizer for Multimodal Understanding and Generationcited by 200
- 2023Recommender Systems with Generative Retrievalcited by 191
- 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 112
- 2024Learnable Item Tokenization for Generative Recommendationcited by 106
- 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 101
- 2024Towards Building Multilingual Language Model for Medicinecited by 91
- 2020Fast WordPiece Tokenizationcited by 85
- 2024Zero Shot Health Trajectory Prediction Using Transformercited by 74
- 2023Learning to Tokenize for Generative Retrievalcited by 66
- 2023GraphCare: Enhancing Healthcare Predictions with Personalized Knowledge Graphscited by 57
- 2023Regularized Vector Quantization for Tokenized Image Synthesiscited by 46
- 2024Don't Look Twice: Faster Video Transformers with Run-Length Tokenizationcited by 42
- 2024Language-Guided Image Tokenization for Generationcited by 36
- 2023VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPscited by 34
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
- 2022Rethinking the Objectives of Vector-Quantized Tokenizers for Image Synthesiscited by 31
- 2024AfriMed-QA: A Pan-African, Multi-Specialty, Medical Question-Answering Benchmark Datasetcited by 26
- 2024An Information Criterion for Controlled Disentanglement of Multimodal Datacited by 14
- 2024Model Decides How to Tokenize: Adaptive DNA Sequence Tokenization with MxDNAcited by 11
- 2023Predict and Interpret Health Risk using EHR through Typical Patientscited by 5
- 2024Multi-task Heterogeneous Graph Learning on Electronic Health Recordscited by 5
Built on by
Citing papers per year: 2025: 9; 2026: 5.
14 papers.
Sort:
By area:
- 2025TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Toolscited by 57
- 2025Token Reduction Should Go Beyond Efficiency in Generative Models -- From Vision, Language to Multimodalitycited by 49
- 2025Discrete Tokenization for Multimodal LLMs: A Comprehensive Surveycited by 7
- 2025FoMoH: A clinically meaningful foundation model evaluation for structured electronic health recordscited by 6
- 2026One Loss to Rule Them All: Marked Time-to-Event for Structured EHR Foundation Modelscited by 5
- 2025Generating Clinically Realistic EHR Data via a Hierarchy- and Semantics-Guided Transformercited by 4
- 2025MedRep: Medical Concept Representation for General Electronic Health Record Foundation Modelscited by 3
- 2025Time-Aware Attention for Enhanced Electronic Health Records Modelingcited by 3
- 2025Rethinking Tokenization for Clinical Time Series: When Less is Morecited by 3
- 2026From Statistical Fidelity to Clinical Consistency: Scalable Generation and Auditing of Synthetic Patient Trajectoriescited by 1
- 2025Aligning Probabilistic Beliefs under Informative Missingness: LLM Steerability in Clinical Reasoningcited by 0
- 2026MATA-Former & SIICU: Semantic Aware Temporal Alignment for High-Fidelity ICU Risk Predictioncited by 0
2 more
- 2026What Makes a Good Medical Image Tokenizer? Rethinking Reconstruction and Generation in Medical Image Tokenization21 Sep 2026
- 2026Foresight-England: Development of a National-Scale Generative AI Model of Electronic Health Records for Medical Event Prediction across the COVID-19 Pandemic17 Aug 2026
- 2026MATA-Former & SIICU: Semantic Aware Temporal Alignment for High-Fidelity ICU Risk Prediction2 Apr 2026
- 2026From Statistical Fidelity to Clinical Consistency: Scalable Generation and Auditing of Synthetic Patient Trajectories6 Mar 2026
- 2026One Loss to Rule Them All: Marked Time-to-Event for Structured EHR Foundation Models31 Jan 2026
- 2025Rethinking Tokenization for Clinical Time Series: When Less is More4 Dec 2025
- 2025Aligning Probabilistic Beliefs under Informative Missingness: LLM Steerability in Clinical Reasoning29 Nov 2025
- 2025Discrete Tokenization for Multimodal LLMs: A Comprehensive Survey21 Jul 2025
- 2025Time-Aware Attention for Enhanced Electronic Health Records Modeling20 Jul 2025
- 2025Token Reduction Should Go Beyond Efficiency in Generative Models -- From Vision, Language to Multimodality23 May 2025
- 2025FoMoH: A clinically meaningful foundation model evaluation for structured electronic health records22 May 2025
- 2025MedRep: Medical Concept Representation for General Electronic Health Record Foundation Models11 Apr 2025
- 2025FoMoH: A clinically meaningful foundation model evaluation for structured electronic health recordscited by 6
- 2026One Loss to Rule Them All: Marked Time-to-Event for Structured EHR Foundation Modelscited by 5
- 2025Generating Clinically Realistic EHR Data via a Hierarchy- and Semantics-Guided Transformercited by 4
- 2025MedRep: Medical Concept Representation for General Electronic Health Record Foundation Modelscited by 3
- 2025Time-Aware Attention for Enhanced Electronic Health Records Modelingcited by 3
- 2026From Statistical Fidelity to Clinical Consistency: Scalable Generation and Auditing of Synthetic Patient Trajectoriescited by 1
- 2026MATA-Former & SIICU: Semantic Aware Temporal Alignment for High-Fidelity ICU Risk Predictioncited by 0
- 2026Foresight-England: Development of a National-Scale Generative AI Model of Electronic Health Records for Medical Event Prediction across the COVID-19 Pandemiccited by 0
- 2026Foresight-England: Development of a National-Scale Generative AI Model of Electronic Health Records for Medical Event Prediction across the COVID-19 Pandemic17 Aug 2026
- 2026MATA-Former & SIICU: Semantic Aware Temporal Alignment for High-Fidelity ICU Risk Prediction2 Apr 2026
- 2026From Statistical Fidelity to Clinical Consistency: Scalable Generation and Auditing of Synthetic Patient Trajectories6 Mar 2026
- 2026One Loss to Rule Them All: Marked Time-to-Event for Structured EHR Foundation Models31 Jan 2026
- 2025Time-Aware Attention for Enhanced Electronic Health Records Modeling20 Jul 2025
- 2025FoMoH: A clinically meaningful foundation model evaluation for structured electronic health records22 May 2025
- 2025MedRep: Medical Concept Representation for General Electronic Health Record Foundation Models11 Apr 2025
- 2025Generating Clinically Realistic EHR Data via a Hierarchy- and Semantics-Guided Transformer28 Feb 2025