The Geometry of Harmfulness in Multi-Turn Attacks
Organizations: Lisa · Applied AI Research TELUS Digital Charlottesville, VA 22902
Abstract
Large language models (LLMs) remain vulnerable to adversarial attacks that circumvent safety alignment to elicit harmful outputs. It remains unclear how harmfulness and refusal representations evolve over the course of multi-turn attacks, and why single-turn defenses are less effective in multi-turn settings. This work investigates how the geometry and temporal dynamics of harmfulness and refusal representations evolve across multi-turn attacks. We analyzed hidden-state representations from three instruction-tuned LLMs (Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Gemma-2-9B-it) using three multi-turn attack frameworks (Crescendo, ActorAttack, and X-Teaming), and examined representation behavior across conversation turns, model layers, and token positions under various context configurations. Across models and frameworks, we found that (1) each attack framework traverses different geometric directions, yet each achieves comparable success in eliciting harmful outputs; (2) multi-turn harmfulness directions became increasingly linearly separable at the end-of-turn token position across turns in middle to late model layers; and (3) harmfulness representations are weakly aligned with refusal-related representations. The results indicate that multi-turn attacks do not succeed by suppressing the model's internal representation of harmfulness. Instead, harmfulness representations become increasingly separable across conversation turns, while remaining only weakly aligned with refusal-related representations. The findings are one possible explanation for why static single-turn safety probes may degrade in multi-turn settings, and suggest that robust defenses must consider temporal representation dynamics rather than identifying harmfulness with isolated or single-turn prompts.
Figures & tables
| Direction | Contrast | Computed from | What it captures |
|---|---|---|---|
| single-turn harmfulness | harmful benign at | Topic-matched harmful/benign goals presented alone | Harmfulness direction derived from single-turn attacks |
| depth-matched control | harmful benign at | The same goals, each preceded by benign filler turns | Harmfulness direction at matched depth but with no attack content |
| multi-turn harmfulness | harmful benign at | Final turn of a framework-generated conversation for the same goals (a multi-turn attack for harmful goals or a benign dialogue for benign goals) | Harmfulness direction derived from multi-turn attacks |
| outcome / refusal-related | success failure at | Final turns of successful and failed multi-turn attacks | Proxy for a refusal direction derived from multi-turn attacks |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Turn start | Turn end |
|---|---|---|
| Llama-3.1-8B-Instruct | <|start_header_id|> role <|end_header_id|> | <|eot_id|> |
| Qwen2.5-7B-Instruct | <|im_start|> role | <|im_end|> |
| Gemma-2-9B-it | <start_of_turn> role | <end_of_turn> |
Adversarial Attacks on LLMs
Adversarial attacks on large language models probe how crafted inputs, internal changes, and agent interactions bypass safety or disrupt reliable behavior.
See all 355 papers