SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.17267 · CVPR · 2025

Physical Plausibility-aware Trajectory Prediction via Locomotion Embodiment

Shohei Nobuhara, Takahiro Maeda, Norimichi Ukita, Takeru Oba, Hiromu Taketsugu

arXiv · PDF · Open in the Atlas

Code that ran

8 of 14 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 6 have no contract verdict; 1 failure of our instrument; 6 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/2503.17267.json · badge: /api/ran/2503.17267.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
ImIntheMiddle/EmLoco canonical (classifier label)
classifier basis not recorded on the link
8 ran · 6 no recorded run
FunctionStatusWhere it lives
batch_process_coords Ran
ran on a synthesized input
ImIntheMiddle/EmLoco/social-transmotion/dataset_jrdb.py
code served (permissive licence) · get_code("57da7dfa5443db69")
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
import torch.nn as nn
from torchvision import transforms

torch.manual_seed(0)

# Build config dict with all required keys
config = {
    'DEVICE': 'cpu',
    'TRAIN': {
        'input_track_size': 8,
        'output_track_size': 12,
    },
    'DATA': {
        'train_datasets': ['some_dataset'],
    }
}

# Create small tensors with distinct dimensions
# B=2, N=3, F=20, J=4, K=3
B, N, F, J, K = 2, 3, 20, 4, 3
coords = torch.randn(B, N, F, J, K)
masks = torch.ones(B, N, F, J)
padding_mask = torch.ones(B, N)

ARGS = {
    'coords': coords,
    'masks': masks,
    'padding_mask': padding_mask,
    'config': config,
    'modality_selection': 'traj+all',
    'training': False,
    'multiperson': True,
}
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 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
collate_batch Ran
ran on a synthesized input
ImIntheMiddle/EmLoco/social-transmotion/dataset_jrdb.py
code served (permissive licence) · get_code("1e2df8b59f173163")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create sample batch data
# Each item in batch is a tuple of (joints, masks, idxs)
batch_item_1 = (
    torch.randn(2, 4),  # joints: (num_people=2, num_joints=4)
    torch.ones(2, 4),   # masks: (num_people=2, num_joints=4)
    torch.tensor([0, 1])  # idxs: person indices
)

batch_item_2 = (
    torch.randn(3, 4),  # joints: (num_people=3, num_joints=4)
    torch.ones(3, 4),   # masks: (num_people=3, num_joints=4)
    torch.tensor([2, 3, 4])  # idxs: person indices
)

batch = [batch_item_1, batch_item_2]

ARGS = {
    "batch": batch
}
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
collate_batch Ran
ran on a synthesized input
ImIntheMiddle/EmLoco/social-transmotion/dataset_jta.py
code served (permissive licence) · get_code("629a8b333d7cf5ed")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create sample batch data
# Each item in batch is a tuple of (joints, masks)
# joints: tensor of shape (num_people, num_joints, features)
# masks: tensor of shape (num_people, num_joints)

joints_1 = torch.randn(2, 5, 3)  # 2 people, 5 joints, 3 features
masks_1 = torch.randint(0, 2, (2, 5)).float()  # 2 people, 5 joints

joints_2 = torch.randn(3, 5, 3)  # 3 people, 5 joints, 3 features
masks_2 = torch.randint(0, 2, (3, 5)).float()  # 3 people, 5 joints

batch = [
    (joints_1, masks_1),
    (joints_2, masks_2)
]

ARGS = {
    "batch": batch
}
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
getRandomRotatePoseTransform Ran
ran on a synthesized input
ImIntheMiddle/EmLoco/social-transmotion/dataset_jrdb.py
code served (permissive licence) · get_code("173cfe0d9eef60ae")
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 Lambda. 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
from torchvision import transforms

torch.manual_seed(0)

# Create a minimal config dict
config = {
    "rotation_axis": "z",
    "rotation_range": [0, 360]
}

# Create angles tensor - batch size 2
angles = torch.tensor([0.5, 1.0])

# Create a pose_seq tensor with shape (B=2, N=5, F=4, J=3, K=3)
# B=2 (batch), N=5 (sequence), F=4 (frames), J=3 (joints), K=3 (coordinates)
pose_seq = torch.randn(2, 5, 4, 3, 3)

ARGS = {
    "config": config,
    "angles": angles
}
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 Lambda — a Lambda output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Lambda 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_action_label Ran
ran on a synthesized input
ImIntheMiddle/EmLoco/social-transmotion/evaluate_jrdb.py
code served (permissive licence) · get_code("9a7f1521fdc35610")
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 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
import numpy as np

torch.manual_seed(0)

# Construct split parameter
split = "train"

# Construct metainfo parameter
# metainfo[0] is a scene name string
# metainfo[1] is a tensor where:
#   - shape is (num_frames, 2) where we access [:, 0] for frames and [0, 1] for ped_id
scene_name = "intersection_shift_v1"
metainfo_tensor = torch.tensor([
    [10.0, 5.0],
    [11.0, 5.0],
    [12.0, 5.0]
], dtype=torch.float32)
metainfo = (scene_name, metainfo_tensor)

# Construct action_dict parameter
# Structure: {split: {scene_name: {frame_str: {ped_id_str: action}}}}
action_dict = {
    "train": {
        "intersection": {
            "10": {
                "5": "walking"
            },
            "11": {
                "5": "walking"
            },
            "12": {
                "5": "running"
            }
        }
    }
}

ARGS = {
    "split": split,
    "metainfo": metainfo,
    "action_dict": action_dict
}
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 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
get_valid_mask2 Ran
ran on a synthesized input
ImIntheMiddle/EmLoco/EqMotion/main_eth_diverse.py
code served (permissive licence) · get_code("86dae4c81f3d1089")
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, 1, 1) 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)

# num_valid should be a 1D tensor with shape (batch_size,)
# each element indicates how many agents are valid for that batch
num_valid = torch.tensor([2, 3])

# agent_num is the total number of agents
agent_num = 4

ARGS = {
    "num_valid": num_valid,
    "agent_num": agent_num,
}
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, 1, 1) — shape (2, 4, 1, 1) 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
lr_decay Ran
ran, honoured the contract we drafted
ImIntheMiddle/EmLoco/EqMotion/main_eth_diverse.py
code served (permissive licence) · get_code("d967154c60f2573c")
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 float, 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
import torch.nn as nn
import torch.optim as optim

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = optim.SGD(model.parameters(), lr=0.1)

# Define the arguments
ARGS = {
    'optimizer': optimizer,
    'lr_now': 0.1,
    'gamma': 0.5
}
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 float, 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
read_json Ran
ran; our contract draft was wrong, not the code
ImIntheMiddle/EmLoco/social-transmotion/load_jrdb_3dpose.py
pointer only (licence: MIT); the stored copy get_code serves, from danielqwer/MUGEN, is pointer only (licence: NOASSERTION) · get_code("2362958b7e6a9591")
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 danielqwer/MUGEN, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

create_model Not yet run
unverified (harvested, no recorded run)
ImIntheMiddle/EmLoco/social-transmotion/model_jta.py
code served (permissive licence) · get_code("162bda0d646ed899")
How it ran

no invocation recorded.

get_primary_init_pose_jrdb Not yet run
unverified (harvested, no recorded run)
ImIntheMiddle/EmLoco/social-transmotion/load_jrdb_traj.py
code served (permissive licence) · get_code("6bf33cb3a1d3239f")
How it ran

no invocation recorded.

inference Not yet run
unverified (harvested, no recorded run)
ImIntheMiddle/EmLoco/social-transmotion/evaluate_jta.py
code served (permissive licence) · get_code("a703784ffd685861")
How it ran

no invocation recorded.

load_jrdb_3dpose Not yet run
unverified (harvested, no recorded run)
ImIntheMiddle/EmLoco/social-transmotion/load_jrdb_3dpose.py
code served (permissive licence) · get_code("18f2594f0396e053")
How it ran

no invocation recorded.

load_jrdb_data Not yet run
unverified (harvested, no recorded run)
ImIntheMiddle/EmLoco/social-transmotion/load_jrdb_3dpose.py
code served (permissive licence) · get_code("2f7aeff4240b3889")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
ImIntheMiddle/EmLoco/EqMotion/main_eth_diverse.py
code served (permissive licence) · get_code("74dc8d1665324c49")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 2 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 12 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
lr_decay 3 other papers
3 dated earlier
2305.14642 (2023-05)
Newton-Cotes Graph Neural Networks: On the Time Evolution of Dynamic Systems
2308.08942 (2023-08)
Auxiliary Tasks Benefit 3D Skeleton-based Human Motion Prediction
2410.13027 (2024-10)
Geometric Trajectory Diffusion Models
read_json 2 other papers
2 later
2508.00518 (2025-08)
Fine-grained Spatiotemporal Grounding on Egocentric Videos
2603.09714 (2026-03)
MUGEN: Evaluating and Improving Multi-audio Understanding of Large Audio-Language Models

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

Humans can predict future human trajectories even from momentary observations by using human pose-related cues. However, previous Human Trajectory Prediction (HTP) methods leverage the pose cues implicitly, resulting in implausible predictions. To address this, we propose Locomotion Embodiment, a framework that explicitly evaluates the physical plausibility of the predicted trajectory by locomotion generation under the laws of physics. While the plausibility of locomotion is learned with an indifferentiable physics simulator, it is replaced by our differentiable Locomotion Value function to train an HTP network in a data-driven manner. In particular, our proposed Embodied Locomotion loss is beneficial for efficiently training a stochastic HTP network using multiple heads. Furthermore, the Locomotion Value filter is proposed to filter out implausible trajectories at inference. Experiments demonstrate that our method enhances even the state-of-the-art HTP methods across diverse datasets and problem settings. Our code is available at: https://github.com/ImIntheMiddle/EmLoco.

For agents

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

get_harvested_code_for_paper("2503.17267")
get_code_for_paper("2503.17267")
have("2503.17267")

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

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

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

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

Connect an agent — have() is free.