Iowa State University - Thesis & Dissertation
Cross-layer SAE feature drift for early detection and mitigation of multi-turn jailbreaks
Abstract
dc:description.abstractThe rapid development of Large-Language Models (LLMs) has raised AI Safety to a critical concern. Despite recent safety alignment, LLMs remain vulnerable to multi-turn jailbreak attacks that bypass safeguards through gradual escalation. This thesis investigates whether Sparse Autoencoder (SAE) feature drift can serve as an early warning signal for multi-turn jailbreak escalation, and whether targeted feature intervention can restore safe behavior upon detection. Using Gemma-3-4B-IT with Gemma Scope SAEs across four transformer layers, a cross-layer MLP classifier is trained on per-turn aggregated SAE activations to detect escalation before harmful output appears. The detector successfully identified jailbreak escalation with a median early warning of 1.5 turns before harmful output appeared. Feature analysis revealed that detection is driven primarily by features that escalate as harmful intent accumulates, and by turn-over-turn activation drift. A compact causal subset was identified for use as the steering intervention target. A conditional steering intervention was designed and implemented; however, applying correction vectors at detected escalation turns produced no meaningful reduction in attack success rate, and stronger corrections made outcomes worse.These results suggest that detection and intervention are separable problems: the detector reliably identifies escalating turns, but correcting the underlying feature activations does not prevent jailbreak success. These findings confirm that SAE activation drift is a viable early warning signal for multi-turn jailbreak escalation, while effective feature-level intervention remains an open problem.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- thesis
- Discipline thesis:degree_discipline
- Computer engineering
- Department dc:contributor.department
- Department of Electrical and Computer Engineering
- Grantor
- Iowa State University - Thesis & Dissertation
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Chu, Yi-Wen
- Advisor dc:contributor.advisor
-
- Wang, Chang
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en_US
Identifiers
dc:identifier.*- Identifier URI
- https://dr.lib.iastate.edu/handle/20.500.12876/106644