You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Rethinking Tokenization for Clinical Time Series (ML4H Findings 2025)
2
2
3
3
## Acknowledgements
4
-
This repository contains the code for the experiments in our paper, "Rethinking Tokenization for Clinical Time Series: When Less is More." The codebase is adapted from the `meds-torch` library. We thank the original authors for their foundational work. For the maintained, production-ready version of the library, please see the official`meds-torch` repository.
4
+
This repository contains the code for the experiments in our paper, "Rethinking Tokenization for Clinical Time Series: When Less is More." The codebase is adapted from the [`meds-torch` library](https://github.com/Oufattole/meds-torch). We thank the original authors for their foundational work. For the maintained, production-ready version of the library, please see the official repository.
5
5
6
6
---
7
7
8
8
## Overview
9
+
This work presents a systematic evaluation of tokenization approaches for clinical time series modeling. We compare Triplet and TextCode strategies across four prediction tasks on MIMIC-IV to investigate the roles of time, value, and code representations. Our findings suggest that for transformer-based models, tokenization can often be simplified without sacrificing performance.
9
10
10
-
This work presents a systematic evaluation of tokenization approaches for clinical time series modeling, comparing Triplet and TextCode tokenization strategies across four clinical prediction tasks using the MIMIC-IV dataset.
11
+
## Key Findings Summary
11
12
12
-
## Key Research Contributions
13
-
14
-
### 1. Triplet Tokenization Ablations
15
-
-**Time2Vec Implementation**: Advanced time encoding using sinusoidal basis functions
16
-
-**LeTE Implementation**: Learnable time embeddings with Fourier and spline components
17
-
-**Component Ablations**: Systematic removal of time and value features to isolate predictive signals
18
-
-**Code-only Variants**: Minimal tokenization using only medical codes
19
-
20
-
### 2. TextCode Tokenization Improvements
21
-
-**Flexible TextCode Encoder**: Support for both trainable and frozen language model encoders
22
-
-**Enhanced Code Mappings**: Complete coverage of medical code descriptions (100% vs 25% baseline)
23
-
-**Multi-scale Encoders**: Evaluation across 15M to 600M parameter language models
24
-
-**Domain Comparison**: Clinical vs general-domain pretrained encoders
25
-
26
-
### 3. Experimental Framework
27
-
-**Controlled Comparisons**: Systematic variation along mapping coverage, training approach, encoder scale, and domain axes
28
-
-**Statistical Rigor**: Paired Wilcoxon tests with Bonferroni correction across 10 random seeds
29
-
-**Reproducible Pipeline**: Standardized MEDS-Torch framework with transformer encoders
|**Time Features**| Explicit time encodings showed no statistically significant benefit. | Sequence order in transformers may be sufficient for the tasks studied. |
16
+
|**Value Features**| Importance is task-dependent (critical for mortality, less so for readmission). | Code sequences alone can carry significant predictive signal for some tasks. |
17
+
|**Frozen Encoders**| Dramatically outperform trainable encoders with far fewer parameters. | Pretrained knowledge acts as a powerful, regularized feature extractor. |
18
+
|**Code Information**| Emerges as the most critical predictive signal across all experiments. | The quality of code representations is paramount for model performance. |
30
19
31
20
## Repository Structure
32
21
@@ -47,24 +36,13 @@ This work presents a systematic evaluation of tokenization approaches for clinic
-**Framework**: MEDS-Torch with transformer encoders
62
44
-**Evaluation**: AUROC with 10 random seeds, statistical significance testing
63
45
64
-
## Reproducibility
65
-
66
-
All experiments use the standardized MEDS-Torch pipeline with consistent hyperparameters and evaluation protocols. The code preserves the original research branches as separate implementations to enable direct comparison of different tokenization approaches.
67
-
68
46
---
69
47
70
48
*This research demonstrates that simpler, more parameter-efficient tokenization approaches can achieve competitive performance in clinical time series modeling, challenging assumptions about the necessity of complex temporal encodings while clarifying the task-dependent role of value features.*
0 commit comments