Uncovering Safety Risks of Large Language Models through Concept Activation Vector

Zhihao Xu, Ruixuan Huang, Changyu Chen, Xiting Wang
2/3/2026

No official code found. Best implementation: SproutNan/AI-Safety_SCAV (49 stars, last commit 2025-10-13).

Abstract

Despite careful safety alignment, current large language models (LLMs) remain vulnerable to various attacks. To further unveil the safety risks of LLMs, we introduce a Safety Concept Activation Vector (SCAV) framework, which effectively guides the attacks by accurately interpreting LLMs' safety mechanisms. We then develop an SCAV-guided attack method that can generate both attack prompts and embedding-level attacks with automatically selected perturbation hyperparameters. Both automatic and human evaluations demonstrate that our attack method significantly improves the attack success rate and response quality while requiring less training data. Additionally, we find that our generated attack prompts may be transferable to GPT-4, and the embedding-level attacks may also be transferred to other white-box LLMs whose parameters are known. Our experiments further uncover the safety risks present in current LLMs. For example, in our evaluation of seven open-source LLMs, we observe an average attack success rate of 99.14%, based on the classic keyword-matching criterion. Finally, we provide insights into the safety mechanism of LLMs. The code is available at https://github.com/SproutNan/AI-Safety_SCAV.

View on arXivView PDF

Code Implementations(1)

This is the code repository for "Uncovering Safety Risks of Large Language Models through Concept Activation Vector"

4910Python, Jupyter NotebookSep 30, 20241 years ago

Similar Papers

Cite this paper

@article{xu2026uncovering,
  title  = {Uncovering Safety Risks of Large Language Models through Concept Activation Vector},
  author = {Zhihao Xu and Ruixuan Huang and Changyu Chen and Xiting Wang},
  year   = {2026},
  eprint = {2404.12038},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-3706},
  url    = {https://arxiv.org/abs/2404.12038},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.12038.svg)](https://codeofpaper.com/paper/2404.12038)

Discussion