arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.22984cs.LGcs.AI
收藏

测试时训练削弱安全护栏

Test-Time Training Undermines Safety Guardrails

CISPA Helmholtz Center for Information Security(CISPA海德堡信息安全中心);University of Cologne(科隆大学)

Simone Antonelli, Sadegh Akhondzadeh, Aleksandar Bojchevski

AI总结:

本文揭示测试时训练(TTT)引入新漏洞,攻击者可利用三种威胁模型绕过安全过滤器,显著提升攻击成功率,并首次提出基于困惑度偏移的轻量级检测器作为防御第一步。

摘要:

测试时训练(TTT)是一种新兴范式,使模型在推理过程中调整参数,从而提升少样本学习、检索增强生成和复杂推理等任务的性能。然而,这种动态适应引入了攻击者可利用的新漏洞来越狱模型。我们识别了TTT的三种威胁模型,并演示了攻击者如何利用它们绕过安全过滤器。我们的结果表明,TTT可以显著提高攻击成功率(ASR)以及超过10次生成试验的ASR(ASR@10)。例如,在LoRA下,少样本和生成阶段威胁模型在不同家族和规模的模型上平均ASR@10分别达到95%和93%。这些漏洞可迁移到生产级微调API。我们还展示了TTT引发的过拟合可能产生退化输出,在标准评判下夸大ASR,并提出了一个有效性感知评估来纠正这一点。我们的发现表明,TTT暴露了新的攻击面,增强了攻击,并削弱了现有的安全护栏。作为防御的第一步,我们提出了一个轻量级的提供商侧检测器,通过私有有害保留集上的困惑度偏移来标记TTT请求,但稳健部署最终需要动态对齐。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑