Stochastic Domingos Theorems in Deep Learning
- Stochastic Domingos theorems define continuous-time kernel representations via diffusion approximations that extend deterministic gradient-flow identities.
- They reveal optimizer-specific kernel structures where SGD, SGDM, RMSprop, and Adam induce distinct temporal and geometric weightings in the learning trajectory.
- The framework links tangent-feature memory to generalization by highlighting how training dynamics capture interpolation and null-space properties in neural networks.
Stochastic Domingos theorems are interpolation formulas for models trained by stochastic optimization that extend Pedro Domingos’ deterministic claim that gradient-trained differentiable models admit a kernel-machine description. In the stochastic formulation, mini-batch training is replaced by a continuous-time diffusion approximation, the tangent kernel becomes a stochastic gradient kernel evaluated along a random training trajectory, and the resulting representation is optimizer-specific: SGD, SGDM, RMSprop, and Adam induce distinct temporal and geometric weightings in the kernel expansion (Guo et al., 14 Mar 2026). The topic sits at the intersection of NTK-style tangent-feature analysis, weak approximation of stochastic optimization, and generalization theory, and it is best understood against the earlier deterministic discussion that emphasized both the exact path-kernel identity and its interpretive limits (Courtois et al., 2022).
1. Deterministic precursor: Domingos’ interpolation formula
The deterministic precursor considers a differentiable learning machine
trained on
by continuous-time gradient flow
The tangent kernel at parameter is
and the path kernel along the learning trajectory is
The exact deterministic identity is obtained by differentiating the predictor along the gradient-flow path: Integrating from $0$ to yields
0
For squared loss, this becomes
1
This deterministic result is mathematically exact, but its interpretation is qualified in two ways. First, what is exactly a kernel machine is the time derivative 2, not necessarily the final predictor in the sense of a fixed-coefficient RKHS expansion. Second, the coefficients in the integrated representation depend on the test point 3, and the “bias” term is 4, which also depends on 5. The later stochastic development inherits this caution: the relevant kernel-machine structure is path-dependent and optimizer-dependent rather than a static classical kernel expansion (Courtois et al., 2022).
2. Diffusion approximation and the stochastic gradient kernel
The stochastic extension begins from the observation that practical deep learning is trained by mini-batch methods at finite learning rate rather than by full-batch gradient flow. For SGD, the discrete iteration is
6
where 7 is a random mini-batch and
8
The bridge to a stochastic Domingos theorem is a weak SDE approximation: 9 with
0
The approximation is weak in the sense that for smooth test functions 1,
2
The central stochastic object is the stochastic gradient kernel
3
with same-time version
4
For adaptive optimizers, the paper also introduces the weighted stochastic gradient kernel
5
This shift from 6 to 7 changes the theorem’s status. The deterministic formula is pathwise and exact along a gradient-flow trajectory. The stochastic theorem is an expectation-level statement about 8, with the martingale term eliminated only after taking expectation and with an explicit small-step remainder. In that precise sense, the stochastic Domingos theorems are diffusion-averaged extensions of the deterministic path-kernel identity rather than pathwise identities for the raw mini-batch iterates (Guo et al., 14 Mar 2026).
3. Optimizer-specific stochastic Domingos theorems
For SGD, the stochastic Domingos theorem states
9
Thus the expected output is an initial predictor plus an accumulated kernel interaction term, with training samples contributing through loss derivatives and tangent-feature alignment along the stochastic trajectory.
The remaining optimizers preserve the same basic structure but alter the weighting. SGDM introduces a two-time kernel and exponential temporal memory; RMSprop introduces a preconditioned feature metric; Adam combines both effects and yields a weaker asymptotic remainder. The optimizer-specific forms are summarized below.
| Optimizer | Kernel structure in the expected-output formula | Remainder |
|---|---|---|
| SGD | 0 | 1 |
| SGDM | 2, 3 | 4 |
| RMSprop | 5 | 6 |
| Adam | memory term with 7 plus instantaneous term with 8 | 9 |
For SGDM, the theorem is
0
so momentum acts as an exponentially decaying temporal memory. For RMSprop, the expected predictor is governed by 1, where 2 is a diagonal exponential average of 3 plus 4. For Adam, the theorem adds both a momentum-memory term and an instantaneous term, with weights involving
5
and bias-correction-like factors
6
These formulas are the sense in which the stochastic Domingos theorems provide a kernel-machine representation with optimizer-specific weighting (Guo et al., 14 Mar 2026).
4. Tangent-feature memory and the meaning of the kernel-machine representation
The stochastic Domingos theorems support a feature-space memory view of learning. Training samples contribute to the prediction at test point 7 through two quantities. The first is a loss-dependent weight,
8
which reduces to a residual for mean-squared error. The second is tangent-feature alignment, measured by
9
or by its preconditioned variant. In this picture, training stores data-dependent information in an evolving tangent geometry, and test-time prediction arises from kernel-weighted retrieval and aggregation of those stored features (Guo et al., 14 Mar 2026).
This interpretation is continuous with the deterministic Domingos discussion but not identical to a standard fixed-kernel RKHS model. The kernel is trajectory-dependent, usually parameter-dependent, and in the stochastic setting random before expectation. The coefficients are not static dual weights; they are loss derivatives accumulated along the training path. The deterministic discussion already emphasized that “approximately a kernel machine” should be read carefully because the coefficients depend on the test point and the bias term depends on the test point as well. The stochastic theorems preserve that qualification while extending the path-kernel viewpoint to mini-batch training (Courtois et al., 2022).
A plausible implication is that lazy-training and NTK regimes correspond to a special case in which the stochastic kernel changes little over training. The later paper states that when 0, the operator viewpoint reduces toward the classical NTK picture. Outside that regime, the stochastic Domingos theorem is explicitly about an evolving tangent-feature geometry rather than a frozen kernel (Guo et al., 14 Mar 2026).
5. Generalization and the null space of the stochastic kernel operator
The paper links generalization error to the null space of the integral operator induced by the stochastic gradient kernel. The operator is
1
For mean-squared error, define the terminal residual
2
and the generalization error
3
The theorem states that, as 4,
5
Accordingly, the residual generalization error is governed by the component of 6 lying in 7 (Guo et al., 14 Mar 2026).
The operator-theoretic interpretation is spectral. If
8
then modes with 9 are visible to the learned tangent geometry, whereas modes in the null space are not. The paper derives the null-space result from the evolution of the residual energy, obtaining, up to 0,
1
Under the stated stationarity assumptions, this drives 2 to zero in the small-step limit.
This suggests a sharp distinction between interpolation and extrapolation. In-distribution behavior is favorable when test targets align with the range of the learned kernel operator. Out-of-distribution failure arises when test behavior excites directions that remain in the null space of the learned tangent-feature memory. The paper treats this as the structural mechanism through which stochastic training retains a kernel description while still exhibiting limits on generalization (Guo et al., 14 Mar 2026).
6. Extensions, empirical illustrations, and limitations
The same path-kernel framework is used to interpret diffusion models and GANs. For diffusion models, the paper states that diffusion induces stage-wise, noise-localized corrections: the time or noise embedding makes the kernel large mainly between nearby noise levels, so denoising is represented as local correction along the diffusion schedule. For GANs, the correction is distribution-guided and shaped by discriminator geometry: the discriminator induces a density-ratio-like geometry, and the generator update is propagated through a kernel defined by generator-Jacobian alignment (Guo et al., 14 Mar 2026).
The empirical illustrations are geometric rather than asymptotic. On synthetic classification, MNIST, and CIFAR-10, normalized gradient kernels evolve toward label-homogeneous or block-diagonal structure. Tangent-feature maps 3 become linearly separable enough for linear SVMs to recover the learned decision rule. In out-of-distribution settings, low cross-domain tangent-kernel similarity correlates with weak transfer, and rank gaps in tangent features correlate with persistent test loss. These observations are presented as support for the claim that predictions are governed by learned tangent-feature geometry rather than by Euclidean proximity alone (Guo et al., 14 Mar 2026).
The framework also has explicit limitations. The theorems are expectation-level statements, not pathwise descriptions of every stochastic training run. They rely on weak SDE approximations and on smoothness assumptions; the later paper notes that the fully rigorous statements exclude non-smooth architectures or losses such as general ReLU or 4 loss. Adam carries only an 5 remainder, weaker than the 6 error obtained for SGD, SGDM, and RMSprop. More broadly, the earlier deterministic discussion emphasized that Domingos’ theorem, while mathematically correct in its setting, does not by itself explain the full behavior of modern neural networks, especially in high-dimensional or nontrivially optimized settings. The stochastic theorems fill the specific gap left open there—SGD- and Adam-type optimization—but they remain explanatory structural results rather than complete predictive theories of deep-network generalization (Courtois et al., 2022).
A common misunderstanding is to equate these results with the claim that trained neural networks are literally fixed classical kernel machines. The literature instead supports a narrower statement: along deterministic or stochastic gradient-based training, prediction updates are governed by tangent-kernel similarities to training examples, and the final predictor is an accumulated path-kernel interpolation whose geometry depends on the trajectory, the optimizer, and the learned feature memory (Guo et al., 14 Mar 2026).