SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.05712 · 2022

Data-Driven Spectral Submanifold Reduction for Nonlinear Optimal Control of High-Dimensional Robots

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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; 5 no recorded run), measured 2026-11-22; 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/2209.05712.json · badge: /api/ran/2209.05712.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
StanfordASL/soft-robot-control canonical (classifier label)
classifier basis not recorded on the link
6 ran · 5 no recorded run
FunctionStatusWhere it lives
buildCq Ran
ran on a synthesized input
StanfordASL/soft-robot-control/sofacontrol/measurement_models.py
code served (permissive licence) · get_code("9caeb71d794ae0df")
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 lil_matrix. 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 numpy as np
from scipy.sparse import lil_matrix

torch.manual_seed(0)

# Analyze the function:
# - nodes: used in enumerate and as indices (node parameter)
# - num_nodes: used to compute matrix dimensions and as multiplier for column indexing

# nodes should be a list/array of node indices (integers)
# num_nodes should be an integer representing total number of nodes

nodes = [0, 2, 5]  # List of 3 node indices
num_nodes = 10      # Total number of nodes in the system

ARGS = {
    "nodes": nodes,
    "num_nodes": num_nodes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type lil_matrix — a lil_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a lil_matrix output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
buildCv Ran
ran on a synthesized input
StanfordASL/soft-robot-control/sofacontrol/measurement_models.py
code served (permissive licence) · get_code("64a864451d66bd4e")
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 lil_matrix. 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 numpy as np
from scipy.sparse import lil_matrix, vstack

torch.manual_seed(0)

# Analyze the function:
# - nodes: used in enumerate and as indices into a range, appears to be a list/array of integers
# - num_nodes: used to define matrix column dimension, should be an integer >= max(nodes)

# Create small test data
nodes = [0, 2, 4]  # list of node indices
num_nodes = 6  # total number of nodes (must be > max(nodes))

ARGS = {
    "nodes": nodes,
    "num_nodes": num_nodes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type lil_matrix — a lil_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a lil_matrix output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_q Ran
ran on a synthesized input
StanfordASL/soft-robot-control/sofacontrol/utils.py
code served (permissive licence) · get_code("20a031b3c4314e63")
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 1, dtype family float, shape (8,) 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 torch.nn as nn

torch.manual_seed(0)

class Position(nn.Module):
    def __init__(self):
        super().__init__()
        self.value = torch.randn(2, 4)

class Tetras(nn.Module):
    def __init__(self):
        super().__init__()
        self.position = Position()

class Robot(nn.Module):
    def __init__(self):
        super().__init__()
        self.tetras = Tetras()

robot = Robot()

ARGS = {
    "robot": robot
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 1, dtype family float, shape (8,) — shape (8,) 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
get_x Ran
ran on a synthesized input
StanfordASL/soft-robot-control/sofacontrol/utils.py
code served (permissive licence) · get_code("142d851f000a7a9b")
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 1, dtype family float, shape (16,) 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

class Value:
    def __init__(self, data):
        self.value = data

class Tetras:
    def __init__(self):
        self.position = Value(np.random.randn(2, 4))
        self.velocity = Value(np.random.randn(2, 4))

class Robot:
    def __init__(self):
        self.tetras = Tetras()

robot = Robot()

ARGS = {
    "robot": robot
}
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 1, dtype family float, shape (16,) — shape (16,) 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
qv2x Ran
ran on a synthesized input
StanfordASL/soft-robot-control/sofacontrol/utils.py
code served (permissive licence) · get_code("3f258128f6a18845")
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 (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 numpy as np

# Create small numpy arrays with distinct shapes for q and v
q = np.random.randn(2, 3)  # batch=2, dim=3
v = np.random.randn(2, 4)  # batch=2, dim=4 (different from q's last dim)

ARGS = {
    "q": q,
    "v": v,
}
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 (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
re Ran
ran on a synthesized input
StanfordASL/soft-robot-control/dependencies/numerics/Quaternion.py
code served (permissive licence) · get_code("bfbaa3f64bb87d14")
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

torch.manual_seed(0)

# The function 're' takes parameter 'q' and returns q[3]
# q should be indexable with integer 3, so it needs at least 4 elements
# Based on the function body, q is accessed with index 3
# This suggests q is a sequence-like object (list, tuple, or tensor)

# Creating a simple tensor with at least 4 elements
q = torch.randn(5)

ARGS = {
    "q": q
}
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
conj Not yet run
unverified (harvested, no recorded run)
StanfordASL/soft-robot-control/dependencies/numerics/Quaternion.py
code served (permissive licence) · get_code("458878449b0ec648")
How it ran

no invocation recorded.

createDataCollectionScene Not yet run
unverified (harvested, no recorded run)
StanfordASL/soft-robot-control/launch_sofa_modal_analysis.py
code served (permissive licence) · get_code("ab7b655638e76332")
How it ran

no invocation recorded.

createScene Not yet run
unverified (harvested, no recorded run)
StanfordASL/soft-robot-control/launch_sofa.py
code served (permissive licence) · get_code("2c2728ebb4555165")
How it ran

no invocation recorded.

createScene Not yet run
unverified (harvested, no recorded run)
StanfordASL/soft-robot-control/launch_sofa_modal_analysis.py
code served (permissive licence) · get_code("0f70d63576aa4485")
How it ran

no invocation recorded.

inv Not yet run
unverified (harvested, no recorded run)
StanfordASL/soft-robot-control/dependencies/numerics/Quaternion.py
code served (permissive licence) · get_code("d0f9745fd30a3fa9")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

Modeling and control of high-dimensional, nonlinear robotic systems remains a challenging task. While various model- and learning-based approaches have been proposed to address these challenges, they broadly lack generalizability to different control tasks and rarely preserve the structure of the dynamics. In this work, we propose a new, data-driven approach for extracting low-dimensional models from data using Spectral Submanifold Reduction (SSMR). In contrast to other data-driven methods which fit dynamical models to training trajectories, we identify the dynamics on generic, low-dimensional attractors embedded in the full phase space of the robotic system. This allows us to obtain computationally-tractable models for control which preserve the system's dominant dynamics and better track trajectories radically different from the training data. We demonstrate the superior performance and generalizability of SSMR in dynamic trajectory tracking tasks vis-a-vis the state of the art, including Koopman operator-based approaches.

For agents

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

get_harvested_code_for_paper("2209.05712")
get_code_for_paper("2209.05712")
have("2209.05712")

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

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

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

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

Connect an agent — have() is free.