paper-with-me

홈 › Papers

Pharmacist: Safety Alignment Data Curation for Large Language Models against Harmful Fine-tuning

2025-10-11 · Guozhi Liu, Qi Mu, Tiansheng Huang, Xinhua Wang, Li Shen, Weiwei Lin, Zhang Li arxiv

Harmful fine-tuning issues present significant safety challenges for fine-tuning-as-a-service in large language models. Existing alignment-stage defenses, e.g., Vaccine, Repnoise, Booster, and T-Vaccine, mitigate harmful fine-tuning issues by enhancing the model's robustness during the alignment phase. While these methods have been proposed to mitigate the issue, they often overlook a critical upstream factor: the role of the original safety-alignment data. We observe that their defense performance and computational efficiency remain constrained by the quality and composition of the alignment dataset. To address this limitation, we propose Pharmacist, a safety alignment data curation solution that enhances defense against harmful fine-tuning by selecting a high-quality and safety-critical core subset from the original alignment data. The core idea of Pharmacist is to train an alignment data selector to rank alignment data. Specifically, up-ranking high-quality and safety-critical alignment data, down-ranking low-quality and non-safety-critical data. Empirical results indicate that models trained on datasets selected by Pharmacist outperform those trained on datasets selected by existing selection methods in both defense and inference performance. In addition, Pharmacist can be effectively integrated with mainstream alignment-stage defense methods. For example, when applied to RepNoise and T-Vaccine, using the dataset selected by Pharmacist instead of the full dataset leads to improvements in defense performance by 2.60\% and 3.30\%, respectively, and enhances inference performance by 3.50\% and 1.10\%. Notably, it reduces training time by 56.83\% and 57.63\%, respectively. Our code is available at https://github.com/Lslland/Pharmacist.

📄 PDF Abstract BibTeX arXiv:2510.10085

Code (0)

등록된 구현이 없습니다.

Tasks

Computational Efficiency

Similar Papers 제목 키워드 기반

Validity of a clinical decision rule based alert system for drug dose adjustment in patients with renal failure intended to improve pharmacists' analysis of medication orders in hospitals

2013-05-24 · Boussadi Abdelali, Caruba Thibaut, Karras Alexandre, Berdot Sarah 외

Objective: The main objective of this study was to assess the diagnostic performances of an alert system integrated into the CPOE/EMR system for renally cleared drug dosing control. The generated alerts were compared wit…

Diagnostic

Assessing LLMs' Performance: Insights from the Chinese Pharmacist Exam

2025-11-25 · Xinran Wang, Boran Zhu, Shujuan Zhou, Ziwen Long 외 arxiv

Background: As large language models (LLMs) become increasingly integrated into digital health education and assessment workflows, their capabilities in supporting high-stakes, domain-specific certification tasks remain …

Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization

2026-05-28 · Zhihao Liu, Yifan Wu, Jian Lou, Di Wang 외 arxiv

Safety alignment for large language models (LLMs) aims to reduce harmful or unsafe behavior while preserving general utility. However, recent findings reveal that alignment effects can be fragile: lightweight post-alignm…

Data Advisor: Dynamic Data Curation for Safety Alignment of Large Language Models

2024-10-07 · Fei Wang, Ninareh Mehrabi, Palash Goyal, Rahul Gupta 외

Data is a crucial element in large language model (LLM) alignment. Recent studies have explored using LLMs for efficient data collection. However, LLM-generated data often suffers from quality issues, with underrepresent…

Language ModelingLanguage ModellingLarge Language ModelSafety Alignment

Robustifying Safety-Aligned Large Language Models through Clean Data Curation

2024-05-24 · Xiaoqun Liu, Jiacheng Liang, Muchao Ye, Zhaohan Xi

Large language models (LLMs) are vulnerable when trained on datasets containing harmful content, which leads to potential jailbreaking attacks in two scenarios: the integration of harmful texts within crowdsourced data u…

Safety Alignment