SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.07711 · ICLR · 2024

SSM Meets Video Diffusion Models: Efficient Long-Term Video Generation with Structured State Spaces

Yutaka Matsuo, Shohei Taniguchi, Masahiro Suzuki, Yuta Oshima

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, 4 violated it and 0 have no contract verdict; 2 failures of our instrument; 5 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/2403.07711.json · badge: /api/ran/2403.07711.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
shim0114/SSM-Meets-Video-Diffusion-Models canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
default Ran
ran, violated the contract we drafted
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/video_diffusion_pytorch.py
code served (permissive licence) · get_code("d1ef6b8cb9a28a53")
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 str. 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

torch.manual_seed(0)

def exists(x):
    return x is not None

def default(val, d):
    if exists(val):
        return val
    return d() if callable(d) else d

# Test case 1: val is not None, should return val
val_1 = "test_value"
d_1 = lambda: "default_value"

# Test case 2: val is None, d is callable, should return d()
val_2 = None
d_2 = lambda: "computed_default"

# Test case 3: val is None, d is not callable, should return d
val_3 = None
d_3 = "static_default"

# Test case 4: val is a number
val_4 = 42
d_4 = 100

# Test case 5: val is a tensor
val_5 = torch.tensor([1.0, 2.0, 3.0])
d_5 = lambda: torch.tensor([0.0])

ARGS = {
    "val": val_1,
    "d": d_1
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
exists Ran
ran, violated the contract we drafted
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/text.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

exists Ran
ran, violated the contract we drafted
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/video_diffusion_pytorch.py
code served (permissive licence) · get_code("608e364a9d2376a3")
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 bool, 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

def exists(x):
    return x is not None

ARGS = {
    "x": torch.tensor([1, 2, 3, 4])
}
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 bool, 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
is_odd Ran
ran, violated the contract we drafted
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/video_diffusion_pytorch.py
pointer only (licence: MIT); the stored copy get_code serves, from yulewang97/benediff, is pointer only (licence: NONE) · get_code("ebc12c938e7a6b29")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yulewang97/benediff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess Ran
ran; our contract draft was wrong, not the code
shim0114/SSM-Meets-Video-Diffusion-Models/eval_video-diffusion.py
code served (permissive licence) · get_code("3fb269a2a84ff2c6")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

# Create a small batch of videos
# Shape: [batch_size, num_frames, height, width, depth]
batch_size = 2
num_frames = 4
height = 8
width = 6
depth = 3

# Create a tensor with values in range 0-255
videos = tf.constant(
    [[[[[100.0 for _ in range(depth)] for _ in range(width)] for _ in range(height)] for _ in range(num_frames)] for _ in range(batch_size)],
    dtype=tf.float32
)

# Target resolution as (width, height) tuple
target_resolution = (12, 10)

ARGS = {
    "videos": videos,
    "target_resolution": target_resolution,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
stochastic_depth Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/s4d.py
code served (permissive licence) · get_code("cb1e186caa6a9a11")
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 4, dtype family float, shape (2, 4, 3, 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 torch

torch.manual_seed(0)

# Create a small input tensor with batch size 2 and arbitrary shape
input_tensor = torch.randn(2, 4, 3, 3)

# Define valid arguments for stochastic_depth
ARGS = {
    "input": input_tensor,
    "p": 0.5,
    "mode": "batch",
    "training": True
}
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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 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
get_bert Not yet run
unverified (harvested, no recorded run)
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/text.py
code served (permissive licence) · get_code("6b5397fef11888d4")
How it ran

no invocation recorded.

get_test_dataset Not yet run
unverified (harvested, no recorded run)
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/long_video_datasets.py
code served (permissive licence) · get_code("5f6393a4503eadd3")
How it ran

no invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/text.py
code served (permissive licence) · get_code("70ab12ce48c0fa83")
How it ran

no invocation recorded.

get_train_dataset Not yet run
unverified (harvested, no recorded run)
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/long_video_datasets.py
code served (permissive licence) · get_code("7e3ecf1b3d3ff289")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
shim0114/SSM-Meets-Video-Diffusion-Models/video_diffusion_pytorch/long_video_datasets.py
code served (permissive licence) · get_code("364d6eb9bf92f3d5")
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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 4 later) and 7 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
exists 486 other papers
309 dated earlier, 19 the same month, 147 later, 9 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
exists 144 other papers
73 dated earlier, 5 the same month, 61 later, 5 same year, order not determinable · 40 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
and 141 more not named here
default 79 other papers
36 dated earlier, 3 the same month, 37 later, 3 same year, order not determinable · 15 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
and 76 more not named here
is_odd 4 other papers
2 dated earlier, 2 later
2303.13744 (2023-03)
Conditional Image-to-Video Generation with Latent Flow Diffusion Models
2305.19836 (2023-05)
Inverse-design of nonlinear mechanical metamaterials via video denoising diffusion models
2408.03124 (2024-08)
CL-DiffPhyCon: Closed-loop Diffusion Control of Complex Physical Systems
and 1 more not named here

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

Given the remarkable achievements in image generation using diffusion models, the research community has shown increasing interest in extending these models to video generation. Recent diffusion models for video generation have predominantly utilized attention layers to extract temporal features. However, attention layers are limited by their computational cost, which increases quadratically with sequence length. This limitation poses significant challenges when generating longer video sequences using diffusion models. To overcome these challenges, we propose to leverage state-space models (SSMs) as temporal feature extractors. SSMs (e.g., Mamba) have recently garnered attention as promising alternatives owing to their linear-time memory and time consumption relative to the sequence length. Employing SSMs to capture temporal dependencies in video generation enables significantly higher generative performance at the same computational cost (e.g., memory usage, inference time) compared to attention-based methods, particularly for long-term sequences. For various model sizes, we comprehensively evaluated multiple long-term video datasets: MineRL Navigate, GQN-Mazes, and CARLA-Town01. For 256-frame video sequences, SSM-based models incur lower computational cost to achieve the same Fréchet Video Distance as attention-based models. Furthermore, the ablation study shows that when using SSMs for temporal modeling, incorporating bidirectionality and selective scans enhances video generation performance. Our code is available at https:// github.com/shim0114/SSM-Meets-Video-Diffusion-Models.

For agents

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

get_harvested_code_for_paper("2403.07711")
get_code_for_paper("2403.07711")
have("2403.07711")

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

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

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

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

Connect an agent — have() is free.