paper-with-me

홈 › Papers

ROSE Doesn't Do That: Boosting the Safety of Instruction-Tuned Large Language Models with Reverse Prompt Contrastive Decoding

2024-02-19 · Qihuang Zhong, Liang Ding, Juhua Liu, Bo Du, DaCheng Tao

With the development of instruction-tuned large language models (LLMs), improving the safety of LLMs has become more critical. However, the current approaches for aligning the LLMs output with expected safety usually require substantial training efforts, e.g., high-quality safety data and expensive computational resources, which are costly and inefficient. To this end, we present reverse prompt contrastive decoding (ROSE), a simple-yet-effective method to directly boost the safety of existing instruction-tuned LLMs without any additional training. The principle of ROSE is to improve the probability of desired safe output via suppressing the undesired output induced by the carefully-designed reverse prompts. Experiments on 6 safety and 2 general-purpose tasks show that, our ROSE not only brings consistent and significant safety improvements (up to +13.8% safety score) upon 5 types of instruction-tuned LLMs, but also benefits the general-purpose ability of LLMs. In-depth analyses explore the underlying mechanism of ROSE, and reveal when and where to use it.

📄 PDF Abstract BibTeX arXiv:2402.11889

Code (1)

whu-zqh/rose 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructions

2023-09-14 · Federico Bianchi, Mirac Suzgun, Giuseppe Attanasio, Paul Röttger 외

Training large language models to follow instructions makes them perform better on a wide range of tasks and generally become more helpful. However, a perfectly helpful model will follow even the most malicious instructi…

ProSec: Fortifying Code LLMs with Proactive Security Alignment

2024-11-19 · Xiangzhe Xu, Zian Su, Jinyao Guo, Kaiyuan Zhang 외

While recent code-specific large language models (LLMs) have greatly enhanced their code generation capabilities, the safety of these models remains under-explored, posing potential risks as insecure code generated by th…

Code Generation

Locking Down the Finetuned LLMs Safety

2024-10-14 · Minjun Zhu, Linyi Yang, Yifan Wei, Ningyu Zhang 외

Fine-tuning large language models (LLMs) on additional datasets is often necessary to optimize them for specific downstream tasks. However, existing safety alignment measures, which restrict harmful behavior during infer…

Safety Alignment

Jailbreak Instruction-Tuned LLMs via end-of-sentence MLP Re-weighting

2024-10-14 · Yifan Luo, Zhennan Zhou, Meitan Wang, Bin Dong

In this paper, we investigate the safety mechanisms of instruction fine-tuned large language models (LLMs). We discover that re-weighting MLP neurons can significantly compromise a model's safety, especially for MLPs in …

Sentence

Comparison of Microservice Call Rate Predictions for Replication in the Cloud

2023-10-29 · Narges Mehran, Arman Haghighi, Pedram Aminharati, Nikolay Nikolov 외

Today, many users deploy their microservice-based applications with various interconnections on a cluster of Cloud machines, subject to stochastic changes due to dynamic user requirements. To address this problem, we com…

Predictionregression