Saved in:
Bibliographic Details
Main Authors: Cao, Zouying, Yang, Yifei, Zhao, Hai
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.11491
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909431124459520
author Cao, Zouying
Yang, Yifei
Zhao, Hai
author_facet Cao, Zouying
Yang, Yifei
Zhao, Hai
contents Safety alignment is indispensable for Large Language Models (LLMs) to defend threats from malicious instructions. However, recent researches reveal safety-aligned LLMs prone to reject benign queries due to the exaggerated safety issue, limiting their helpfulness. In this paper, we propose a Safety-Conscious Activation Steering (SCANS) method to mitigate the exaggerated safety concerns in aligned LLMs. First, SCANS extracts the refusal steering vectors within the activation space and utilizes vocabulary projection to anchor some specific safety-critical layers which influence model refusal behavior. Second, by tracking the hidden state transition, SCANS identifies the steering direction and steers the model behavior accordingly, achieving a balance between exaggerated safety and adequate safety. Experiments show that SCANS achieves new state-of-the-art performance on XSTest and OKTest benchmarks, without impairing their defense capability against harmful queries and maintaining almost unchanged model capability.
format Preprint
id arxiv_https___arxiv_org_abs_2408_11491
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SCANS: Mitigating the Exaggerated Safety for LLMs via Safety-Conscious Activation Steering
Cao, Zouying
Yang, Yifei
Zhao, Hai
Artificial Intelligence
Safety alignment is indispensable for Large Language Models (LLMs) to defend threats from malicious instructions. However, recent researches reveal safety-aligned LLMs prone to reject benign queries due to the exaggerated safety issue, limiting their helpfulness. In this paper, we propose a Safety-Conscious Activation Steering (SCANS) method to mitigate the exaggerated safety concerns in aligned LLMs. First, SCANS extracts the refusal steering vectors within the activation space and utilizes vocabulary projection to anchor some specific safety-critical layers which influence model refusal behavior. Second, by tracking the hidden state transition, SCANS identifies the steering direction and steers the model behavior accordingly, achieving a balance between exaggerated safety and adequate safety. Experiments show that SCANS achieves new state-of-the-art performance on XSTest and OKTest benchmarks, without impairing their defense capability against harmful queries and maintaining almost unchanged model capability.
title SCANS: Mitigating the Exaggerated Safety for LLMs via Safety-Conscious Activation Steering
topic Artificial Intelligence
url https://arxiv.org/abs/2408.11491