English

Categorical Belief Propagation: Sheaf-Theoretic Inference via Descent and Holonomy

Artificial Intelligence 2026-01-09 v1 Category Theory

Abstract

We develop a categorical foundation for belief propagation on factor graphs. We construct the free hypergraph category \SynΣ\Syn_\Sigma on a typed signature and prove its universal property, yielding compositional semantics via a unique functor to the matrix category \catMatR\cat{Mat}_R. Message-passing is formulated using a Grothendieck fibration \Msg\catFGΣ\int\Msg \to \cat{FG}_\Sigma over polarized factor graphs, with schedule-indexed endomorphisms defining BP updates. We characterize exact inference as effective descent: local beliefs form a descent datum when compatibility conditions hold on overlaps. This framework unifies tree exactness, junction tree algorithms, and loopy BP failures under sheaf-theoretic obstructions. We introduce HATCC (Holonomy-Aware Tree Compilation), an algorithm that detects descent obstructions via holonomy computation on the factor nerve, compiles non-trivial holonomy into mode variables, and reduces to tree BP on an augmented graph. Complexity is O(n2dmax+ckmaxδmax3+nδmax2)O(n^2 d_{\max} + c \cdot k_{\max} \cdot \delta_{\max}^3 + n \cdot \delta_{\max}^2) for nn factors and cc fundamental cycles. Experimental results demonstrate exact inference with significant speedup over junction trees on grid MRFs and random graphs, along with UNSAT detection on satisfiability instances.

Keywords

Cite

@article{arxiv.2601.04456,
  title  = {Categorical Belief Propagation: Sheaf-Theoretic Inference via Descent and Holonomy},
  author = {Enrique ter Horst and Sridhar Mahadevan and Juan Diego Zambrano},
  journal= {arXiv preprint arXiv:2601.04456},
  year   = {2026}
}

Comments

No essential info