Continuous-pixel image perturbations forced 100% of tested aligned multimodal models (LLaVA, MiniGPT-4, and LLaMA Adapter) to emit arbitrary toxic speech and harmful instructions, even though state-of-the-art discrete text attacks failed 92% to 99% of the time on aligned text chatbots. Carlini et al. show why: existing NLP optimizers fail to find adversarial text prompts even when brute-force search proves they exist.

That distinction turns a comforting benchmark result into an evaluation warning. When an aligned model like Vicuna refuses a white-box text attack, teams often conclude that RLHF or instruction tuning made the model adversarially robust. Instead, discrete token optimization is simply too weak to measure worst-case text robustness, whereas opening a continuous input modality like vision lets standard gradient descent bypass alignment effortlessly.

  • Text chat attacks look harmless: Modifying 30 tokens inside a [USER]: ... [AGENT]: template achieved 84% (±3%) nearby success on GPT-2 and 61% (±6%) on unaligned LLaMA with ARCA, but only 8% (±2%) on aligned Vicuna (1% with GBDA).
  • Brute force exposes weak optimizers: On GPT-2 test cases guaranteed by brute force to have a triggering input (10^-6 prevalence), ARCA passed just 11.1% and GBDA 3.1% at the exact token budget (1x). Even with 10x extra tokens, ARCA hit 30.6% and GBDA 9.5%.
  • Multimodal attacks hit 100%: Projected gradient descent (PGD, up to 500 steps) through CLIP and the LLM reached 100% attack success on all four tested vision-language models, requiring a mean L2 distortion of just 0.86 (±0.17) on LLaVA versus 3.91 (±0.36) on LLaMA Adapter.
  • Architectural fragility: Small projection and fine-tuning differences shifted required L2 perturbation magnitude by more than 4.5x across multimodal architectures (and up to 10x in sensitivity).
Diagnostic pass rates on GPT-2 tasks where a triggering prompt is guaranteed to exist
Brute Force (baseline)
100.0%
ARCA (10x extra tokens)
30.6%
ARCA (1x token budget)
11.1%
GBDA (10x extra tokens)
9.5%
GBDA (1x token budget)
3.1%

Pass rate across 8 test suites with known 2-to-20 token solutions at 10^-6 prevalence (higher means stronger optimizer; any score under 100% shows optimizer failure). Source: Carlini et al. (2023), Table 2.

Why realistic chat framing broke prior NLP attacks

Earlier prompt-inversion work let attackers control the tokens immediately before the model’s next generated token. Production chatbots break that assumption: applications wrap user messages inside fixed delimiters ([USER]: ... [AGENT]:), so the adversary can optimize X inside Gen(P_pre || X || P_post) but cannot alter the trailing [AGENT]: tokens. Because backpropagating through full multi-token rollouts is intractable, Carlini et al. optimize a harmful prefix surrogate: forcing the model to start its reply with a short toxic target (1 to 3 tokens), after which greedy decoding (temperature = 0) keeps emitting harmful continuations on its own.

Even with 30 attacker-controlled tokens, ARCA and GBDA struggled once [AGENT]: sat between the attack and the reply. On aligned Vicuna, nearby ARCA dropped to 8% (±2%) and distant ARCA (tokens placed before the user question) hit 6% (±2%), while GBDA scored 1% (±1%) and 0% (±1%).

To separate model robustness from optimizer weakness, the authors constructed synthetic diagnostic tests on unaligned GPT-2 using Wikipedia prefixes p_j and sampling 1,000,000 random sequences s_i to locate rare target continuations q at 10^-6 probability. Because brute force proved a valid trigger existed for every test case, any score below 100% directly measured attack failure. ARCA failed nearly 90% of the time at 1x token length and nearly 70% even at 10x. That observation set up later discrete-optimizer breakthroughs and AutoDan and PAIR jailbreak benchmarks.

How continuous image inputs bypass alignment

Vision-language models eliminate the discrete-token bottleneck. Architectures like MiniGPT-4, LLaVA, and LLaMA Adapter pass images through a frozen CLIP vision encoder and project the resulting features into the LLM’s soft-token embedding space (or internal adapters). Starting from uniform random noise images, Carlini et al. build an end-to-end differentiable path from pixels to output logits and run projected gradient descent (PGD, step size 0.2, max 500 steps) using teacher-forcing cross-entropy on the target harmful prefix.

Every single multimodal model broke 100% of the time across OpenAssistant prompts, regardless of whether the model used instruction tuning or RLHF. Attacked MiniGPT-4 and LLaVA models shifted from polite refusals (“It is not appropriate to encourage or provide information on how to harm or kill someone”) to writing vitriolic abuse and step-by-step murder-evasion instructions. Comparing L2 pixel perturbations revealed how sensitive vulnerability is to projection design: LLaVA broke at 0.86 (±0.17) mean L2 distortion, MiniGPT-4 Instruct at 2.51 (±1.45), MiniGPT-4 RLHF at 2.71 (±2.12), and LLaMA Adapter at 3.91 (±0.36).

Text-only vs. multimodal adversarial attack success
Model & Attack ChannelAttack Success RatePerturbation / Constraint
Vicuna (Text, ARCA Nearby)8% (±2%)30 discrete tokens
Vicuna (Text, GBDA Nearby)1% (±1%)30 discrete tokens
LLaVA (Image, PGD)100%Mean L2: 0.86 (±0.17)
MiniGPT-4 Instruct (Image)100%Mean L2: 2.51 (±1.45)
MiniGPT-4 RLHF (Image)100%Mean L2: 2.71 (±2.12)
LLaMA Adapter (Image)100%Mean L2: 3.91 (±0.36)

Lower L2 distortion indicates easier pixel manipulation (up to 500 PGD steps). Source: Carlini et al. (2023), Tables 1 and 3.

Caveats and builder takeaway

Three boundaries define the scope of these experiments. First, all attacks assume white-box access to weights and gradients on open-source models (Vicuna, LLaVA, MiniGPT-4, LLaMA Adapter), leaving closed proprietary APIs untested. Second, automated toxicity grading relied on simple substring matching for toxic words, which produced under 10 false-positive anomalies where Vicuna uttered a curse word only to apologize immediately afterward. Third, the authors conjecture rather than prove that stronger discrete text attacks will unlock the same 100% failure rate in text-only aligned models.

For engineers deploying AI systems, the operational lesson is direct: never treat a low failure rate under off-the-shelf red-teaming as evidence of robustness (see also baseline defense evaluations and representation circuit breakers). Report the attacker’s search budget, optimization method, and exposed modalities, and treat every continuous input channel (images, audio, raw embeddings) as an unguarded surface for gradient-based jailbreaks.