NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Effectiveness of Uncased Tokeniziaion for Clinical Notes

Cory Paik, Katharina von der WenseACL 2025

Abstract

Standard "cased" language models often struggle in the clinical domain due to inconsistent capitalization and inefficient tokenization. This research demonstrates that uncased models frequently outperform their cased counterparts on clinical tasks, including Named Entity Recognition (NER). Furthermore, the authors introduce Independent Case Encoding (ICE), a lightweight method to retain case information without the performance and efficiency penalties associated with a cased vocabulary.

Introduction

When training Large Language Models (LLMs), a fundamental design choice is whether the model should be cased (distinguishing "Apple" from "apple") or uncased. In general domains, cased models are preferred for tasks like NER because capitalization is a strong signal for proper nouns. However, clinical notes are semi-structured, filled with acronyms, and often lack proper casing due to rapid entry or speech-to-text transcription.

The authors identify two major issues with cased models in clinical settings:

  1. Efficiency: Cased vocabularies are larger and lead to more subword splitting, resulting in longer sequences that increase computational costs and risk truncating important information.
  2. Brittleness: Clinical notes often have "improper" casing. If a model relies on capitalization to identify a medication but the clinician typed it in lowercase, the model may fail.

Methods and Independent Case Encoding (ICE)

The researchers compared standard BERT-base cased ($BERT_C$) and uncased ($BERT_U$) models, pretrained on the MIMIC-III clinical database. To address the limitations of both, they introduced Independent Case Encoding (ICE).

Instead of a massive cased vocabulary, ICE uses an uncased vocabulary with a separate, small embedding layer. This layer assigns one of four "case tags" (Uppercase, Lowercase, Capitalized, Mixed case) to every token. These tags are added to token embeddings, allowing the model to utilize casing when helpful while remaining robust to formatting inconsistencies.

Tokenization Efficiency

A key finding is that uncased tokenization is significantly more efficient for clinical text. As shown in the dataset statistics, uncased models reduce the number of tokens and the frequency of sequences exceeding the standard 128-token limit.

Tokenization efficiency statistics comparing cased and uncased vocabularies across various datasets.

On the MIMIC-III dataset, uncased models produced 11.38% fewer tokens and 36.45% fewer "long" sequences compared to cased models. This efficiency allows models to process more context within the same memory constraints.

Experimental Results

In nearly every clinical task evaluated, the uncased model ($BERT_U$) or the ICE model ($BERT_I$) outperformed the standard cased model ($BERT_C$).

Performance of Cased, Uncased, and ICE models across clinical benchmarks including MedNLI and i2b2.

For instance, on MedNLI, $BERT_U$ achieved an accuracy of 83.33 compared to $BERT_C$’s 81.29. The results challenge the "NER Myth" in medicine; because clinical casing is inconsistent, models learn to rely more on medical context than on surface-level capitalization.

Robustness and Conclusion

The study also highlighted the brittleness of cased models through adversarial testing. When evaluation data was converted to all-uppercase, $BERT_C$ performance on i2b2 2006 dropped by over 38 percentage points. In contrast, the ICE model ($BERT_I$) remained stable, proving it successfully decoupled semantic meaning from surface-level casing.

Ultimately, uncased models and the ICE approach provide a more robust and efficient framework for clinical NLP, offering the "best of both worlds" by retaining case information without sacrificing performance or computational efficiency.

Summary updated

BibTeX
@inproceedings{paik2025effectiveness,
  author = {Cory Paik and Katharina von der Wense},
  title = {{The Effectiveness of Uncased Tokeniziaion for Clinical Notes}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-acl.775},
}
Figure