SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.06242 · CVPR · 2023

Think Twice before Driving: Towards Scalable Decoders for End-to-End Autonomous Driving

Junchi Yan, Hongyang Li, Li Chen, Penghao Wu, Xiaosong Jia, Conghui He, Jiangwei Xie, Throttle++ Steer++

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; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 2 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/2305.06242.json · badge: /api/ran/2305.06242.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
opendrivelab/thinktwice canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
InverseRotateVector Ran
ran, honoured the contract we drafted
opendrivelab/thinktwice/leaderboard/team_code/thinktwice_agent.py
code served (permissive licence) · get_code("f06e72ee5a93f563")
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 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
import torch

torch.manual_seed(0)

ARGS = {
    "x": 1.5,
    "y": 2.3,
    "yaw": 0.785
}
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, ndim 1, 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
inv_softplus Ran
ran on a synthesized input
opendrivelab/thinktwice/open_loop_training/code/model_code/dense_heads/thinktwice_decoder.py
code served (permissive licence) · get_code("2053c1099485dbd8")
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

torch.manual_seed(0)

# inv_softplus takes a single tensor argument x
# The function computes: x + torch.log(-torch.expm1(-x))
# This is the inverse of softplus function
# For numerical stability, x should be positive values
# (softplus output is always positive, so inverse domain is (0, inf))

# Create a small tensor with positive values suitable for inv_softplus
x = torch.tensor([[0.5, 1.0, 1.5, 2.0],
                   [0.3, 0.8, 1.2, 2.5]], dtype=torch.float32)

ARGS = {
    "x": x
}
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 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
obtain_inv_transform_matrix Ran
ran on a synthesized input
opendrivelab/thinktwice/leaderboard/team_code/thinktwice_agent.py
code served (permissive licence) · get_code("c20b8ccb5eb5395c")
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 (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 math
import numpy as np

# The function obtain_inv_transform_matrix takes three parameters:
# x: a numeric value (float or int)
# y: a numeric value (float or int)
# yaw: a numeric value representing angle in radians (float or int)

# Based on the function body, these are all used in math.cos/sin operations
# and arithmetic, so they just need to be numeric scalars.

ARGS = {
    "x": 1.5,
    "y": 2.0,
    "yaw": 0.785  # approximately pi/4 radians
}
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 (4, 4) — shape (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
obtain_transform_matrix Ran
ran, honoured the contract we drafted
opendrivelab/thinktwice/leaderboard/team_code/thinktwice_agent.py
code served (permissive licence) · get_code("6b16e5ecc54f4f54")
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 (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 math
import numpy as np

# The function obtain_transform_matrix takes three parameters: x, y, and yaw
# x and y appear to be scalar coordinates (used in the matrix construction)
# yaw appears to be a scalar angle in radians (used with cos and sin)

x = 1.5
y = 2.5
yaw = 0.785  # approximately 45 degrees in radians

ARGS = {
    "x": x,
    "y": y,
    "yaw": yaw
}
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 (4, 4) — shape (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
resize_img Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
opendrivelab/thinktwice/camera_calibration/collect_data_for_calibration.py
code served (permissive licence) · get_code("8e0a56f50dc05e31")
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 int, shape (50, 100, 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 cv2
import numpy as np

# Create a sample image as a numpy array (H x W x C format)
# Using distinct dimensions: 100 height, 200 width, 3 channels (RGB)
img = np.random.randint(0, 256, size=(100, 200, 3), dtype=np.uint8)

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 int, shape (50, 100, 3) — shape (50, 100, 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
sum_independent_dims Ran
ran; our contract draft was wrong, not the code
opendrivelab/thinktwice/roach/models/distributions.py
code served (permissive licence) · get_code("39695b28720f3e53")
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 1, dtype family float, shape (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 as th

th.manual_seed(0)

# Test case 1: 2D tensor (will sum along dim=1)
tensor_2d = th.randn(2, 4)

# Test case 2: 1D tensor (will sum all elements)
tensor_1d = th.randn(3)

# We'll use the 2D tensor as the primary test case
ARGS = {
    "tensor": tensor_2d
}
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 1, dtype family float, shape (2,) — shape (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
euler_to_quaternion Not yet run
unverified (harvested, no recorded run)
opendrivelab/thinktwice/camera_calibration/collect_data_for_calibration.py
code served (permissive licence) · get_code("45e16d1df042505a")
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, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 2 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
sum_independent_dims 4 other papers
1 dated earlier, 3 later
2010.14484 (2020-10)
One Solution is Not All You Need: Few-Shot Extrapolation via Structured MaxEnt RL
2308.00398 (2023-08)
DriveAdapter: Breaking the Coupling Barrier of Perception and Planning in End-to-End Autonomous Driving
2406.07826 (2024-06)
The Max-Min Formulation of Multi-Objective Reinforcement Learning: From Theory to a Model-Free Algorithm
and 1 more not named here
InverseRotateVector 1 other paper
1 later
2308.00398 (2023-08)
DriveAdapter: Breaking the Coupling Barrier of Perception and Planning in End-to-End Autonomous Driving
euler_to_quaternion 1 other paper
1 later
2308.00398 (2023-08)
DriveAdapter: Breaking the Coupling Barrier of Perception and Planning in End-to-End Autonomous Driving
obtain_transform_matrix 1 other paper
1 later
2308.00398 (2023-08)
DriveAdapter: Breaking the Coupling Barrier of Perception and Planning in End-to-End Autonomous Driving
resize_img 1 other paper
1 later
2308.00398 (2023-08)
DriveAdapter: Breaking the Coupling Barrier of Perception and Planning in End-to-End Autonomous Driving

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

Throttle 0.05 Steer 0.05 × 𝑵𝑵 Adjust Driving Plan Figure 1. We propose ThinkTwice, a scalable decoder paradigm that generates the future trajectory and action of the ego vehicle sfor end-to-end autonomous driving. Conditioned on the coarse action/trajectory, we propose the Look Module to retrieve information from critical regions and the Prediction Module to anticipate the outcome of the ego behavior. Taking features from the two modules as input, the coarse prediction is refined by predicting its offset from ground-truth. We could stack multiple such layers and scale up the capacity of the decoder with dense supervision and spatial-temporal prior.

For agents

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

get_harvested_code_for_paper("2305.06242")
get_code_for_paper("2305.06242")
have("2305.06242")

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

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

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

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

Connect an agent — have() is free.