Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 May 31:2024:105-114.
eCollection 2024.

Local Large Language Models for Complex Structured Tasks

Affiliations

Local Large Language Models for Complex Structured Tasks

V K Cody Bumgardner et al. AMIA Jt Summits Transl Sci Proc. .

Abstract

This paper introduces an approach that combines the language reasoning capabilities of large language models (LLMs) with the benefits of local training to tackle complex language tasks. The authors demonstrate their approach by extracting structured condition codes from pathology reports. The proposed approach utilizes local, fine-tuned LLMs to respond to specific generative instructions and provide structured outputs. Over 150k uncurated surgical pathology reports containing gross descriptions, final diagnoses, and condition codes were used. Different model architectures were trained and evaluated, including LLaMA, BERT, and LongFormer. The results show that the LLaMA-based models significantly outperform BERT-style models across all evaluated metrics. LLaMA models performed especially well with large datasets, demonstrating their ability to handle complex, multi-label tasks. Overall, this work presents an effective approach for utilizing LLMs to perform structured generative tasks on domain-specific language in the medical domain.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.
Local LLM High-level View
Listing 1.
Listing 1.
LLM Instruction JSON Format

References

    1. OpenAI. ChatGPT. 2023. Accessed: 2023-07-30. https://chat.openai.com.
    1. Xue VW, Lei P, Cho WC. The potential impact of ChatGPT in clinical and translational medicine. Clinical and Translational Medicine. 2023;13(3) - PMC - PubMed
    1. Dave T, Athaluri SA, Singh S. ChatGPT in medicine: an overview of its applications, advantages, limitations, future prospects, and ethical considerations. Frontiers in Artificial Intelligence. 2023;6:1169595. - PMC - PubMed
    1. Li C, Wong C, Zhang S, Usuyama N, Liu H, Yang J, et al. Llava-med: Training a large language-and-vision assistant for biomedicine in one day. arXiv preprint arXiv:230600890. 2023.
    1. Zhou Z. Zhou of ChatGPT’s capabilities in medical report generation. Cureus. 2023;15(4) - PMC - PubMed

LinkOut - more resources