SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.14820 · 2021

Towards Robust and Adaptive Motion Forecasting: A Causal Representation Perspective

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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 3 have no contract verdict; 3 failures of our instrument; 3 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/2111.14820.json · badge: /api/ran/2111.14820.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
vita-epfl/causalmotion canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
get_dset_path Ran
ran on a synthesized input
vita-epfl/causalmotion/spurious/utils.py
code served (permissive licence) · get_code("b0d3a153c03cf535")
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 os

def get_dset_path(dset_name, dset_type):
    _dir = os.path.dirname(__file__)
    return os.path.join(_dir, 'datasets', dset_name, dset_type)

ARGS = {
    'dset_name': 'cifar10',
    'dset_type': 'train'
}
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 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_noise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vita-epfl/causalmotion/spurious/models.py
pointer only (licence: MIT); the stored copy get_code serves, from rohanchandra30/TrackNPred, is pointer only (licence: NONE) · get_code("cc7ee43eadf25dac")
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 rohanchandra30/TrackNPred, 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.

int_tuple Ran
ran on a synthesized input
vita-epfl/causalmotion/spurious/utils.py
code served (permissive licence) · get_code("c7a0b110ef7c5e03")
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 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

def int_tuple(s):
    return tuple((int(i) for i in s.split(',')))

ARGS = {
    's': '1,2,3,4,5'
}
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 1, 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
read_file Ran
ran, honoured the contract we drafted
vita-epfl/causalmotion/spurious/trajectories.py
pointer only (licence: MIT); the stored copy get_code serves, from inhwanbae/LMTrajectory, is pointer only (licence: NOASSERTION) · get_code("123c2031d3127cc9")
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 inhwanbae/LMTrajectory, 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.

relative_to_abs Ran
ran; our contract draft was wrong, not the code
vita-epfl/causalmotion/spurious/utils.py
code served (permissive licence) · get_code("d5ab777433781612")
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 (5, 2, 2) 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)

# rel_traj: pytorch tensor of shape (seq_len, batch, 2)
seq_len = 5
batch = 2
rel_traj = torch.randn(seq_len, batch, 2)

# start_pos: pytorch tensor of shape (batch, 2)
start_pos = torch.randn(batch, 2)

ARGS = {
    'rel_traj': rel_traj,
    'start_pos': start_pos
}
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 3, dtype family float, shape (5, 2, 2) — shape (5, 2, 2) 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
seq_collate Ran
ran; our contract draft was wrong, not the code
vita-epfl/causalmotion/spurious/trajectories.py
code served (permissive licence) · get_code("404abefa4c1dae27")
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 numpy as np

torch.manual_seed(0)

# seq_collate expects data to be an iterable of tuples:
# (obs_seq, fut_seq, obs_seq_rel, fut_seq_rel)
# where each sequence is a tensor of shape (num_pedestrians, coord, frames)

# Create sample data for 2 groups in the batch
# Group 1: 3 pedestrians, 2 coordinates, 5 observation frames, 4 future frames
obs_seq_1 = torch.randn(3, 2, 5)  # (num_peds, coord, obs_frames)
fut_seq_1 = torch.randn(3, 2, 4)  # (num_peds, coord, fut_frames)
obs_seq_rel_1 = torch.randn(3, 2, 5)
fut_seq_rel_1 = torch.randn(3, 2, 4)

# Group 2: 2 pedestrians, 2 coordinates, 5 observation frames, 4 future frames
obs_seq_2 = torch.randn(2, 2, 5)
fut_seq_2 = torch.randn(2, 2, 4)
obs_seq_rel_2 = torch.randn(2, 2, 5)
fut_seq_rel_2 = torch.randn(2, 2, 4)

# Create the data list (batch of groups)
data = [
    (obs_seq_1, fut_seq_1, obs_seq_rel_1, fut_seq_rel_1),
    (obs_seq_2, fut_seq_2, obs_seq_rel_2, fut_seq_rel_2),
]

ARGS = {
    "data": data
}
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 — 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
standard_style_loss Ran
ran on a synthesized input
vita-epfl/causalmotion/style/losses.py
code served (permissive licence) · get_code("e5ee8218a3aaa802")
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 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn.functional import cross_entropy

torch.manual_seed(0)

# The function expects:
# - output_classifier: a tensor with shape (batch_size, num_classes)
#   It accesses .shape[0] to get batch size, and passes it to cross_entropy
# - label: a scalar integer (class label)

# Create a small batch of classifier outputs (logits)
# Shape: (batch_size=2, num_classes=4)
output_classifier = torch.randn(2, 4)

# Create a label (integer between 0 and num_classes-1)
label = 1

ARGS = {
    "output_classifier": output_classifier,
    "label": label,
}
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 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
cal_ade_fde Not yet run
unverified (harvested, no recorded run)
vita-epfl/causalmotion/spurious/evaluate_model.py
code served (permissive licence) · get_code("644192cce02c4d9c")
How it ran

no invocation recorded.

compute_col Not yet run
unverified (harvested, no recorded run)
vita-epfl/causalmotion/style/evaluate_all.py
code served (permissive licence) · get_code("2116649a10a25a50")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
vita-epfl/causalmotion/spurious/evaluate_model.py
code served (permissive licence) · get_code("ef311928245f72a3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 6 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
int_tuple 3 other papers
3 dated earlier
1803.10892 (2018-03)
Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks
1804.01622 (2018-04)
Image Generation from Scene Graphs
1909.05379 (2019-09)
Specifying Object Attributes and Relations in Interactive Scene Generation
get_noise 2 other papers
1 dated earlier, 1 later
1803.10892 (2018-03)
Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks
2207.10398 (2022-07)
D2-TPred: Discontinuous Dependency for Trajectory Prediction under Traffic Lights
read_file 2 other papers
2 later
2302.08635 (2023-02)
Generative Causal Representation Learning for Out-of-Distribution Motion Forecasting
2403.18447 (2024-03)
Can Language Beat Numerical Regression? Language-Based Multimodal Trajectory Prediction
relative_to_abs 2 other papers
2 later
2207.10398 (2022-07)
D2-TPred: Discontinuous Dependency for Trajectory Prediction under Traffic Lights
2302.08635 (2023-02)
Generative Causal Representation Learning for Out-of-Distribution Motion Forecasting
cal_ade_fde 1 other paper
1 later
2302.08635 (2023-02)
Generative Causal Representation Learning for Out-of-Distribution Motion Forecasting
get_dset_path 1 other paper
1 later
2302.08635 (2023-02)
Generative Causal Representation Learning for Out-of-Distribution Motion Forecasting
seq_collate 1 other paper
1 later
2302.08635 (2023-02)
Generative Causal Representation Learning for Out-of-Distribution Motion Forecasting

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

Learning behavioral patterns from observational data has been a de-facto approach to motion forecasting. Yet, the current paradigm suffers from two shortcomings: brittle under distribution shifts and inefficient for knowledge transfer. In this work, we propose to address these challenges from a causal representation perspective. We first introduce a causal formalism of motion forecasting, which casts the problem as a dynamic process with three groups of latent variables, namely invariant variables, style confounders, and spurious features. We then introduce a learning framework that treats each group separately: (i) unlike the common practice mixing datasets collected from different locations, we exploit their subtle distinctions by means of an invariance loss encouraging the model to suppress spurious correlations; (ii) we devise a modular architecture that factorizes the representations of invariant mechanisms and style confounders to approximate a sparse causal graph; (iii) we introduce a style contrastive loss that not only enforces the structure of style representations but also serves as a self-supervisory signal for test-time refinement on the fly. Experiments on synthetic and real datasets show that our proposed method improves the robustness and reusability of learned motion representations, significantly outperforming prior state-of-the-art motion forecasting models for out-of-distribution generalization and low-shot transfer.

For agents

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

get_harvested_code_for_paper("2111.14820")
get_code_for_paper("2111.14820")
have("2111.14820")

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

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

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

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

Connect an agent — have() is free.