arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.26037cs.CRcs.AIcs.CL
收藏

SIRAJ:基于蒸馏结构化推理的LLM智能体的多样化和高效的红队测试

SIRAJ: Diverse and Efficient Red-Teaming for LLM Agents via Distilled Structured Reasoning

Microsoft Responsible AI Research(微软负责任人工智能研究);University of California(加州大学)

Kaiwen Zhou, Ahmed Elgohary, A S M Iftekhar, Amin Saied

摘要:

LLM代理计划和调用工具的能力使他们面临新的安全风险,使得全面的红队测试系统对于发现漏洞和确保安全部署至关重要。我们提出SIRAJ:一个通用的红队测试框架任意黑盒LLM代理。我们采用了一个动态的两步过程,从代理定义开始,并生成不同的种子测试案例,涵盖各种风险结果,工具使用轨迹和风险源。然后,它迭代地构造和完善基于模型的对抗攻击的执行轨迹的基础上,以前的尝试。为了优化红队测试成本,我们提出了一种模型蒸馏方法,利用教师模型推理的结构化形式来训练同样有效的较小模型。在不同的评估代理设置,我们的种子测试用例生成方法产生2 - 2.5倍的风险结果和工具调用轨迹的覆盖率。我们的8B red-teamer模型将攻击成功率提高了100%,超过了671 B Deepseek-R1模型。我们的消融和分析验证了迭代框架的有效性,结构化推理,和我们的红队模型的推广。

英文摘要:

The ability of LLM agents to plan and invoke tools exposes them to new safety risks, making a comprehensive red-teaming system crucial for discovering vulnerabilities and ensuring their safe deployment. We present SIRAJ: a generic red-teaming framework for arbitrary black-box LLM agents. We employ a dynamic two-step process that starts with an agent definition and generates diverse seed test cases that cover various risk outcomes, tool-use trajectories, and risk sources. Then, it iteratively constructs and refines model-based adversarial attacks based on the execution trajectories of former attempts. To optimize the red-teaming cost, we present a model distillation approach that leverages structured forms of a teacher model's reasoning to train smaller models that are equally effective. Across diverse evaluation agent settings, our seed test case generation approach yields 2 -- 2.5x boost to the coverage of risk outcomes and tool-calling trajectories. Our distilled 8B red-teamer model improves attack success rate by 100%, surpassing the 671B Deepseek-R1 model. Our ablations and analyses validate the effectiveness of the iterative framework, structured reasoning, and the generalization of our red-teamer models.

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

↑