SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.15925 · ICML · 2024

On the Identifiability of Switching Dynamical Systems

Yingzhen Li, Carles Balsells-Rodas, Yixin Wang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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 4 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/2305.15925.json · badge: /api/ran/2305.15925.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
charlio23/identifiable-sds canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
create_grid Ran
ran on a synthesized input
charlio23/identifiable-sds/models/PolyMSM.py
code served (permissive licence) · get_code("1e6f87b28942ab33")
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 float, shape (1000, 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

ARGS = {
    'dim': 3,
    'num_points': 5,
    'left_lim': -1.0,
    'right_lim': 1.0,
    'MC': True
}
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 float, shape (1000, 3) — shape (1000, 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
func_cosine Ran
ran on a synthesized input
charlio23/identifiable-sds/utils/benchmarks.py
code served (permissive licence) · get_code("689b9ab2c3456136")
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 Tensor, ndim 2, dtype family float, shape (2, 5) 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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - x: tensor, indexed as x[:, :, None] -> 2D tensor (batch_size, feature_dim)
# - features: tuple of (alphas, omegas, betas)
#   - alphas: numpy array, indexed as alphas[None, :, :] -> 2D array (output_dim, intermediate_dim)
#   - omegas: numpy array, indexed as omegas[None, :, :] -> 2D array (input_transform_dim, feature_dim)
#   - betas: numpy array, indexed as betas[None, :] -> 1D array (intermediate_dim,)

# Set up dimensions:
# batch_size = 2
# input_feature_dim = 4
# intermediate_dim = 3
# output_dim = 5

batch_size = 2
input_feature_dim = 4
intermediate_dim = 3
output_dim = 5

# x: shape (batch_size, input_feature_dim) = (2, 4)
x = torch.randn(batch_size, input_feature_dim)

# omegas: shape (intermediate_dim, input_feature_dim) = (3, 4)
omegas = np.random.randn(intermediate_dim, input_feature_dim).astype(np.float32)

# betas: shape (intermediate_dim,) = (3,)
betas = np.random.randn(intermediate_dim).astype(np.float32)

# alphas: shape (output_dim, intermediate_dim) = (5, 3)
alphas = np.random.randn(output_dim, intermediate_dim).astype(np.float32)

features = (alphas, omegas, betas)

ARGS = {
    "x": x,
    "features": features,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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, 5) — shape (2, 5) 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
function_dist Ran
ran on a synthesized input
charlio23/identifiable-sds/models/PolyMSM.py
code served (permissive licence) · get_code("1baf082ae1dc431c")
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 Tensor, ndim 0, dtype family float, shape () 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 numpy as np
from sklearn.preprocessing import PolynomialFeatures

torch.manual_seed(0)

# Analyze the function:
# - input_func: used in torch.matmul(input_func[None, :, :], ...) so needs shape (M, N)
# - target_func: used in torch.matmul(target_func[None, :, :], ...) so needs shape (M, N)
# - grid: passed to poly.fit_transform(grid), so needs to be 2D array-like for sklearn
# - degree: integer passed to PolynomialFeatures

# Create grid: sklearn expects (n_samples, n_features)
# Let's use 5 samples with 2 features
grid = np.array([
    [1.0, 2.0],
    [2.0, 3.0],
    [3.0, 4.0],
    [4.0, 5.0],
    [5.0, 6.0]
])

# Determine output size from poly.fit_transform
poly = PolynomialFeatures(degree=2)
poly_output = poly.fit_transform(grid)  # shape: (5, 6) for degree=2, 2 features
n_samples, n_poly_features = poly_output.shape

# input_func and target_func: shape should be (M, N) where N matches poly features
# Let's use M=3, N=6
input_func = torch.randn(3, n_poly_features)
target_func = torch.randn(3, n_poly_features)

degree = 2

ARGS = {
    "input_func": input_func,
    "target_func": target_func,
    "grid": grid,
    "degree": degree,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () 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
function_dist Ran
ran on a synthesized input
charlio23/identifiable-sds/utils/benchmarks.py
code served (permissive licence) · get_code("c06ee36ce6ae3f79")
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 Tensor, ndim 0, dtype family float, shape () 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 numpy as np
from torch import nn

torch.manual_seed(0)

# Create a simple neural network that outputs predictions
class SimpleNet(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Grid input: batch_size=2, input_dim=4
grid = torch.randn(2, 4)

# Input function - a simple neural network
input_net = SimpleNet(input_dim=4, output_dim=3)

# Target function features for cosine case (3 components)
# alphas: (output_dim, input_dim) = (3, 4)
# omegas: (input_dim, input_dim) = (4, 4)
# betas: (input_dim,) = (4,)
alphas = np.random.randn(3, 4).astype(np.float32)
omegas = np.random.randn(4, 4).astype(np.float32)
betas = np.random.randn(4).astype(np.float32)
target_func_cosine = (alphas, omegas, betas)

# Target function features for cosine with sparsity case (4 components)
# alphas: (output_dim, input_dim, input_dim) = (3, 4, 4)
# omegas: (input_dim, output_dim, input_dim) = (4, 3, 4)
# betas: (output_dim, input_dim) = (3, 4)
# adj_mat: (output_dim, input_dim) = (3, 4)
alphas_sparse = np.random.randn(3, 4, 4).astype(np.float32)
omegas_sparse = np.random.randn(4, 3, 4).astype(np.float32)
betas_sparse = np.random.randn(3, 4).astype(np.float32)
adj_mat = np.random.randint(0, 2, size=(3, 4)).astype(np.float32)
target_func_sparse = (alphas_sparse, omegas_sparse, betas_sparse, adj_mat)

ARGS = {
    'input_func': input_net,
    'target_func': target_func_cosine,
    'grid': grid,
    'net': 'cosine'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 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.

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

The identifiability of latent variable models has received increasing attention due to its relevance in interpretability and out-of-distribution generalisation. In this work, we study the identifiability of Switching Dynamical Systems, taking an initial step toward extending identifiability analysis to sequential latent variable models. We first prove the identifiability of Markov Switching Models, which commonly serve as the prior distribution for the continuous latent variables in Switching Dynamical Systems. We present identification conditions for first-order Markov dependency structures, whose transition distribution is parametrised via non-linear Gaussians. We then establish the identifiability of the latent variables and non-linear mappings in Switching Dynamical Systems up to affine transformations, by leveraging identifiability analysis techniques from identifiable deep latent variable models. We finally develop estimation algorithms for identifiable Switching Dynamical Systems. Throughout empirical studies, we demonstrate the practicality of identifiable Switching Dynamical Systems for segmenting high-dimensional time series such as videos, and showcase the use of identifiable Markov Switching Models for regime-dependent causal discovery in climate data.

For agents

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

get_harvested_code_for_paper("2305.15925")
get_code_for_paper("2305.15925")
have("2305.15925")

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

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

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

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

Connect an agent — have() is free.