paper-with-me

Papers

Large Language Model Sentinel: LLM Agent for Adversarial Purification

2024-05-24 · Guang Lin, Toshihisa Tanaka, Qibin Zhao

Over the past two years, the use of large language models (LLMs) has advanced rapidly. While these LLMs offer considerable convenience, they also raise security concerns, as LLMs are vulnerable to adversarial attacks by some well-designed textual perturbations. In this paper, we introduce a novel defense technique named Large LAnguage MOdel Sentinel (LLAMOS), which is designed to enhance the adversarial robustness of LLMs by purifying the adversarial textual examples before feeding them into the target LLM. Our method comprises two main components: a) Agent instruction, which can simulate a new agent for adversarial defense, altering minimal characters to maintain the original meaning of the sentence while defending against attacks; b) Defense guidance, which provides strategies for modifying clean or adversarial examples to ensure effective defense and accurate outputs from the target LLMs. Remarkably, the defense agent demonstrates robust defensive capabilities even without learning from adversarial examples. Additionally, we conduct an intriguing adversarial experiment where we develop two agents, one for defense and one for attack, and engage them in mutual confrontation. During the adversarial interactions, neither agent completely beat the other. Extensive experiments on both open-source and closed-source LLMs demonstrate that our method effectively defends against adversarial attacks, thereby enhancing adversarial robustness.

📄 PDF Abstract BibTeX arXiv:2405.20770

Code (0)

등록된 구현이 없습니다.

Tasks

Adversarial DefenseAdversarial PurificationAdversarial RobustnessLanguage ModelingLanguage ModellingLarge Language ModelSentence

Similar Papers 제목 키워드 기반

SentinelNet: Safeguarding Multi-Agent Collaboration Through Credit-Based Dynamic Threat Detection

2025-10-17 · Yang Feng, Xudong Pan arxiv

Malicious agents pose significant threats to the reliability and decision-making capabilities of Multi-Agent Systems (MAS) powered by Large Language Models (LLMs). Existing defenses often fall short due to reactive desig…

Contrastive Learning

Text Adversarial Purification as Defense against Adversarial Attacks

2022-03-27 · Linyang Li, Demin Song, Xipeng Qiu

Adversarial purification is a successful defense mechanism against adversarial attacks without requiring knowledge of the form of the incoming attack. Generally, adversarial purification aims to remove the adversarial pe…

Adversarial AttackAdversarial DefenseAdversarial Purification

Adversarial Text Purification: A Large Language Model Approach for Defense

2024-02-05 · Raha Moraffah, Shubh Khandelwal, Amrita Bhattacharjee, Huan Liu

Adversarial purification is a defense mechanism for safeguarding classifiers against adversarial attacks without knowing the type of attacks or training of the classifier. These techniques characterize and eliminate adve…

Adversarial PurificationAdversarial TextLanguage ModelingLanguage Modelling+2

Language Guided Adversarial Purification

2023-09-19 · Himanshu Singh, A V Subramanyam

Adversarial purification using generative models demonstrates strong adversarial defense performance. These methods are classifier and attack-agnostic, making them versatile but often computationally intensive. Recent st…

Adversarial DefenseAdversarial PurificationAdversarial RobustnessImage Generation

Adversarial purification with Score-based generative models

2021-06-11 · Jongmin Yoon, Sung Ju Hwang, Juho Lee

While adversarial training is considered as a standard defense method against adversarial attacks for image classifiers, adversarial purification, which purifies attacked images into clean images with a standalone purifi…

Adversarial PurificationDenoising