Skip to main content
QUICK REVIEW

[Paper Review] Can Large Language Models abstract Medical Coded Language?

Simon A. Lee, Timothy Lindsey|arXiv (Cornell University)|Mar 16, 2024
Machine Learning in HealthcareComputer Science7 citations
TL;DR

The paper evaluates whether off-the-shelf and biomedical Large Language Models understand and can predict standard medical codes (ICD, CPT, NDC, LOINC) and finds current LLMs often hallucinate or fail to map codes to correct meanings, highlighting the need for better coded-language representations.

ABSTRACT

Large Language Models (LLMs) have become a pivotal research area, potentially making beneficial contributions in fields like healthcare where they can streamline automated billing and decision support. However, the frequent use of specialized coded languages like ICD-10, which are regularly updated and deviate from natural language formats, presents potential challenges for LLMs in creating accurate and meaningful latent representations. This raises concerns among healthcare professionals about potential inaccuracies or ``hallucinations" that could result in the direct impact of a patient. Therefore, this study evaluates whether large language models (LLMs) are aware of medical code ontologies and can accurately generate names from these codes. We assess the capabilities and limitations of both general and biomedical-specific generative models, such as GPT, LLaMA-2, and Meditron, focusing on their proficiency with domain-specific terminologies. While the results indicate that LLMs struggle with coded language, we offer insights on how to adapt these models to reason more effectively.

Motivation & Objective

  • Assess the capability of commercial and open-source LLMs to predict medical codes from coding systems (ICD, CPT, NDC, LOINC).
  • Investigate whether LLMs can map codes to their canonical medical naming, focusing on potential hallucinations.
  • Examine how data order, randomization, and adversarial codes affect model performance to reveal limitations in coded language understanding.
  • Explore whether biomedical-pretrained models perform better than general LLMs in learning coded medical terminology.

Proposed method

  • Test multiple LLMs (GPT-3.5, GPT-4, Claude-3, Gemini, LLaMA 2, Mistral, Meditron, MedLLama2) on predicting medical code meanings using 1000 codes from MIMIC data.
  • Three experiments of increasing difficulty: (i) predict diseases from a fixed ordered code list, (ii) predict from randomly ordered codes, (iii) adversarial attacks with fake codes to probe hallucinations.
  • Use both local (ollama) and API-based model deployments with non-internet-enabled evaluation.
  • Evaluate predictions by correctness of predicted labels and by the proportion of matched words after stopword/number removal (Equation 1) and binary adversarial detection.
  • Compare performance across ICD9/10 chapters and CPT/Lab/Disease groupings.

Experimental results

Research questions

  • RQ1Can LLMs identify the category (chapter) of a given medical code (ICD/CPT/LOINC/NDC)?
  • RQ2To what extent can LLMs map specific medical codes to their textual medical names?
  • RQ3Do random orderings or adversarial (fake) codes degrade LLM performance and reveal hallucinations?
  • RQ4Do models pretrained on medical data outperform general LLMs in learning coded language?

Key findings

  • LLMs show high accuracy predicting ICD9/10 chapter categories but struggle with non-chapter codes (e.g., specific diseases, procedures, labs).
  • GPT-4 and GPT-3.5 perform best among tested models for chapter prediction, while several models exhibit hallucinations when mapping codes to names.
  • Many models fail to ignore fake codes in adversarial tests; hallucinations persist across models, with some outputs being refuse-to-answer in certain prompts (Meditron).
  • Adversarial attacks reveal limited ability to detect fake codes; results largely resemble random guessing rather than true understanding.
  • Biomedically pre-trained models do not consistently outperform general-purpose LLMs in learning coded language, and some medical-pretraining models perform worse.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.