potentialpaper

SMI: Ontology-Grounded Semantic IDs for Hierarchy-Aware Medical Concept Representation

Ziyang Song, Lia Shen, YIXUAN LI, Qincheng Lu, Weihao Li, Haoran Xu, He Zhu, Xinyu Wang, Yue Li

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. SMI is a training-free framework that turns expert-defined medical ontology paths into Semantic IDs for hierarchy-aware medical concept representations, improving clinical relation prediction and downstream EHR tasks, especially for rare codes.

Abstract. Biomedical language models (LMs) provide strong representations for clinical tasks, but they often fail to capture the hierarchical structure among medical concepts. This limitation is especially pronounced for rare and fine-grained clinical codes in long-tailed vocabularies, where hierarchy-agnostic LM representations become less informative as concept frequency decreases. We introduce Semantic Medical Identifier (SMI), a training-free framework for constructing ontology-grounded Semantic IDs and hierarchy-aware medical concept representations. For each diagnosis, procedure, or medication concept, SMI defines its Semantic ID as the coarse-to-fine path through an expert-defined medical ontology. SMI then aggregates frozen biomedical LM embeddings across the corresponding ontology levels to form hierarchy-aware medical concept representations that preserve coarse-to-fine clinical semantics. The base SMI uses uniform aggregation across ontology levels, while a level-weighted variant selects global level weights on validation data. Our theoretical analysis shows that SMI yields more informative medical concept representations than hierarchy-agnostic LM embeddings, particularly for rare and fine-grained clinical concepts. Experiments show that SMI captures meaningful hierarchical structure and improves clinical relation prediction. On MIMIC-IV, SMI improves mortality prediction, readmission prediction, drug recommendation, and rare drug prediction. On eICU, SMI yields more robust patient representations under cross-hospital distribution shift. The code is available on https://github.com/ZiyangS/SMI.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
23 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper presents a method that enhances LMs with medical ontologies using hierarchy-aware concept embeddings. The authors also performed a theoretical analysis of the method showing that their approach attains “a strictly higher signal-to-noise ratio than hierarchy-agnostic LM embeddings”.

The reviewers agreed on the importance of the problem addressed, appreciating the ease-of-use of the method and that it is post-doc. The showcasing of limitations of Los like BioBERT to produce clinically-informed embeddings is also a plus.

Several issues were also raised, most notably that of the limited novelty of the work and that the theoretical analysis relies on strong assumptions and oversimplifications.

In addition to the above, the authors should also addressed the following:

Q1. Is it possible to compare against a graph neural model or path encoder that uses the same frozen LM text embeddings as node features, to isolate the benefit of the proposed aggregation rule?

Q2. What is the pretrained LM encoder and the downstream predictors used by SMI?

Q3. Is is possible to address the issue pointed out by reviewer tjJs with respect to the use of one CCS code for each ICD-10-CM code?

Final justification

During the response period, the authors provided experiments against multiple baselines, including a GRU path encoder.

The main concerns expressed in the meta-review were mostly addressed, as acknowledged by the reviewers, who have all given the paper a score of 4 (borderline accept) at the end of the discussion.

There is still the concern of the method's simplicity and narrow scope (can only handle single-hierarchy ontologies where each leaf node has the same number of leaves).

Area Chair dLuf · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper presents a method that enhances LMs with medical ontologies using hierarchy-aware concept embeddings. The authors also performed a theoretical analysis of the method showing that their approach attains “a strictly higher signal-to-noise ratio than hierarchy-agnostic LM embeddings”.

The reviewers agreed on the importance of the problem addressed, appreciating the ease-of-use of the method and that it is post-doc. The showcasing of limitations of Los like BioBERT to produce clinically-informed embeddings is also a plus.

Several issues were also raised, most notably that of the limited novelty of the work and that the theoretical analysis relies on strong assumptions and oversimplifications.

In addition to the above, the authors should also addressed the following:

Q1. Is it possible to compare against a graph neural model or path encoder that uses the same frozen LM text embeddings as node features, to isolate the benefit of the proposed aggregation rule?

Q2. What is the pretrained LM encoder and the downstream predictors used by SMI?

Q3. Is is possible to address the issue pointed out by reviewer tjJs with respect to the use of one CCS code for each ICD-10-CM code?

Final justification

During the response period, the authors provided experiments against multiple baselines, including a GRU path encoder.

The main concerns expressed in the meta-review were mostly addressed, as acknowledged by the reviewers, who have all given the paper a score of 4 (borderline accept) at the end of the discussion.

There is still the concern of the method's simplicity and narrow scope (can only handle single-hierarchy ontologies where each leaf node has the same number of leaves).

1 comment
Authors · CommentOpenReview ↗

Thanks for summarizing the discussion. We appreciate the reviewers’ shared recognition that SMI addresses an important clinical representation problem through a simple, training-free, and easy-to-implement framework, supported by broad empirical evaluation on real-world EHR tasks. Following our clarifications and additional experiments, all three reviewers have updated their ratings to 4. We briefly address the three questions below.

Q1: We compared SMI against a GRU path encoder and multiple aggregation baselines, showing that SMI-W consistently outperforms them or achieves comparable results.

Q2: SMI uses BioBERT as the frozen biomedical LM encoder. Clinical code embeddings are mean-pooled to obtain patient representations, followed by MLP layers for various clinical prediction tasks.

Q3: In response to reviewer tjJs’s concern, we clarify that we use the mutually exclusive AHRQ CCS mapping rather than the multi-label CCSR mapping. Therefore, each ICD-10-CM code has a unique CCS code and follows a unique ontology path.

We will incorporate these clarifications, experiments, and implementation details into the revised manuscript.

Reviewer tjJsOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The study presents SMI, a hierarchy-aware embedding method that can use any language model without retraining.

The method uses hierarchies, with each node in the hierarchy having a textual description. SMI encodes each textual description into token embeddings and averages the token embeddings for each description. This results in one embedding per node in the hierarchy. Finally, to compute a hierarchy-aware embedding, SMI computes the average of a node's embedding and all its parents.

The authors present a proof that SMI increases the signal-to-noise ratio of rare concepts. Their proof assumes that rare concepts have more random noise in the embeddings than common concepts. Based on this assumption, they show that SMI increases the signal-to-noise ratio.

They evaluate SMI on synthetic and real-world tasks. They show that, compared to other embedding approaches, SMI embeddings better predict clinical relations between concepts and are better aligned with ICD chapters. They also show that SMI embeddings outperform other embedding methods when used for clinical tasks such as mortality and readmission prediction, drug recommendation, and rare drug prediction.

Finally, they train a VAE on patient embeddings from one hospital and measure the distribution shift on patient embeddings from different hospitals. They show that SMI embeddings generally exhibit smaller distributional shifts than BioBERT embeddings.

Strengths and weaknesses

The study presents an easy-to-implement method that yields strong results on real-world EHR benchmarks.

While they conducted extensive experiments, not all the methods have been sufficiently described. For instance, it is unclear how mortality, readmission, and drug prediction were performed from the patient-level embeddings. Because they have not released the code and do not provide the hyperparameters used in their experiments, it would not be possible to reproduce their results.

Many of their experiments relied on a modified ICD-10-CM hierarchy. They used CCS codes -> ICD integer -> full ICD codes. Using CCS makes sense since the ICD-10-CM hierarchy is flawed. Different types of sepsis can be located in completely different parts of the hierarchy depending on the context. For instance: P36.9: Bacterial sepsis of newborn, unspecified; T81.44: Sepsis following a procedure; A41.89: Other specified sepsis. These all describe sepsis, but if looking at the ICD-10-CM hierarchy, we would think they are unrelated. CCS solves this by tagging each ICD-10-CM code with multiple categories, so that each code has a sepsis CCS code in addition to other CCS codes for other contexts. Using only one CCS code for each ICD-10-CM code, as this study did, does not make sense. It loses the whole point of CCS. How do you choose which CCS code to use for each concept?

This issue is even apparent in Figure 2a. The figure shows that the parent of E10 and E11 is the CCS code "Diabetes Mellitus with Complication". However, you have codes such as "E11.9: Type 2 diabetes mellitus without complications" which contradicts the parent CCS code. E11.9 actually has the CCS code "Diabetes mellitus without complication". It seems that the hierarchy was incorrectly constructed.

I'm less worried about the ACT and ICD-10-PCS hierarchies as these are more robust.

This also highlights a weakness with SMI; it cannot model ontologies with multiple hierarchies, such as SNOMED CT and ICD-11. While they mention in the conclusion that they will, in future work, jointly integrate multiple ontologies within a unified SMI framework, they do not discuss single ontologies with multiple hierarchies. This should have been mentioned as a limitation of the current method.

In the proof, they assume that embeddings of rare concepts will have more random noise than common concepts. This could be more precise. I suspect that the issue is not rare concepts, but concepts that comprise rare terms in their textual description. The LMs are pre-trained to predict sub-words, not medical codes. The LMs are therefore struggling with encoding rare sub-words, not concepts. While this often correlates, it is not the same. An ICD-10-CM code can be rare, but contain common words. For instance, there are thousands of ICD-10-CM codes that represent fractures. Each is rare because they are extremely specific. For example: M84.311G Stress fracture, left foot, subsequent encounter for fracture with delayed healing. While this code is rare (since it is so specific), the individual words are common. I would suspect that an LM would encode this concept well, despite the code being rare.

I also think that it is a strong assumption that the noise is random. I would expect a bias rather than random noise. I would have liked an experiment to back up the assumption.

Because of the lack of information to reproduce the experiments, the poor ICD-10-CM hierarchy, and the limitation of SMI to one hierarchy, I recommend rejecting this paper.

Questions
  1. It is unclear to me how you performed mortality, readmission, and drug prediction from the patient-level embeddings. Is it simply a linear layer on top of the embedding?
  2. In ∑W=L\sum W = L, why do you sum to L instead of to 1?
  3. Why do you use CCS for ICD-10-PCS? Isn't the hierarchy already well structured?
Limitations

They should have discussed the limitation of the method not handling multiple hierarchies.

Final justification

Thanks to the authors detailed respons, I have more confidence in their results. I do, however, believe that their method is too specific for a conference as NeurIPS. It can only handle single-hierarchies ontologies where each leaf has the same number of levels.

I change my overall score to 4.

Formatting concerns

N/A

6 comments
Authors · CommentOpenReview ↗

Thank you for your constructive suggestions. We address each concern individually in the responses (R) below.

R for W1/Q1: Concern about downstream-task implementation and reproducibility: We will clarify the complete downstream prediction pipeline and provide the implementation for reproducibility. As described in Section 4.4, clinical code embeddings are mean-pooled to construct patient-level representations, which are then used for downstream prediction tasks. Mortality and readmission use a linear binary classification head, while drug recommendation uses a linear multi-label prediction head. We will add key hyperparameters and implementation details to Appendix D.1 and release the preprocessing, training, and evaluation code upon publication.

R for W2: Concern about multiple CCS mappings and the unique-path construction: To clarify the concern that an ICD-10-CM code may map to multiple clinical categories, our hierarchy uses the mutually exclusive AHRQ CCS mapping rather than the multi-label CCSR mapping. Therefore, each ICD-10-CM code is assigned to a single CCS category and follows a unique ontology path. The multi-category setting applies to CCSR. We will specify the CCS version and mapping procedure more clearly and state that each code has one designated path rather than multi-parent relations.

R for W3: Concern about the E11 hierarchy: We clarify that the hierarchy does not assign all E11 subcodes to a single CCS category. The same integer-level ICD prefix can appear under different CCS parents, depending on the CCS category of the full ICD code. For example, E11.9 ("T2DM without complications") follows CCS 49 ("DM without complication") -> E11 -> E11.9, whereas E11.2 ("T2DM with kidney complications") follows CCS 50 ("DM with complication") -> E11 -> E11.2. Thus, the same ICD prefix can appear under different CCS categories, and each full ICD code retains its unique ontology path. Figure 2 shows only the E11.2 path, and the abbreviated label ``E11'' may have caused confusion. We will revise the label and clarify the hierarchy construction with more details.

R for W4: Concern about code frequency as a proxy for embedding quality: We use code frequency to characterize the long-tail regime, while the frequency of terms or subwords in code descriptions may also affect LM embedding quality. Prior work reports degraded contextualized representations for rare terms [1,2]. Consistently, Fig. 1b shows lower BioBERT hierarchy-prediction accuracy for less frequent clinical codes, while Appendix B.1 derives the inverse-frequency variance model under an empirical-estimation setting. We will clarify that subword frequency may also affect representation uncertainty, while code frequency serves as an empirical indicator of the long-tail regime.

[1] Rare Words: A Major Problem for Contextualized Embeddings*, AAAI 2020.

[2] BERTRAM: Improved Word Embeddings Have Big Impact on Contextualized Model Performance. ACL. 2020.

R for W5: Concern about the random-noise assumption: The Gaussian assumption is used to show that, in high dimensions, the noise magnitude remains close to its expected scale (Lemma B.3). This property also holds for independent sub-Gaussian noise [3], so Theorem 3.3’s low-SNR argument is not limited to Gaussian noise. Fig. 1b further confirms the predicted performance degradation for rare codes.

[3] Hanson-Wright Inequality and Sub-Gaussian Concentration. Electronic Communications in Probability. 2013.

R for Q1: See W1.

R for Q2: We set ∑ℓ=1Lwℓ=L\sum_{\ell=1}^{L} w_\ell=L so that uniform weights (wℓ=1w_\ell=1) recover the original SMI in Eq.~(3) exactly. Normalizing the weights to sum to one would produce the same relative weighting but scale the resulting embedding by 1/L1/L. As shown in Appendix B.5, pairwise SNR is invariant to such positive rescaling, so normalizing the weights to sum to 1 or L is equivalent for our analysis.

R for Q3: ICD-10-PCS is structurally well defined, but its seven characters represent multiple procedure axes rather than a coarse-to-fine clinical taxonomy. We retain its native structure through the three-character prefix (Section--Body System--Root Operation) and the full seven-character code. CCS provides complementary and clinically meaningful higher-level groupings, which form the major-category, subcategory, and CCS levels in our hierarchy. We will clarify the rationale of using CCS for ICD-PCS ontology in the revised version.

Reviewer tjJs · CommentOpenReview ↗

Thank you for your reply.

W1: Thank you.

W2+W3: I wasn't aware of the mutually exclusive AHRQ CCS mapping. It improves my confidence in the results that you used this, and the figure was imprecise. That being said, it is still a limitation that your method cannot handle multi hierarchy systems such as SNOMED CT and the multi-category version of CCSR. That is a limitation I believe should be mentioned in the paper.

W4: Here I strongly disagree. BioBERT was trained on PubMed and PMC articles, not medical coding. A medical code can describe something common, yet be rare in the evaluation dataset. There are 3 000 fracture codes. Each describing a specific location and manifestation of a fracture. Because they are so specific, they are rare. However, patients having fractures are common and I believe that terms describing fractures are also common in PubMed articles. I agree there is a correlation between rare codes and rare terms, but it is definitely not the same, and I am not convinced that SMI solved it.

So your claim is that SMI better encodes information about rare codes. I assume such that you can use these embeddings for all types of clinical tasks. Figure 1 isn't very informative for this. You are predicting whether a node is a child of another node in the hierarchy. With SMI, this is easy. The embedding for a child node is c=a+bc=a+b, where a is the text embedding of the parent node, and b is the text embedding for the child node. When you compute the dot product between the child node and the parent node, you get c⋅b=a⋅a+a⋅bc \cdot b = a \cdot a + a \cdot b. So by design, SMI will get a higher dot product if one is the child of the other. This is not bad, it just mean that Figure 1 is not showing that SMI is better at representing rare codes for other tasks. Figure 3 is also not very surprising. Of cource it will cluster around the parent nodes when the dot products get boosted for concepts that share parents. I am much more interested in Table 2, which evaluates SMI on real clinical tasks, not how well dot products between SMI embeddings predict the hierarchy. It worries me that your ablation studies are performed on the dot product tasks, and not on real world data.

I am not convinced that Table 2 show that SMI improves the results because it better presents rare codes. I suspect you would get similar performance, simply by using a parent node as the input. I would be more convinced if you show a ablation study that you presented to reviewer 2rz4, but on the data from Table 2.

W5: My concern is that the issues introduced by rare terms could introduce systemic bias rather than noise. Bias will not be removed by averaging. For instance, the vector for rare terms could have a smaller norm than common terms, thus result in lower dot products. This would not be solved simply by averaging.

Q2: Thanks. It means that SMI would be sensitive to hierarchies where each code can be at different depths (such as for ICD-10). However, averaging to 1 would also have that issue.

Q3: Thank you

Authors · CommentOpenReview ↗

Response for the W2+W3: We will explicitly add this limitation in the Conclusion section and clarify that extending SMI to aggregate multiple ontology paths, such as CCSR, is an important direction for future work.

Response for W4: We divide this concern into three components.

(1) Code Frequency and Representation Quality: We agree that code frequency and the frequency of terms / subwords in code descriptions are not the same. We use code frequency to characterize the long-tail clinical code distribution, while we agree that term and subword frequency may also affect LM representation quality. Even when individual terms are common, their fine-grained clinical composition and ontology relations may not be fully captured by BioBERT. Figure 1b is used only to show the empirical association between lower code frequency and degraded BioBERT hierarchy prediction. Table 2 further shows that BioBERT performs poorly on rare-drug prediction. Thus, regardless of the specific source of representation uncertainty, SMI consistently improves over BioBERT in both settings.

We will add the reviewer’s observation that term and subword frequency may also affect representation quality and clarify that code frequency characterizes the long-tail clinical code distribution rather than serving as its sole explanation.

(2) Cross-Hierarchy Generalization to PheCode: We recognize that the ICD relation task in Table~1 uses the same CCS/ICD hierarchy employed to construct SMI, so explicit coarse-to-fine aggregation can directly benefit this evaluation. To address this concern, We conduct relation prediction on an unseen PheCode hierarchy using SMI embeddings constructed solely from the CCS/ICD hierarchy, with no PheCode information used in their construction.

We evaluate ICD codes at the one-decimal PheCode level (e.g., 250.1) by rolling more specific two-decimal PheCodes up to their one-decimal parents (e.g. 250.12→250.1). Codes sharing the same one-decimal PheCode form positive pairs (e.g., both assigned to 250.1), while codes assigned to different one-decimal PheCodes under the same integer-level PheCode form hard-negative pairs (e.g., 250.1 versus 250.2). We compare embeddings using cosine similarity and the same threshold-selection protocol as the original relation-prediction experiments. SMI outperforms BioBERT on the unseen PheCode hierarchy. This shows that SMI does more than encode the CCS ancestors included in its construction; it captures clinically meaningful hierarchical relations that generalize to a different hierarchy.

CCS/ICD→PheCode Precision Recall F-score
SMI 82.3 71.5 76.5
BioBERT 76.8 64.1 69.9

(3) Aggregation Ablation on Clinical Prediction Tasks: Following your suggestion, we conduct controlled ablations of alternative aggregation variants on the clinical prediction tasks in Table 2. The SMI (i.e., full-path method) consistently outperforms parent-leaf and ancestor-only averaging, while SMI-W further improves performance. This shows that the downstream gains are not explained by simply replacing rare-code representations with parent information.

Task Mortality Drug
Metrics AUPRC AUROC AUPRC F-score Jaccard
Leaf only (BioBERT) 43.2 86.1 73.9 60.3 44.5
Parent–leaf averaging 44.0 86.9 74.4 61.1 45.8
Ancestor-only averaging 42.6 84.7 72.7 59.2 42.8
SMI 44.5 87.4 75.6 62.4 48.6
SMI-W 45.1 88.0 77.6 65.3 50.5

Response for W5: Throughout our study, similarity between code embeddings is computed using cosine similarity, which is invariant to embedding norms. Therefore, smaller norms for rare code embeddings may not explain SMI’s improvement over BioBERT.

Response for Q2: For the concern "different depths (such as for ICD-10)", this issue does not arise in our experiments because all diagnosis, procedure, and medication ontologies are standardized to five levels. For ICD diagnosis code, we use a fixed five-level hierarchy: Major category → Sub-category → CCS code → ICD-CM code (integer) → ICD-CM code (decimal). Although ICD-CM codes may contain different numbers of characters after the decimal point, they are all represented at the same fifth level.

Reviewer qdWpOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes integration of hierarchical knowledge of clinical terms in the embeddings produced by Biomedical language models. The paper shows that the language models like BioBERT, which are trained on text corpus, produce embeddings that lack clinical information, especially pertaining to hierarchical relations among clinical terms. The paper proposes a post-hoc approach to make the embeddings informative by aggregating the embeddings produced by a pretrained language model according to the considered hierarchy. The proposed approach, SMI, uses ICD and ATC to construct a five-level hierarchy tree, and at each level, the embeddings of current and ancestors are aggregated to produce the modified embeddings. Experiments on public (MIMIC-IV) and private electronic health records show the benefit of incorporating clinical taxonomies into the embeddings for downstream tasks like mortality, readmission, and drug recommendation.

Strengths and weaknesses

Strength

  • The paper explains the proposed approach properly. It highlights the limitations of LMs like BioBERT in hierarchical understanding of clinical concepts and builds a solution on top.
  • The approach is post-hoc and training-free. It is simple and effective.
  • The experiments are well-designed and show the benefit of SMI representation in relation prediction and other considered downstream tasks.

Weaknesses

  • The contribution is incremental. The idea of aligning representation space with the predefined taxonomies had been explored well in previous works in different domains. The only thing that differentiates the proposed approach is the aggregation of multi-level embeddings.
  • Assumption 3.1 is too strong. As this is the basis for the theoretical analysis presented in the paper, it should have been supported with empirical evidence or better justified. The assumption may even be invalid for baselines like HiTs or OnT.
  • Many details are missing from the paper. The paper does not specify which pretrained LM encoder SMI uses. Also, the details on the downstream predictors are missing.
  • The experiments should have also included the effect of different pretrained LMs on SMI outputs.
Questions
  • In Table 2, HiTs and OnT have mostly lower performance as compared to BioBERT, even though those are models with hierarchical knowledge. Does this not contradict with the motivation presented in the Introduction using BioBERT’s example?
  • What is the impact of using different pretrained LMs for SMI? Does the aggregation benefit over the LMs already trained to follow the clinical taxonomy?
  • How does aggregation help in achieving the cross-site robustness?
Limitations

I do not see any potential societal impact. In terms of the paper, many details are missing. For other limitations please see the weaknesses.

Final justification

I maintain my original score of borderline accept. This is based on the rebuttal and comments of the other reviewers. The additional experiments performed by the authors increase confidence on the results reported in the original paper. The paper shows empirical benefits however the contribution still appears incremental. Moreover the generalisability of the proposed approach beyond the considered application domain is also limited.

Formatting concerns

None

1 comment
Authors · CommentOpenReview ↗

Thank you for your constructive suggestions. We address each concern individually in the responses (R) below.

R for W1: SMI's novelty lies in a training-free, task-agnostic framework that aggregates frozen biomedical LM embeddings along expert-defined ontology paths to construct reusable coarse-to-fine medical concept representations. Prior ontology-aware approaches typically require training an explicit ontology encoder or a task-specific prediction model. In contrast, SMI provides a simple and effective alternative without structure-aware or downstream-task training, enabling reuse across relation prediction, clinical prediction, and cross-site analysis. We will revise our manuscript to emphasize this distinction more clearly.

R for W2:Assumption 3.1 is supported by prior work, our empirical frequency-stratified results, and the variance analysis in Appendix~B.1. Prior work shows that contextualized embedding quality degrades for rare concepts [1,2]. Our results in Figure.1b shows that LM relation prediction decreases as code frequency declines. Appendix B.1 further justifies the inverse-frequency variance scaling under an empirical-estimation model. We will clarify that Assumption 3.1 is grounded in prior research and our empirical frequency-stratified results, and more clearly summarize the inverse-frequency variance derivation from Appendix B.1.

[1] Rare words: A major problem for contextualized embeddings and how to fix it by attentive mimicking. AAAI. 2020.

[2] BERTRAM: Improved Word Embeddings Have Big Impact on Contextualized Model Performance. ACL. 2020.

R for W3: SMI uses BioBERT as the frozen biomedical LM encoder in all main experiments, with its input construction described in Appendix~D.3. We will make the backbone choice explicit in the main text and add further details on the downstream predictors for clarity.

R for W4 and Q2: SMI generalizes beyond BioBERT and consistently improves biomedical LM backbones. To assess backbone sensitivity, we apply SMI to SapBERT on the same relation prediction tasks. SapBERT is a biomedical encoder enhanced through UMLS synonym alignment, yet SMI further improves its F-score by 3.2, 2.4, and 5.3% on the three tasks, respectively. These results show that SMI’s gains arise from explicit coarse-to-fine ontology aggregation rather than a specific pretrained LM.

Method ICD ATC ICD→ATC
BioBERT 44.2 48.1 50.9
SMI (BioBERT) 69.2 74.9 57.0
SapBERT 67.1 74.5 52.9
SMI (SapBERT) 70.3 76.9 58.2

R for Q1: Our experiment results show that hierarchy encoding alone does not This does not contradict our motivation: hierarchy encoding alone is not sufficient for patient-level clinical prediction. HiTs and OnT perform well on hierarchy relation prediction in Table~1, confirming that their structure-aware training captures ontology structure. However, Table 2 evaluates patient-level clinical prediction, which also requires domain-specific clinical semantics. HiTs and OnT use general-purpose Sentence-BERT and MiniLM backbones, respectively, whereas SMI builds on BioBERT and leverages richer clinical semantics for patient-level prediction. We will clarify this finding and discuss the explanation in the revised manuscript.

R for Q3: SMI improves cross-site robustness by reducing dependence on hospital-specific variation in infrequent, fine-grained codes. Code frequencies and usage patterns can vary across hospitals, whereas ancestor-level semantics are more stable and broadly shared. By aggregating coarse-to-fine ontology information, SMI anchors fine-grained representations to these common ancestor semantics, producing more consistent and robust patient representations across sites, as demonstrated by the cross-site distribution analysis on eICU.

Reviewer 2rz4OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Semantic Medical ID (SMI), a training-free framework for constructing hierarchy-aware representations of clinical concepts. Instead of representing each diagnosis, procedure, or medication only through its own textual description, SMI follows the concept's path in an expert-defined ontology and aggregates frozen biomedical language-model embeddings from coarse to fine levels. The paper also introduces a weighted variant, SMI-W, and provides a signal-to-noise style analysis arguing that ancestor-level semantics can stabilize representations for rare fine-grained clinical codes. Experiments on ICD/ATC relation prediction, MIMIC-IV clinical prediction tasks, rare drug prediction, and eICU cross-hospital shift suggest that SMI improves hierarchy preservation and downstream robustness over several embedding and clinical baselines.

Strengths and weaknesses

Strengths And Weaknesses The main strength of the paper is that it addresses a real and important clinical representation problem: medical codes are long-tailed, hierarchical, and often poorly represented by language models trained mostly from text descriptions and observed usage. The proposed method is simple, easy to deploy, and well matched to the structure of clinical coding systems. The empirical section is fairly broad: the authors evaluate relation prediction, downstream patient prediction, rare drug prediction, and cross-hospital distribution shift. The inclusion of both uniform and weighted hierarchy aggregation, along with comparisons to BioBERT, SapBERT, graph/ontology methods, and clinical baselines, makes the empirical story reasonably convincing.

The paper is also generally clear. The figures communicate the method well, and the relation-prediction and downstream results are easy to interpret. The paper is honest about some deployment limitations, especially the need to map local coding systems into validated ontologies.

The main weakness is originality. SMI is essentially an aggregation of frozen language-model embeddings along a known ontology path. This is useful and practical, but conceptually close to prior ontology-aware embedding and graph-augmented representation work. The paper would be stronger if it more sharply separated what is new from existing ontology/path aggregation methods and if it included stronger ablations on alternative aggregation choices, such as ancestor-only, leaf-plus-parent, learned attention over levels, or graph neural encoders trained with the same frozen text features.

The theoretical analysis is directionally plausible but rests on simplifying assumptions about frequency-dependent noise, semantic decomposition, and independence that are not fully validated. The theory helps motivate the method but should not be overinterpreted as a rigorous explanation of all empirical gains. Finally, the downstream gains, while consistent, are often moderate; the strongest improvements appear in hierarchy-sensitive or rare-code settings, which should be emphasized as the likely scope of benefit.

Questions
  1. How does SMI compare to simpler hierarchy baselines such as concatenating or averaging only parent and leaf embeddings, ancestor-only embeddings, or a learned attention over ontology levels?
  2. Are the gains mainly due to injecting ancestor semantics, or due to smoothing rare-code embeddings? Can the authors provide performance broken down by code frequency and hierarchy depth for all downstream tasks?
  3. How sensitive is SMI-W to the validation set and to the chosen ontology granularity? Would the same learned level weights transfer across hospitals or datasets?
  4. Can the authors compare against a graph neural model or path encoder that uses the same frozen LM text embeddings as node features, to isolate the benefit of the proposed aggregation rule?
  5. What happens when ontology paths are noisy, incomplete, or institution-specific? A robustness analysis with perturbed or partially missing hierarchy edges would help assess practical deployment.
Limitations

The authors discuss some limitations around dependence on expert-defined coding systems and the need for mapping/validation when applying SMI to emerging disease classifications or local coding standards. This is useful. I would like the paper to more explicitly discuss the risk that incorrect ontology mappings could propagate systematic clinical errors, and to provide more detail on whether patient-level tasks were evaluated under sufficiently strict temporal and hospital-level splits to prevent optimistic estimates.

Final justification

After considering the rebuttal and discussion, I maintain my overall recommendation of 4. The authors' response resolves several empirical concerns: the added comparisons against leaf-only, parent-leaf averaging, and ancestor-only averaging support the value of using the complete coarse-to-fine ontology path; the validation-split analysis reduces concern about SMI-W sensitivity; the GRU path-encoder comparison suggests that simple level weighting is competitive with a task-trained path encoder; and the clarification on patient-level/temporal splits addresses my concern about leakage. However, some important concerns remain. Under the authors' reported General contribution type, I still view the core method as relatively simple and incremental: it aggregates frozen LM embeddings along expert-defined ontology paths, and the evidence for broader general hierarchy-aware representation learning is still mostly limited to validated medical coding ontologies. The theoretical analysis is better contextualized by the rebuttal, but it remains dependent on simplifying assumptions and mainly serves as motivation rather than a strong independent contribution. Overall, the rebuttal improves my assessment of the empirical support and reduces several concerns, but not enough to move the paper clearly above the borderline-accept threshold. My remaining reservations are mainly about originality and generality under the General criteria, while I acknowledge that the method is practical, clear, and useful in the evaluated medical-code setting.

Formatting concerns

No major formatting concerns noticed.

2 comments
Authors · CommentOpenReview ↗

Thank you for your constructive suggestions. We address each concern individually in the responses (R) below.

R for Weakness about originality: SMI's novelty lies in a training-free, task-agnostic framework that aggregates frozen biomedical LM embeddings along expert-defined ontology paths to construct reusable coarse-to-fine medical concept representations. Prior ontology-aware approaches typically require training an explicit ontology encoder or a task-specific prediction model.

R for Weakness about theoretical analysis: We agree that the scope of the theoretical analysis should be stated more explicitly. The analysis provides a principled explanation of how higher-frequency ancestor semantics improve rare-code representations under the stated assumptions.

Importantly, these assumptions are not arbitrary: the frequency-dependent noise assumption is motivated by prior findings that embedding quality degrades for rare concepts (line 124), while Appendix B.6 provides empirical support for the hierarchical semantic decomposition through offset-consistency analysis.

R for Q1: To address this concern, we compare SMi against leaf-only (i.e.,BioBERT only), parent-leaf averaging, ancestor-only averaging. SMI consistently outperforms the simpler aggregation baselines, while SMI-W further improves performance through level weights. This shows that SMI's gains come from integrating the complete coarse-to-fine ontology path.

Method ICD ATC ICD→ATC
SMI 69.2 74.9 57.0
SMI-W 71.5 77.5 57.6
Leaf only (i.e., BioBERT) 43.4 48.1 52.9
Parent-leaf averaging 63.6 66.5 54.8
Ancestor-only averaging 59.3 62.6 54.1

R for Q2: SMI improves rare-code representations by using more informative, higher-frequency ancestor semantics. As formalized in Theorem 3.7 and Corollary 3.8, higher-frequency ancestors provide lower-variance semantic estimates; aggregating them improves the signal-to-noise ratio of infrequent fine-grained concepts while retaining leaf-level semantics.

Figure 1 evaluates 1-hop relation prediction across hierarchy levels and code frequency groups, showing that SMI achieves its largest gains at finer levels and low-frequency codes. Table 2 evaluates rare-drug prediction on 98 ATC codes with only 10-20 occurrences, where SMI-W outperforms baselines.

R for Q3: SMI-W is only mildly sensitive to validation set selection. We repeat SMI-W weight selection over five random validation splits, each containing 20% of the patients. Performance remains close to that obtained using the full validation set, preserving the overall conclusions.

Method Mortality AUPRC Mortality AUROC Drug AUPRC Drug F-score Drug Jaccard
Whole validation 45.1 88.0 77.6 65.3 50.5
Five validation splits 44.8 87.6 76.4 64.0 49.7

Ontology granularity is defined by the expert-curated ICD/CCS and ATC hierarchies rather than tuned on validation data. Our partial-path ablations in Q1 show that excluding intermediate or leaf levels consistently reduces performance, indicating that the complete coarse-to-fine hierarchy provides complementary semantic information.

Regarding level weight transferability, we do not assume that one set of SMI-W weights generalizes universally across hospitals or datasets, and our uniform SMI remains the default training-free option.

R for Q4: To isolate the aggregation rule, we add a task-trained GRU path encoder using the same BioBERT embeddings. SMI-W consistently outperforms or achieves comparable performance. This suggests that simple global level weighting is sufficient without task-specific training. We do not test GNN because our work already includes several graph-based baselines (e.g., GRAM, G-BERT).

Method Mortality AUPRC Mortality AUROC Drug AUPRC Drug F-score Drug Jaccard
SMI-W 45.1 88.0 77.6 65.3 50.5
GRU path encoder 45.3 87.3 77.1 64.7 50.0

R for Q5: SMI is designed for validated expert-curated ontologies rather than arbitrary noisy or learned hierarchy paths. Our experiments use ICD/CCS and ATC, where each concept has a fixed expert-defined path.

This deployment condition is already acknowledged in the Conclusion, which states that local coding standards may require additional ontology validation and code mapping.

R for Limitations: Our experimental design prevents both patient-level and temporal leakage. We split MIMIC-IV at the patient level, ensuring that all visits from each patient remain within a single training, validation, or test partition. Following the GraphCare protocol [1], visits are ordered chronologically, and only preceding visits are used to predict the target visit. Further details are provided in Appendix D.1.

[1] GraphCare: Enhancing Healthcare Predictions with Personalized Knowledge Graphs. ICLR. 2024.

Reviewer 2rz4 · CommentOpenReview ↗

Thank you for the detailed response. The additional ablations and clarifications are helpful, especially the comparisons against leaf-only, parent-leaf averaging, ancestor-only averaging, the validation-split sensitivity analysis for SMI-W, the GRU path encoder comparison, and the clarification about patient-level and temporal leakage. These additions address several of my empirical concerns and make the case for complete coarse-to-fine path aggregation stronger. However, I still view the core method as relatively simple and somewhat incremental under the authors' reported General contribution type. In particular, while the rebuttal supports the usefulness of SMI within validated medical coding ontologies, I remain less convinced that the paper establishes a broadly general hierarchy-aware representation-learning contribution beyond this domain. Therefore, I have updated the contribution type and revised my discussion to reflect the correct General criteria, but I am keeping my overall score at 4. My remaining concerns are mainly about originality and generality, rather than empirical validity within the evaluated medical-code setting.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…