arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.27690cs.CLcs.LG
收藏

TRACES: 通过轨迹状态建模实现多轮LLM智能体的主动安全审计

TRACES: Proactive Safety Auditing for Multi-Turn LLM Agents via Trajectory-State Modeling

Brown University(布朗大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Rutgers University(罗格斯大学);Texas A&M University(德克萨斯阿姆斯特朗大学)

Jiaqian Li, Yanshu Li, Boxuan Zhang, Ruixiang Tang, Kuan-Hao Huang

AI总结:

提出TRACES方法,通过观察LLM的隐藏表示学习前缀级轨迹风险状态,实现多轮工具使用环境下的主动安全审计,提升全轨迹安全预测和主动风险判别能力。

摘要:

LLM智能体越来越多地通过多轮工具使用和环境交互来运作,其中安全风险往往在最终结果显现之前的中间步骤中就已经出现。因此,反应式审计是不够的:事后诊断常常在风险正在展开时错过标记它们的机会。我们提出TRACES,一种基于表示的主动审计器,它从观察者LLM的隐藏表示中学习前缀级轨迹风险状态。TRACES从步骤表示中诱导潜在机制特征,并建模其时间演化,以估计部分轨迹是否正在向不安全行为漂移。为了规避步骤级风险标注的成本和歧义,TRACES在弱轨迹级监督下训练,同时仍能产生密集的前缀级风险估计。在多个智能体安全基准测试中,TRACES改进了全轨迹安全预测和主动风险判别。我们的分析进一步表明,这些风险状态可以帮助训练更安全的智能体,凸显了主动审计在长程智能体安全中的更广泛潜力。

英文摘要:

LLM agents increasingly operate through multi-turn tool use and environment interaction, where safety risks often emerge from intermediate steps long before they surface in the final outcome. Reactive auditing is therefore insufficient: post-hoc diagnosis frequently misses the chance to flag risks while they are unfolding. We propose TRACES, a representation-based proactive auditor that learns prefix-level trajectory risk states from the hidden representations of an observer LLM. TRACES induces latent mechanism features from step representations and models their temporal evolution to estimate whether a partial trajectory is drifting toward unsafe behavior. To sidestep the cost and ambiguity of step-level risk annotation, TRACES is trained with weak trajectory-level supervision while still producing dense prefix-level risk estimates. Across multiple agent safety benchmarks, TRACES improves both full-trajectory safety prediction and proactive risk discrimination. Our analyses further suggest that these risk states can help train a safer agent, highlighting the broader potential of proactive auditing for long-horizon agent safety.

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

↑