Safety-Preserving Medical LLM Fine-Tuning via Bilevel Data Selection
Ruoxuan Shi, Sheng Yang, Zhengxing Su, Xiaoyang Hou, Yating Liu
Abstract
As general large language models (LLMs) are increasingly adapted for patient-facing medical applications, improving medical capability while controlling patient-facing risks remains a critical challenge. Large-scale medical instruction data are essential for acquiring domain knowledge through supervised fine-tuning (SFT), but unsafe responses can undermine existing safety alignment. To address this problem, we propose Scalable Bilevel Data Selection (S-BDS) for safety-preserving medical SFT. By controlling selection-weight concentration, S-BDS enables reliable sample ranking over large candidate pools and identifies training examples that improve medical capability while controlling patient-facing risks. We combine clinician-validated safe data and selected data with unscreened medical instruction data for SFT, and jointly evaluate medical capability and patient-facing safety on HealthBench and PatientSafetyBench, respectively. Experiments across Llama and Qwen models show that S-BDS achieves the highest safe rates among all compared methods, outperforming the strongest baselines by 4.64 and 3.00 percentage points, respectively, while maintaining competitive medical capability. Further experiments show that varying the safety-oriented weight during SFT controls the trade-off between medical capability and patient-facing safety.
Create a lesson
Related papers
Weight-Space Programming Writes In-Context Learning and Matches Fine-Tuning in Language Models
Shared title terminology · Konstantinos Skianis, Aristidis Likas
Train After You Measure: a Pre-Registered Learning Curve for Fine-Tuning Typed Decision Models on One User's Labels
Shared title terminology · Federico Lucca
Do We Still Need Fine-Tuned Classifiers? Swapping Typed Decision Models into 24 ACL-Venue Papers
Shared title terminology · Marek Šuppa, Jaroslav Kopčan
WaXup: Weight Averaging of Experts as Data Augmentation for Robust Introspection
Shared title terminology · Marc Boëlle, Lucas Dixon, Alexandre Ramé
Beyond Prompt Heuristics: Assessing Child Safety Alignment in LLMs
Shared title terminology · Anika Misra, Chimaobi Okite, Rada Mihalcea
How Language Models Compress and Compare: Understanding Selection with Token Covariance Maps
Shared title terminology · Moshe Eliasof