NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Test-Time Safety Alignment with Dynamic Intervention for Jailbreak Defense in LLMs

Shanwen Tan, Wei Ju, Hao Wu, Kun Wang, Yiwei Fu, Yifan Wang, Ziyue QiaoOpenReview 2026 · Submission to ICLR 2026 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

This paper investigates the security of large language models (LLMs) in extended reasoning, with a particular focus on mitigating vulnerabilities such as jailbreak attacks. Existing approaches generally modify model parameters during training to inject secure behaviors into LLMs. However, such methods remain susceptible to various jailbreak attacks at test time and often perform poorly in security evaluations. To address these challenges, we propose an innovative framework named Test-time Security Alignment with Dynamic Intervention (TRADE) to directly mitigate jailbreak vulnerabilities during inference. Specifically, we introduce a reward-guided branch update module that advances the generation process using a multifurcation reward model, which evaluates multiple candidate tokens simultaneously. To further mitigate jailbreak attacks, we assess the final response with an additional safeguard model that enables safety-aware post-processing. If harmful content is detected, TRADE injects secure prompts and restarts the reward-guided generation phase with an efficient tree-search thresholding strategy. Extensive experiments on benchmark datasets have demonstrated the effectiveness of TRADE compared to existing LLM reasoning methods under jailbreak attack scenarios. Our code is available at https://anonymous.4open.science/r/TRADE-4DB3.
BibTeX
@misc{tan2026test,
  author = {Shanwen Tan and Wei Ju and Hao Wu and Kun Wang and Yiwei Fu and Yifan Wang and Ziyue Qiao},
  title = {{Test-Time Safety Alignment with Dynamic Intervention for Jailbreak Defense in LLMs}},
  year = {2026},
  url = {https://openreview.net/forum?id=kABKmwVgIi},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure