Skip to main content
QUICK REVIEW

[Paper Review] Information Extraction from Clinical Notes: Are We Ready to Switch to Large Language Models?

Yan Hu, Xu Zuo|arXiv (Cornell University)|Nov 15, 2024
Topic ModelingComputer Science7 citations
TL;DR

The paper compares instruction-tuned LLaMA-based large language models with BiomedBERT for clinical NER and RE across multi-institution datasets, showing LLMs can outperform BERT in low-resource and unseen settings but require substantially more resources and have slower throughput.

ABSTRACT

Backgrounds: Information extraction (IE) is critical in clinical natural language processing (NLP). While large language models (LLMs) excel on generative tasks, their performance on extractive tasks remains debated. Methods: We investigated Named Entity Recognition (NER) and Relation Extraction (RE) using 1,588 clinical notes from four sources (UT Physicians, MTSamples, MIMIC-III, and i2b2). We developed an annotated corpus covering 4 clinical entities and 16 modifiers, and compared instruction-tuned LLaMA-2 and LLaMA-3 against BERT in terms of performance, generalizability, computational resources, and throughput to BERT. Results: LLaMA models outperformed BERT across datasets. With sufficient training data, LLaMA showed modest improvements (1% on NER, 1.5-3.7% on RE); improvements were larger with limited training data. On unseen i2b2 data, LLaMA-3-70B outperformed BERT by 7% (F1) on NER and 4% on RE. However, LLaMA models required more computing resources and ran up to 28 times slower. We implemented "Kiwi," a clinical IE package featuring both models, available at https://kiwi.clinicalnlp.org/. Conclusion: This study is among the first to develop and evaluate a comprehensive clinical IE system using open-source LLMs. Results indicate that LLaMA models outperform BERT for clinical NER and RE but with higher computational costs and lower throughputs. These findings highlight that choosing between LLMs and traditional deep learning methods for clinical IE applications should remain task-specific, taking into account both performance metrics and practical considerations such as available computing resources and the intended use case scenarios.

Motivation & Objective

  • Assess performance of instruction-tuned LLaMA-2/LLaMA-3 for clinical NER and RE against BiomedBERT across diverse data sources.
  • Create a comprehensive, multi-institution clinical IE corpus covering main entities and modifiers.
  • Evaluate generalizability, throughput, energy consumption, and memory requirements.
  • Provide an open-source clinical IE pipeline (Kiwi) integrating both model families.

Proposed method

  • Construct a four-dataset clinical IE corpus (UTP, MTSamples, MIMIC-III, i2b2) with 4 main entities and 16 modifiers.
  • Instruction-tune LLaMA-2-chat and LLaMA-3-instruct using PEFT (LoRA) and 4-bit quantization; compare to BiomedBERT on NER and RE.
  • Use a unified span-based instruction format for NER and RE.
  • Evaluate with exact and relaxed matching criteria, plus cross-institution generalizability and resource accounting (GPU hours, memory, energy).
  • Provide Kiwi, an open-source IE pipeline combining LLaMA and BiomedBERT models.

Experimental results

Research questions

  • RQ1Do instruction-tuned LLaMA models outperform BiomedBERT on clinical NER and RE across multiple data sources?
  • RQ2How does performance generalize to unseen institutions/datasets?
  • RQ3What are the computational costs, throughput, and energy implications of using LLMs versus BERT in clinical IE?
  • RQ4Is a single pipeline (Kiwi) viable for practical deployment with both model families?

Key findings

  • LLama models consistently outperform BiomedBERT on exact NER/RE scores across datasets and especially in low-resource and unseen settings.
  • With abundant data, LLaMA gains are modest (NER ~1%, RE ~1.5–3.7%), but in low-resource settings gains are larger (NER up to ~4.5%, RE up to ~12.5%).
  • On unseen i2b2 data, LLaMA-3-70B achieves over 7% F1 improvement in NER and ~4% in RE versus BiomedBERT.
  • LLaMA models require substantially more memory, GPU hours, and energy, with slower inference (up to 28x slower in some cases) compared to BiomedBERT.
  • Kiwi provides an open-source, Docker-based IE pipeline including both LLaMA-based and BiomedBERT-based options for practical use.

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.