SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.07612 · 2018

Generating Multi-Agent Trajectories using Programmatic Weak Supervision

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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 5 have no contract verdict; 0 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/1803.07612.json · badge: /api/ran/1803.07612.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
ezhan94/gen-MA-BC canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
fetch Ran
ran on a synthesized input
ezhan94/gen-MA-BC/datasets/boids/core.py
code served (permissive licence) · get_code("18bdadd5a50960c1")
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 numpy as np
import os
import tempfile
import shutil

# Create a temporary directory for test data
test_dir = tempfile.mkdtemp()
data_dir = os.path.join(test_dir, 'data')
macro_dir = os.path.join(data_dir, 'macro_intents')
os.makedirs(macro_dir, exist_ok=True)

# Create dummy .npz files for training data
train_data = np.random.randn(10, 5).astype(np.float32)
train_labels = np.random.randint(0, 3, size=(10,)).astype(np.int32)
np.savez(os.path.join(data_dir, 'train.npz'), data=train_data)
np.savez(os.path.join(macro_dir, 'train_friendly.npz'), data=train_labels)

# Create dummy .npz files for test data
test_data = np.random.randn(8, 5).astype(np.float32)
test_labels = np.random.randint(0, 3, size=(8,)).astype(np.int32)
np.savez(os.path.join(data_dir, 'test.npz'), data=test_data)
np.savez(os.path.join(macro_dir, 'test_friendly.npz'), data=test_labels)

# Create a config class
class Config:
    FILENAME_TRAIN = 'train'
    FILENAME_TEST = 'test'
    DATAPATH = data_dir

cfg = Config()

# Make cfg available globally for the fetch function
import sys
current_module = sys.modules[__name__]
current_module.cfg = cfg

ARGS = {
    'train': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
get_params_str Ran
ran on a synthesized input
ezhan94/gen-MA-BC/models/utils.py
code served (permissive licence) · get_code("a2044933b17736c4")
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

torch.manual_seed(0)

def get_params_str(model_args, params):
    ret = ''
    for arg in model_args:
        ret += ' {} {} |'.format(arg, params[arg])
    return ret[1:-2]

model_args = ['learning_rate', 'batch_size', 'hidden_dim']
params = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'hidden_dim': 64
}

ARGS = {
    'model_args': model_args,
    'params': params
}
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 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
normalize Ran
ran on a synthesized input
ezhan94/gen-MA-BC/datasets/boids/core.py
code served (permissive licence) · get_code("5ca9856547c7ecba")
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 numpy as np

torch.manual_seed(0)

# The normalize function takes 'data' and returns it unchanged
# We'll provide a simple tensor as the data parameter
data = torch.randn(2, 4)

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 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
num_trainable_params Ran
ran, honoured the contract we drafted
ezhan94/gen-MA-BC/models/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from felixykliu/NAOMI, is pointer only (licence: NONE) · get_code("dcc2aedb4ca9a4e8")
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 felixykliu/NAOMI, 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.

parse_model_params Ran
ran on a synthesized input
ezhan94/gen-MA-BC/models/utils.py
code served (permissive licence) · get_code("1b07b23dc05534d2")
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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal argument parser
parser = argparse.ArgumentParser()

# Define model arguments - these will be added as command-line arguments
model_args = ['hidden_size', 'num_layers', 'dropout']

# Create a params dict to be updated
params = {
    'learning_rate': 0.001,
    'batch_size': 32
}

# Simulate command-line arguments by setting sys.argv
import sys
sys.argv = ['script.py', '--hidden_size', '128', '--num_layers', '3', '--dropout', '1']

ARGS = {
    'model_args': model_args,
    'params': params,
    'parser': parser
}
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
preprocess Ran
ran on a synthesized input
ezhan94/gen-MA-BC/datasets/boids/core.py
code served (permissive licence) · get_code("967399ab748e886f")
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)

# The function preprocess takes data and labels and returns them as a tuple
# Since the function body just returns the inputs unchanged, we need to provide
# valid data and labels arguments

# Create small tensors for data and labels
data = torch.randn(2, 4)  # batch size 2, 4 features
labels = torch.randint(0, 2, (2,))  # batch size 2, binary labels

ARGS = {
    "data": data,
    "labels": labels,
}
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
fetch Not yet run
unverified (harvested, no recorded run)
ezhan94/gen-MA-BC/datasets/bball/core.py
code served (permissive licence) · get_code("7c3eb3c1c81a189b")
How it ran

no invocation recorded.

normalize Not yet run
unverified (harvested, no recorded run)
ezhan94/gen-MA-BC/datasets/bball/core.py
code served (permissive licence) · get_code("41e409593df1b16d")
How it ran

no invocation recorded.

preprocess Not yet run
unverified (harvested, no recorded run)
ezhan94/gen-MA-BC/datasets/bball/core.py
code served (permissive licence) · get_code("f4fddfcd9199f13d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 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
num_trainable_params 2 other papers
2 later
1901.10946 (2019-01)
NAOMI: Non-Autoregressive Multiresolution Sequence Imputation
2007.03155 (2020-07)
Decentralized policy learning with partial observation and mechanical constraints for multiperson modeling
get_params_str 1 other paper
1 later
2007.03155 (2020-07)
Decentralized policy learning with partial observation and mechanical constraints for multiperson modeling
parse_model_params 1 other paper
1 later
2007.03155 (2020-07)
Decentralized policy learning with partial observation and mechanical constraints for multiperson modeling

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

We study the problem of training sequential generative models for capturing coordinated multi-agent trajectory behavior, such as offensive basketball gameplay. When modeling such settings, it is often beneficial to design hierarchical models that can capture long-term coordination using intermediate variables. Furthermore, these intermediate variables should capture interesting high-level behavioral semantics in an interpretable and manipulatable way. We present a hierarchical framework that can effectively learn such sequential generative models. Our approach is inspired by recent work on leveraging programmatically produced weak labels, which we extend to the spatiotemporal regime. In addition to synthetic settings, we show how to instantiate our framework to effectively model complex interactions between basketball players and generate realistic multi-agent trajectories of basketball gameplay over long time periods. We validate our approach using both quantitative and qualitative evaluations, including a user study comparison conducted with professional sports analysts.

For agents

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

get_harvested_code_for_paper("1803.07612")
get_code_for_paper("1803.07612")
have("1803.07612")

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

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

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

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

Connect an agent — have() is free.