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

更安全智能体的追踪能力

Tracking Capabilities for Safer Agents

EPFL(苏黎世联邦理工学院)

Martin Odersky, Yaoyu Zhao, Yichen Xu, Oliver Bračevac, Cao Nguyen Pham

AI总结:

提出通过Scala 3的捕获检查类型系统静态追踪能力,构建基于编程语言的智能体安全约束,防止信息泄露和恶意副作用。

摘要:

通过工具调用与现实世界交互的AI智能体带来了基本的安全挑战:智能体可能泄露私人信息、导致意外副作用或通过提示注入被操纵。为应对这些挑战,我们建议将智能体置于基于编程语言的“安全约束”中:智能体不直接调用工具,而是以能力安全的语言(支持捕获检查的Scala 3)中的代码表达其意图。能力是程序变量,用于调节对感兴趣的效果和资源的访问。Scala的类型系统静态追踪能力,提供对智能体行为的细粒度控制。特别是,它支持局部纯度,即强制子计算无副作用的能力,防止智能体处理机密数据时的信息泄露。我们展示了通过利用具有追踪能力的强类型系统,可以构建可扩展的智能体安全约束。实验表明,智能体能够生成能力安全的代码,而任务性能没有显著损失,同时类型系统可靠地防止了信息泄露和恶意副作用等不安全行为。

英文摘要:

AI agents that interact with the real world through tool calls pose fundamental safety challenges: agents might leak private information, cause unintended side effects, or be manipulated through prompt injection. To address these challenges, we propose to put the agent in a programming-language-based "safety harness": instead of calling tools directly, agents express their intentions as code in a capability-safe language: Scala 3 with capture checking. Capabilities are program variables that regulate access to effects and resources of interest. Scala's type system tracks capabilities statically, providing fine-grained control over what an agent can do. In particular, it enables local purity, the ability to enforce that sub-computations are side-effect-free, preventing information leakage when agents process classified data. We demonstrate that extensible agent safety harnesses can be built by leveraging a strong type system with tracked capabilities. Our experiments show that agents can generate capability-safe code with no significant loss in task performance, while the type system reliably prevents unsafe behaviors such as information leakage and malicious side effects.

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

↑