arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.07239cs.CL
收藏

Red-Bandit:通过带引导的LoRA专家实现LLM红队测试的测试时适应

Red-Bandit: Test-Time Adaptation for LLM Red-Teaming via Bandit-Guided LoRA Experts

Imperial College London(伦敦帝国学院)

Christos Ziakas, Nicholas Loo, Nishita Jain, Alessandra Russo

AI总结:

本文提出Red-Bandit框架,通过带引导的LoRA专家在不同攻击风格下实现LLM的测试时适应,通过强化学习生成不安全提示,并利用多臂老虎机策略动态选择攻击风格专家,从而在AdvBench上取得最佳结果,同时生成更易读的提示。

摘要:

自动化红队测试已成为在部署前审计大型语言模型(LLM)的可扩展方法,但现有方法缺乏有效适应模型特定漏洞的机制。我们介绍了Red-Bandit,一种红队测试框架,能够在线适应以识别和利用不同攻击风格(例如操纵、俚语)下的模型失败模式。Red-Bandit通过强化学习后训练一组参数高效的LoRA专家,每个专家专门针对特定的攻击风格,奖励生成不安全提示通过基于规则的安全模型。在推理时,多臂老虎机策略根据目标模型的响应安全性动态选择这些攻击风格专家,平衡探索和利用。Red-Bandit在足够的探索(ASR@10)下在AdvBench上实现了最先进的结果,同时生成更易于人类阅读的提示(更低的困惑度)。此外,Red-Bandit的老虎机策略还充当诊断工具,通过指示哪些攻击风格最有效引发不安全行为来揭示模型特定的漏洞。

英文摘要:

Automated red-teaming has emerged as a scalable approach for auditing Large Language Models (LLMs) prior to deployment, yet existing approaches lack mechanisms to efficiently adapt to model-specific vulnerabilities at inference. We introduce Red-Bandit, a red-teaming framework that adapts online to identify and exploit model failure modes under distinct attack styles (e.g., manipulation, slang). Red-Bandit post-trains a set of parameter-efficient LoRA experts, each specialized for a particular attack style, using reinforcement learning that rewards the generation of unsafe prompts via a rule-based safety model. At inference, a multi-armed bandit policy dynamically selects among these attack-style experts based on the target model's response safety, balancing exploration and exploitation. Red-Bandit achieves state-of-the-art results on AdvBench under sufficient exploration (ASR@10), while producing more human-readable prompts (lower perplexity). Moreover, Red-Bandit's bandit policy serves as a diagnostic tool for uncovering model-specific vulnerabilities by indicating which attack styles most effectively elicit unsafe behaviors.

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

↑