NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DPF-CM: A Data Processing Framework with Privacy-Preserving Vector Databases for Chinese Medical LLMs Training and Deployment

Wei Huang, Anda Cheng, Zhao Zhang, Yinggui Wang

TL;DR

This paper introduces DPF-CM, a novel framework for training and deploying Chinese medical Large Language Models (LLMs). DPF-CM significantly enhances model performance by optimizing data processing for both training and deployment, while also introducing a privacy-preserving mechanism to protect sensitive medical data.

What Problem Does This Paper Address?

While LLMs have shown remarkable capabilities, they often struggle in specialized domains like Chinese healthcare due to a lack of professional knowledge and nuanced understanding. Existing research has primarily focused on improving LLM architectures and training methodologies, often overlooking the critical role of data processing. Furthermore, the sensitive nature of medical data raises significant privacy concerns during model training and deployment. This paper addresses these gaps by proposing a comprehensive data processing framework that not only boosts LLM performance in the medical domain but also safeguards patient privacy.

Methods

DPF-CM is built around two core modules:

  • Data Processing Pipeline for Model Training:
    • Chained Examples Context-Learning: To combat the scarcity of well-structured instructions in medical datasets, this method links examples together in a step-by-step manner. This progressive refinement ensures that later examples are of higher quality, guiding the LLM to generate better instructions.
  • Ensemble-Based Filtering for Preference Data: To curate high-quality preference data for training, this approach trains multiple reward models on the preference data. The average score from these models is used to filter out noisy samples, leading to more reliable preference data.
  • Privacy Preservation during Model Deployment:
    • Privacy-Preserving Vector Database (PPVD): This approach aims to prevent training data leakage during inference. It involves four key stages:
  • Model Memory Searches: Identifying training data samples that the LLM might have "memorized" by comparing model outputs to ground truth labels using ROUGE-L.
  • High-Risk Database Construction: Creating embeddings of these high-risk samples.
  • Secure Database Construction: Generating secure embeddings by passing prompts and concatenated responses through a general LLM and then the medical LLM.
  • Match and Replace: During inference, if a user's query matches a high-risk sample in the database, the response is replaced with content from the secure database.

Datasets

The paper utilizes several datasets for training and evaluation:

  • Training Data:
    • Continued Pre-training: Includes medical books, generated medical books, CMtMedQA, ChatMed-Consult-Dataset, DISC-Med-SFT, MedDiag, huatuo-sft-train-data, webMedQA, PromptCBLUE, and general corpus data.
  • SFT Data: Includes various dialogue datasets and medical benchmarks.
  • Preference Data: A combination of SFT dataset samples and supplementary medical dialogue data.
  • Evaluation Datasets:
    • Single-turn dialogue: Huatuo-26M, webMedQA.
  • Multi-turn dialogue: CMtMedQA.
  • Medical Benchmarks: C-Eval, CMMLU, CMExam, CMB, and PLE.
  • Medical Terminology Explanation: medtiku.

Key Insights and Ideas

  • Data Processing is Key: The paper strongly emphasizes that optimizing data processing is as crucial, if not more so, than architectural improvements for achieving state-of-the-art performance in specialized LLM domains like medicine.
  • Chained Examples for Better Instructions: The chained-example strategy effectively addresses the "lack of instruction content" problem by creating a more robust and progressive learning process for instruction generation.
  • Privacy-Preserving Vector Databases Work: The PPVD approach demonstrates a practical method to mitigate privacy risks by identifying and handling potentially memorized training data during inference, with minimal impact on model performance.
  • Domain-Specific Data Enhances LLMs: The results clearly show that applying domain-specific data processing techniques significantly improves an LLM's ability to learn and perform within the medical domain.

Key Results

  • The DPF-CM framework significantly improves model accuracy, enabling the trained Chinese medical LLM to achieve state-of-the-art performance among open-source counterparts.
  • The framework reduces training data privacy leakage by 27%.
  • In similarity evaluations, DPF-CM models consistently outperformed models trained without data preprocessing, with win rates reaching up to 85% in medical dialogue and terminology tasks.
  • Human evaluations also showed a similar trend, indicating superior performance of DPF-CM trained models.
  • The PPVD method identified only 1.81% of samples as high-risk, and subsequent privacy protection reduced the average similarity of these samples by approximately 0.27, demonstrating effective privacy protection.

Limitations and Future Work

  • LLM-Generated Data Quality: The paper acknowledges that using general LLMs for pre-training data generation might lead to inaccurate or ethically inappropriate content due to their limited medical understanding. Future work should explore domain-specific methods for generating higher-quality medical pre-training data.
  • Storage Demands of PPVD: The PPVD algorithm requires storing embeddings in high-risk databases. For substantial amounts of private data, this could lead to significant storage demands. Future research should investigate more lightweight feature representations as alternatives to embeddings.

Summary updated

BibTeX
@inproceedings{huang2025dpf,
  author = {Wei Huang and Anda Cheng and Zhao Zhang and Yinggui Wang},
  title = {{DPF-CM: A Data Processing Framework with Privacy-Preserving Vector Databases for Chinese Medical LLMs Training and Deployment}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure