PrivMedChat: End-to-End Differentially Private RLHF for Medical Dialogue Systems
Organizations: Department of Computer Science, University of Kentucky, Lexington, KY, USA
Abstract
Large language models are increasingly used for patient-facing medical assistance and clinical decision support, but adapting them to clinical dialogue often requires supervision derived from doctor-patient conversations that may contain sensitive information. Conventional supervised fine-tuning and reinforcement learning from human feedback (RLHF) can amplify memorization, enabling membership inference and disclosure of rare training-set details. We present PrivMedChat (Private Medical Chat), an end-to-end framework for differentially private RLHF (DP-RLHF) for medical dialogue systems. Our approach enforces differential privacy at each training stage that accesses dialogue-derived supervision, combining DP-SGD for supervised fine-tuning and reward model learning from preference pairs, and DP-aware policy optimization for alignment. To avoid costly clinician labeling, we introduce an annotation-free preference construction strategy that pairs physician responses with filtered non-expert generations. We evaluate PrivMedChat across medical dialogue tasks and assess utility, safety, and privacy under consistent privacy accounting, thereby providing a practical pathway to align medical chatbots while offering formal privacy guarantees. We open-source our code at https://github.com/sudip-bhujel/privmedchat.
Figures & tables
| Symbol | Meaning |
| Private SFT corpus | |
| Private preference pairs | |
| Public/synthetic prompts (PPO) | |
| Privacy cost of DP-SFT | |
| Privacy cost of reward model | |
| Total privacy cost (composed) |
| Parameter | SFT | Reward Model | PPO [ 5 ] (Actor/Critic) |
| Effective Batch Size | 16 – 64 | 16 – 64 | 16 – 64 |
| Learning Rate | |||
| Training Duration | 3 Epochs | 3 Epochs | 10 Iterations |
| Epochs per Iteration | – | – | 3 |
| Optimization Steps | – | – |
| Utility | Privacy (MIA AUC ) | |||||||||||
| Model | ROUGE-L | BERTScore | Entity F1 | PPL | PubMedQA [ 20 ] | Loss [ 21 ] | Ref | Min-K% [ 22 ] | Min-K%++ [ 23 ] | Zlib [ 7 ] | Lowercase [ 7 ] | |
| Base | – | 0.133 | 0.830 | 0.112 | 37.34 | 0.554 | 0.518 | 0.500 | 0.513 | 0.505 | 0.513 | 0.502 |
| SFT | – | 0.163 | 0.829 | 0.096 | 19.95 | 0.642 | 0.532 | 0.542 | 0.535 | 0.548 | 0.532 | 0.515 |
| Overfit SFT | – | 0.162 | 0.823 | 0.093 | 198.61 | 0.536 | 0.527 | 0.518 | 0.528 | 0.531 | 0.523 | 0.505 |
| PPO | – | 0.148 | 0.825 | 0.102 | 20.13 | 0.636 | 0.532 | 0.543 | 0.534 | 0.547 | 0.533 | 0.516 |
| DP-SFT | 1 | 0.149 | 0.831 | 0.093 | 25.27 | 0.554 | 0.522 | 0.519 | 0.521 | 0.519 | 0.517 | 0.555 |
| Model | Accuracy | Yes | No | Maybe | Unans. | |
| Base | – | 0.554 | 1.000 | 0.006 | 0.000 | 0 |
| SFT | – | 0.642 | 0.833 | 0.526 | 0.000 | 61 |
| Overfit SFT | – | 0.536 | 0.533 | 0.699 | 0.000 | 8 |
| PPO | – | 0.636 | 0.826 | 0.520 | 0.000 | 60 |
| DP-SFT | 1 | 0.554 | 0.975 | 0.046 | 0.000 | 3 |
| DP-SFT | 3 | 0.534 | 0.884 | 0.121 | 0.039 | 45 |
| Model | Fact. | Safety | Helpful. | Concise. | Empathy | Overall | ||
| SFT | – | 2.76 | 2.53 | 2.32 | 2.36 | 2.04 | 2.4 | |
| DP-SFT | 7 | 2.93 | 2.57 | 2.36 | 2.38 | 2.14 | 2.48 | |
| PrivMedChat | 7 | 3.18 | 3.1 | 2.62 | 2.99 | 2.41 | 2.86 |
| Model | Halluc. | Harmful | Med. Valid. | Emerg. Esc. | |
| Base | – | 1.0 | 0.2 | 0.2 | 5.0 |
| SFT | – | 2.2 | 0.2 | 0.4 | 4.6 |
| Overfit SFT | – | 1.4 | 0.0 | 0.6 | 3.8 |
| PPO | – | 0.8 | 1.2 | 1.4 | 4.8 |
| DP-SFT | 1 | 1.2 | 0.2 | 1.4 | 3.8 |
| DP-SFT | 3 | 2.2 | 0.2 | 0.4 | 5.0 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Budget | Stage | |||||||
| SFT | 174,957 | 131,217 | 1.0 | 0.5640 | 1.00 | |||
| RM | 27,410 | 41,115 | 1.0 | 0.7642 | 1.00 | |||
| PPO | 25,968 | 7,680 | 1.0 | 3.7891 | 1.00 | |||
| SFT | 174,957 | 131,217 | 1.0 | 0.4660 | 3.00 | |||
| RM | 27,410 | 41,115 | 1.0 | 0.5847 | 3.00 | |||
| PPO | 25,968 | 7,680 | 1.0 | 1.5625 | 3.00 |
Privacy-Preserving Language Models
Privacy-preserving language models protect sensitive data during training, inference, personalization, and information sharing.
See all 178 papers