← Lab /AI/ML

Membrane improves jailbreak detection and cuts benign refusals to 7-14% across benchmarks

Membrane achieves the highest F1 on six jailbreak attacks while keeping benign refusal rates between 7% and 14%

AI/ML arXiv 4 Jun 2026 Defense Prototype evidence

Published as “Membrane: A Self-Evolving Contrastive Safety Memory for LLM Agent Defense”

Why it matters

The method can be deployed as a lightweight, low-latency guard that markedly reduces harmful outputs while preserving benign query acceptance.

Summary

MEMBRANE attains the highest F1 on all six jailbreak attacks, with benign refusal rates of only 7-14% on AgentHarm-far lower than the 28-85% of prior guards. It also keeps 87-88% F1 under cross-attack transfer and resists 20% memory-poisoning. The evidence comes from benchmark results on HarmBench and AgentHarm, though the paper does not report results on non-English or multimodal settings.

What they found 3

  1. Highest overall F1 and lowest ASR on most attacks

    “MEMBRANE achieves the highest F1 score on every attack and the lowest ASR on five out of six attacks.”

  2. Very low benign refusal on agent safety

    “Notably, benign refusal on AgentHarm stays at 7-14%, well below the 28-85% range of prior guards.”

  3. Strong cross-attack transfer and poisoning resistance

    “Memory cells also retain 87-88% F1 under cross-attack transfer and remain stable under memory poisoning.”

Caveats 4

  • SelfDefend 60.3 0.6 56.7
  • MEMBRANE is evaluated on text-only English model-safety and agent-safety benchmarks.
  • The remaining attacks we do not model are fully adaptive white-box adversaries with access to the guard, memory store, and deployment pipeline.
  • All response-level evaluation is delegated to Gemini 3 Flash, a model family distinct from the Qwen3-8B guard, to reduce correlated blind spots between the guard and the judge.

What’s new here 4

  • Pairs each harmful query with a superficially similar benign counterpart in a contrastive memory cell.
  • Indexes memory cells by underlying attack strategy rather than surface form, enabling cross-attack generalization.
  • Updates the memory online without retraining via a Paired Self-Evolution rule.
  • Provides a retrieval critic to filter poisoned cells, improving robustness to memory poisoning.