论文精选

结构化四阶段法律翻译框架将交通规则转为 PROLOG 逻辑

Structured Four-Stage Legal Translation: From Natural-Language Traffic Rules to PROLOG

精选理由

这个新框架挺有意思,能自动把交通规则翻译成 PROLOG 逻辑,不用人工干预,准确率还比基准方法高不少。

这项研究评估了两种基准方法(自然语言到 PROLOG 和逻辑英语到 PROLOG),并提出了 Structured Four-Stage Legal Translation (S4L→Prolog) 新框架。该框架通过语义角色提取、场景补全、逻辑映射和 PROLOG 规则生成四个阶段,直接将原始交通规则翻译成可执行的逻辑,无需人工干预。在包含20条真实世界交通规则的基准测试中,S4L→Prolog 的准确率最高,正确形式化75%的规则,而 NL→Prolog 达到60%,LE→Prolog 达到55%。

原文 · arXiv cs.AI

Structured Four-Stage Legal Translation: From Natural-Language Traffic Rules to PROLOG

Traffic regulations are written for human interpretation and therefore rely on shared background knowledge and flexible phrasing, which inherently introduce ambiguity, context dependence, and semantic underspecification. These linguistic characteristics conflict with the precision required by computational reasoning engines such as Prolog, which demand explicit logical structure. This study evaluates two baseline translation approaches, Natural Language to Prolog ($NL\rightarrow Prolog$) and Logical English to Prolog ($LE\rightarrow Prolog$), and introduces a new reasoning-guided translation framework called Structured Four-Stage Legal Translation ($S4L\rightarrow Prolog$). The proposed S4L framework performs semantic role extraction, scene completion, logical mapping, and Prolog rule generation within a single guided prompt, enabling direct translation of raw traffic rules into executable logic without human intervention. A benchmark consisting of twenty real-world traffic rules was used to evaluate each approach in terms of syntactic validity, semantic correctness, and logical completeness. $S4L\rightarrow Prolog$ achieves the highest accuracy, correctly formalizing 75 percent of the rules, while $NL\rightarrow Prolog$ reaches 60 percent and $LE\rightarrow Prolog$ reaches 55 percent. Qualitative analysis further shows that S4L captures implicit causal relations, deontic modality, and exception structure more reliably than the baselines. These results demonstrate that structured reasoning prompts can substantially improve the reliability of natural-language-to-logic translation for legal and safety-critical applications.