Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Mitigating Exaggerated Safety in Large Language Models

About

As the popularity of Large Language Models (LLMs) grow, combining model safety with utility becomes increasingly important. The challenge is making sure that LLMs can recognize and decline dangerous prompts without sacrificing their ability to be helpful. The problem of "exaggerated safety" demonstrates how difficult this can be. To reduce excessive safety behaviours -- which was discovered to be 26.1% of safe prompts being misclassified as dangerous and refused -- we use a combination of XSTest dataset prompts as well as interactive, contextual, and few-shot prompting to examine the decision bounds of LLMs such as Llama2, Gemma Command R+, and Phi-3. We find that few-shot prompting works best for Llama2, interactive prompting works best Gemma, and contextual prompting works best for Command R+ and Phi-3. Using a combination of these prompting strategies, we are able to mitigate exaggerated safety behaviors by an overall 92.9% across all LLMs. Our work presents a multiple prompting strategies to jailbreak LLMs' decision-making processes, allowing them to navigate the tight line between refusing unsafe prompts and remaining helpful.

Ruchira Ray, Ruchi Bhalani• 2024

Related benchmarks

TaskDatasetResultRank
Refusal Rate EvaluationOK (test)
Refusal Rate8.33
74
Over-refusal rate analysisOR-Bench
Over-refusal Rate53.75
33
Refusal EvaluationXSTest Unsafe
Refusal Rate99.5
25
Over-refusal evaluationXSTest Safe
Over-refusal Rate6
25
Inference EfficiencyGeneral LLM Prompts
ATGR1.42
18
Malicious Query Safety EvaluationJailBench
Refusal Ratio100
18
Malicious Query Safety EvaluationAdvBench
Refusal Rate99.42
18
General Usability EvaluationJust-Eval
Helpfulness4.33
6
Showing 8 of 8 rows

Other info

Follow for update