Test-Time Training Undermines Safety Guardrails
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Test-Time Training (TTT) is an emerging paradigm that enables models to adapt their parameters during inference, improving performance on tasks such as few-shot learning, retrieval-augmented generation, and complex reasoning. However, this dynamic adaptation introduces new vulnerabilities that adversaries can exploit to jailbreak models. We identify three threat models for TTT and demonstrate how attackers can leverage them to bypass safety filters. Our results show that TTT can significantly increase the Attack Success Rate (ASR) and the ASR over 10 generation trials (ASR@10). For example, under LoRA, the few-shot and generation-phase threat models achieve an average ASR@10 of 95% and 93% respectively, across models from different families and scales. These vulnerabilities transfer to production fine-tuning APIs. We also show that TTT-induced overfitting can produce degenerate outputs that inflate ASR under standard judges, and propose a validity-aware evaluation to correct for this. Our findings suggest that TTT exposes a new attack surface, strengthens attacks, and undermines existing safety guardrails. As a first step toward defense, we propose a lightweight provider-side detector that flags TTT requests via the perplexity shift on a private harmful holdout, but robust deployment will ultimately require dynamic alignment.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 32 of its 46 references that are in the map. First posted on arXiv 21 May 2026.
Builds on
32 of 46 references.
Closest ancestors · 5
Same direction, newest first
- 2026Test-Time Safety Alignment28 Apr
- 2026Amplification Effects in Test-Time Reinforcement Learning: Safety and Reasoning Vulnerabilities16 Mar
- 2025LLM-Safety Evaluations Lack Robustness4 Mar
- 2024Towards Understanding the Fragility of Multilingual LLMs against Fine-Tuning Attacks23 Oct
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
Other references · 27
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2020On Adaptive Attacks to Adversarial Example Defensescited by 547
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 494
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
15 more
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
- 2025TTRL: Test-Time Reinforcement Learningcited by 253
- 2022Test-Time Training with Masked Autoencoderscited by 208
- 2024From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Modelscited by 136
- 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 128
- 2026Learning to Discover at Test Timecited by 94
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 88
- 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
- 2024Query-Based Adversarial Prompt Generationcited by 55
- 2025REINFORCE Adversarial Attacks on Large Language Models: An Adaptive, Distributional, and Semantic Objectivecited by 15
- 2023Uncovering Adversarial Risks of Test-Time Adaptationcited by 12
- 2025Attack via Overfitting: 10-shot Benign Fine-tuning to Jailbreak LLMscited by 10
- 2025Sampling-aware Adversarial Attacks Against Large Language Modelscited by 9
- 2023Test-Time Poisoning Attacks Against Test-Time Adaptation Modelscited by 7
- 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Researchcited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Yesterday's Shield, Today's Spear: A Self-Evolving Safety Guardrail in Production
- 2025Reasoning as an Adaptive Defense for Safety
- 2025Less Diverse, Less Safe: The Indirect But Pervasive Risk of Test-Time Scaling in Large Language Models
- 2025Saffron-1: Safety Inference Scaling
- 2026Online Shift Detection and Conformal Adaptation for Deployed Safety Classifiers
- 2026A Dual-Hypothesis Reasoning Framework for LLM Guardrails
- 2026Beyond Unsafe Detection: Counterfactually Anchored Evidence Attribution for Multi-Turn LLM Safety Failures
- 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasets