The Persistent Vulnerability of Aligned AI Systems
Organizations: Department of Computer Science, University College London
Abstract
Autonomous AI agents are being deployed with filesystem access, email control, and multi-step planning. This thesis contributes to four open problems in AI safety: understanding dangerous internal computations, removing dangerous behaviors once embedded, testing for vulnerabilities before deployment, and predicting when models will act against deployers. ACDC automates circuit discovery in transformers, recovering all five component types from prior manual work on GPT-2 Small by selecting 68 edges from 32,000 candidates in hours rather than months. Latent Adversarial Training (LAT) removes dangerous behaviors by optimizing perturbations in the residual stream to elicit failure modes, then training under those perturbations. LAT solved the sleeper agent problem where standard safety training failed, matching existing defenses with 700x fewer GPU hours. Best-of-N jailbreaking achieves 89% attack success on GPT-4o and 78% on Claude 3.5 Sonnet through random input augmentations. Attack success follows power law scaling across text, vision, and audio, enabling quantitative forecasting of adversarial robustness. Agentic misalignment tests whether frontier models autonomously choose harmful actions given ordinary goals. Across 16 models, agents engaged in blackmail (96% for Claude Opus 4), espionage, and actions causing death. Misbehavior rates rose from 6.5% to 55.1% when models stated scenarios were real rather than evaluations. The thesis does not fully resolve any of these problems but makes each tractable and measurable.
Figures & tables
| Chapter | Method | Level | Access |
|---|---|---|---|
| Chapter 3 | ACDC | Circuit (mechanistic) | White-box |
| Chapter 4 | LAT | Latent representation (interventional) | White-box |
| Chapter 5 | Best-of-N | Input-output (statistical) | Black-box |
| Chapter 6 | Agentic misalignment | Behavioral (scenario-based) | Black-box |
| Task | Example Prompt | Output | Metric |
|---|---|---|---|
| 1: IOI (Appendix A.3.1 ) | “When John and Mary went to the store, Mary gave a bottle of milk to” | John | Logit difference |
| 2: Docstring (Appendix A.3.2 ) | def f(self, files, obj, state, size, shape, option): """document string example :param state: performance analysis :param size: pattern design :param | shape | Logit difference |
| 3: Greater-Than ( Section A.3.4 ) | “The war lasted from 1517 to 15” | “18” or “19” or …or “99” | Probability difference |
| 4: tracr-xproportion ( Section A.3.5 ) | ["a", "x", "b", "x"] | [0, 0.5, 0.33, 0.5] | Mean Squared Error |
| 5: tracr-reverse ( Section A.3.5 ) | [0, 3, 2, 1] | [1, 2, 3, 0] | Mean Squared Error |
| 6: Induction ( Section 3.4.2 ) | “Vernon Durs ley and Petunia Durs ” | “ley” | Negative log- probability |
| Goal | Method Augmented with LAT |
|---|---|
| Jailbreak Robustness ( Section 4.4.1 ) | Refusal Training (RT) |
| Embedding-Space Adversarial Training Xhonneux et al. 2024 | |
| Backdoor Removal ( Section 4.4.2 ) | Direct Preference Optimization (DPO) Rafailov et al. 2024 |
| Unlearning ( Section 4.4.3 ) | Who’s Harry Potter (WHP) Eldan and Russinovich 2023 |
| Gradient Ascent (GA) Jang et al. 2022 | |
| Representation Misdirection for Unlearning (RMU) Li et al. 2024a |
| Backdoor | Baseline | DPO | DPO-LAT | DPO | DPO-LAT |
|---|---|---|---|---|---|
| (proxy triggers) | (proxy triggers) | ||||
| CalatheaOrnata | 2.640 | 3.557 ±0.080 | 3.077 ±0.201 | 3.219 ±0.029 | 3.017 ±0.112 |
| 23_.|/**9821;- - - | 2.160 | 4.389 ±0.110 | 4.332 ±0.056 | 4.313 ±0.071 | 4.054 ±0.082 |
| SpyL4bb | 1.480 | 4.127 ±0.124 | 3.915 ±0.090 | 3.952 ±0.094 | 3.684 ±0.166 |
| ILoveAppleJuice | 3.360 | 3.895 ±0.132 | 3.947 ±0.090 | 3.916 ±0.021 | 4.067 ±0.084 |
| GlobalWarmingIsReal! | 1.330 | 4.035 ±0.090 | 4.009 ±0.081 | 3.784 ±0.081 | 3.806 ±0.117 |
| Claude Sonnet | Claude Opus | Gemini Flash | Gemini Pro | GPT-4o | GPT-4o-Mini | |
|---|---|---|---|---|---|---|
| T=1 | 46.0% | 44.7% | 15.5% | 14.9% | 24.3% | 26.4% |
| T=0 | 51.7% | 50.3% | 23.4% | 15.0% | 27.6% | 28.7% |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | ACDC AUC | Random AUC |
|---|---|---|
| IOI | 0.95 | 0.50 |
| Docstring | 0.92 | 0.50 |
| Greater-Than | 0.98 | 0.50 |
| Method | Backdoor ASR (%) | MMLU Acc (%) |
|---|---|---|
| Baseline | 95.2 | 68.4 |
| DPO | 42.1 | 67.8 |
| LAT | 8.3 | 68.1 |
| Steps ( ) | ASR (%) | Cost ($) | Model |
|---|---|---|---|
| 50 | 54.47 | 1.61 | GPT-4o-Mini |
| 100 | 64.09 | 3.21 | GPT-4o-Mini |
| 250 | 74.59 | 9.63 | GPT-4o-Mini |
| 500 | 80.63 | 16.05 | GPT-4o-Mini |
| 1000 | 85.09 | 32.10 | GPT-4o-Mini |
| 50 | 41.76 | 4.33 | GPT-4o |
AI Agent Safety
AI agent safety studies how to prevent and detect harmful actions by autonomous systems that use tools, memory, and multi-step plans.
See all 324 papers