Skip to main content
QUICK REVIEW

[Paper Review] Are aligned neural networks adversarially aligned?

Nicholas Carlini, Milad Nasr|arXiv (Cornell University)|Jun 26, 2023
Adversarial Robustness in Machine LearningComputer Science25 citations
TL;DR

The paper assesses whether aligned LLMs remain robust to adversarial inputs, showing NLP-based attacks struggle against alignment, while multimodal inputs can reliably induce misalignment; it argues stronger attacks are needed to certify robustness of text-only models.

ABSTRACT

Large language models are now tuned to align with the goals of their creators, namely to be "helpful and harmless." These models should respond helpfully to user questions, but refuse to answer requests that could cause harm. However, adversarial users can construct inputs which circumvent attempts at alignment. In this work, we study adversarial alignment, and ask to what extent these models remain aligned when interacting with an adversarial user who constructs worst-case inputs (adversarial examples). These inputs are designed to cause the model to emit harmful content that would otherwise be prohibited. We show that existing NLP-based optimization attacks are insufficiently powerful to reliably attack aligned text models: even when current NLP-based attacks fail, we can find adversarial inputs with brute force. As a result, the failure of current attacks should not be seen as proof that aligned text models remain aligned under adversarial inputs. However the recent trend in large-scale ML models is multimodal models that allow users to provide images that influence the text that is generated. We show these models can be easily attacked, i.e., induced to perform arbitrary un-aligned behavior through adversarial perturbation of the input image. We conjecture that improved NLP attacks may demonstrate this same level of adversarial control over text-only models.

Motivation & Objective

  • Evaluate robustness of aligned language models (e.g., RLHF/instruction tuning) to adversarial inputs.
  • Show that current NLP-based attacks may not reveal true adversarial vulnerability of aligned models.
  • Demonstrate that multimodal input (text+image) can reliably induce unaligned outputs.
  • Propose a methodology to test whether attacks exist beyond current NLP techniques.
  • Highlight implications for safety of future multimodal and text-only models.

Proposed method

  • Review and benchmark existing NLP-based adversarial attacks (ARCA, GBDA) against aligned chat models.
  • Construct test cases with brute-force verification to determine existence of adversarial examples.
  • Evaluate attacks under chat-format prompts with attacker-controlled messages and fixed system prompts.
  • Extend analysis to multimodal models by injecting adversarial images to induce toxic or unaligned outputs.
  • Measure attack success rates and input distortions to quantify robustness and vulnerability.

Experimental results

Research questions

  • RQ1Do current NLP-based adversarial attacks reliably find inputs that cause aligned models to produce toxic content?
  • RQ2Are aligned models genuinely robust to worst-case inputs, or are current attacks simply underpowered?
  • RQ3Can multimodal inputs (text+images) be used to reliably induce unaligned outputs in aligned models?
  • RQ4What are the practical differences in vulnerability between text-only and multimodal aligned models?

Key findings

  • NLP-based attacks (ARCA, GBDA) show limited success on aligned chat models, with low pass rates across tested setups.
  • A brute-force confirmation approach demonstrates that adversarial examples exist, even when NLP attacks fail to find them.
  • In multimodal models, adversarial images can cause models to emit arbitrary toxic content with 100% success in the tested cases.
  • Distortion required for successful image-based attacks is small (mean l2 distortions around 0.86 to 3.91), indicating practical feasibility.
  • Design choices in multimodal architectures significantly affect attack ease, with some implementations ~10× more vulnerable than others.
  • The authors conjecture that stronger NLP attacks could similarly enable adversarial control over text-only aligned models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.