利用 LLMs 将 AI 政策转化为可执行规则,通过 P2T 框架实现标准化表示,提升政策执行的自动化与安全性。
摘要:
AI 政策指导主要以散文形式编写,从业者必须首先将其转换为可执行规则,框架才能评估或执行它们。这个手动步骤速度慢、容易出错、难以扩展,且常常延迟了现实部署中安全措施的使用。为解决这一差距,我们提出了 Policy-to-Tests(P2T),一个将自然语言政策文件转换为标准化、可机读规则的框架。该框架包含一个流水线和一个紧凑的领域特定语言(DSL),用于编码危险、范围、条件、例外和所需证据,从而产生提取规则的规范表示。为了测试该框架超出单一政策,我们将其应用于通用框架、行业指导和企业标准,提取义务性条款并将其转换为可执行规则。这些 AI 生成的规则在跨度级和规则级指标上与强人类基线非常接近,与黄金集的 inter-annotator 一致性稳健。为了评估下游行为和安全影响,我们向生成代理添加了 HIPAA 导出的安全措施,并将其与一个其他完全相同的无安全措施代理进行比较。基于黄金标准标准对齐的 LLM 基于测量违规率和对模糊和组合提示的鲁棒性。详细的实验结果在附录中提供。我们发布了代码库、DSL、提示和规则集作为开源资源,以实现可重复评估。
英文摘要:
AI policy guidance is predominantly written as prose, which practitioners must first convert into executable rules before frameworks can evaluate or enforce them. This manual step is slow, error-prone, difficult to scale, and often delays the use of safeguards in real-world deployments. To address this gap, we present Policy-to-Tests (P2T), a framework that converts natural-language policy documents into normalized, machine-readable rules. The framework comprises a pipeline and a compact domain-specific language (DSL) that encodes hazards, scope, conditions, exceptions, and required evidence, yielding a canonical representation of extracted rules. To test the framework beyond a single policy, we apply it across general frameworks, sector guidance, and enterprise standards, extracting obligation-bearing clauses and converting them into executable rules. These AI-generated rules closely match strong human baselines on span-level and rule-level metrics, with robust inter-annotator agreement on the gold set. To evaluate downstream behavioral and safety impact, we add HIPAA-derived safeguards to a generative agent and compare it with an otherwise identical agent without guardrails. An LLM-based judge, aligned with gold-standard criteria, measures violation rates and robustness to obfuscated and compositional prompts. Detailed results are provided in the appendix. We release the codebase, DSL, prompts, and rule sets as open-source resources to enable reproducible evaluation.
Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composing
Tsinghua University(清华大学);Wuliangye Yibin Co., Ltd.(五粮液宜宾有限公司);Yantai University(烟台大学);Key Laboratory of Digital Construction and Digital Twin, Ministry of Housing and Urban-Rural Development(住房和城乡建设部数字建造与数字孪生重点实验室)
CPGPrompt: Translating Clinical Guidelines into LLM-Executable Decision Support
Information Science (Health Tech), Cornell Tech, New York, NY, USA(信息科学(健康科技),康奈尔科技,纽约,纽约州);Systems Engineering, Cornell University, Ithaca, NY, USA(系统工程,康奈尔大学,伊萨卡,纽约州);Population Health Sciences, Weill Cornell Medicine, New York, NY, USA(人口健康科学,韦尔医学院,纽约,纽约州);Computer and Information Science, Cornell University, Ithaca, NY, USA(计算机与信息科学,康奈尔大学,伊萨卡,纽约州);Department of Biomedical Informatics, Columbia University, New York, NY, USA(生物医学信息学系,哥伦比亚大学,纽约,纽约州);Department of Medicine, Weill Cornell Medicine, New York, NY, USA(医学系,韦尔医学院,纽约,纽约州);Department of Health Information Management, University of Pittsburgh, Pittsburgh, PA, USA(健康信息管理系,匹兹堡大学,匹兹堡,宾夕法尼亚州);Clinical and Translational Science Institute, University of Pittsburgh, Pittsburgh, PA, USA(临床与转化科学研究所,匹兹堡大学,匹兹堡,宾夕法尼亚州);Department of Neurology, UT Southwestern Medical Center, Dallas, TX, USA(神经病学系,德克萨斯西南医学中心,达拉斯,德克萨斯州);Peter O’Donnell Jr. Brain Institute, UT Southwestern Medical Center, Dallas, TX, USA(彼得·奥·donnell Jr.脑研究所,德克萨斯西南医学中心,达拉斯,德克萨斯州);Clinical Informatics Center, University of Texas Southwestern Medical Center, Dallas, USA(临床信息学中心,德克萨斯西南医学中心,达拉斯,美国);Institute of Artificial Intelligence for Digital Health, Weill Cornell Medicine, New York, NY USA(数字健康人工智能研究所,韦尔医学院,纽约,纽约州)
From Natural Language to Executable Option Strategies via Large Language Models
City University of Hong Kong(香港城市大学);The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳));Shanghai University of Finance and Economics(上海财经大学);University of Science and Technology of China(中国科学技术大学)
AgentEconomist: An End-to-end Agentic System Translating Economic Intuitions into Executable Computational Experiments
Zhongguancun Academy(中关村学院);University of Science and Technology of China(中国科学技术大学);Department of Electronic Engineering, Tsinghua University(清华大学电子工程系);Vanke School of Public Health, Tsinghua University(清华大学万科公共卫生学院)
Building the ethical AI framework of the future: from philosophy to practice
Graduate School of Global Studies(全球研究研究生院);Tokyo University of Foreign Studies(东京外国语大学);AI Product Development Division(人工智能产品开发部门);Money Forward, Inc.(Money Forward公司)
Computable Gap Assessment of Artificial Intelligence Governance in Children's Centres: Evidence-Mechanism-Governance-Indicator Modelling of UNICEF's Guidance on AI and Children 3.0 Based on the Graph-GAP Framework
Dhurakij Pundit University(杜斯特帕尼大学);The University of Western Australia(西澳大学);Royal Anthropological Institute(皇家人类学研究所)