Skip to content

Jailbreak Antidote: Runtime safety-utility balance in large language models via sparse representation adjustmentJailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models

arXiv· arXiv:2410.02298· ICLR 2025· Guobin Shen, Dongcheng Zhao, Yiting Dong, Xiang He, Yi Zeng·Indexed by this site · 26 days ago· Originally publishedDefenses
AI summary

The researchers propose Jailbreak Antidote, a jailbreak defense method that adjusts a sparse subset of a large language model's internal states at inference time, thereby balancing safety and utility in real time. The method shifts the model's hidden representations along the safety direction with different strengths, achieving flexible control over the safety-utility balance, with no additional token overhead or inference latency. The paper's analysis finds that safety-related information in large language models is sparsely distributed, and adjusting about 5% of the internal states can achieve an effect comparable to modifying all states. The authors validate the effectiveness and efficiency of the method on nine large language models with parameter counts from 2B to 72B, against ten jailbreak attack methods and in comparison with six defense strategies.

Read originalICLR 2025