SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.07357 · 2019

Recurrent Kalman Networks: Factorized Inference in High-Dimensional Deep Feature Spaces

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 6 have no contract verdict; 0 failures of our instrument; 0 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/1905.07357.json · badge: /api/ran/1905.07357.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
Salazar-99/Learning-State-Space-Models community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
add_img_noise Ran
ran on a synthesized input
Salazar-99/Learning-State-Space-Models/noise_gen.py
code served (permissive licence) · get_code("d943988df1143d07")
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, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type 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 numpy as np

# Create a small batch of images
# Shape: (batch_size=2, seq_len=3, height=4, width=5, channels=3)
imgs = np.random.randint(0, 256, size=(2, 3, 4, 5, 3), dtype=np.uint8)

# Create a RandomState for reproducibility
random_state = np.random.RandomState(42)

# Define all parameters
ARGS = {
    'imgs': imgs,
    'first_n_clean': 1,
    'random': random_state,
    'r': 0.2,
    't_ll': 0.0,
    't_lu': 0.25,
    't_ul': 0.75,
    't_uu': 1.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
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
add_img_noise4 Ran
ran on a synthesized input
Salazar-99/Learning-State-Space-Models/noise_gen.py
code served (permissive licence) · get_code("1ced3bc810b98f6a")
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, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type 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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)
random_state = np.random.RandomState(42)

# Create small test images
# Shape: (batch_size, seq_len, height, width, channels)
batch_size = 2
seq_len = 3
height = 8
width = 8
channels = 3

# Create uint8 images with values that will trigger pendulum detection
imgs = np.random.randint(0, 256, size=(batch_size, seq_len, height, width, channels), dtype=np.uint8)
# Add some values > 5 to ensure pendulum detection works
imgs[:, :, :, :, 0] = np.random.randint(10, 256, size=(batch_size, seq_len, height, width), dtype=np.uint8)

ARGS = {
    "imgs": imgs,
    "first_n_clean": 1,
    "random": random_state,
    "r": 0.2,
    "t_ll": 0.0,
    "t_lu": 0.25,
    "t_ul": 0.75,
    "t_uu": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
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
detect_pendulums Ran
ran on a synthesized input
Salazar-99/Learning-State-Space-Models/noise_gen.py
code served (permissive licence) · get_code("986aaf9cffd3ba97")
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, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (2, 3) 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 numpy as np

# Create a small batch of images with shape (batch, height, width, channels)
# Using RGBA-like structure with 4 channels
batch_size = 2
height = 8
width = 6
channels = 4

# Create random image data with values in range [0, 255]
# We'll add some values > 5 to ensure the counting logic finds non-zero entries
imgs = np.random.randint(0, 6, size=(batch_size, height, width, channels)).astype(np.uint8)
# Ensure some pixels have values > 5 in different channels
imgs[0, 0:2, 0:2, 0] = np.random.randint(6, 256, size=(2, 2))  # Red channel
imgs[0, 2:4, 2:4, 1] = np.random.randint(6, 256, size=(2, 2))  # Green channel
imgs[1, 4:6, 4:6, 2] = np.random.randint(6, 256, size=(2, 2))  # Blue channel

# Split dimensions for half_x and half_y
half_x = height // 2  # 4
half_y = width // 2   # 3

ARGS = {
    'imgs': imgs,
    'half_x': half_x,
    'half_y': half_y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (2, 3) — shape (2, 3) 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
pack_input Ran
ran on a synthesized input
Salazar-99/Learning-State-Space-Models/utils.py
code served (permissive licence) · get_code("3d43c79c76dc0adc")
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, through the batch API) and returned EagerTensor, ndim 2, dtype family float, shape (2, 7) 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 tensorflow as tf
import numpy as np

# Create small TensorFlow tensors for the function parameters
# obs_mean: shape (batch_size=2, feature_dim=4)
obs_mean = tf.constant([[1.0, 2.0, 3.0, 4.0],
                        [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)

# obs_covar: shape (batch_size=2, covar_dim=3) - use different dim to distinguish
obs_covar = tf.constant([[0.1, 0.2, 0.3],
                         [0.4, 0.5, 0.6]], dtype=tf.float32)

ARGS = {
    "obs_mean": obs_mean,
    "obs_covar": obs_covar,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 7) — shape (2, 7) 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
pack_state Ran
ran on a synthesized input
Salazar-99/Learning-State-Space-Models/utils.py
code served (permissive licence) · get_code("5cb9f966e3864888")
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, through the batch API) and returned EagerTensor, ndim 2, dtype family float, shape (2, 12) 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 tensorflow as tf
import numpy as np

# Create small test tensors
mean = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)

covar = [
    tf.constant([[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]], dtype=tf.float32),
    tf.constant([[0.9, 1.0, 1.1, 1.2], [1.3, 1.4, 1.5, 1.6]], dtype=tf.float32)
]

ARGS = {
    "mean": mean,
    "covar": covar
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 12) — shape (2, 12) 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
unpack_state Ran
ran on a synthesized input
Salazar-99/Learning-State-Space-Models/utils.py
code served (permissive licence) · get_code("f34fa6f454e32028")
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, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type 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 tensorflow as tf

torch.manual_seed(0)

# The function expects a TensorFlow tensor with shape [..., 5*lod]
# where lod = final_dim / 5
# We'll create a tensor with final dimension = 20, so lod = 4
# This means: mean gets indices 0:8, covar_upper gets 8:12, 
# covar_lower gets 12:16, covar_side gets 16:20

# Create a TensorFlow tensor with shape (2, 20)
# batch_size=2, feature_dim=20 (divisible by 5)
state_tensor = tf.constant([
    [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0],
    [20.0, 19.0, 18.0, 17.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0, 10.0, 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0]
], dtype=tf.float32)

ARGS = {
    "state": state_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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.

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

In order to integrate uncertainty estimates into deep time-series modelling, Kalman Filters (KFs) (Kalman et al., 1960) have been integrated with deep learning models, however, such approaches typically rely on approximate inference techniques such as variational inference which makes learning more complex and often less scalable due to approximation errors. We propose a new deep approach to Kalman filtering which can be learned directly in an end-to-end manner using backpropagation without additional approximations. Our approach uses a high-dimensional factorized latent state representation for which the Kalman updates simplify to scalar operations and thus avoids hard to backpropagate, computationally heavy and potentially unstable matrix inversions. Moreover, we use locally linear dynamic models to efficiently propagate the latent state to the next time step. The resulting network architecture, which we call Recurrent Kalman Network (RKN), can be used for any time-series data, similar to a LSTM (Hochreiter & Schmidhuber, 1997) but uses an explicit representation of uncertainty. As shown by our experiments, the RKN obtains much more accurate uncertainty estimates than an LSTM or Gated Recurrent Units (GRUs) (Cho et al., 2014) while also showing a slightly improved prediction performance and outperforms various recent generative models on an image imputation task.

For agents

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

get_harvested_code_for_paper("1905.07357")
get_code_for_paper("1905.07357")
have("1905.07357")

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

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

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

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

Connect an agent — have() is free.