arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.16407cs.LOcs.CLcs.CRcs.PL
收藏

为LLM流水线提供证明携带证书:一种信任边界架构

Proof-Carrying Certificates for LLM Pipelines: A Trust-Boundary Architecture

Ascendr, Inc.(Ascendr公司)

George Koomullil

AI总结:

本文提出一种验证大型语言模型周围确定性结构计算的框架,扩展了Lean 4信任边界架构至现代LLM流水线的通用接口。核心贡献包括三个证书家族和两个操作符,用于高风险部署中的专利检索、金融监管等场景。

摘要:

我们提出一种框架,用于验证大型语言模型周围确定性结构计算,而非模型本身,将Lean 4信任边界架构扩展到现代LLM流水线的通用接口。证书的有效性是Lean 4内核类型检查加上没有sorry的传递公理审核,针对受信任集合{propext, Classical.choice, Quot.sound};其他假设被声明并按层级划分(数学占位符、密码学假设、ML/人类或acles)。技术贡献包括三个本地证书家族和两个操作符。家族包括冲突感知的双石接地(带有发射门声学引理)、嵌入敏感性和改写稳定性,以及Hoare风格的代理行为。操作符包括最大可证明残差,将回避转化为最大权重可证明残差,带有审计日志记录的被丢弃声明;以及组合稳定性定理,从每层增益和边距中得出闭合形式的流水线整体扰动预算。三个家族加一个通用保证卡整合器构成每调用交付物:专利和法律检索、受监管金融、临床决策支持和具有不可逆副作用的代理系统。编译后的Lean 4参考制品(Lean v4.30.0-rc2,Mathlib)涵盖了所有22种证书类型,其中17个46个内核审核声明无公理,其余仅依赖于受信任集合和声明的假设,且无sorryAx或Lean.ofReduceBool的使用。三个家族通过四个注册试点进行了实证测试:双石接地在对抗性扰动的HotpotQA上,嵌入敏感性在短形式和长形式设置中,以及Hoare风格的代理行为在文件系统沙盒中对抗性提示注入。

英文摘要:

We present a framework for verifying the deterministic structured computations surrounding a large language model rather than the model itself, extending a Lean 4 trust-boundary architecture to the generic interfaces of modern LLM pipelines. Certificate validity is a Lean 4 kernel type-check plus a sorry-free transitive axiom audit against the trusted set {propext, Classical.choice, Quot.sound}; other assumptions are declared and partitioned by tier (mathematical placeholders, cryptographic assumptions, ML/human oracles). The technical contribution comprises three local certificate families and two operators. The families are conflict-aware bilattice grounding (with an emission-gate soundness lemma), embedding sensitivity and paraphrase stability, and Hoare-style agent action. The operators are a Maximal Certifiable Residue, which turns abstention into the maximum-weight certifiable residue with audit-logged dropped claims, and a Compositional Stability theorem, which yields a closed-form pipeline-wide perturbation budget from per-layer gains and margins. The three families plus a Universal Assurance Card consolidator form the per-call deliverable for high-stakes deployments: patent and legal retrieval, regulated finance, clinical decision support, and agentic systems with irreversible side effects. A compiled Lean 4 reference artifact (Lean v4.30.0-rc2, Mathlib) covers all 22 certificate types, with 17 of 46 kernel-audited declarations axiom-free, the rest depending only on the trusted set and declared assumptions, and zero uses of sorryAx or Lean.ofReduceBool. The three families are empirically tested through four registered pilots: bilattice grounding on adversarially perturbed HotpotQA, embedding sensitivity in short- and long-form settings, and Hoare-style agent action on a filesystem sandbox with adversarial prompt injection.

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

↑