SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.05543 · ICML · 2023

Markovian Gaussian Process Variational Autoencoders

Yingzhen Li, Carles Balsells-Rodas, Harrison Zhu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 1 failure of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2207.05543.json · badge: /api/ran/2207.05543.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
shixinxing/nngpvae-official community
Papers with Code archive
2 ran · 3 no recorded run
FunctionStatusWhere it lives
Matern32SSM Ran
ran on a synthesized input
shixinxing/nngpvae-official/baselines/mgpvae/models/mgpvae_base.py
code served (permissive licence) · get_code("96451a5bacf32de4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math
from gpytorch.kernels import ScaleKernel, MaternKernel, RBFKernel
from gpytorch.means import ConstantMean
from gpytorch.models import ExactGP
from gpytorch.likelihoods import GaussianLikelihood

class Matern32SSM(ScaleKernel):
    """SSM form of Matern32 kernel."""

    def __init__(self, base_kernel: MaternKernel, **kwargs):
        assert base_kernel.nu == 1.5, f'nu  should be 1.5, but got {base_kernel.nu}.'
        assert base_kernel.raw_lengthscale.size(-1) == 1
        self.nu = base_kernel.nu
        self.state_dim = 2
        super(Matern32SSM, self).__init__(base_kernel, **kwargs)

    @property
    def lamb(self):
        return math.sqrt(3) / self.base_kernel.lengthscale

    def stationary_covariance(self):
        variance = self.outputscale.unsqueeze(-1).unsqueeze(-1)
        zeros = torch.zeros_like(variance, dtype=variance.dtype, device=variance.device)
        P_0 = torch.cat([torch.cat([variance, zeros], dim=-1), torch.cat([zeros, variance * self.lamb.square()], dim=-1)], dim=-2)
        return P_0

    def kernel_to_state_space(self):
        lam = self.lamb
        zeros_ones = torch.tensor([0.0, 1.0], dtype=lam.dtype, device=lam.device).expand(*lam.shape[:-1], 2)
        F = torch.cat([zeros_ones, torch.cat([-lam.square(), -2 * lam], dim=-1)], dim=-2)
        L = torch.tensor([[0.0], [1.0]], dtype=lam.dtype, device=lam.device).expand(*self.batch_shape, 2, 1)
        H = torch.tensor([[1.0, 0.0]], dtype=lam.dtype, device=lam.device).expand(*self.batch_shape, 1, 2)
        P_0 = self.stationary_covariance()
        return (F, L, H, P_0)

    def state_transition(self, dt):
        """
        Calculate state transition matrix A = expm(FΔt): [T,L,2,2] with dt: [...,T,1/L,1,1]
        """
        lam = self.lamb
        mat = torch.cat([torch.cat([lam, torch.ones_like(lam)], dim=-1), torch.cat([-lam.square(), -lam], dim=-1)], dim=-2)
        A = torch.exp(-dt * lam) * (dt * mat + torch.eye(2, dtype=dt.dtype, device=dt.device))
        return A


base_kernel = MaternKernel(nu=1.5)
base_kernel.initialize(lengthscale=0.5)

INIT_ARGS = {
    'base_kernel': base_kernel,
}

ARGS = {
    'dt': torch.tensor([[0.1], [0.2]], dtype=torch.float32),
}

METHOD = 'state_transition'

if __name__ == '__main__':
    kernel = Matern32SSM(**INIT_ARGS)
    result = getattr(kernel, METHOD)(**ARGS)
    print("State transition matrix shape:", result.shape)
    print("Result:", result)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
gpytorch, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
negative_gaussian_cross_entropy Ran
ran; our contract draft was wrong, not the code
shixinxing/nngpvae-official/baselines/mgpvae/models/mgpvae_base.py
code served (permissive licence) · get_code("4cdbe0daae76a5e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors with shape (batch=2, tmax=3, dim=2)
# These represent Gaussian distribution parameters
mu1 = torch.randn(2, 3, 2)
var1 = torch.abs(torch.randn(2, 3, 2)) + 0.1  # ensure positive variance
mu2 = torch.randn(2, 3, 2)
var2 = torch.abs(torch.randn(2, 3, 2)) + 0.1  # ensure positive variance

ARGS = {
    "mu1": mu1,
    "var1": var1,
    "mu2": mu2,
    "var2": var2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 2) — shape (2, 3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GP Not yet run
unverified (harvested, no recorded run)
shixinxing/nngpvae-official/baselines/mgpvae/models/mgpvae_base.py
code served (permissive licence) · get_code("551f76f9b575e2b5")
How it ran

no invocation recorded.

MGPVAEBase Not yet run
unverified (harvested, no recorded run)
shixinxing/nngpvae-official/baselines/mgpvae/models/mgpvae_base.py
code served (permissive licence) · get_code("31a5d2e00fec7d0e")
How it ran

no invocation recorded.

SSM Not yet run
unverified (harvested, no recorded run)
shixinxing/nngpvae-official/baselines/mgpvae/models/mgpvae_base.py
code served (permissive licence) · get_code("d3ff4aec76f43e12")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
GP
brick of this paper's assembly: helper
1 other paper
1 later
2505.16481 (2025-05)
Neighbour-Driven Gaussian Process Variational Autoencoders for Scalable Structured Latent Modelling

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Sequential VAEs have been successfully considered for many high-dimensional time series modelling problems, with many variant models relying on discrete-time mechanisms such as recurrent neural networks (RNNs). On the other hand, continuous-time methods have recently gained attraction, especially in the context of irregularly-sampled time series, where they can better handle the data than discrete-time methods. One such class are Gaussian process variational autoencoders (GPVAEs), where the VAE prior is set as a Gaussian process (GP). However, a major limitation of GPVAEs is that it inherits the cubic computational cost as GPs, making it unattractive to practioners. In this work, we leverage the equivalent discrete state space representation of Markovian GPs to enable linear time GPVAE training via Kalman filtering and smoothing. For our model, Markovian GPVAE (MGPVAE), we show on a variety of high-dimensional temporal and spatiotemporal tasks that our method performs favourably compared to existing approaches whilst being computationally highly scalable.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2207.05543")
get_code_for_paper("2207.05543")
have("2207.05543")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2207.05543.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2207.05543.svg)](https://syntology.ai/paper/2207.05543)

Connect an agent — have() is free.