SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.14427 · NeurIPS · 2025

Deep Compositional Phase Diffusion for Long Motion Sequence Generation

Jie Chen, Au, Yin Ho, Junkun Jiang, Jingyu Xiang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 1 failure of our instrument; 3 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/2510.14427.json · badge: /api/ran/2510.14427.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
asdryau/TransPhase community
Papers with Code archive
4 ran · 3 no recorded run
FunctionStatusWhere it lives
PositionalEncoding_3way Ran
ran on a synthesized input
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("6e5b5b1cea46374e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, 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 torch.nn as nn
import numpy as np

class PositionalEncoding_3way(nn.Module):

    def __init__(self, d_model, dropout=0.1, half_len=500):
        super(PositionalEncoding_3way, self).__init__()
        self.dropout = nn.Dropout(p=dropout)

    def forward(self, x, progress):
        div_term = torch.exp(torch.arange(0, x.shape[2], 4, device=x.device).float() * (-np.log(10000.0) / x.shape[2])).detach()
        left_valid = (progress < 0).float()
        right_valid = (progress > 0).float()
        T_left = torch.sum((progress < 0) & (progress >= -1), dim=1, keepdim=True)
        T_right = torch.sum((progress > 0) & (progress <= 1), dim=1, keepdim=True)
        position = (progress * left_valid * T_left + progress * right_valid * T_right).unsqueeze(-1).detach()
        T = progress.shape[1]
        left_position = torch.arange(T, device=progress.device).float()
        left_position = left_position
        right_position = torch.arange(T, device=progress.device).float()
        right_position = right_position - (T_right + T_left)
        x[:, :, 0::4] += torch.sin(position * div_term)
        x[:, :, 1::4] += torch.cos(position * div_term)
        x[:, :, 2::4] += torch.sin(left_position.unsqueeze(-1) * div_term)
        x[:, :, 3::4] += torch.cos(right_position.unsqueeze(-1) * div_term)
        return self.dropout(x)

INIT_ARGS = {
    'd_model': 8,
    'dropout': 0.1,
    'half_len': 500
}

ARGS = {
    'x': torch.randn(2, 3, 8),
    'progress': torch.tensor([[-0.5, 0.2, -0.8], [0.1, -0.3, 0.5]])
}

if __name__ == '__main__':
    model = PositionalEncoding_3way(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shape:", output.shape)
    print("Output:", output)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
TimestepEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("afe601a142eb1995")
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 an instance of its own class, TimestepEmbedding: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

# The function is TimestepEmbedding.__init__ and __init__ needs:
# - channel: int
# - time_embed_dim: int
# - act_fn: str (optional, defaults to 'silu')

# We need to construct arguments that would be passed to __init__
# The __init__ parameters are: self, channel, time_embed_dim, act_fn

ARGS = {
    'channel': 4,
    'time_embed_dim': 8,
    'act_fn': 'silu'
}
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 TimestepEmbedding — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TimestepEmbedding 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
Timesteps Ran
ran on a synthesized input
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("a8149c584f3dc4af")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, 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 torch.nn as nn
import math

def get_timestep_embedding(timesteps: torch.Tensor, embedding_dim: int, flip_sin_to_cos: bool=False, downscale_freq_shift: float=1, scale: float=1, max_period: int=10000):
    """
    This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings.

    :param timesteps: a 1-D Tensor of N indices, one per batch element.
                      These may be fractional.
    :param embedding_dim: the dimension of the output. :param max_period: controls the minimum frequency of the
    embeddings. :return: an [N x dim] Tensor of positional embeddings.
    """
    assert len(timesteps.shape) == 1, 'Timesteps should be a 1d-array'
    half_dim = embedding_dim // 2
    exponent = -math.log(max_period) * torch.arange(start=0, end=half_dim, dtype=torch.float32, device=timesteps.device)
    exponent = exponent / (half_dim - downscale_freq_shift)
    emb = torch.exp(exponent)
    emb = timesteps[:, None].float() * emb[None, :]
    emb = scale * emb
    emb = torch.cat([torch.sin(emb), torch.cos(emb)], dim=-1)
    if flip_sin_to_cos:
        emb = torch.cat([emb[:, half_dim:], emb[:, :half_dim]], dim=-1)
    if embedding_dim % 2 == 1:
        emb = torch.nn.functional.pad(emb, (0, 1, 0, 0))
    return emb

class Timesteps(nn.Module):

    def __init__(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float):
        super().__init__()
        self.num_channels = num_channels
        self.flip_sin_to_cos = flip_sin_to_cos
        self.downscale_freq_shift = downscale_freq_shift

    def forward(self, timesteps):
        t_emb = get_timestep_embedding(timesteps, self.num_channels, flip_sin_to_cos=self.flip_sin_to_cos, downscale_freq_shift=self.downscale_freq_shift)
        return t_emb


INIT_ARGS = {
    'num_channels': 8,
    'flip_sin_to_cos': False,
    'downscale_freq_shift': 1.0,
}

ARGS = {
    'timesteps': torch.tensor([0.0, 1.0, 2.5, 5.0]),
}

if __name__ == '__main__':
    model = Timesteps(**INIT_ARGS)
    output = model(**ARGS)
    print(output.shape)
    print(output)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("93dc2a74ceb65049")
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, 1.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
MotionPAE Not yet run
unverified (harvested, no recorded run)
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("e3578b56b1e9a428")
How it ran

no invocation recorded.

TranPhase Not yet run
unverified (harvested, no recorded run)
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("0f7056fffba32b88")
How it ran

no invocation recorded.

init_random_projection Not yet run
unverified (harvested, no recorded run)
asdryau/TransPhase/model/TPDM/diffusion.py
code served (permissive licence) · get_code("3329d52992dcf91d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 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
get_timestep_embedding
brick of this paper's assembly: helper
9 other papers
8 dated earlier, 1 later
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

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

This allows them to learn semantically important and transition-aware phase information from variable-length motion clips during training. Experimental results demonstrate the competitive performance of our proposed framework in generating compositional motion sequences that align semantically with the input conditions, while preserving phase transitional continuity between preceding and succeeding motion clips. Additionally, motion inbetweening task is made possible by keeping the phase parameter of the input motion sequences fixed throughout the diffusion process, showcasing the potential for extending the proposed framework to accommodate various application scenarios. Codes are available at https://github.com/asdryau/TransPhase.

For agents

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

get_harvested_code_for_paper("2510.14427")
get_code_for_paper("2510.14427")
have("2510.14427")

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

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

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

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

Connect an agent — have() is free.