SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.12294 · 2019

Learning by Cheating

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 1 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/1912.12294.json · badge: /api/ran/1912.12294.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
dotchen/LearningByCheating canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
deepsense-ai/carla-birdeye-view community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
BaselineBranch Ran
ran on a synthesized input
dotchen/LearningByCheating/bird_view/models/baseline.py
code served (permissive licence) · get_code("3ad45fbbefbcc580")
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 Sequential. 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)

# The function takes a single parameter 'p' which is the dropout probability
# Looking at the function body, it constructs a Sequential model with Linear layers,
# ReLU activations, and Dropout layers using parameter 'p'
# 'p' should be a float representing the dropout probability (typically 0.0 to 1.0)

ARGS = {
    'p': 0.5
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
crop_birdview Ran
ran on a synthesized input
dotchen/LearningByCheating/bird_view/models/common.py
code served (permissive licence) · get_code("1eac6683c6404df6")
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 (192, 192) 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 function crops a birdview (2D array/tensor) at a specific location
# It uses array indexing: birdview[x_start:x_end, y_start:y_end]
# So birdview needs to be a 2D array-like object (numpy array or torch tensor)

# Create a small birdview - needs to be at least large enough to accommodate
# the cropping operation. The function accesses indices around x=260, y=160
# so we need a sufficiently large 2D array
CROP_SIZE = 192
MAP_SIZE = 320

# Create a birdview that's large enough for the cropping operation
# The crop will happen at approximately x: [64:256], y: [64:256]
# So let's make it 512x512 to be safe
birdview = np.random.rand(512, 512).astype(np.float32)

ARGS = {
    "birdview": birdview,
    "dx": 0,
    "dy": 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 ndarray, ndim 2, dtype family float, shape (192, 192) — shape (192, 192) 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
lateral_shift Ran
ran on a synthesized input
deepsense-ai/carla-birdeye-view/carla_birdeye_view/lanes.py
code served (permissive licence) · get_code("edff33b2be73c06a")
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 1, dtype family float, shape (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

class Rotation:
    def __init__(self):
        self.yaw = 0.0

class Transform:
    def __init__(self):
        self.rotation = Rotation()
        self.location = np.array([1.0, 2.0, 3.0])
    
    def get_forward_vector(self):
        # Return a forward vector based on yaw rotation
        yaw_rad = np.radians(self.rotation.yaw)
        return np.array([np.cos(yaw_rad), np.sin(yaw_rad), 0.0])

transform = Transform()
shift = 5.0

ARGS = {
    "transform": transform,
    "shift": shift
}
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 ndarray, ndim 1, dtype family float, shape (3,) — shape (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
ls_circle Ran
ran on a synthesized input
dotchen/LearningByCheating/bird_view/models/controller.py
code served (permissive licence) · get_code("5da19e3e051b29fd")
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

# Create a small set of points that approximately lie on a circle
# We'll create 5 points roughly on a circle centered around (3, 4) with radius ~2
np.random.seed(42)
angles = np.linspace(0, 2 * np.pi, 5, endpoint=False)
radius = 2.0
center_x, center_y = 3.0, 4.0
points = np.column_stack([
    center_x + radius * np.cos(angles),
    center_y + radius * np.sin(angles)
])

ARGS = {
    "points": points
}
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
select_branch Ran
ran on a synthesized input
dotchen/LearningByCheating/bird_view/models/common.py
code served (permissive licence) · get_code("3bbc730e19952eb1")
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, 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)

# The function takes:
# - branches: a tensor that has .size() method and supports indexing/multiplication
# - one_hot: a tensor that gets stacked and multiplied with branches

# Looking at the function logic:
# - branches.size() is called, suggesting it's a tensor
# - The function iterates over shape[2:], so branches needs at least 2 dimensions
# - one_hot is stacked along dimensions i+2, so it needs to be broadcastable
# - one_hot * branches is computed and summed along dim=1

# Let's construct:
# branches: shape (batch=2, num_branches=3, branch_dim1=4, branch_dim2=5)
# one_hot: shape (batch=2, num_branches=3) - one-hot encoding over branches

batch_size = 2
num_branches = 3
branch_dim1 = 4
branch_dim2 = 5

# branches should have shape (batch, num_branches, ...)
branches = torch.randn(batch_size, num_branches, branch_dim1, branch_dim2)

# one_hot should have shape (batch, num_branches) for the selection
# Create a proper one-hot encoding: one 1 per batch, rest 0s
one_hot = torch.zeros(batch_size, num_branches)
for i in range(batch_size):
    one_hot[i, i % num_branches] = 1.0

ARGS = {
    "branches": branches,
    "one_hot": one_hot,
}
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, 5) — shape (2, 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
signed_angle Ran
ran on a synthesized input
dotchen/LearningByCheating/bird_view/models/common.py
code served (permissive licence) · get_code("680bf10038ec8494")
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 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 math
import numpy as np

# The function takes two arguments: u and v
# Both are used in np.dot, np.linalg.norm, and np.cross operations
# They should be 1D arrays (vectors in 2D or 3D space)
# The function accesses [2] index on the cross product result, so we need at least 3D vectors

u = np.array([1.0, 0.0, 0.0])
v = np.array([0.0, 1.0, 0.0])

ARGS = {
    "u": u,
    "v": v
}
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 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
from_file Not yet run
unverified (harvested, no recorded run)
dotchen/LearningByCheating/benchmark/goal_suite.py
code served (permissive licence) · get_code("663c3ff922453f02")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 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
from_file 1 other paper
1 dated earlier
1911.10868 (2019-11)
End-to-End Model-Free Reinforcement Learning for Urban Driving using Implicit Affordances

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

Vision-based urban driving is hard. The autonomous system needs to learn to perceive the world and act in it. We show that this challenging learning problem can be simplified by decomposing it into two stages. We first train an agent that has access to privileged information. This privileged agent cheats by observing the ground-truth layout of the environment and the positions of all traffic participants. In the second stage, the privileged agent acts as a teacher that trains a purely vision-based sensorimotor agent. The resulting sensorimotor agent does not have access to any privileged information and does not cheat. This two-stage training procedure is counter-intuitive at first, but has a number of important advantages that we analyze and empirically demonstrate. We use the presented approach to train a vision-based autonomous driving system that substantially outperforms the state of the art on the CARLA benchmark and the recent NoCrash benchmark. Our approach achieves, for the first time, 100% success rate on all tasks in the original CARLA benchmark, sets a new record on the NoCrash benchmark, and reduces the frequency of infractions by an order of magnitude compared to the prior state of the art. For the video that summarizes this work, see https://youtu.be/u9ZCxxD-UUw

For agents

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

get_harvested_code_for_paper("1912.12294")
get_code_for_paper("1912.12294")
have("1912.12294")

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

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

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

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

Connect an agent — have() is free.