Colored Markov polycategories and diagrammatic differentiation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autor principal: Papamarkou, Theodore
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914521279365120
author Papamarkou, Theodore
author_facet Papamarkou, Theodore
contents Many stochastic systems are built by wiring typed components together, but the wiring is often neither purely sequential nor type-homogeneous. This paper develops categorical semantics for such systems using ordered polycategories whose morphisms are Markov kernels. The basic operation is kernel slotwise composition, which connects one output slot of a many-output kernel to one input slot of another and marginalizes the internal wire. We prove its structural laws by assigning trace semantics to finite acyclic diagrams. We then introduce colored Markov polycategories, where objects and kernels carry colors and typed connections are realized by coherent interface kernels. This gives a colored kernel slotwise composition and trace semantics for typed stochastic diagrams. To describe systems whose structure changes, we co-index colored Markov polycategories and parameter spaces over an indexing category. Finally, for finite acyclic parameterized diagrams, we prove a diagrammatic differentiation result. The derivative of an expected scalar objective is obtained from local reverse-mode contributions at the parameterized vertices, with stochastic and deterministic kernels handled through admissible local gradient operators. The construction gives a typed, compositional language for finite acyclic stochastic systems and their parameter sensitivities.
format Preprint
id arxiv_https___arxiv_org_abs_2604_27959
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Colored Markov polycategories and diagrammatic differentiation
Papamarkou, Theodore
Category Theory
Many stochastic systems are built by wiring typed components together, but the wiring is often neither purely sequential nor type-homogeneous. This paper develops categorical semantics for such systems using ordered polycategories whose morphisms are Markov kernels. The basic operation is kernel slotwise composition, which connects one output slot of a many-output kernel to one input slot of another and marginalizes the internal wire. We prove its structural laws by assigning trace semantics to finite acyclic diagrams. We then introduce colored Markov polycategories, where objects and kernels carry colors and typed connections are realized by coherent interface kernels. This gives a colored kernel slotwise composition and trace semantics for typed stochastic diagrams. To describe systems whose structure changes, we co-index colored Markov polycategories and parameter spaces over an indexing category. Finally, for finite acyclic parameterized diagrams, we prove a diagrammatic differentiation result. The derivative of an expected scalar objective is obtained from local reverse-mode contributions at the parameterized vertices, with stochastic and deterministic kernels handled through admissible local gradient operators. The construction gives a typed, compositional language for finite acyclic stochastic systems and their parameter sensitivities.
title Colored Markov polycategories and diagrammatic differentiation
topic Category Theory
url https://arxiv.org/abs/2604.27959