Dynamic Evil Score-Guided Decoding: An Efficient Decoding Framework For Red-Team Model

Large language models (LLMs) have achieved significant advances, but can potentially generate harmful content such as social biases, extremism, and misinformation.Red teaming is a promising approach to enhance model safety by generating adversarial prompts to test and improve model robustness.However, existing red-teaming methods often require expensive fine-tuning, especially for large LLMs.We propose the Dynamic Evil Score-Guided Decoding framework (DESGD), an efficient red-teaming method that does not increase computational cost with the target model size.DESGD framework introduces the concept of an 'evil score,' which can dynamically evaluate the potential of tokens to contribute to harmful outputs in decoding phrases.We fine-tune a small model using an adversarial dataset and calculate the evil score based on the difference in logits vector before and after fine-tuning.Then, we adjust the logits of the large target model according to the evil score.The results of the experiment show that our method achieves an ASR of 92.83% on the Llama-3.2-3B-Instructmodel, compared to 83.48% with adversarial fine-tuning while using lower computational resources.Similarly, on the Qwen2.5-3B-Instructmodel, DESGD reaches an ASR of 88.62%, outperforming adversarial fine-tuning (77.56%).

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.564
Primary Topic
Information and Cyber Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Dynamic Evil Score-Guided Decoding: An Efficient Decoding Framework For Red-Team Model

Linkang Yang, Xiaoying Bai, Guotong Geng, Yunhua Xue et al.
Information and Cyber Security
article

Dynamic Evil Score-Guided Decoding: An Efficient Decoding Framework For Red-Team Model

Linkang Yang, Xiaoying Bai, Guotong Geng, Yunhua Xue, Bo Zhang, Jun Zhang, Cong Gao, Zhunchen Luo, Minghao Hu
article en

Abstract

Large language models (LLMs) have achieved significant advances, but can potentially generate harmful content such as social biases, extremism, and misinformation.Red teaming is a promising approach to enhance model safety by generating adversarial prompts to test and improve model robustness.However, existing red-teaming methods often require expensive fine-tuning, especially for large LLMs.We propose the Dynamic Evil Score-Guided Decoding framework (DESGD), an efficient red-teaming method that does not increase computational cost with the target model size.DESGD framework introduces the concept of an 'evil score,' which can dynamically evaluate the potential of tokens to contribute to harmful outputs in decoding phrases.We fine-tune a small model using an adversarial dataset and calculate the evil score based on the difference in logits vector before and after fine-tuning.Then, we adjust the logits of the large target model according to the evil score.The results of the experiment show that our method achieves an ASR of 92.83% on the Llama-3.2-3B-Instructmodel, compared to 83.48% with adversarial fine-tuning while using lower computational resources.Similarly, on the Qwen2.5-3B-Instructmodel, DESGD reaches an ASR of 88.62%, outperforming adversarial fine-tuning (77.56%).

Openalex Percentile: Top 71%
Information and Cyber Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.