[论文解读] Conflict-Free Policy Languages for Probabilistic ML Predicates: A Framework and Case Study with the Semantic Router DSL
论文定义 ProbPol,一个用于冲突自由策略语言的框架,其中规则条件是概率化的 ML 信号,开发了可判定性分层,引入 Voronoi 归一化以防止嵌入在同一组内同时触发,以及在 Semantic Router DSL 中实现编译器级 safeguards,并通过对大语言模型推理路由的案例研究进行演示。
Conflict detection in policy languages is a solved problem -- as long as every rule condition is a crisp Boolean predicate. BDDs, SMT solvers, and NetKAT all exploit that assumption. But a growing class of routing and access-control systems base their decisions on probabilistic ML signals: embedding similarities, domain classifiers, complexity estimators. Two such signals, declared over categories the author intended to be disjoint, can both clear their thresholds on the same query and silently route it to the wrong model. Nothing in the compiler warns about this. We characterize the problem as a three-level decidability hierarchy -- crisp conflicts are decidable via SAT, embedding conflicts reduce to spherical cap intersection, and classifier conflicts are undecidable without distributional knowledge -- and show that for the embedding case, which dominates in practice, replacing independent thresholding with a temperature-scaled softmax partitions the embedding space into Voronoi regions where co-firing is impossible. No model retraining is needed. We implement the detection and prevention mechanisms in the Semantic Router DSL, a production routing language for LLM inference, and discuss how the same ideas apply to semantic RBAC and API gateway policy.
研究动机与目标
- 将防火墙异常分类扩展到概率谓词并识别新冲突类型。
- 绘制 crisp、embedding 与 classifier 信号在策略规则中的可判定性格局。
- 提出一种实用的归一化和编译工具,以在不重新训练的情况下防止共触发。
- 在 Semantic Router DSL 中展示实现,并讨论对语义 RBAC 与 API 网关的适用性。
提出的方法
- 将策略条件原子分类为 crisp、几何(embedding)和 classifier 信号,以定义三层可判定性层级。
- 引入三种新的概率性冲突类型——probable conflict、soft shadowing 和 calibration conflict,并证明它们的可判定性含义。
- 通过温度缩放的 softmax(Voronoi 分区)提出 Voronoi 归一化,以确保同组内至多只有一个基于嵌入的信号触发。
- 在 Semantic Router DSL 中开发编译器级检查(类别重叠、守卫警告、SIGNAL_GROUP、TEST 块、TIER 路由)以检测并修复冲突。
- 在 Semantic Router DSL 中呈现一个案例研究实现,并讨论对语义 RBAC 与 API 网关的扩展。
实验结果
研究问题
- RQ1当策略原子是概率性 ML 信号时,会出现哪些冲突类型,并且它们与传统的 crisp 谓词有何不同?
- RQ2在什么条件下概率性信号之间的冲突是可判定的或不可判定的?
- RQ3嵌入式信号是否可以在不重新训练的情况下实现冲突自由,方法为何?
- RQ4在生产路由 DSL 中,哪些编译器级技术可以强制或帮助创建冲突自由的策略?
- RQ5所提出的想法对语义 RBAC 与 API 网关策略的普遍性有多大?
主要发现
- 三层冲突分类将传统防火墙异常扩展到概率谓词,包括 probable conflict、soft shadowing 和 calibration conflict。
- 通过 Voronoi 归一化(温度缩放 softmax)的嵌入信号可以消除共触发,使基于嵌入的冲突在不重新训练的前提下变得可处理。
- crisp 信号冲突仍通过 SAT 决定,embedding 冲突收敛于球面帽相交,而 classifier 信号需要分布知识且通常离线不可判定。
- 在 Semantic Router DSL 中的编译器级工具可检测类别重叠、给出守卫修复建议、通过 SIGNAL_GROUP 强制互斥、支持 TEST 块并实现多层路由。
- Voronoi 归一化提供一种实用、模型无关的机制,用以在不改变模型的前提下,通过嵌入信号实现冲突自由路由。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。