SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.15677 · NeurIPS · 2024

SMART: Scalable Multi-agent Real-time Simulation via Next-token Prediction

Wei Wu, Xiaoxin Feng, Ziyan Gao, Yuheng Kan

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 1 failure of our instrument; 1 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/2405.15677.json · badge: /api/ran/2405.15677.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
rainmaker22/SMART canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
rainmaker22/smart canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
cal_polygon_contour Ran
ran, honoured the contract we drafted
rainmaker22/smart/smart/model/smart.py
code served (permissive licence) · get_code("3b90047ce5cc5c36")
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 list, 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 math

# The function takes 5 scalar parameters: x, y, theta, width, length
# It performs geometric calculations to compute polygon corners

ARGS = {
    'x': 10.5,           # center x coordinate
    'y': 20.3,           # center y coordinate
    'theta': math.pi / 4,  # rotation angle in radians (45 degrees)
    'width': 2.0,        # width of the rectangle
    'length': 4.0        # length of the rectangle
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 list, ndim 2, dtype family float — a list 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
cal_polygon_contour Ran
ran, honoured the contract we drafted
rainmaker22/SMART/smart/datasets/preprocess.py
code served (permissive licence) · get_code("5414397467ff6d73")
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 ndarray, ndim 3, dtype family float, shape (2, 4, 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 numpy as np

# Analyze the function signature and usage
# Parameters: x, y, theta, width, length
# All appear to be used in arithmetic operations (cos, sin, multiplication)
# They should be numpy arrays or scalars

# Create small numpy arrays for batch processing
# Using batch size of 2 for tiny tensors
batch_size = 2

# x and y: coordinates, shape (2,)
x = np.array([0.0, 1.0])
y = np.array([0.0, 2.0])

# theta: angle in radians, shape (2,)
theta = np.array([0.0, np.pi/4])

# width and length: dimensions of rectangle, scalars
width = 1.5
length = 3.0

ARGS = {
    'x': x,
    'y': y,
    'theta': theta,
    'width': width,
    'length': length
}
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 ndarray, ndim 3, dtype family float, shape (2, 4, 2) — shape (2, 4, 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
distance Ran
ran, violated the contract we drafted
rainmaker22/SMART/smart/datasets/scalable_dataset.py
code served (permissive licence) · get_code("4377b106a2248a85")
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 float64, ndim 0, 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 numpy as np

# The function takes two points and calculates Euclidean distance
# Each point needs to be indexable with [0] and [1] to get x and y coordinates
# Simple tuples or lists work perfectly for this

point1 = (0.0, 0.0)
point2 = (3.0, 4.0)

ARGS = {
    "point1": point1,
    "point2": point2,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
interplating_polyline Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rainmaker22/SMART/smart/datasets/preprocess.py
code served (permissive licence) · get_code("d433048e51763ac8")
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 (2, 3, 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
import numpy as np
import math

torch.manual_seed(0)

# Create sample polylines: (num_points, 2) array with x, y coordinates
polylines = np.array([
    [0.0, 0.0],
    [1.0, 0.5],
    [2.0, 1.0],
    [3.0, 1.2],
    [4.0, 1.5],
    [5.0, 2.0],
    [6.0, 2.5],
    [7.0, 3.0]
], dtype=np.float32)

# Create heading angles (one per point): (num_points,) array
heading = np.array([
    0.0,
    0.1,
    0.2,
    0.15,
    0.25,
    0.3,
    0.35,
    0.4
], dtype=np.float32)

# Distance for interpolation
distance = 0.5

# Split distance for segmentation
split_distace = 5

ARGS = {
    "polylines": polylines,
    "heading": heading,
    "distance": distance,
    "split_distace": split_distace
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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 (2, 3, 3) — shape (2, 3, 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
average_distance_vectorized Not yet run
unverified (harvested, no recorded run)
rainmaker22/SMART/smart/datasets/preprocess.py
code served (permissive licence) · get_code("4e0351d0d5296838")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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
average_distance_vectorized 1 other paper
1 later
2506.17213 (2025-06)
Long-term Traffic Simulation with Interleaved Autoregressive Motion and Scenario Generation
interplating_polyline 1 other paper
1 later
2506.17213 (2025-06)
Long-term Traffic Simulation with Interleaved Autoregressive Motion and Scenario Generation

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

Data-driven autonomous driving motion generation tasks are frequently impacted by the limitations of dataset size and the domain gap between datasets, which precludes their extensive application in real-world scenarios. To address this issue, we introduce SMART, a novel autonomous driving motion generation paradigm that models vectorized map and agent trajectory data into discrete sequence tokens. These tokens are then processed through a decoder-only transformer architecture to train for the next token prediction task across spatial-temporal series. This GPT-style method allows the model to learn the motion distribution in real driving scenarios. SMART achieves state-of-the-art performance across most of the metrics on the generative Sim Agents challenge, ranking 1st on the leaderboards of Waymo Open Motion Dataset (WOMD), demonstrating remarkable inference speed. Moreover, SMART represents the generative model in the autonomous driving motion domain, exhibiting zero-shot generalization capabilities: Using only the NuPlan dataset for training and WOMD for validation, SMART achieved a competitive score of 0.72 on the Sim Agents challenge. Lastly, we have collected over 1 billion motion tokens from multiple datasets, validating the model's scalability. These results suggest that SMART has initially emulated two important properties: scalability and zero-shot generalization, and preliminarily meets the needs of large-scale real-time simulation applications. We have released all the code to promote the exploration of models for motion generation in the autonomous driving field. The source code is available at https://github.com/rainmaker22/SMART.

For agents

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

get_harvested_code_for_paper("2405.15677")
get_code_for_paper("2405.15677")
have("2405.15677")

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

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

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

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

Connect an agent — have() is free.