Skip to main content
QUICK REVIEW

[Paper Review] Conflict-Free Policy Languages for Probabilistic ML Predicates: A Framework and Case Study with the Semantic Router DSL

X Liu, Hao Wu|arXiv (Cornell University)|Mar 18, 2026
Formal Methods in VerificationComputer Science0 citations
TL;DR

The paper defines ProbPol, a framework for conflict-free policy languages where rule conditions are probabilistic ML signals, develops a decidability hierarchy, introduces Voronoi normalization to prevent co-firing for embeddings, and implements compiler-level safeguards in the Semantic Router DSL with a case study on LLM inference routing.

ABSTRACT

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.

Motivation & Objective

  • Extend firewall anomaly taxonomy to probabilistic predicates and identify new conflict types.
  • Map the decidability landscape for crisp, embedding, and classifier signals in policy rules.
  • Propose a practical normalization and compiler tooling to prevent co-firing without retraining.
  • Demonstrate implementation in the Semantic Router DSL and discuss applicability to semantic RBAC and API gateways.

Proposed method

  • Classify policy condition atoms into crisp, geometric (embedding), and classifier signals to define a three-level decidability hierarchy.
  • Introduce three new probabilistic conflict types—probable conflict, soft shadowing, and calibration conflict—and prove their decidability implications.
  • Propose Voronoi normalization via temperature-scaled softmax (Voronoi partition) to ensure at most one embedding-based signal fires within a group.
  • Develop compiler-level checks in the Semantic Router DSL (category overlap, guard warnings, SIGNAL_GROUP, TEST blocks, TIER routing) to detect and repair conflicts.
  • Present a case-study implementation in the Semantic Router DSL and discuss extensions to semantic RBAC and API gateways.

Experimental results

Research questions

  • RQ1What conflict types arise when policy atoms are probabilistic ML signals, and how do they differ from classical crisp predicates?
  • RQ2Under what conditions are conflicts between probabilistic signals decidable or undecidable?
  • RQ3Can embedding-based signals be made conflict-free without retraining, and how?
  • RQ4What compiler-level techniques can enforce or aid the creation of conflict-free policies in a production routing DSL?
  • RQ5How generalizable are the proposed ideas to semantic RBAC and API gateway policies?

Key findings

  • A three-level conflict taxonomy extends traditional firewall anomalies to probabilistic predicates, including probable conflict, soft shadowing, and calibration conflict.
  • Embedding signals with Voronoi normalization (temperature-scaled softmax) can eliminate co-firing, making embedding-based conflicts tractable without retraining.
  • Crisp-signals conflicts remain decidable via SAT, embedding conflicts reduce to spherical cap intersections, while classifier-signals require distributional knowledge and are generally undecidable offline.
  • Compiler-level tooling in the Semantic Router DSL can detect category overlaps, suggest guard repairs, enforce mutual exclusivity via SIGNAL_GROUP, support TEST blocks, and enable multi-tier routing.
  • Voronoi normalization provides a practical, model-agnostic mechanism to enforce conflict-free routing with embedding signals, without altering models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.