用结构化信息提升法律文本转可执行决策模型的准确性
From Legal Text to Executable Decision Models: Evaluating Structured Representations for Legal Decision Model Generation

- 用输入输出约束增强法律文本,显著提升生成模型结构相似度
- 生成模型在51%-53%测试场景中功能等同于真实模型
- 模型更简洁,自动移除45%-55%冗余逻辑,适合政府系统开发
将法律文本转化为可执行决策逻辑是法律信息学中的长期挑战。随着大语言模型(LLMs)的发展,这一任务重获关注,但仍因需大量人工编码与评估而困难重重。我们使用一个独特的现实世界数据集,包含荷兰环境与规划法的法律文本及其对应的生产级决策模型,这些模型支撑政府平台Omgevingsloket,供公民查询环境活动许可要求。研究探讨中间结构化表示是否能提升基于LLM的可执行决策模型生成效果。对比四种输入条件:原始法律文本、添加语义角色标签的文本、添加输入输出约束的文本,以及同时添加两者。评估维度包括结构相似性(通过图核和图统计量衡量)与功能等价性(在预设测试场景中执行模型)。结果表明,输入输出约束带来主导性提升(相比基线相似度提高37%-54%),语义角色标签仅带来适度改善。功能评估显示,生成模型在51%-53%测试场景中与标准模型等价,尽管生成模型通常更小更简单。模型自动消除高达45%-55%的冗余传递逻辑。重要的是,结构相似性与功能等价性互补:二者不可互相替代。为促进复现,我们公开发布包含95个生产级决策模型及其对应法律文本的完整数据集及所有实验代码。
原文摘要 · Abstract (English)
Transforming legal text into executable decision logic is a longstanding challenge in legal informatics. With the rise of LLMs, this task has gained renewed interest, but remains challenging due to requiring extensive manual coding and evaluation. We use a unique real-world dataset that pairs production-grade decision models with legal text from the Dutch Environment and Planning Act. These models power the Omgevingsloket government platform, where citizens check permit requirements for environmental activities. We study whether intermediate structured representations can improve LLM-based generation of executable decision models from legal text. We compare four input conditions: raw legal text, text enriched with semantic role labels, text enriched with input and output constraints, and text enriched with both. We evaluate along two dimensions: structural evaluation, through similarity to gold decision models with graph kernels and graphs' descriptive statistics, and outcome evaluation, through functional equivalence by executing models on pre-configured test scenarios. Our findings show that I/O constraints provide the dominant improvement (+37-54% similarity over baseline), while semantic role labels show modest improvements. Outcome evaluation shows that generated models match the gold standard on 51-53% of test scenarios, even though generated models are typically smaller and simpler. We find LLMs eliminate redundant pass-through logic that comprises up to 45-55% of nodes. Importantly, structural similarity and outcome equivalence are complementary: structural similarity does not guarantee outcome equivalence, and vice versa. To facilitate reproducibility, we publicly release our dataset of 95 production decision models with associated legal text and all experimental code.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。