Papers
Topics
Authors
Recent
Search
2000 character limit reached

Colored Markov Polycategories

Updated 4 July 2026
  • Colored Markov polycategories are ordered polycategories whose morphisms are Markov kernels augmented with a two-level color system for coherent typed interfaces.
  • They employ kernel slotwise composition and trace semantics to model finite acyclic stochastic diagrams and enable structured stochastic analysis.
  • The framework integrates object- and morphism-level coloring with interface kernels to support dynamic indexing and reverse-mode differentiation.

Colored Markov polycategories are ordered polycategories whose morphisms are Markov kernels, equipped with a two-level color discipline and coherent interface kernels for typed connections. They were introduced to give categorical semantics for stochastic systems built by wiring typed components together in ways that are neither purely sequential nor type-homogeneous. Their basic composition 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; their typed extension, colored kernel slotwise composition, inserts interface kernels between color-compatible but non-identical objects. The resulting formalism provides trace semantics for finite acyclic stochastic diagrams, a co-indexed treatment of systems whose structure changes over an indexing category, and a reverse-mode differentiation theorem for expected scalar objectives of parameterized diagrams (Papamarkou, 30 Apr 2026).

1. Ordered polycategorical substrate

The underlying combinatorial structure is an ordered polycategory. Inputs and outputs are finite ordered lists, and no symmetries are implicitly identified. For finite ordered tuples A=(A1,,Am)\mathbf{A}=(A_1,\dots,A_m) and B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n), the polyarrows form a set

HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),

with identities idX:(X)(X)id_X:(X)\to(X) for each object XX. Composition is slotwise: if

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},

and Bi=CjB_i=C_j, then output slot ii of kk may be wired to input slot jj of B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)0, producing

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)1

where

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)2

and

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)3

A Markov polycategory datum interprets each object B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)4 as a standard Borel space B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)5 and each polyarrow B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)6 as a Markov kernel

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)7

written B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)8. Identity polyarrows are identity kernels,

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)9

Kernel slotwise composition is defined by explicit bookkeeping maps that delete, project, and reinsert the internal variable. With HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),0, HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),1, HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),2, HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),3, and HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),4 as in the original definition, the composite is

HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),5

Operationally, one samples HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),6 from HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),7, feeds the distinguished component HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),8 into HomP(A;B),Hom_P(\mathbf{A};\mathbf{B}),9, retains the surviving outputs of idX:(X)(X)id_X:(X)\to(X)0 together with the outputs of idX:(X)(X)id_X:(X)\to(X)1, and marginalizes the internal wire. A Markov polycategory is a Markov polycategory datum that is closed under this operation (Papamarkou, 30 Apr 2026).

The ordered convention is structurally significant. It means that polycategorical positions are literal slot indices rather than equivalence classes modulo permutation. This makes the wiring discipline suitable for finite acyclic stochastic diagrams whose external interfaces are ordered and typed.

2. Trace semantics for finite acyclic stochastic diagrams

The structural laws of kernel slotwise composition are controlled by a trace semantics on finite acyclic KSC diagrams. Such a diagram consists of finitely many vertices, each labeled by a kernel

idX:(X)(X)id_X:(X)\to(X)2

together with internal wires

idX:(X)(X)id_X:(X)\to(X)3

connecting the idX:(X)(X)id_X:(X)\to(X)4-th output slot of one vertex to the idX:(X)(X)id_X:(X)\to(X)5-th input slot of another, subject to type equality, linearity of slot usage, and acyclicity of the induced directed graph. External inputs and outputs are the untargeted and unsourced slots, ordered to determine profiles idX:(X)(X)id_X:(X)\to(X)6 and idX:(X)(X)id_X:(X)\to(X)7.

Given a topological ordering idX:(X)(X)id_X:(X)\to(X)8 of the vertices, the semantics is constructed by input-assembly maps

idX:(X)(X)id_X:(X)\to(X)9

which assemble the inputs of each vertex from external inputs and outputs of earlier vertices. The induced joint trace measure on all vertex outputs is

XX0

Projecting to the external outputs gives the trace kernel

XX1

The key theorem states that for any finite acyclic KSC diagram, this trace kernel is a Markov kernel XX2 and is independent of the chosen topological ordering. Hence each finite acyclic diagram determines a unique global kernel XX3. The binary KSC composite is recovered as the trace kernel of the two-vertex one-wire diagram, and compatibility of trace semantics with diagram composition yields the polycategory laws: KSC is a well-defined Markov kernel, identities are units, and associativity and interchange hold (Papamarkou, 30 Apr 2026).

A common misunderstanding is to regard KSC as merely a notational variant of sequential composition. It is instead a primitive many-input, many-output operation indexed by slots. Its associativity theorem is not a triviality of notation but a consequence of the order-independent trace semantics for finite acyclic wiring diagrams.

3. Color systems, interface kernels, and typed composition

A colored Markov polycategory augments the untyped Markov polycategory structure by a global type discipline with both object-level and morphism-level colors. The color system comprises three pieces:

  1. A category XX4, the object-color category.
  2. An ordered polycategory XX5, the morphism-color polycategory, with

XX6

  1. A functor XX7, identity-on-objects, where XX8 is the unary part of XX9.

An object-coloring is a function

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},0

extended pointwise to tuples. A morphism-coloring assigns to each polyarrow k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},1 a morphism color

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},2

subject to

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},3

and preservation of slotwise composition: k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},4

Typed compatibility between non-identical objects is realized by interface data. For each pair k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},5 there is a set

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},6

of admissible interface witnesses, and each

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},7

is implemented by a unary interface kernel

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},8

satisfying

k:AB,l:CD,k:\mathbf{A}\to\mathbf{B},\qquad l:\mathbf{C}\to\mathbf{D},9

The interface system is coherent when it satisfies identity compatibility

Bi=CjB_i=C_j0

and composition compatibility

Bi=CjB_i=C_j1

The unary KSC equation here is explicitly identified with Chapman–Kolmogorov.

This structure supports colored kernel slotwise composition. If

Bi=CjB_i=C_j2

and there is an interface witness

Bi=CjB_i=C_j3

then one defines

Bi=CjB_i=C_j4

Thus the connection between the Bi=CjB_i=C_j5-th output of Bi=CjB_i=C_j6 and the Bi=CjB_i=C_j7-th input of Bi=CjB_i=C_j8 is mediated by an explicit interface kernel. The morphism color of the composite is computed synchronously in Bi=CjB_i=C_j9: ii0

Finite acyclic CKSC diagrams generalize KSC diagrams by labeling each internal wire with an interface witness. Their semantics is defined by interface expansion: every interface-labeled wire is replaced by an additional unary vertex labeled by the corresponding interface kernel, producing an ordinary KSC diagram. The trace kernel of the CKSC diagram is then the trace kernel of its interface expansion, and the independence-of-ordering theorem carries over. Consequently, CKSC is a valid kernel, satisfies unit laws, and obeys associativity and interchange (Papamarkou, 30 Apr 2026).

A recurrent misconception is that colors in this theory are merely labels on objects. In fact the formalism has three interacting levels: object colors, morphism colors, and interface kernels implementing object-color morphisms at the kernel level. The typing discipline is therefore not exhausted by object annotation.

4. Co-indexed colored Markov polycategories

The formalism extends from a single typed stochastic calculus to families of such calculi varying over an indexing category. For a fixed color system ii1, colored Markov polycategories and CMP-functors form a category

ii2

A CMP-functor ii3 is an ordered polyfunctor preserving identities and KSC, together with strict preservation of colors and interfaces: ii4 and

ii5

A co-indexed colored Markov polycategory consists of two strict functors over a category ii6. The first,

ii7

assigns to each state ii8 a CMP ii9 and to each morphism kk0 a state pushforward

kk1

The second,

kk2

assigns to each kk3 a finite-dimensional real parameter space kk4 and to each kk5 a differentiable parameter pushforward

kk6

Strictness means

kk7

and similarly for parameter pushforwards.

This formulation is used to model systems whose typed stochastic structure changes with time, graph structure, or another indexing parameter. The supplied examples include typed workflows, where one may pass from kk8 to kk9, then to jj0 by an interface kernel using a sigmoid, and then to jj1 by a deterministic kernel; and dynamic graph systems, where CMPs are indexed by graphs and local update kernels are transported as the graph grows. Diagram semantics is functorial under state pushforwards: jj2 for CKSC-reducible diagrams, so typed wiring and global kernel semantics commute with reindexing (Papamarkou, 30 Apr 2026).

The co-indexed viewpoint is important because it separates two kinds of variation: variation of stochastic architecture across jj3, handled by CMP-functors, and variation of numerical parameters, handled by differentiable maps between parameter spaces.

5. Diagrammatic differentiation

The differentiation theory applies to finite acyclic parameterized CKSC diagrams. A parameterized kernel

jj4

has fixed source and target objects and fixed morphism color, with joint measurability of jj5. A parameterized CKSC diagram assigns such a family to each vertex jj6, with local parameter space jj7, and total parameter space

jj8

For jj9, the instantiated diagram B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)00 has trace kernel

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)01

Given a reference profile B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)02, a probability measure B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)03 on B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)04, and an objective function

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)05

the expected scalar objective is

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)06

The analysis proceeds via the trace law

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)07

on external inputs, reference variables, and all vertex outputs in the interface-expanded diagram. Under B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)08 one considers a conditional expected future objective

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)09

with B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)10.

The local analytic device is an admissible local parameter-gradient operator. For a parameterized kernel B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)11 with extra context B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)12, such an operator assigns to each measurable payoff function

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)13

a measurable covector-valued function

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)14

that differentiates expectations by moving the derivative inside the kernel integral. Two explicit examples are singled out:

  1. Score-function rule:

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)15

when B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)16 has a density B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)17 and the stated regularity holds.

  1. Deterministic pathwise rule:

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)18

when

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)19

and B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)20 is differentiable in B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)21.

For a chosen parameterized vertex B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)22, one introduces a local context B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)23 whose joint law with B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)24 is independent of B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)25, together with a conditional expected future objective

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)26

The local reverse rule is then

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)27

The global theorem states that if B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)28 is differentiable and the local hypotheses hold for every parameterized vertex, then

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)29

is given componentwise by expected local contributions,

B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)30

Thus reverse-mode differentiation is expressed as a tuple of vertexwise expectations, with stochastic and deterministic kernels handled through admissible local gradient operators and with the CKSC typing retained throughout (Papamarkou, 30 Apr 2026).

Colored Markov polycategories sit within a broader landscape of many-input, many-output categorical structures. A foundational antecedent is the theory of colored PROPs and B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)31-propertopes. In that setting, a colored PROP has vertical composition, horizontal composition, units, and permutation actions, and polycategories are encoded by suitable colored PROPs. Presheaves on the category of B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)32-propertopes define B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)33-propertopic sets, and horn- and boundary-filling conditions define weak B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)34 B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)35-algebras; for suitable B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)36, one obtains higher versions of polycategories, colored PROPs, and TQFTs (0809.2161). This suggests a possible higher-dimensional continuation of the CMP program: a plausible implication is that one could seek a probabilistic colored PROP whose algebras model Markovian polymorphisms and then apply the propertope machinery to formulate higher colored Markov polycategories. In the supplied material, however, this is explicitly presented as conceptual extrapolation rather than as a theorem about CMPs.

A second neighboring line comes from bifibrations of polycategories and classical multiplicative linear logic. There, birepresentable polycategories correspond to B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)37-autonomous categories, and bifibrations generalize representability in the sense that such structures are birepresentable when they are bifibred over the terminal polycategory. The operational reading of polylinear maps in Banach-space examples treats inputs as states and outputs as probed by effects, with norms encoding preserved properties of systems (Blanco, 2023). This suggests fibrational and indexed reorganizations of typed stochastic polycategories, especially when one wants colors or modes to vary over a base category, although the supplied excerpt does not furnish a formal definition of a Markov version.

CMPs are also distinct from other colored diagrammatic categories. The multiparameter colored partition category is a rigid symmetric strict monoidal category whose morphisms are colored partition diagrams, whose path algebra admits a triangular decomposition, and whose representation theory involves complex reflection groups and reduced Kronecker coefficients. The supplied source explicitly notes that “colored Markov polycategory” is not a term used there (Mazorchuk et al., 2022). A useful clarification follows: colored partition categories study a different kind of colored diagrammatics, while CMPs are specifically measure-theoretic, kernel-based, and slotwise-polycategorical.

Relative to standard categorical probability, the distinguishing point is that ordinary categories, including Markov categories, model B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)38-input, B=(B1,,Bn)\mathbf{B}=(B_1,\dots,B_n)39-output morphisms with monoidal structure added externally, whereas CMPs take many-input, many-output morphisms as primitive and equip them with typed slotwise wiring and a diagrammatic reverse-mode calculus. That combination of ordered polycategorical composition, interface-mediated typing, and stochastic differentiation is the defining feature of the subject (Papamarkou, 30 Apr 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Colored Markov Polycategories.