Papers

Epistemic Typestates:用类型系统保证多智能体强化学习安全的论文

Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning

Why we picked it

把编程语言里的类型系统搬到多智能体RL上,安全证明全部机械化,9个基准零违规还不用通信,速度比contract方法快得多,做安全RL的研究者应该细读。

一篇arXiv论文提出epistemic typestates,一种面向多智能体强化学习的类型纪律。智能体的类型是一个协议,其状态记录信念——即从自身观察和动作中无法排除的世界集合——并只允许在每个可能世界都安全的动作,无论其他智能体如何行动。类型按单个智能体逐一构建和检查,运行时无需通信,保证对所有学习到的策略都成立。

Body

作者证明了类型可靠性和团队安全性,给出可靠且完备的合成方法,在世界为无限时从守卫构建类型,并证明shield是该框架的特例。所有证明在Rocq中机械化。在9个基准上,没有任何类型化学习器造成安全违规,任务性能与两种近期多智能体shielding方法没有显著差异。

对比方面,基于contract的方法在5和10个智能体时失败,而类型方法构建10个智能体的类型不到1秒;在两个连续基准上,Lagrangian学习器每次训练都造成数千次违规。

Original · arXiv cs.AI

Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning

Type disciplines make programs safe by construction: components checked against each other's types compose into programs that cannot go wrong in the ways the types exclude. Types suit reinforcement learning: a type constrains what an agent may choose, not how it chooses, so the guarantee holds for every policy a learner produces. We introduce epistemic typestates, a type discipline for safe multi-agent reinforcement learning. An agent's type is a protocol whose states record its beliefs, the worlds it cannot rule out from its own observations and actions, and permits only actions that are safe in every world of the belief, whatever the others do within their public types. Agents learn inside their types, which are built and checked one agent at a time and run without communication. We prove type soundness and team safety, give a synthesis that is sound and complete, build types from guards when worlds are infinite, and show that shields are a special case. All proofs are mechanised in Rocq. On nine benchmarks, no typed learner causes a safety violation, and task performance does not differ significantly from that of two recent multi-agent shielding methods. Where a contract-based method fails at five and ten agents, types for ten agents are built in under a second. In the two continuous benchmarks, Lagrangian learners cause thousands of violations in every training run.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include multi-agent reinforcement learning, formal verification, Rocq, safe RL.

Source attribution: curated from arXiv cs.AI (@Lorenzo Bacchiani, Mario Bravetti, Giovanni Pau, Roberto Girau).