---
title: "How Should Transformers Encode Numeric Values in Electronic Health Records? — Stuff That Spins"
description: "arXiv:2607.01391v1 Announce Type: new 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 embedd…"
	canonical: "https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records"
html: "https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records"
json: "https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records.json"
markdown: "https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records.md"
keywords: ["SpinGraph", "spin analysis", "GEO"]
date: "2026-07-03T04:00:00+00:00"
modified: "2026-07-03T04:00:55.269081+00:00"
json_ld: |
  {"@context":"https://schema.org","@graph":[{"@type":"NewsArticle","@id":"https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records#article","headline":"How Should Transformers Encode Numeric Values in Electronic Health Records?","description":"arXiv:2607.01391v1 Announce Type: new 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 embedd…","datePublished":"2026-07-03T04:00:00+00:00","dateModified":"2026-07-03T04:00:55.269081+00:00","url":"https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records","mainEntityOfPage":{"@type":"WebPage","@id":"https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records"},"isAccessibleForFree":true,"inLanguage":"en-US","articleSection":"research","author":{"@type":"Organization","name":"Stuff That Spins"},"publisher":{"@id":"https://stuffthatspins.com/#organization"},"citation":"https://arxiv.org/abs/2607.01391","about":[],"mentions":[]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Stuff That Spins","item":"https://stuffthatspins.com/"},{"@type":"ListItem","position":2,"name":"How Should Transformers Encode Numeric Values in Electronic Health Records?","item":"https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records"}]}]}
---

# How Should Transformers Encode Numeric Values in Electronic Health Records?

**Source:** Unknown  
**Published:** July 3, 2026  
**Original:** https://arxiv.org/abs/2607.01391  

---
*HTML version: https://stuffthatspins.com/spin/how-should-transformers-encode-numeric-values-in-electronic-health-records*
