paper-with-me

Papers

Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Models

2024-02-03 · Yongshuo Zong, Ondrej Bohdal, Tingyang Yu, Yongxin Yang, Timothy Hospedales

Current vision large language models (VLLMs) exhibit remarkable capabilities yet are prone to generate harmful content and are vulnerable to even the simplest jailbreaking attacks. Our initial analysis finds that this is due to the presence of harmful data during vision-language instruction fine-tuning, and that VLLM fine-tuning can cause forgetting of safety alignment previously learned by the underpinning LLM. To address this issue, we first curate a vision-language safe instruction-following dataset VLGuard covering various harmful categories. Our experiments demonstrate that integrating this dataset into standard vision-language fine-tuning or utilizing it for post-hoc fine-tuning effectively safety aligns VLLMs. This alignment is achieved with minimal impact on, or even enhancement of, the models' helpfulness. The versatility of our safety fine-tuning dataset makes it a valuable resource for safety-testing existing VLLMs, training new models or safeguarding pre-trained VLLMs. Empirical results demonstrate that fine-tuned VLLMs effectively reject unsafe instructions and substantially reduce the success rates of several black-box adversarial attacks, which approach zero in many cases. The code and dataset are available at https://github.com/ys-zong/VLGuard.

📄 PDF Abstract BibTeX arXiv:2402.02207

Code (1)

ys-zong/vlguard 공식 구현 pytorch

Tasks

Instruction FollowingSafety Alignment

Similar Papers 제목 키워드 기반

Mimicking User Data: On Mitigating Fine-Tuning Risks in Closed Large Language Models

2024-06-12 · Francisco Eiras, Aleksandar Petrov, Phillip H. S. Torr, M. Pawan Kumar 외

Fine-tuning large language models on small, high-quality datasets can enhance their performance on specific downstream tasks. Recent research shows that fine-tuning on benign, instruction-following data can inadvertently…

Instruction FollowingSafety Alignment

Children's English Reading Story Generation via Supervised Fine-Tuning of Compact LLMs with Controllable Difficulty and Safety

2026-05-13 · Qian Shen, Fanghua Cao, Min Yao, Shlok Gilda 외 arxiv

Large Language Models (LLMs) are widely applied in educational practices, such as for generating children's stories. However, the generated stories are often too difficult for children to read, and the operational cost o…

Story Generation

Few-Shot Truly Benign DPO Attack for Jailbreaking LLMs

2026-05-09 · Sangyeon Yoon, Wonje Jeung, Yoonjun Cho, Dongjae Jeon 외 arxiv

Fine-tuning APIs make frontier LLMs easy to customize, but they can also weaken safety alignment during fine-tuning. While prior work shows that benign supervised fine-tuning (SFT) can reduce refusal behavior, deployed f…

Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!

2023-10-05 · Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen 외

Optimizing large language models (LLMs) for downstream use cases often involves the customization of pre-trained LLMs through further fine-tuning. Meta's open release of Llama models and OpenAI's APIs for fine-tuning GPT…

Red TeamingSafety Alignment

Distill or Annotate? Cost-Efficient Fine-Tuning of Compact Models

2023-05-02 · Junmo Kang, Wei Xu, Alan Ritter

Fine-tuning large models is highly effective, however, inference can be expensive and produces carbon emissions. Knowledge distillation has been shown to be a practical solution to reduce inference costs, but the distill…

Knowledge Distillation