paper-with-me

홈 › Papers

Defense Against the Dark Prompts: Mitigating Best-of-N Jailbreaking with Prompt Evaluation

2025-02-01 · Stuart Armstrong, Matija Franklin, Connor Stevens, Rebecca Gorman

Recent work showed Best-of-N (BoN) jailbreaking using repeated use of random augmentations (such as capitalization, punctuation, etc) is effective against all major large language models (LLMs). We have found that $100\%$ of the BoN paper's successful jailbreaks (confidence interval $[99.65\%, 100.00\%]$) and $99.8\%$ of successful jailbreaks in our replication (confidence interval $[99.28\%, 99.98\%]$) were blocked with our Defense Against The Dark Prompts (DATDP) method. The DATDP algorithm works by repeatedly utilizing an evaluation LLM to evaluate a prompt for dangerous or manipulative behaviors--unlike some other approaches, DATDP also explicitly looks for jailbreaking attempts--until a robust safety rating is generated. This success persisted even when utilizing smaller LLMs to power the evaluation (Claude and LLaMa-3-8B-instruct proved almost equally capable). These results show that, though language models are sensitive to seemingly innocuous changes to inputs, they seem also capable of successfully evaluating the dangers of these inputs. Versions of DATDP can therefore be added cheaply to generative AI systems to produce an immediate significant increase in safety.

📄 PDF Abstract BibTeX arXiv:2502.00580

Code (1)

alignedai/DATDP 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Defense Against the Dark Arts: An overview of adversarial example security research and future research directions

2018-06-11 · Ian Goodfellow

This article presents a summary of a keynote lecture at the Deep Learning Security workshop at IEEE Security and Privacy 2018. This lecture summarizes the state of the art in defenses against adversarial examples and pro…

Deep Learning

Beyond the Benchmark: Innovative Defenses Against Prompt Injection Attacks

2025-12-18 · Safwan Shaheer, G. M. Refatul Islam, Mohammad Rafid Hamid, Tahsin Zaman Jilan arxiv

In this fast-evolving area of LLMs, our paper discusses the significant security risk presented by prompt injection attacks. It focuses on small open-sourced models, specifically the LLaMA family of models. We introduce …

AlignTree: Efficient Defense Against LLM Jailbreak Attacks

2025-11-15 · Gil Goren, Shahar Katz, Lior Wolf arxiv

Large Language Models (LLMs) are vulnerable to adversarial attacks that bypass safety guidelines and generate harmful content. Mitigating these vulnerabilities requires defense mechanisms that are both robust and computa…

Mitigating Adaptive Attacks against Reasoning Models with Activation Consistency Training

2026-05-27 · Avidan Shah, Jannik Brinkmann, Rico Angell arxiv

As LLMs gain stronger reasoning capabilities, their extended chain-of-thought introduces new degrees of complexity for defending against adversarial jailbreaks and prompt injection. We study consistency training, a famil…

DECEPTICON: How Dark Patterns Manipulate Web Agents

2025-12-28 · Phil Cuvin, Hao Zhu, Diyi Yang arxiv

Deceptive UI designs, widely instantiated across the web and commonly known as dark patterns, manipulate users into performing actions misaligned with their goals. In this paper, we show that dark patterns are highly eff…