[Paper Review] Generalist embedding models are better at short-context clinical semantic search than specialized embedding models
The paper benchmarks 19 embedding models (generalist and clinical) on short-context clinical semantic search using ICD-10-CM code descriptions reformulated by an LLM, finding generalist models outperform clinical ones in exact and near-exact retrieval.
The increasing use of tools and solutions based on Large Language Models (LLMs) for various tasks in the medical domain has become a prominent trend. Their use in this highly critical and sensitive domain has thus raised important questions about their robustness, especially in response to variations in input, and the reliability of the generated outputs. This study addresses these questions by constructing a textual dataset based on the ICD-10-CM code descriptions, widely used in US hospitals and containing many clinical terms, and their easily reproducible rephrasing. We then benchmarked existing embedding models, either generalist or specialized in the clinical domain, in a semantic search task where the goal was to correctly match the rephrased text to the original description. Our results showed that generalist models performed better than clinical models, suggesting that existing clinical specialized models are more sensitive to small changes in input that confuse them. The highlighted problem of specialized models may be due to the fact that they have not been trained on sufficient data, and in particular on datasets that are not diverse enough to have a reliable global language understanding, which is still necessary for accurate handling of medical documents.
Motivation & Objective
- Motivate robust evaluation of embedding models for medical semantic search amid input variations.
- Create a reproducible benchmark dataset of ICD-10-CM code descriptions and reformulations.
- Compare generalist and clinically specialized embedding models on a short-context retrieval task.
Proposed method
- Construct a dataset of 100 ICD-10-CM codes with 10 reformulations each (1000 items total).
- Embed all ICD-10-CM descriptions with each model and use reformulations as queries to retrieve the closest description via Euclidean distance.
- Evaluate retrieval with exact matching, category matching, and character error rate (CER) metrics, including total CER and incorrect CER.
- Include both generalist and clinical embedding models from HuggingFace, prioritizing CPU-free, freely accessible models.

Experimental results
Research questions
- RQ1Which embedding model types (generalist vs clinical) yield higher accuracy in short-context clinical semantic search?
- RQ2How does embedding vector size relate to performance in this task?
- RQ3Do generalist models maintain robustness to reformulations compared with specialized clinical models?
Key findings
- Generalist models achieved higher exact matching rates than clinical models, with the top generalist model jina-embeddings-v2-base-en reaching 84.0% exact matching.
- The best clinical model (ClinicalBERT) reached 64.4% exact matching, substantially lower than top generalists.
- In terms of incorrect CER, all-MiniLM-L12-v2 (a generalist) performed best among the incorrect cases, while the top generalist model overall was still superior on exact matching.
- Across metrics, there is a large performance gap favoring generalist models over clinically specialized ones for short-context ICD-10-CM code retrieval.
- The study notes that sentence-transformer-based generalists often outperform fully clinical models, highlighting the importance of training data breadth and the benefits of general language understanding.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.