arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.27347cs.AI
收藏

基于大语言模型的法律合规评估智能体:加拿大及魁北克语境下的架构、记忆与评估

An LLM-Based Agent for Legal Compliance Assessment: Architecture, Memory, and Evaluation in a Canadian and Quebec Context

Université du Québec à Trois-Rivières (UQTR)(三河城魁北克大学)

Soukaina Alaoui Ismaili, Jean-Sebastien Dessureault

AI总结:

该研究提出多智能体框架COMPASS的法律合规子智能体ComplianceAgent,依托大语言模型在加拿大及魁北克语境下评估文本,实验表明其可准确区分合规与不合规文本,得分稳定且检索有效。

摘要:

手动检查文本是否符合法律条文的过程缓慢,而基于关键词规则的方法则存在脆弱性。本文提出ComplianceAgent,它是多智能体框架COMPASS的法律合规子智能体,COMPASS可从数字主权、碳影响、合规性和伦理四个维度评估文本。该智能体依托大语言模型,依据固定评分标准对文本打分,将判断锚定在参考法律 corpus 上;当得分等于或低于临界阈值时,会运行包含自修复重写、合规标签、可解释性报告及向人类审核员升级的修正链。我们描述了大语言模型在各步骤的作用、智能体记忆的组织方式,以及同一实现如何适配不同参考 corpus。我们在加拿大及魁北克语境下对该智能体进行评估,使用的 corpus 包含13份法律文书,涵盖联邦与省级文本、国际条约以及三河城的市政文件。评估基于15份文本的人工标注黄金标准,结合分类指标、重复查询稳定性测试、检索精度和综合评分。在该黄金标准上,智能体可区分所有合规与不合规文本,其得分在重复查询下保持稳定,且检索能返回相关段落。

英文摘要:

Checking whether a text complies with a body of law is slow when done by hand and fragile when done with keyword rules. This paper presents ComplianceAgent, the legal compliance sub-agent of COMPASS, a multi-agent framework that evaluates texts along four axes: digital sovereignty, carbon impact, compliance, and ethics. The agent relies on a large language model that scores a text on a fixed rubric, grounds its judgment in a reference legal corpus, and, when the score falls at or below a critical threshold, runs a corrective chain made of self-healing rewrites, a compliance label, an explainability report, and escalation to a human reviewer. We describe what the language model does at each step, how the memory of the agent is organized, and how the same implementation can be pointed at different reference corpora. We evaluate the agent in a Canadian and Quebec context, on a corpus of thirteen legal instruments that brings together federal and provincial texts, international treaties, and municipal documents of the City of Trois-Rivières. The evaluation relies on a hand-annotated gold standard of fifteen texts and combines classification metrics, a repeated-query stability test, retrieval precision, and a composite score. On this gold standard the agent separates every conforming text from every non-conforming one, its scores remain stable under repeated queries, and the index returns relevant passages.

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

↑