paper-with-me

홈 › Papers

RedAgent: Red Teaming Large Language Models with Context-aware Autonomous Language Agent

2024-07-23 · Huiyu Xu, Wenhui Zhang, Zhibo Wang, Feng Xiao, Rui Zheng, Yunhe Feng, Zhongjie Ba, Kui Ren

Recently, advanced Large Language Models (LLMs) such as GPT-4 have been integrated into many real-world applications like Code Copilot. These applications have significantly expanded the attack surface of LLMs, exposing them to a variety of threats. Among them, jailbreak attacks that induce toxic responses through jailbreak prompts have raised critical safety concerns. To identify these threats, a growing number of red teaming approaches simulate potential adversarial scenarios by crafting jailbreak prompts to test the target LLM. However, existing red teaming methods do not consider the unique vulnerabilities of LLM in different scenarios, making it difficult to adjust the jailbreak prompts to find context-specific vulnerabilities. Meanwhile, these methods are limited to refining jailbreak templates using a few mutation operations, lacking the automation and scalability to adapt to different scenarios. To enable context-aware and efficient red teaming, we abstract and model existing attacks into a coherent concept called "jailbreak strategy" and propose a multi-agent LLM system named RedAgent that leverages these strategies to generate context-aware jailbreak prompts. By self-reflecting on contextual feedback in an additional memory buffer, RedAgent continuously learns how to leverage these strategies to achieve effective jailbreaks in specific contexts. Extensive experiments demonstrate that our system can jailbreak most black-box LLMs in just five queries, improving the efficiency of existing red teaming methods by two times. Additionally, RedAgent can jailbreak customized LLM applications more efficiently. By generating context-aware jailbreak prompts towards applications on GPTs, we discover 60 severe vulnerabilities of these real-world applications with only two queries per vulnerability. We have reported all found issues and communicated with OpenAI and Meta for bug fixes.

📄 PDF Abstract BibTeX arXiv:2407.16667

Code (0)

등록된 구현이 없습니다.

Tasks

Red Teaming

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Adam 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
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$…
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

STRUCTUREDAGENT: Planning with AND/OR Trees for Long-Horizon Web Tasks

2026-03-05 · ELita Lobo, Xu Chen, Jingjing Meng, Nan Xi 외 arxiv

Recent advances in large language models (LLMs) have enabled agentic systems for sequential decision-making. Such agents must perceive their environment, reason across multiple time steps, and take actions that optimize …

PrivAgent: Agentic-based Red-teaming for LLM Privacy Leakage

2024-12-07 · Yuzhou Nie, Zhun Wang, Ye Yu, Xian Wu 외

Recent studies have discovered that LLMs have serious privacy leakage concerns, where an LLM may be fooled into outputting private information under carefully crafted adversarial prompts. These risks include leaking syst…

Red TeamingSafety Alignment

Agent Teaming Situation Awareness (ATSA): A Situation Awareness Framework for Human-AI Teaming

2023-08-31 · Qi Gao, Wei Xu, Mowei Shen, Zaifeng Gao

The rapid advancements in artificial intelligence (AI) have led to a growing trend of human-AI teaming (HAT) in various fields. As machines continue to evolve from mere automation to a state of autonomy, they are increas…

Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models

2025-12-21 · Zhang Wei, Hanxuan Chen, Peilu Hu, Zhenyuan Wei 외 arxiv

Red-teaming is becoming a central part of large language model (LLM) safety evaluation, yet current practice still relies heavily on expert-written prompts or fixed benchmark suites. This creates a gap between what is ea…

Vulnerability Detection

T-MAP: Red-Teaming LLM Agents with Trajectory-aware Evolutionary Search

2026-03-21 · Hyomin Lee, Sangwoo Park, Yumin Choi, Sohyun An 외 arxiv

While prior red-teaming efforts have focused on eliciting harmful text outputs from large language models (LLMs), such approaches fail to capture agent-specific vulnerabilities that emerge through multi-step tool executi…