From General to Specific: Tailoring Large Language Models for Personalized Healthcare

Ruize Shi, Hong Huang, Wei Zhou, Kehan Yin, Kai Zhao, Yun ZhaoarXiv 2024 · DOI

Abstract

Large Language Models (LLMs) often provide generic medical advice that fails to account for individual patient complexities. This paper introduces the Personalized Medical Language Model (PMLM) framework, which optimizes "hard prompts" using patient-specific history and peer-informed data. Through a reinforcement learning-based refinement process, PMLM enhances the performance of proprietary models like GPT-4, achieving state-of-the-art results in specialized medical domains such as obstetrics and gynecology without requiring access to internal model weights or expensive fine-tuning.

Introduction

While LLMs have demonstrated significant potential in the medical field, they frequently suffer from a "one-size-fits-all" limitation. General-purpose models often lack the specific context of a patient's medical history, while specialized lightweight models are typically siloed into single diseases. This paper addresses two primary challenges: the need for multi-disease availability in complex real-world cases and the requirement for autonomous personalization that can adapt to evolving patient needs and specific model behaviors.

Methodology

The PMLM framework treats personalization as a prompt optimization problem. The workflow is divided into three distinct stages:

1. Extraction of Personalized Information

  • Self-informed Personalization: A lightweight predictor (LLMp), such as a fine-tuned LLaVA-1.5-7B, analyzes historical health check data to predict the patient's current condition.
  • Peer-informed Personalization: Utilizing collaborative filtering, the system identifies "similar patients" from a historical database. Successful treatment outcomes from these peers are incorporated into the context to fill gaps in the target patient's history.

2. Coarse-grained Prompting

The insights from the extraction stage are combined into an initial text-based "hard prompt." This prompt includes the patient's background, the predicted condition, and relevant peer data.

3. Fine-grained Refinement via Reinforcement Learning (RL)

To handle noise in medical histories, a Policy Network iteratively refines the prompt. The RL agent learns to "delete" specific words from the initial prompt to optimize the response from a downstream proprietary LLM (LLMr). The reward function for this agent is based on the BERTScore between the generated response and actual physician recommendations.

The PMLM framework architecture, detailing the personalization and refinement stages.

Datasets

The framework was evaluated using a real-world dataset from hospitals in Wuhan, China, focused on obstetrics and gynecology (2020–2022). The dataset includes 38,817 records from 2,373 patients, featuring 35 measurable examination indicators (e.g., pH levels, blood counts) and 12 diagnostic categories, such as gestational diabetes and uterine rupture.

Key Results

PMLM was tested against several proprietary models (GPT-4, Gemini 1.5 Pro, GLM4) and fine-tuned lightweight models (Llama3-8B, Qwen2-7B).

  • Performance Gains: PMLM consistently improved the performance of all proprietary models by over 10%.
  • State-of-the-Art (SOTA): The GPT-4 based PMLM achieved a BERTScore F1 of 70.50, significantly outperforming the base GPT-4 score of 62.75.
  • Prompt Optimization: Quantitative analysis shows that the choice of parameters, such as the number of similar patients (k), significantly impacts performance, with optimal results typically observed at k=10.
Evaluation of Precision, Recall, and F1 scores across different values of k.

Discussion and Limitations

The PMLM framework demonstrates that "smart prompting" on large proprietary models can outperform specialized fine-tuning on smaller models. Furthermore, by optimizing at the prompt level, the system offers a privacy-preserving alternative to fine-tuning, as sensitive data is not permanently integrated into model weights.

However, limitations remain. The current RL refinement is limited to word deletion; future work could explore addition or replacement operations. Additionally, the framework's reliance on an LLM as an initial predictor is computationally intensive, suggesting a need for more specialized, lightweight predictors in future iterations.

Summary updated

BibTeX
@misc{shi2024from,
  author = {Ruize Shi and Hong Huang and Wei Zhou and Kehan Yin and Kai Zhao and Yun Zhao},
  title = {{From General to Specific: Tailoring Large Language Models for Personalized Healthcare}},
  year = {2024},
  eprint = {2412.15957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.15957},
}
Figure