Abstract
Abstract
How do we encode numeric values in transformer-based sequence processing, particularly in electronic health record (EHR) data? We systematically compare discrete, continuous, and hybrid value encoding strategies using synthetic arithmetic tasks embedded within real-world EHR data, as well as real-world clinical prediction tasks. Our study reveals trade-offs between numeric precision, optimisation stability, and architectural flexibility. We find that approaches that explicitly model value-concept interactions perform best on precision-sensitive arithmetic tasks when architectural constraints permit. Hybrid token-based approaches that retain numeric values but apply binning prior to projection provide a more robust and broadly applicable alternative, with the optimal number of bins following a simple empirically derived power-law in dataset size. Across tasks, models consistently exhibit reliable "good enough" numeric computation rather than exact arithmetic, while clinical gains from incorporating laboratory values are task-dependent. This suggests that robustness and deployability often outweigh maximal numeric precision in practice, motivating hybrid token-based approaches as a practical default.
Direct answer
What can I do from this paper page?
Use this page to scan "How Should Transformers Encode Numeric Values in Electronic Health Records?" quickly: start with the summary and abstract, then check the authors, source, topics, and related papers. From here, open Scollr to follow Machine Learning in Healthcare research, save the paper, or map adjacent work.
Research areas
Follow related topics
Citation
BibTeX
@article{Igel2026Should,
title = {How Should Transformers Encode Numeric Values in Electronic Health Records?},
author = {Christian Igel and Mikkel Odgaard and Martin Sillesen and Mads Nielsen and Melodee Montgomery},
journal = {arXiv (Cornell University)},
year = {2026},
doi = {10.48550/arxiv.2607.01391},
url = {https://doi.org/10.48550/arxiv.2607.01391}
}
FAQ
Using this paper in a discovery workflow
How do I find related work for this paper?
Use the related papers and topic links on this page as starting points. In Scollr, you can also open the paper and build a literature map around its references, citing papers, and related work.
How can I keep up with new Machine Learning in Healthcare research papers?
Follow Machine Learning in Healthcare research in Scollr. New papers from the topic flow into a personalized feed, and you can save useful studies to revisit later.
Can I cite this paper from this page?
This page includes a static BibTeX block for How Should Transformers Encode Numeric Values in Electronic Health Records?. Always verify the DOI, source, and publication details against the publisher record before submitting a manuscript.
Follow this research in Scollr
Follow the topics and authors behind this paper, save useful studies, and build a literature map when you are ready to go deeper.
Get the app