SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17013 · 2024

Motion-Agent: A Conversational Framework for Human Motion Generation with LLMs

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 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/2405.17013.json · badge: /api/ran/2405.17013.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
szqwu/Motion-Agent canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
build_one_instance_m2t Ran
ran; our contract draft was wrong, not the code
szqwu/Motion-Agent/models/training_utils.py
code served (permissive licence) · get_code("d09da8be655b6b18")
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 2, dtype family int; 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

class MockTokenizer:
    def __init__(self):
        self.bos_token_id = 101
        self.vocab = {
            'Below': 1000, 'is': 1001, 'an': 1002, 'instruction': 1003,
            'that': 1004, 'describes': 1005, 'a': 1006, 'task': 1007,
            'paired': 1008, 'with': 1009, 'input': 1010, 'provides': 1011,
            'further': 1012, 'context': 1013, 'Write': 1014, 'response': 1015,
            'appropriately': 1016, 'completes': 1017, 'request': 1018,
            'Instruction': 1019, 'Generate': 1020, 'caption': 1021, 'matching': 1022,
            'following': 1023, 'human': 1024, 'motion': 1025, 'token': 1026,
            'sequence': 1027, 'Input': 1028, 'Motion': 1029, 'Response': 1030,
            'eos': 1031, 'walking': 1032, 'running': 1033, 'jumping': 1034
        }
        self.id_to_token = {v: k for k, v in self.vocab.items()}
    
    def __call__(self, text, add_special_tokens=False):
        tokens = text.lower().split()
        input_ids = []
        for token in tokens:
            if token in self.vocab:
                input_ids.append(self.vocab[token])
            else:
                input_ids.append(1035)
        return type('TokenizerOutput', (), {'input_ids': input_ids})()
    
    def decode(self, token_ids):
        words = []
        for tid in token_ids:
            if tid in self.id_to_token:
                words.append(self.id_to_token[tid])
            else:
                words.append(f'<token_{tid}>')
        return ' '.join(words)

tokenizer = MockTokenizer()

captions = "a person walking forward"

motion = [1026, 1027, 1028]

ARGS = {
    'tokenizer': tokenizer,
    'captions': captions,
    'motion': motion
}
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 tuple, ndim 2, dtype family int — 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
build_one_instance_t2m Ran
ran; our contract draft was wrong, not the code
szqwu/Motion-Agent/models/training_utils.py
code served (permissive licence) · get_code("d45be01eab6f74eb")
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 2, dtype family int; 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

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.bos_token_id = 101
    
    def __call__(self, text, add_special_tokens=False):
        # Return a mock result with input_ids attribute
        # Simulate tokenization by returning a fixed number of tokens based on text length
        num_tokens = max(1, len(text) // 10)
        return MockTokenizerOutput([102 + i for i in range(num_tokens)])

class MockTokenizerOutput:
    def __init__(self, input_ids):
        self.input_ids = input_ids

tokenizer = MockTokenizer()

captions = "A person is walking forward with arms swinging naturally."

# Create a small motion tensor (treating it as token IDs)
motion = torch.tensor([103, 104, 105, 106], dtype=torch.long)

ARGS = {
    "tokenizer": tokenizer,
    "captions": captions,
    "motion": motion
}
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 tuple, ndim 2, dtype family int — 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
process_batch Ran
ran, honoured the contract we drafted
szqwu/Motion-Agent/models/training_utils.py
code served (permissive licence) · get_code("39d21578902eb9d4")
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 3, dtype family int; 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
from torch import nn

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.bos_token_id = 50256
        self.pad_token_id = 0
        self.eos_token_id = 50257
    
    def __call__(self, text, add_special_tokens=False):
        # Simulate tokenization by returning a simple object with input_ids
        class TokenOutput:
            def __init__(self, ids):
                self.input_ids = ids
        
        # Generate deterministic token ids based on text length
        num_tokens = max(1, len(text) // 5)
        return TokenOutput(list(range(100, 100 + num_tokens)))
    
    def decode(self, token_ids):
        # Simple decode that returns a string representation
        return "<motion_tokens>"

# Create a tokenizer instance
tokenizer = MockTokenizer()

# Create batch of captions (strings)
batch_of_captions = [
    "a person walking forward",
    "a person jumping up and down"
]

# Create batch of motions (tensors with motion token ids)
batch_of_motions = [
    torch.LongTensor([1000, 1001, 1002, 1003]),
    torch.LongTensor([2000, 2001, 2002])
]

# Set max target length
max_tgt_len = 256

# Set training task
training_task = 't2m'

ARGS = {
    'tokenizer': tokenizer,
    'batch_of_captions': batch_of_captions,
    'max_tgt_len': max_tgt_len,
    'batch_of_motions': batch_of_motions,
    'training_task': training_task
}
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 tuple, ndim 3, dtype family int — 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
qinv Ran
ran; our contract draft was wrong, not the code
szqwu/Motion-Agent/utils/motion_utils.py
code served (permissive licence) · get_code("9593fec6c1bf25e7")
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

torch.manual_seed(0)

# Create a small quaternion tensor of shape (2, 4)
q = torch.randn(2, 4)

ARGS = {
    'q': q
}
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
qrot Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
szqwu/Motion-Agent/utils/motion_utils.py
code served (permissive licence) · get_code("197ed23772e8e0c6")
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, 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 quaternion tensor of shape (2, 4)
# Quaternions are typically (w, x, y, z) where w is the scalar part
q = torch.tensor([
    [1.0, 0.0, 0.0, 0.0],
    [0.7071, 0.7071, 0.0, 0.0]
], dtype=torch.float32)

# Create vector tensor of shape (2, 3)
v = torch.tensor([
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0]
], dtype=torch.float32)

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
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, 3) — shape (2, 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
recover_root_rot_pos Ran
ran; our contract draft was wrong, not the code
szqwu/Motion-Agent/utils/motion_utils.py
code served (permissive licence) · get_code("5ad104298e7e0eff")
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. 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)

# Construct a tensor for the data parameter
# The function expects data with shape (batch, time_steps, features)
# Looking at the function:
# - data[..., 0] is rot_vel (1D feature)
# - data[..., 1:3] is positions (2D feature, indices 1 and 2)
# - data[..., 3] is y-position (1D feature at index 3)
# So we need at least 4 features in the last dimension

batch_size = 2
time_steps = 5
num_features = 4

data = torch.randn(batch_size, time_steps, num_features)

ARGS = {
    "data": data
}
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 tuple — a tuple 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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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
qinv 3 other papers
3 dated earlier
2310.12978 (2023-10)
HumanTOMATO: Text-aligned Whole-body Motion Generation
2312.00063 (2023-12)
MoMask: Generative Masked Modeling of 3D Human Motions
2403.18036 (2024-03)
Move as you Say, Interact as you can: Language-Guided Human Motion Generation with Scene Affordance
recover_root_rot_pos 2 other papers
2 dated earlier
2310.12978 (2023-10)
HumanTOMATO: Text-aligned Whole-body Motion Generation
2403.18036 (2024-03)
Move as you Say, Interact as you can: Language-Guided Human Motion Generation with Scene Affordance
qrot 1 other paper
1 dated earlier
2403.18036 (2024-03)
Move as you Say, Interact as you can: Language-Guided Human Motion Generation with Scene Affordance

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

While previous approaches to 3D human motion generation have achieved notable success, they often rely on extensive training and are limited to specific tasks. To address these challenges, we introduce Motion-Agent, an efficient conversational framework designed for general human motion generation, editing, and understanding. Motion-Agent employs an open-source pre-trained language model to develop a generative agent, MotionLLM, that bridges the gap between motion and text. This is accomplished by encoding and quantizing motions into discrete tokens that align with the language model's vocabulary. With only 1--3\% of the model's parameters fine-tuned using adapters, MotionLLM delivers performance on par with diffusion models and other transformer-based methods trained from scratch. By integrating MotionLLM with GPT-4 without additional training, Motion-Agent is able to generate highly complex motion sequences through multi-turn conversations, a capability that previous models have struggled to achieve. Motion-Agent supports a wide range of motion-language tasks, offering versatile capabilities for generating and customizing human motion through interactive conversational exchanges. Project page: https://knoxzhao.github.io/Motion-Agent

For agents

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

get_harvested_code_for_paper("2405.17013")
get_code_for_paper("2405.17013")
have("2405.17013")

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

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

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

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

Connect an agent — have() is free.