Kernel Slotwise Composition
- Kernel slotwise composition is a structural paradigm that composes kernel objects at specific slots using closure rules (e.g., non-negative sums and pointwise products) to maintain kernel validity.
- In Gaussian process models, differentiable composition via linear and product layers enables efficient, expressive kernel learning and pattern discovery across various applications.
- In RKHS, operator-valued, and Markov kernel settings, slotwise composition facilitates pullback operations, coordinated gating for feature selection, and stochastic diagram semantics.
Searching arXiv for the cited papers to ground the article. Kernel slotwise composition denotes a family of constructions in which kernel objects are composed by acting on designated “slots” while preserving the underlying positivity or probabilistic semantics. Across current arXiv usage, the phrase appears in several technically distinct settings: as differentiable composition of kernel-valued network units in Gaussian processes, as pullback and weighting of reproducing kernels under composition operators, as coordinate-wise gating before a kernel predictor, as overlap-subset decomposition in compositionally structured kernel models, as iteration of operator-valued kernels under completely positive maps, and as the measure-theoretic operation that connects one output slot of a Markov kernel to one input slot of another and marginalizes the internal wire (Sun et al., 2018, Kumari et al., 18 Sep 2025, Ruan et al., 17 Sep 2025, Lippl et al., 2024, Tian, 17 Nov 2025, Papamarkou, 30 Apr 2026).
1. Common formal pattern
A unifying feature of these constructions is that the “slot” is a local position at which composition is applied without abandoning kernel validity. In the Gaussian-process setting of the Neural Kernel Network (NKN), each unit in each layer is a slot that itself holds a valid kernel, and layers compose slots by non-negative weighted sums and pointwise products. In RKHS composition theory, the slots are the two arguments of a reproducing kernel, and composition acts by pullback,
or by weighted pullback,
In compositional feature-learning models, the slots are input coordinates, with a kernel predictor acting on . In compositional-generalization theory, the slots are orthogonal components of a representation and the relevant structure is which subsets of slots match across two inputs. In operator-valued kernel theory, the slots are the left and right operator arguments acted on by Kraus operators. In Markov polycategories, the slots are explicitly ordered input and output positions of many-input, many-output kernels (Sun et al., 2018, Kumari et al., 18 Sep 2025, Ruan et al., 17 Sep 2025, Lippl et al., 2024, Tian, 17 Nov 2025, Papamarkou, 30 Apr 2026).
What these settings share is not a single syntax but a preservation principle. For positive definite kernels, the relevant closure rules include non-negative linear combinations, pointwise products, pullbacks, and rank-one weightings. For operator-valued kernels, complete positivity and subunitality or unitality control validity, domination, and asymptotics. For Markov kernels, the corresponding preservation mechanism is measure-theoretic composition with marginalization over the internal variable. This suggests that “kernel slotwise composition” is best treated as a structural paradigm rather than a single formalism.
2. Differentiable kernel slots in Gaussian processes
In Gaussian-process regression, the covariance function determines smoothness, periodicity, linear trends, and related inductive biases. The NKN replaces discrete kernel-grammar search by a differentiable architecture in which every hidden unit is itself a kernel. The input layer consists of primitive kernel families such as RBF, PER, LIN, and RQ, instantiated as trainable primitive slots
A Linear layer produces new kernel slots by
with to enforce non-negativity. A Product layer produces
The paper interprets the former as “OR-like” and the latter as “AND-like” slotwise composition. Optional kernel-preserving activations include polynomials with non-negative coefficients and (Sun et al., 2018).
The architecture is grounded in the closure lemma that for kernels 0, both 1 with 2 and the pointwise product 3 are kernels. Because all primitive parameters, linear-layer parameters, and product operations are differentiable, the final kernel 4 is trainable end-to-end by backpropagation through the GP marginal likelihood. This removes the non-differentiable, combinatorial search over subexpressions used by the Automatic Statistician, where kernel grammar search can take hours for short time series (Sun et al., 2018).
The expressiveness analysis is explicit. The paper defines a positive-weighted polynomial (PWP) of base kernels and proves that an NKN with width 5 can represent any PWP of 6 primitive kernels, while an NKN with width 7 and 8 Linear–Product modules can represent any PWP with degree at most 9. Using Bochner’s theorem and Gaussian-mixture approximation of spectral densities, it further proves stationary universality: for any 0-dimensional complex-valued stationary kernel 1 and any 2, there exist primitive kernels
3
and an NKN of width at most 4 whose output 5 satisfies
6
Complex-valued internal slots are important here: the paper shows examples in which a real representation fails as a PWP of cosine primitives but a complex representation is exactly a PWP of a single primitive 7 (Sun et al., 2018).
Empirically, the slotwise perspective is used to explain pattern discovery in time series, 2D synthetic surfaces, texture extrapolation, UCI regression, and Bayesian optimization. On Airline, the reported training-time comparison is about 8 faster, with 201s versus 6147s. A typical small architecture is “6 primitives: 2 RQ, 2 RBF, 2 LIN” followed by “Linear8 – Product4 – Linear4 – Product2 – Linear1”, with about 9 parameters in dimension 0, compared with SM-4’s 1. The paper also notes limitations: interpretability is weaker than explicit symbolic kernels, optimization can face local minima or initialization sensitivity, and the strongest universality results are for stationary kernels (Sun et al., 2018).
3. Pullback kernels and composition operators on RKHSs
A second usage of kernel slotwise composition arises in RKHS theory, where composition acts directly on the arguments of the reproducing kernel. If 2 is a kernel on 3 and 4, then the pullback
5
is again a kernel on 6. With an additional weight 7, the transformed kernel is
8
The paper identifies this as the exact kernel counterpart of the weighted composition operator
9
and proves that 0, with the norm in 1 given by the minimum norm among preimages in 2 (Kumari et al., 18 Sep 2025).
The boundedness criterion is a kernel domination statement. For kernels 3 on 4, map 5, and weight 6, the operator
7
is bounded with norm at most 8 if and only if
9
is a kernel on 0. Setting 1 yields the criterion for the ordinary composition operator 2. At the level of kernel sections, the adjoint acts by
3
provided 4. This is the paper’s core “kernel slotwise” identity: the adjoint composes the base point in the reproducing kernel (Kumari et al., 18 Sep 2025).
The theory is developed concretely for Hardy and Bergman spaces on the unit disc, polydisc, and ball, with explicit kernels
5
and analogous weighted Bergman formulas. A central application is an alternative proof that for every holomorphic 6, the composition operator on 7 is bounded. The proof uses the positivity of
8
together with multiplier arguments, to show that
9
is a kernel, which yields
0
The paper emphasizes that this proof uses kernel positivity rather than Littlewood subordination, Carleson measures, or more traditional analytic techniques (Kumari et al., 18 Sep 2025).
A more general template appears in Theorem 4.2: if
1
is a kernel and 2 is a multiplier of 3, then 4 is bounded. The same framework yields kernel-based sufficient conditions on 5 and 6 and recovers classical boundedness for automorphism-induced composition operators. Lower bounds on norms follow from 7 and the adjoint identity, for example
8
on 9 (Kumari et al., 18 Sep 2025).
4. Coordinate-wise slotwise gating for feature learning
A third formalization treats slotwise composition as an input-side gating layer before an RKHS predictor. The model studies
0
where 1 is the Hadamard product. The inner map
2
is a coordinate-wise weighting layer, and the outer map is a translation-invariant kernel ridge regressor. If 3, the 4-th coordinate is removed from the effective input. The paper presents this as a minimal compositional architecture and a testbed for feature learning in kernel methods (Ruan et al., 17 Sep 2025).
Relevance is formalized through the core sufficient feature set
5
assuming it exists and that 6 and 7 are independent. Theorem 3.4 shows that for every 8,
9
with strict inequality under nontrivial predictive power and nondegenerate irrelevant coordinates. Under an additional nontrivial-regression assumption and nondegenerate covariance of 0, Theorem 3.8 states that any global minimizer 1 satisfies
2
For sufficiently small 3, Theorem 3.7 gives the reverse inclusion,
4
so that
5
In the population problem, global minimizers therefore achieve exact feature selection (Ruan et al., 17 Sep 2025).
The paper also analyzes stationary points through the directional derivative
6
where 7. If the irrelevant coordinates 8 are jointly Gaussian with nondegenerate covariance, Theorem 4.1 shows that the direction 9 satisfies
0
with strict inequality when the predictor is nontrivial and 1. Corollary 4.2 then states that every directional stationary point is either noise-free,
2
or trivial,
3
Thus every nontrivial stationary point eliminates noise coordinates (Ruan et al., 17 Sep 2025).
Kernel choice changes what this slotwise gating layer can detect. For 4-type kernels such as the Laplace kernel,
5
Theorem 5.3 shows that at 6,
7
So these kernels detect any main effect through first-order variation. For radial kernels, including the Gaussian
8
Lemma 5.6 gives
9
and the leading second-order term depends only on 00. The paper’s central contrast is therefore that 01-type kernels recover features contributing to nonlinear effects at stationary points, whereas Gaussian kernels recover only linear ones (Ruan et al., 17 Sep 2025).
5. Compositionally structured kernels and the limits of compositional generalization
A fourth usage concerns inputs decomposed into orthogonal component slots,
02
with 03 for 04. For compositionally structured representations of this form, the kernel depends only on which slots match between two inputs. Writing
05
the kernel has the form
06
The paper shows that wide random neural feature maps preserve this structure, so the induced kernel can be written as a function of the overlap set rather than the specific values (Lippl et al., 2024).
The main theorem is conjunction-wise additivity. For any kernel model with a compositionally structured representation, trained on a set 07, the prediction on any 08 can be written as
09
where 10 collects the slot subsets realized as overlaps with training points. Each 11 depends only on the values in the subset 12. This gives a precise functional description of what slotwise kernel composition can express: additive sums over conjunction functions indexed by overlapping slot subsets (Lippl et al., 2024).
To quantify which conjunctions matter, the paper defines overlap salience through a Möbius-type decomposition of 13. In symmetric settings it depends only on 14, written 15. For deep random (leaky) ReLU networks, the paper proves that as depth 16,
17
Depth therefore drives the representation toward full conjunctions. This is favorable for memorization of training combinations but unfavorable for generalization to unseen combinations, because unseen full conjunctions do not appear in the training overlap structure (Lippl et al., 2024).
The theory distinguishes tasks that are learnable in principle from tasks that are not. Symbolic addition and several context-dependence tasks are conjunction-wise additive and can therefore be represented by such kernels. By contrast, transitive equivalence cannot, because on unseen pairs the full-conjunction term is unavailable and the remaining additive form
18
cannot in general encode arbitrary equivalence relations. The paper also identifies two failure modes even for learnable tasks. The first is memorization leak: in symbolic addition with two slots and training anchor set size 19, the test prediction is
20
so nonzero salience of the full conjunction forces systematic underestimation. The second is shortcut bias, illustrated in CD-3, where context-only and full-conjunction features can dominate the norm-minimizing solution and block the intended context–feature conjunctions (Lippl et al., 2024).
The paper reports that convolutional networks, residual networks, and Vision Transformers trained on symbolic addition and context-dependence tasks are extremely well fitted by a conjunction-wise additive model, with 21 and often 22. It also reports the same compressed-value phenomenon predicted by memorization leak and the same shortcut patterns predicted by salience analysis. This suggests that, on these tasks, practical deep networks often operate close to the kernel-slotwise regime unless feature learning pushes them into a richer, non-additive regime (Lippl et al., 2024).
6. Operator-valued kernels and stochastic diagram semantics
In operator-valued kernel theory, slotwise composition is realized by completely positive maps. Starting from a positive definite operator-valued kernel
23
the paper forms the scalar lift
24
and its RKHS 25. With CP maps
26
the iterated kernel for a word 27 is
28
All iterates are realized inside a single Hilbert space
29
using creation operators
30
The resulting representation is
31
with 32. In this sense, composition of kernels is realized as composition of bounded operators on a fixed feature space. Under unitality, 33 decreases strongly to a projection 34, yielding a limit kernel
35
The paper also proves a Stein-type decomposition
36
and under subunitality a Radon–Nikodym representation
37
which implies 38. For random compositions, Kingman’s theorem gives an almost-sure growth law for 39 and hence exponential bounds for 40 (Tian, 17 Nov 2025).
A measure-theoretic notion of kernel slotwise composition appears in colored Markov polycategories. Here a morphism
41
is a many-input, many-output Markov kernel, and slotwise composition connects the 42-th output slot of one kernel to the 43-th input slot of another when the objects agree. If
44
with 45, the composite
46
is defined by integrating over the internal wire:
47
Operationally, one samples 48 from 49, feeds the internal value 50 into the chosen input slot of 51, samples 52 from 53, retains the dangling outputs, and marginalizes the internal variable. The paper proves unitality, associativity, and interchange by giving trace semantics to finite acyclic diagrams and showing independence of topological order (Papamarkou, 30 Apr 2026).
The colored extension relaxes equality of wired objects to compatibility of colors. If an interface witness
54
is available, with interface kernel
55
the colored composite is
56
Typed stochastic diagrams are then interpreted by expanding interface wires into explicit unary interface vertices. For finite acyclic parameterized diagrams, the paper proves a reverse-mode differentiation theorem: if each parameterized vertex admits an admissible local gradient operator, then the derivative of the expected scalar objective is the tuple of expected local reverse contributions
57
Stochastic vertices can use score-function local rules and deterministic vertices can use pathwise local rules. In this setting, kernel slotwise composition is literally the wiring rule of a typed stochastic calculus (Papamarkou, 30 Apr 2026).
These operator-valued and stochastic formulations are mathematically distinct from the GP and RKHS constructions. The first acts on operator values through CP maps; the second acts on ordered input/output positions of Markov kernels by wiring and marginalization. The common feature is again structural locality: a composite is built by operating on specified slots and then recovering a valid kernel object through positivity or probabilistic integration.