paper-with-me

홈 › Papers

Test-Time Immunization: A Universal Defense Framework Against Jailbreaks for (Multimodal) Large Language Models

2025-05-28 · Yongcan Yu, Yanbo Wang, Ran He, Jian Liang

While (multimodal) large language models (LLMs) have attracted widespread attention due to their exceptional capabilities, they remain vulnerable to jailbreak attacks. Various defense methods are proposed to defend against jailbreak attacks, however, they are often tailored to specific types of jailbreak attacks, limiting their effectiveness against diverse adversarial strategies. For instance, rephrasing-based defenses are effective against text adversarial jailbreaks but fail to counteract image-based attacks. To overcome these limitations, we propose a universal defense framework, termed Test-time IMmunization (TIM), which can adaptively defend against various jailbreak attacks in a self-evolving way. Specifically, TIM initially trains a gist token for efficient detection, which it subsequently applies to detect jailbreak activities during inference. When jailbreak attempts are identified, TIM implements safety fine-tuning using the detected jailbreak instructions paired with refusal answers. Furthermore, to mitigate potential performance degradation in the detector caused by parameter updates during safety fine-tuning, we decouple the fine-tuning process from the detection module. Extensive experiments on both LLMs and multimodal LLMs demonstrate the efficacy of TIM.

📄 PDF Abstract BibTeX arXiv:2505.22271

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Universal Image Immunization against Diffusion-based Image Editing via Semantic Injection

2026-02-16 · Chanhui Lee, Donggyu Choi, Seunghyun Shin, Hae-Gon Jeon 외 arxiv

Diffusion model advances have enabled powerful text-guided image editing, but also raise ethical and legal risks such as deepfakes and unauthorized use. To prevent these risks, adversarial attack-based image immunization…

Adversarial AttackImage Editing

Optimization-Free Image Immunization Against Diffusion-Based Editing

2024-11-27 · Tarik Can Ozden, Ozgur Kara, Oguzhan Akcin, Kerem Zaman 외

Current image immunization defense techniques against diffusion-based editing embed imperceptible noise in target images to disrupt editing models. However, these methods face scalability challenges, as they require time…

Immunization against harmful fine-tuning attacks

2024-02-26 · Domenic Rosati, Jan Wehner, Kai Williams, Łukasz Bartoszcze 외

Large Language Models (LLMs) are often trained with safety guards intended to prevent harmful text generation. However, such safety training can be removed by fine-tuning the LLM on harmful datasets. While this emerging …

Text Generation

Graph Adversarial Immunization for Certifiable Robustness

2023-02-16 · Shuchang Tao, HuaWei Shen, Qi Cao, Yunfan Wu 외

Despite achieving great success, graph neural networks (GNNs) are vulnerable to adversarial attacks. Existing defenses focus on developing adversarial training or model modification. In this paper, we propose and formula…

Adversarial AttackCombinatorial Optimization

Immune2V: Image Immunization Against Dual-Stream Image-to-Video Generation

2026-04-12 · Zeqian Long, Ozgur Kara, Haotian Xue, Yongxin Chen 외 arxiv

Image-to-video (I2V) generation has the potential for societal harm because it enables the unauthorized animation of static images to create realistic deepfakes. While existing defenses effectively protect against static…

Image ManipulationVideo Generation