SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.24219 · NeurIPS · 2024

Enhancing Motion in Text-to-Video Generation with Decomposed Encoding and Conditioning

Yuhui Shi, Pichao Wang, Jiannong Cao, Penghui Ruan, Divya Saxena

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 4 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/2410.24219.json · badge: /api/ran/2410.24219.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
pr-ryan/demo canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
assign_prior_mudule_cfg Ran
ran; our contract draft was wrong, not the code
pr-ryan/demo/utils/assign_cfg.py
code served (permissive licence) · get_code("b64e0147e4a1f775")
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, 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 tempfile
import os
import yaml
from copy import deepcopy

# Create temporary YAML files for prior and vldm configs
temp_dir = tempfile.mkdtemp()

prior_yaml_path = os.path.join(temp_dir, "prior.yaml")
vldm_yaml_path = os.path.join(temp_dir, "vldm.yaml")

# Write sample prior config
prior_config = {
    "model": {"layers": 2, "hidden_dim": 64},
    "training": {"lr": 0.001, "epochs": 10}
}
with open(prior_yaml_path, 'w') as f:
    yaml.dump(prior_config, f)

# Write sample vldm config
vldm_config = {
    "model": {"layers": 3, "hidden_dim": 128},
    "training": {"lr": 0.0001}
}
with open(vldm_yaml_path, 'w') as f:
    yaml.dump(vldm_config, f)

# Create a config object (dict-like with attribute access)
class Config(dict):
    def __getattr__(self, key):
        try:
            return self[key]
        except KeyError:
            raise AttributeError(f"'Config' object has no attribute '{key}'")
    
    def __setattr__(self, key, value):
        self[key] = value

cfg = Config()
cfg["prior_cfg"] = prior_yaml_path
cfg["vldm_cfg"] = vldm_yaml_path
cfg["model"] = {"layers": 1, "hidden_dim": 32}
cfg["training"] = {"lr": 0.01, "epochs": 5}
cfg["data"] = {"batch_size": 16}

ARGS = {
    "cfg": cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
assign_signle_cfg Ran
ran; our contract draft was wrong, not the code
pr-ryan/demo/utils/assign_cfg.py
code served (permissive licence) · get_code("ccc751f51ec26e45")
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 dict. 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 torch.nn as nn
import yaml
import tempfile
import os

# Create a temporary YAML file for the config update
temp_dir = tempfile.mkdtemp()
yaml_file = os.path.join(temp_dir, "config_update.yaml")

update_config = {
    "learning_rate": 0.001,
    "batch_size": 32,
    "nested_config": {
        "param1": "updated_value",
        "param2": 42
    }
}

with open(yaml_file, 'w') as f:
    yaml.dump(update_config, f)

# Define base configuration
base_cfg = {
    "learning_rate": 0.01,
    "batch_size": 16,
    "model_name": "baseline_model",
    "nested_config": {
        "param1": "original_value",
        "param2": 10,
        "param3": "untouched"
    },
    "optimizer": "adam"
}

# Define the _cfg_update dict mapping task names to yaml file paths
_cfg_update = {
    "task1": yaml_file,
    "task2": yaml_file
}

# Task name to use
tname = "task1"

ARGS = {
    "cfg": base_cfg,
    "_cfg_update": _cfg_update,
    "tname": tname
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
assign_vldm_vsr_mudule_cfg Ran
ran; our contract draft was wrong, not the code
pr-ryan/demo/utils/assign_cfg.py
code served (permissive licence) · get_code("bb7489dd987a9149")
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, 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 tempfile
import os
import yaml
from copy import deepcopy

# Create temporary YAML files for vldm and vsr configs
temp_dir = tempfile.mkdtemp()

vldm_yaml_content = """
model:
  type: vldm
  dim: 256
training:
  batch_size: 2
  lr: 0.001
"""

vsr_yaml_content = """
model:
  type: vsr
  dim: 512
training:
  batch_size: 4
  lr: 0.0001
"""

vldm_cfg_path = os.path.join(temp_dir, 'vldm_config.yaml')
vsr_cfg_path = os.path.join(temp_dir, 'vsr_config.yaml')

with open(vldm_cfg_path, 'w') as f:
    f.write(vldm_yaml_content)

with open(vsr_cfg_path, 'w') as f:
    f.write(vsr_yaml_content)

# Create a config object with the necessary attributes
class ConfigObject(dict):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.__dict__ = self

cfg = ConfigObject(
    vldm_cfg=vldm_cfg_path,
    vsr_cfg=vsr_cfg_path,
    model={
        'type': 'base',
        'dim': 128
    },
    training={
        'batch_size': 8,
        'lr': 0.01
    }
)

ARGS = {
    'cfg': cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
get_logger Ran
ran; our contract draft was wrong, not the code
pr-ryan/demo/utils/logging.py
code served (permissive licence) · get_code("b6d6bcb982b768cc")
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 Logger. 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 logging

ARGS = {
    "name": "test_logger"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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_rank Ran
ran, honoured the contract we drafted
pr-ryan/demo/utils/distributed.py
code served (permissive licence) · get_code("1d504697143a06b9")
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 int, ndim 0, dtype family int, 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 torch.nn as nn
import torch.distributed as dist

torch.manual_seed(0)

# The get_rank function takes an optional 'group' parameter
# which is used by dist.get_rank(group) if distributed is initialized
# Otherwise it returns 0 regardless of the group parameter

# Create a valid ProcessGroup object (or None, which is valid)
# Since we're not actually initializing distributed training,
# we can pass None or a mock group object
group = None

ARGS = {
    "group": group
}
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 int, ndim 0, dtype family int, 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
get_world_size Ran
ran, honoured the contract we drafted
pr-ryan/demo/utils/distributed.py
code served (permissive licence) · get_code("151fc386a67a4f69")
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 int, ndim 0, dtype family int, 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 torch.distributed as dist
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# The function get_world_size takes an optional 'group' parameter
# which is passed to dist.get_world_size(group) if distributed is initialized.
# Since we're not actually initializing distributed training, we just need
# to provide a valid value for the group parameter.

# Create a mock process group (or None, which is the default)
mock_group = None

ARGS = {
    "group": mock_group
}
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 int, ndim 0, dtype family int, 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
to_device Ran
ran; our contract draft was wrong, not the code
pr-ryan/demo/utils/util.py
code served (permissive licence) · get_code("2c9668e7429db7c5")
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 dict. 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)

# Create a batch with nested structure (list, dict, tensors)
batch = {
    'input_ids': torch.randint(0, 100, (2, 4)),
    'attention_mask': torch.ones(2, 4),
    'nested_list': [
        torch.randn(2, 3),
        torch.randn(2, 5)
    ],
    'nested_tuple': (
        torch.randn(3, 4),
        {'inner_tensor': torch.randn(2, 6)}
    )
}

device = torch.device('cpu')

ARGS = {
    'batch': batch,
    'device': device,
    'non_blocking': False
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
build_from_config Not yet run
unverified (harvested, no recorded run)
pr-ryan/demo/utils/registry.py
code served (permissive licence) · get_code("ba13909bd366ecb0")
How it ran

no invocation recorded.

build_func Not yet run
unverified (harvested, no recorded run)
pr-ryan/demo/utils/registry_class.py
code served (permissive licence) · get_code("e12405fa6be0a921")
How it ran

no invocation recorded.

gen_text_image Not yet run
unverified (harvested, no recorded run)
pr-ryan/demo/utils/video_op.py
code served (permissive licence) · get_code("9b3aac7a14d2a719")
How it ran

no invocation recorded.

new_group Not yet run
unverified (harvested, no recorded run)
pr-ryan/demo/utils/distributed.py
code served (permissive licence) · get_code("69723155a0580292")
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, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 1 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.

FunctionAlso present inEarliest-datedOthers named
get_logger 8 other papers
6 dated earlier, 1 the same month, 1 later
1905.13214 (2019-05)
On Network Design Spaces for Visual Recognition
2108.02927 (2021-08)
DOLG: Single-Stage Image Retrieval with Deep Orthogonal Fusion of Local and Global Features
2301.12132 (2023-01)
AutoPEFT: Automatic Configuration Search for Parameter-Efficient Fine-Tuning
and 5 more not named here
get_rank 2 other papers
2 dated earlier
2306.02018 (2023-06)
VideoComposer: Compositional Video Synthesis with Motion Controllability
2312.09109 (2023-12)
VideoLCM: Video Latent Consistency Model
get_world_size 2 other papers
2 dated earlier
2306.02018 (2023-06)
VideoComposer: Compositional Video Synthesis with Motion Controllability
2312.09109 (2023-12)
VideoLCM: Video Latent Consistency Model
new_group 2 other papers
2 dated earlier
2306.02018 (2023-06)
VideoComposer: Compositional Video Synthesis with Motion Controllability
2312.09109 (2023-12)
VideoLCM: Video Latent Consistency Model
assign_prior_mudule_cfg 1 other paper
1 dated earlier
2312.09109 (2023-12)
VideoLCM: Video Latent Consistency Model
assign_vldm_vsr_mudule_cfg 1 other paper
1 dated earlier
2312.09109 (2023-12)
VideoLCM: Video Latent Consistency Model
build_from_config 1 other paper
1 dated earlier
2312.09109 (2023-12)
VideoLCM: Video Latent Consistency Model

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

Despite advancements in Text-to-Video (T2V) generation, producing videos with realistic motion remains challenging. Current models often yield static or minimally dynamic outputs, failing to capture complex motions described by text. This issue stems from the internal biases in text encoding, which overlooks motions, and inadequate conditioning mechanisms in T2V generation models. To address this, we propose a novel framework called DEcomposed MOtion (DEMO), which enhances motion synthesis in T2V generation by decomposing both text encoding and conditioning into content and motion components. Our method includes a content encoder for static elements and a motion encoder for temporal dynamics, alongside separate content and motion conditioning mechanisms. Crucially, we introduce text-motion and video-motion supervision to improve the model's understanding and generation of motion. Evaluations on benchmarks such as MSR-VTT, UCF-101, WebVid-10M, EvalCrafter, and VBench demonstrate DEMO's superior ability to produce videos with enhanced motion dynamics while maintaining high visual quality. Our approach significantly advances T2V generation by integrating comprehensive motion understanding directly from textual descriptions. Project page: https://PR-Ryan.github.io/DEMO-project/ * The work does not relate to author's position at Amazon.

For agents

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

get_harvested_code_for_paper("2410.24219")
get_code_for_paper("2410.24219")
have("2410.24219")

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

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

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

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

Connect an agent — have() is free.