SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.11048 · 2026

M3DDM+: An improved video outpainting by a modified masking strategy

Ning Ding, Takuya Murakawa, Takumi Fukuzawa, Toru Tamaki

arXiv · PDF · Open in the Atlas

Code that ran

9 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, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2601.11048.json · badge: /api/ran/2601.11048.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
tamaki-lab/M3DDM-Plus canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
async_thread_tasks Ran
ran; our contract draft was wrong, not the code
tamaki-lab/M3DDM-Plus/src/inference.py
code served (permissive licence) · get_code("870d9f8047bf8c33")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 concurrent.futures import ThreadPoolExecutor

torch.manual_seed(0)

class RetryTask:
    """Stand-in RetryTask class with retry_run method"""
    def __init__(self, task_id, value):
        self.task_id = task_id
        self.value = value
    
    def retry_run(self):
        """Execute the task and return a result"""
        return {"task_id": self.task_id, "result": self.value * 2}

# Create a list of RetryTask objects
retry_tasks = [
    RetryTask(0, 10),
    RetryTask(1, 20),
    RetryTask(2, 30),
    RetryTask(3, 40),
    RetryTask(4, 50),
]

ARGS = {
    "retry_tasks": retry_tasks,
    "max_thread_num": 4,
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
default Ran
ran, violated the contract we drafted
tamaki-lab/M3DDM-Plus/src/model/layer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("60fff7c3c400d7ff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), 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.

downsample_2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tamaki-lab/M3DDM-Plus/src/model/resnet.py
code served (permissive licence) · get_code("8e290cb987729c53")
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, 4, 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 4D input tensor [N, C, H, W]
# Using distinct sizes: batch=2, channels=4, height=8, width=6
hidden_states = torch.randn(2, 4, 8, 6)

# Create a kernel - can be 1D or 2D
# Using a simple averaging kernel
kernel = [1, 1]

# Downsampling factor
factor = 2

# Gain for scaling
gain = 1.0

ARGS = {
    "hidden_states": hidden_states,
    "kernel": kernel,
    "factor": factor,
    "gain": gain,
}
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, 4, 3) — shape (2, 4, 4, 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
exists Ran
ran, violated the contract we drafted
tamaki-lab/M3DDM-Plus/src/model/layer.py
pointer only (licence: Apache-2.0); 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 (Apache-2.0), 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.

get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tamaki-lab/M3DDM-Plus/src/model/embeddings.py
code served (permissive licence) · get_code("38f69a3d1e46016d")
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, 4) 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

torch.manual_seed(0)

ARGS = {
    "timesteps": torch.tensor([0.0, 5.0], dtype=torch.float32),
    "embedding_dim": 4,
    "flip_sin_to_cos": False,
    "downscale_freq_shift": 1.0,
    "scale": 1.0,
    "max_period": 10000,
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
preprocess Ran
ran; our contract draft was wrong, not the code
tamaki-lab/M3DDM-Plus/src/inference.py
code served (permissive licence) · get_code("bfe91c6f64d15c27")
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 3, dtype family float, shape (3, 4, 4) 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 torchvision.transforms as transforms
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small sample image tensor (3 channels, 4x4 spatial dimensions)
# The function expects an image that can be passed to img_transform
sample_image_array = np.random.randint(0, 256, (4, 4, 3), dtype=np.uint8)
sample_image_pil = Image.fromarray(sample_image_array)

# Create a transform pipeline
img_transform = transforms.Compose([
    transforms.ToTensor(),
    transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
])

ARGS = {
    "image": sample_image_pil,
    "img_transform": img_transform
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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 (3, 4, 4) — shape (3, 4, 4) 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
resize_frames_to_output_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tamaki-lab/M3DDM-Plus/src/inference.py
code served (permissive licence) · get_code("267a226294f5d7db")
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, 3, 4, 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
from torchvision import transforms as T

torch.manual_seed(0)

# Create small test frames tensor [N, C, H, W]
frames = torch.rand(2, 3, 4, 5)

# Set output size for the long edge
output_size = 10

# Define target aspect ratios as comma-separated string
target_ratio_list = "16:9,9:16"

ARGS = {
    "frames": frames,
    "output_size": output_size,
    "target_ratio_list": target_ratio_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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, 3, 4, 5) — shape (2, 3, 4, 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
upfirdn2d_native Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tamaki-lab/M3DDM-Plus/src/model/resnet.py
code served (permissive licence) · get_code("ff4290f22c9719ea")
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, 3, 8, 10) 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.functional as F

torch.manual_seed(0)

# Create a small input tensor with shape (batch, channel, height, width)
tensor = torch.randn(2, 3, 4, 5)

# Create a small kernel tensor with shape (kernel_h, kernel_w)
kernel = torch.randn(3, 3)

# Parameters
up = 2
down = 1
pad = (1, 1)

ARGS = {
    "tensor": tensor,
    "kernel": kernel,
    "up": up,
    "down": down,
    "pad": pad
}
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, 3, 8, 10) — shape (2, 3, 8, 10) 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
upsample_2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tamaki-lab/M3DDM-Plus/src/model/resnet.py
code served (permissive licence) · get_code("7ce807dcbf5d780c")
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, 3, 8, 10) 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 [N, C, H, W]
hidden_states = torch.randn(2, 3, 4, 5)

# Create a simple kernel (1D, will be converted to 2D)
kernel = [1.0, 1.0]

# Upsampling factor
factor = 2

# Gain parameter
gain = 1.0

ARGS = {
    "hidden_states": hidden_states,
    "kernel": kernel,
    "factor": factor,
    "gain": gain,
}
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, 3, 8, 10) — shape (2, 3, 8, 10) 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
compute_video_metrics Not yet run
unverified (harvested, no recorded run)
tamaki-lab/M3DDM-Plus/src/evaluate.py
code served (permissive licence) · get_code("45792228a7faaa34")
How it ran

no invocation recorded.

create_converted_ckpt_file Not yet run
unverified (harvested, no recorded run)
tamaki-lab/M3DDM-Plus/src/convert_ckpt_to_bin.py
code served (permissive licence) · get_code("b24ca243f68138c3")
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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 2 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.

FunctionAlso present inEarliest-datedOthers named
exists 486 other papers
464 dated earlier, 3 the same month, 17 later, 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
default 163 other papers
157 dated earlier, 1 the same month, 4 later, 1 undated · 27 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1810.00825 (2018-10)
Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks
1907.01470 (2019-07)
Augmenting Self-attention with Persistent Memory
and 160 more not named here
get_timestep_embedding 9 other papers
9 dated earlier
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2311.16498 (2023-11)
MagicAnimate: Temporally Consistent Human Image Animation using Diffusion Model
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
and 6 more not named here
downsample_2d 7 other papers
7 dated earlier
2303.09535 (2023-03)
FateZero: Fusing Attentions for Zero-shot Text-based Video Editing
2304.06720 (2023-04)
Expressive Text-to-Image Generation with Rich Text
2307.10422 (2023-07)
PreDiff: Precipitation Nowcasting with Latent Diffusion Models
and 4 more not named here
upsample_2d 7 other papers
7 dated earlier
2303.09535 (2023-03)
FateZero: Fusing Attentions for Zero-shot Text-based Video Editing
2304.06720 (2023-04)
Expressive Text-to-Image Generation with Rich Text
2307.10422 (2023-07)
PreDiff: Precipitation Nowcasting with Latent Diffusion Models
and 4 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

M3DDM provides a computationally efficient framework for video outpainting via latent diffusion modeling. However, it exhibits significant quality degradation -manifested as spatial blur and temporal inconsistency -under challenging scenarios characterized by limited camera motion or large outpainting regions, where inter-frame information is limited. We identify the cause as a training-inference mismatch in the masking strategy: M3DDM's training applies random mask directions and widths across frames, whereas inference requires consistent directional outpainting throughout the video. To address this, we propose M3DDM+, which applies uniform mask direction and width across all frames during training, followed by fine-tuning of the pretrained M3DDM model. Experiments demonstrate that M3DDM+ substantially improves visual fidelity and temporal coherence in information-limited scenarios while maintaining computational efficiency. The code is available at https://github.com/tamaki-lab/M3DDM-Plus.

For agents

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

get_harvested_code_for_paper("2601.11048")
get_code_for_paper("2601.11048")
have("2601.11048")

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

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

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

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

Connect an agent — have() is free.