SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.01811 · 2023

Energy-based Potential Games for Joint Motion Forecasting and Control

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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 0 have no contract verdict; 7 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/2312.01811.json · badge: /api/ran/2312.01811.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
rst-tu-dortmund/diff_epo_planner canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
closest_pred_to_gt_batched Ran
ran; our contract draft was wrong, not the code
rst-tu-dortmund/diff_epo_planner/source_code/model/multimode_modules.py
code served (permissive licence) · get_code("518b6ba76d1f806d")
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 sample tensors matching the expected shapes
# predictions: shape=[nbr_modes, nbr_time_steps, nbr_batches, nbr_agents, 2]
nbr_modes = 3
nbr_time_steps = 4
nbr_batches = 2
nbr_agents = 5

predictions = torch.randn(nbr_modes, nbr_time_steps, nbr_batches, nbr_agents, 2)

# ground_truth: shape=[1, nbr_time_steps, nbr_batches, nbr_agents, 2]
ground_truth = torch.randn(1, nbr_time_steps, nbr_batches, nbr_agents, 2)

ARGS = {
    "predictions": predictions,
    "ground_truth": ground_truth,
}
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
create_optimizer Ran
ran; our contract draft was wrong, not the code
rst-tu-dortmund/diff_epo_planner/source_code/model/models.py
code served (permissive licence) · get_code("cd76c46197bf5a9b")
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 Adam. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.net = nn.Sequential(
            nn.Linear(4, 3),
            nn.ReLU(),
            nn.Linear(3, 2)
        )
    
    def forward(self, x):
        return self.net(x)

base_model_class = SimpleModel()

opts = {
    'general': {
        'optimizer': 1
    },
    'hyperparameters': {
        'learning_rate': 0.001,
        'weight_decay': 1e-5
    }
}

ARGS = {
    'base_model_class': base_model_class,
    'opts': opts
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
gaussian2d_likelihood Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rst-tu-dortmund/diff_epo_planner/source_code/model/losses.py
code served (permissive licence) · get_code("9a53ac59cd8d594d")
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 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 torch
import numpy as np

torch.manual_seed(0)

# Create small tensor arguments for gaussian2d_likelihood
# estimates: shape (batch_size, sequence_length, 5) - contains mux, muy, sx, sy, corr
# targets: shape (batch_size, sequence_length, 2) - contains x, y coordinates

batch_size = 2
sequence_length = 4

# Create estimates with 5 coefficients per position
estimates = torch.randn(batch_size, sequence_length, 5)

# Create targets with 2D coordinates
targets = torch.randn(batch_size, sequence_length, 2)

ARGS = {
    "estimates": estimates,
    "targets": targets
}
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 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
get_highest_probability_mode Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rst-tu-dortmund/diff_epo_planner/source_code/model/multimode_modules.py
code served (permissive licence) · get_code("8c2f008128afea64")
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 4, dtype family float, shape (1, 5, 3, 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

torch.manual_seed(0)

# Analyze the function to understand tensor shapes:
# - prob_distributions.shape[0] == multi_mode_predictions.shape[2] (num_agents)
# - prob_distributions.shape[1] (num_modes)
# - multi_mode_predictions has shape (num_modes, ?, num_agents, ?)
# - best_mode_pred has shape (1, multi_mode_predictions.shape[1], num_agents, multi_mode_predictions.shape[3])

num_agents = 3
num_modes = 4
seq_len = 5
feature_dim = 2

# multi_mode_predictions: (num_modes, seq_len, num_agents, feature_dim)
multi_mode_predictions = torch.randn(num_modes, seq_len, num_agents, feature_dim)

# prob_distributions: (num_agents, num_modes)
prob_distributions = torch.softmax(torch.randn(num_agents, num_modes), dim=1)

device = 'cpu'

ARGS = {
    'multi_mode_predictions': multi_mode_predictions,
    'prob_distributions': prob_distributions,
    'device': device
}
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 4, dtype family float, shape (1, 5, 3, 2) — shape (1, 5, 3, 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
l1_distance Ran
ran; our contract draft was wrong, not the code
rst-tu-dortmund/diff_epo_planner/source_code/model/losses.py
code served (permissive licence) · get_code("984f6501ea229809")
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 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 torch

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
sequence_length = 4
coordinate_dim = 2

# estimates: (batch size, sequence length, 2)
estimates = torch.randn(batch_size, sequence_length, coordinate_dim)

# ground_truth: (batch size, sequence length, 2)
ground_truth = torch.randn(batch_size, sequence_length, coordinate_dim)

# loss_masks: derived from weights of moving agents
# Based on the function body, it's used in multiplication after summing over dim=-1
# So it should have shape (batch_size, sequence_length, 1) to broadcast correctly
loss_masks = torch.rand(batch_size, sequence_length, 1)

ARGS = {
    "estimates": estimates,
    "ground_truth": ground_truth,
    "loss_masks": loss_masks,
}
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 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
mean_squared_error Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rst-tu-dortmund/diff_epo_planner/source_code/model/metrics.py
code served (permissive licence) · get_code("f9dc71f670ecc276")
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

torch.manual_seed(0)

# The function expects:
# - y_gt: tensor with shape (batch, sequence, 2) - ground truth coordinates
# - y_pred: tensor with shape (batch, sequence, 2) - predicted coordinates

batch_size = 2
sequence_length = 4

y_gt = torch.randn(batch_size, sequence_length, 2)
y_pred = torch.randn(batch_size, sequence_length, 2)

ARGS = {
    "y_gt": y_gt,
    "y_pred": y_pred,
}
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
merge_section Ran
ran; our contract draft was wrong, not the code
rst-tu-dortmund/diff_epo_planner/source_code/model/compatibility.py
code served (permissive licence) · get_code("14b5b6d7e504e783")
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 logging

# Setup logging to capture the info messages
logging.basicConfig(level=logging.INFO)

# Construct arguments for merge_section
section = {
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "optimizer": "adam"
}

restored_section = {
    "learning_rate": 0.001,  # Same as section
    "batch_size": 64,        # Different - will be overwritten
    "epochs": 10,            # Same as section
    "optimizer": "sgd"       # Different - will be overwritten
}

keys_to_overwrite = ["batch_size", "optimizer"]

ARGS = {
    "section": section,
    "restored_section": restored_section,
    "keys_to_overwrite": keys_to_overwrite
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 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
get_coefficients_gaussian2d_likelihood Not yet run
unverified (harvested, no recorded run)
rst-tu-dortmund/diff_epo_planner/source_code/model/losses.py
code served (permissive licence) · get_code("fa6354685b8a9177")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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

This work uses game theory as a mathematical framework to address interaction modeling in multi-agent motion forecasting and control. Despite its interpretability, applying game theory to real-world robotics, like automated driving, faces challenges such as unknown game parameters. To tackle these, we establish a connection between differential games, optimal control, and energy-based models, demonstrating how existing approaches can be unified under our proposed Energy-based Potential Game formulation. Building upon this, we introduce a new end-to-end learning application that combines neural networks for game-parameter inference with a differentiable game-theoretic optimization layer, acting as an inductive bias. The analysis provides empirical evidence that the game-theoretic layer adds interpretability and improves the predictive performance of various neural network backbones using two simulations and two real-world driving datasets.

For agents

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

get_harvested_code_for_paper("2312.01811")
get_code_for_paper("2312.01811")
have("2312.01811")

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

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

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

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

Connect an agent — have() is free.