LegalSim:多智能体法律系统模拟以发现程序性漏洞
LegalSim: Multi-Agent Simulation of Legal Systems for Discovering Procedural Exploits
AI总结:
LegalSim通过多智能体模拟揭示法律程序中的漏洞链,通过PPO、老虎机、LLM和启发式策略比较,发现AI系统如何利用程序性弱点。
摘要:
我们介绍了LegalSim,一个模块化的多智能体对抗性法律程序模拟系统,探索AI系统如何利用编码规则中的程序性弱点。原告和被告智能体在受约束的动作空间(例如,调查请求、动议、会商、制裁)中进行选择,这些动作由JSON规则引擎控制,而一个具有校准授予率、成本分配和制裁倾向的随机法官模型决定结果。我们比较了四种策略:PPO,一个带有LLM的上下文老虎机,一个直接的LLM策略,以及一个手工编写的启发式策略;与优化二元案件结果不同,智能体是通过有效胜利率和一个综合的漏洞评分进行训练和评估的,该评分结合了对手成本膨胀、日程压力、低价值案件的和解压力以及规则合规性边际。在可配置的制度(例如,破产中止、相互当事人审查、税务程序)和异质法官中,我们观察到涌现的“漏洞链”,例如成本膨胀的调查序列和日程压力战术,这些在程序上是有效的,但系统上是有害的。通过交叉对战和Bradley-Terry评分评估显示,PPO胜率更高,老虎机在对手之间最一致地具有竞争力,LLM落后于它们,而启发式策略最弱。结果在法官设置中是稳定的,该模拟揭示了涌现的漏洞链,促使对法律规则系统的红队测试,除了模型级测试之外。
英文摘要:
We present LegalSim, a modular multi-agent simulation of adversarial legal proceedings that explores how AI systems can exploit procedural weaknesses in codified rules. Plaintiff and defendant agents choose from a constrained action space (for example, discovery requests, motions, meet-and-confer, sanctions) governed by a JSON rules engine, while a stochastic judge model with calibrated grant rates, cost allocations, and sanction tendencies resolves outcomes. We compare four policies: PPO, a contextual bandit with an LLM, a direct LLM policy, and a hand-crafted heuristic; Instead of optimizing binary case outcomes, agents are trained and evaluated using effective win rate and a composite exploit score that combines opponent-cost inflation, calendar pressure, settlement pressure at low merit, and a rule-compliance margin. Across configurable regimes (e.g., bankruptcy stays, inter partes review, tax procedures) and heterogeneous judges, we observe emergent ``exploit chains'', such as cost-inflating discovery sequences and calendar-pressure tactics that remain procedurally valid yet systemically harmful. Evaluation via cross-play and Bradley-Terry ratings shows, PPO wins more often, the bandit is the most consistently competitive across opponents, the LLM trails them, and the heuristic is weakest. The results are stable in judge settings, and the simulation reveals emergent exploit chains, motivating red-teaming of legal rule systems in addition to model-level testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。