TLDRocket
Sign in

Adversarial Attacks on LLMs

Lilian Weng

Researchers examine adversarial attacks and jailbreak prompts that can circumvent safety measures in large language models despite alignment efforts during training. Adversarial attacks on text-based systems are more challenging than image-based attacks because text operates in discrete space without direct gradient signals. Understanding these attack methods is essential for improving model robustness and maintaining safety guarantees in deployed LLM systems.

Why it matters

The use of large language models in the real world has strongly accelerated by the launch of ChatGPT. We (including my team at OpenAI, shoutout to them) have invested a lot of effort to build default safe behavior into the model during the alignment process (e.g. via RLHF). However, adversarial attacks or jailbreak prompts could potentially trigger the model to output something undesired. A large body of ground work on adversarial attacks is on images, and differently it operates in the continuous, high-dimensional space. Attacks for discrete data like text have been considered to be a lot more challenging, due to lack of direct gradient signals. My past post on Controllable Text Generation is quite relevant to this topic, as attacking LLMs is essentially to control the model to output a certain type of (unsafe) content.

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads 60+ sources, removes duplicate coverage, and summarises the day in two minutes. Free, no spam, unsubscribe anytime.