SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.07729 · NeurIPS · 2022

Model-Based Imitation Learning for Urban Driving

Anthony Hu, Gianluca Corrado, Nicolas Griffiths, Zak Murez, Corina Gurau, Hudson Yeo, Alex Kendall, Roberto Cipolla, Jamie Shotton

arXiv · PDF · Open in the Atlas

Code that ran

21 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (13 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 8 failures of our instrument; 2 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/2210.07729.json · badge: /api/ran/2210.07729.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
wayveai/mile canonical (classifier label)
classifier basis: classifier_2025
21 ran · 2 no recorded run
FunctionStatusWhere it lives
AdaptiveInstanceNorm Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("a893dd3fd3ec216a")
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 an instance of its own class, AdaptiveInstanceNorm: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

class AdaptiveInstanceNorm(nn.Module):

    def __init__(self, latent_n_channels, out_channels, epsilon=1e-08):
        super().__init__()
        self.out_channels = out_channels
        self.epsilon = epsilon
        self.latent_affine = nn.Linear(latent_n_channels, 2 * out_channels)

    def forward(self, x, style):
        mean = x.mean(dim=(-1, -2), keepdim=True)
        x = x - mean
        std = torch.sqrt(torch.mean(x ** 2, dim=(-1, -2), keepdim=True) + self.epsilon)
        x = x / std
        style = self.latent_affine(style).unsqueeze(-1).unsqueeze(-1)
        scale, bias = torch.split(style, split_size_or_sections=self.out_channels, dim=1)
        out = scale * x + bias
        return out

ARGS = {
    "latent_n_channels": 8,
    "out_channels": 4,
    "epsilon": 1e-08
}
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 AdaptiveInstanceNorm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AdaptiveInstanceNorm 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("7061c3cf6f06f937")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    "inplanes": 3,
    "planes": 4,
    "stride": 1,
    "downsample": None,
    "cardinality": 1,
    "base_width": 64,
    "reduce_first": 1,
    "dilation": 1,
    "first_dilation": None,
    "act_layer": nn.ReLU,
    "norm_layer": nn.BatchNorm2d,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BevDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("fe125840f777d8e7")
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 an instance of its own class, BevDecoder: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    "latent_n_channels": 4,
    "semantic_n_channels": 5,
    "constant_size": (3, 3),
    "is_segmentation": True,
}
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 BevDecoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BevDecoder 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
ConvInstanceNorm Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("e206001c2aba6927")
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 an instance of its own class, ConvInstanceNorm: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'latent_n_channels': 8,
}
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 ConvInstanceNorm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ConvInstanceNorm 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
Decoder Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("fe194f1ade3cf3cd")
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 an instance of its own class, Decoder: the run constructed the object and did not call it, so no result was computed. 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 typing import List

torch.manual_seed(0)

# Define feature_info as a list of dicts with 'num_chs' keys
# The decoder expects features at different scales
# feature_info[-1] is the deepest/smallest feature
# feature_info[0] is the shallowest/largest feature
feature_info = [
    {'num_chs': 16},  # index 0, shallowest
    {'num_chs': 32},  # index 1
    {'num_chs': 64},  # index 2, deepest (used first in forward)
]

out_channels = 8

# Create sample input tensors for each feature level
# Decoder.forward expects xs: List[Tensor]
# The forward method accesses xs[-1], xs[-(i+2)], etc.
# For 3 features, it will access xs[-1], xs[-2], xs[-3]
# Spatial dimensions should differ to show upsampling
xs = [
    torch.randn(2, 16, 32, 32),  # xs[0], shallowest, largest spatial
    torch.randn(2, 32, 16, 16),  # xs[1], medium
    torch.randn(2, 64, 8, 8),    # xs[2], deepest, smallest spatial
]

ARGS = {
    'feature_info': feature_info,
    'out_channels': out_channels,
}
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 Decoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Decoder 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
DecoderBlock Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("1dff612c72436cae")
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 an instance of its own class, DecoderBlock: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    "in_channels": 16,
    "out_channels": 32,
    "latent_n_channels": 8,
    "upsample": True,
}
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 DecoderBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DecoderBlock 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
FrustumPooling Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("4ce04e5434fb8ac1")
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 an instance of its own class, FrustumPooling: the run constructed the object and did not call it, so no result was computed. 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    'size': (32, 24),
    'scale': 0.5,
    'offsetx': 2.0,
    'dbound': (4.0, 45.0, 1.0),
    'downsample': 16,
    'use_quickcumsum': True,
}
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 FrustumPooling — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FrustumPooling 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
Policy Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("74e17dd6e4bbca2a")
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 an instance of its own class, Policy: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    "in_channels": 8
}
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 Policy — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Policy 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
QuickCumsum Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("d09015c24a7e935f")
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 an instance of its own class, QuickCumsum: the run constructed the object and did not call it, so no result was computed. 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 tiny tensors for the function
# x: input tensor that will be cumsum'd, shape (batch_size, features)
x = torch.randn(2, 4, dtype=torch.float32)

# geom_feats: geometric features tensor, same first dimension as x
geom_feats = torch.randn(2, 3, dtype=torch.float32)

# ranks: tensor indicating group membership, same length as x
# Used to determine which elements to keep (where ranks changes)
ranks = torch.tensor([0, 0, 1, 1], dtype=torch.long)

ARGS = {
    'x': x,
    'geom_feats': geom_feats,
    'ranks': ranks,
}
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 QuickCumsum — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a QuickCumsum 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
RGBHead Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("106d5cb27cd2ed94")
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 an instance of its own class, RGBHead: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    'in_channels': 64,
    'n_classes': 10,
    'downsample_factor': 4,
}
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 RGBHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RGBHead 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
RSSM Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("86c73d56030a9b3b")
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 an instance of its own class, RSSM: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

class DummyPolicy(nn.Module):
    def __init__(self, input_dim, action_dim):
        super().__init__()
        self.net = nn.Linear(input_dim, action_dim)
    
    def forward(self, x):
        return self.net(x)

ARGS = {
    'embedding_dim': 5,
    'action_dim': 2,
    'hidden_state_dim': 6,
    'state_dim': 3,
    'action_latent_dim': 4,
    'receptive_field': 1,
    'use_dropout': False,
    'dropout_probability': 0.0,
}
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 RSSM — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RSSM 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
RepresentationModel Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("fc78f3ee3b877aee")
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 an instance of its own class, RepresentationModel: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    "in_channels": 8,
    "latent_dim": 4,
}
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 RepresentationModel — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RepresentationModel 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
SegmentationHead Ran
ran on a synthesized input · constructed an object; no result was computed
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("e4ecc781a18f60dc")
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 an instance of its own class, SegmentationHead: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    'in_channels': 64,
    'n_classes': 10,
    'downsample_factor': 4
}
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 SegmentationHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SegmentationHead 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
bev_params_to_intrinsics Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("2a3870f4e58e8a55")
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 2, dtype family float, shape (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 numpy as np

ARGS = {
    'size': (640, 480),
    'scale': 0.1,
    'offsetx': 5.0
}
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 2, dtype family float, shape (3, 3) — shape (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
cumsum_trick Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("8945de8524a23486")
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)

# Create small tensors with distinct dimensions
# x: cumsum operates on dimension 0, so shape (batch, features)
x = torch.randn(2, 4, dtype=torch.float32)

# geom_feats: needs to be indexable with kept boolean tensor, same batch size as x
geom_feats = torch.randn(2, 3, dtype=torch.float32)

# ranks: used for comparison ranks[1:] != ranks[:-1], needs length matching x.shape[0]
ranks = torch.tensor([0, 1], dtype=torch.int64)

ARGS = {
    "x": x,
    "geom_feats": geom_feats,
    "ranks": ranks
}
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
gen_dx_bx Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("cab6ef6047b66f57")
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 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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "size": [10, 20],
    "scale": 0.5,
    "offsetx": 1.0
}
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 float — 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
intrinsics_inverse Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("bfe6486a6690cc28")
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

torch.manual_seed(0)

# intrinsics_inverse expects a tensor with shape (..., 3, 3)
# representing camera intrinsic matrices
# The function accesses elements at [..., 0, 0], [..., 1, 1], [..., 0, 2], [..., 1, 2]
# Let's create a batch of 2 intrinsic matrices with shape (2, 3, 3)

intrinsics = torch.tensor([
    [[500.0, 0.0, 320.0],
     [0.0, 500.0, 240.0],
     [0.0, 0.0, 1.0]],
    [[600.0, 0.0, 400.0],
     [0.0, 600.0, 300.0],
     [0.0, 0.0, 1.0]]
])

ARGS = {
    "intrinsics": intrinsics
}
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 (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
pack_sequence_dim Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("45e55a1e5f285f6f")
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 (6, 4, 5) 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)

# Test case 1: torch.Tensor input
tensor_input = torch.randn(2, 3, 4, 5)

# Test case 2: list input
list_input = [torch.randn(2, 3, 4), torch.randn(2, 3, 6)]

# Test case 3: dict input
dict_input = {
    "tensor_field": torch.randn(2, 3, 4, 5),
    "nested_list": [torch.randn(2, 3, 7), torch.randn(2, 3, 8)],
    "nested_dict": {
        "inner_tensor": torch.randn(2, 3, 9)
    }
}

# Use tensor_input as the primary test case
ARGS = {
    "x": tensor_input
}
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 (6, 4, 5) — shape (6, 4, 5) 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
quick_cumsum Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("fbe923f7c196da7e")
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)

# Create small tensors for testing
# x: input tensor that will be cumsum'd, shape (batch_size, features)
x = torch.randn(4, 3, dtype=torch.float32)

# geom_feats: geometric features tensor, same first dimension as x
geom_feats = torch.randn(4, 2, dtype=torch.float32)

# ranks: tensor indicating group membership, used to determine boundaries
# Should have same length as x to compare consecutive elements
ranks = torch.tensor([0, 0, 1, 1], dtype=torch.long)

ARGS = {
    'x': x,
    'geom_feats': geom_feats,
    'ranks': ranks,
}
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
remove_past Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("c6d11c36bcc8cd1c")
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 torch

torch.manual_seed(0)

# Test case 1: x is a torch.Tensor
x_tensor = torch.randn(2, 10, 4)  # batch=2, seq_len=10, dim=4

# Test case 2: x is a dict with nested tensors and dicts
x_dict = {
    "tensor_key": torch.randn(2, 8, 4),
    "nested": {
        "inner_tensor": torch.randn(2, 6, 3),
        "deep_nested": {
            "deep_tensor": torch.randn(2, 5, 2)
        }
    }
}

receptive_field_val = 3

ARGS = {
    "x": x_dict,
    "receptive_field": receptive_field_val
}
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
unpack_sequence_dim Ran
ran; our contract draft was wrong, not the code
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("011ae0c11407c0e4")
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, 4, 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)

# Test case 1: Tensor input
x_tensor = torch.randn(8, 4)  # (b*s, feature_dim) where b=2, s=4
b = 2
s = 4

ARGS = {
    "x": x_tensor,
    "b": b,
    "s": s,
}
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 (2, 4, 4) — shape (2, 4, 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
Mile Not yet run
unverified (harvested, no recorded run)
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("5c64ccddda30004c")
How it ran

no invocation recorded.

RouteEncode Not yet run
unverified (harvested, no recorded run)
wayveai/mile/mile/models/mile.py
code served (permissive licence) · get_code("00a0de2481daada9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 18 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
cumsum_trick
brick of this paper's assembly: helper
4 other papers
4 later
2304.11379 (2023-04)
LiDAR2Map: In Defense of LiDAR-Based Semantic Map Construction Using Online Camera Distillation
2311.11762 (2023-11)
MUVO: A Multimodal Generative World Model for Autonomous Driving with Geometric Representations
2401.17609 (2024-01)
LaneGraph2Seq: Lane Topology Extraction with Language Model via Vertex-Edge Encoding and Connectivity Enhancement
and 1 more not named here
gen_dx_bx
brick of this paper's assembly: helper
1 other paper
1 later
2311.11762 (2023-11)
MUVO: A Multimodal Generative World Model for Autonomous Driving with Geometric Representations
pack_sequence_dim
brick of this paper's assembly: helper
1 other paper
1 later
2311.11762 (2023-11)
MUVO: A Multimodal Generative World Model for Autonomous Driving with Geometric Representations
quick_cumsum
brick of this paper's assembly: helper
1 other paper
1 later
2311.11762 (2023-11)
MUVO: A Multimodal Generative World Model for Autonomous Driving with Geometric Representations
remove_past
brick of this paper's assembly: helper
1 other paper
1 later
2311.11762 (2023-11)
MUVO: A Multimodal Generative World Model for Autonomous Driving with Geometric Representations

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

An accurate model of the environment and the dynamic agents acting in it offers great potential for improving motion planning. We present MILE: a Model-based Imitation LEarning approach to jointly learn a model of the world and a policy for autonomous driving. Our method leverages 3D geometry as an inductive bias and learns a highly compact latent space directly from high-resolution videos of expert demonstrations. Our model is trained on an offline corpus of urban driving data, without any online interaction with the environment. MILE improves upon prior state-of-the-art by 31% in driving score on the CARLA simulator when deployed in a completely new town and new weather conditions. Our model can predict diverse and plausible states and actions, that can be interpretably decoded to bird's-eye view semantic segmentation. Further, we demonstrate that it can execute complex driving manoeuvres from plans entirely predicted in imagination. Our approach is the first camera-only method that models static scene, dynamic scene, and ego-behaviour in an urban driving environment. The code and model weights are available at https://github.com/wayveai/mile.

For agents

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

get_harvested_code_for_paper("2210.07729")
get_code_for_paper("2210.07729")
have("2210.07729")

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

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

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

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

Connect an agent — have() is free.