SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.17631 · 2026

Benchmarking Reinforcement Learning via Stochastic Converse Optimality: Generating Systems with Known Optimal Policies

Stefan Streif, Hadi Salloum, Sinan Ibrahim, Grégoire Ouerdane, Henni Ouerdane, Pavel Osinenko

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 3 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/2603.17631.json · badge: /api/ran/2603.17631.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
converseoptimality/RL-Benchmarking canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
FunctionStatusWhere it lives
make_run_name Ran
ran; our contract draft was wrong, not the code
converseoptimality/RL-Benchmarking/Code/train_baselines_arm_gpu.py
code served (permissive licence) · get_code("eecec19d833be921")
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 str. 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 argparse
import torch

# Analyze what make_run_name actually uses from args:
# - args.fixed_init (boolean)
# - args.algo (string)
# - args.n_links (numeric)
# - args.p (numeric)
# - args.tau (numeric)
# - args.r_u (numeric)
# - args.sigma_omega (numeric)
# - args.seed (numeric)

class Args:
    def __init__(self):
        self.algo = "PPO"
        self.n_links = 3
        self.p = 0.5
        self.tau = 0.01
        self.r_u = 1.5
        self.sigma_omega = 0.2
        self.seed = 42
        self.fixed_init = True

ARGS = {
    "args": Args()
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
spd_invsqrt Ran
ran, honoured the contract we drafted
converseoptimality/RL-Benchmarking/Code/family.py
code served (permissive licence) · get_code("0ff4d0e7cb281e3a")
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 numpy as np
import torch

torch.manual_seed(0)

# The function spd_invsqrt takes a matrix A and an optional eps parameter
# A should be a square numpy array (symmetric positive definite)
# The function computes the inverse square root of A

# Create a small symmetric positive definite matrix
# Start with a random matrix and make it SPD by A = M @ M.T
M = np.random.randn(4, 4)
A = M @ M.T + np.eye(4) * 0.1  # Add small diagonal to ensure positive definiteness

ARGS = {
    "A": A,
    "eps": 1e-12
}
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 (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
spd_solve Ran
ran, honoured the contract we drafted
converseoptimality/RL-Benchmarking/Code/family.py
code served (permissive licence) · get_code("193fc33406470a80")
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, 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

# Create a small symmetric positive definite (SPD) matrix
# The function calls _sym(SPD) which symmetrizes it, then solves SPD @ X = B
# We need SPD to be square, and B to be compatible for solving

SPD = np.array([
    [4.0, 1.0, 0.5, 0.2],
    [1.0, 3.0, 0.3, 0.1],
    [0.5, 0.3, 2.0, 0.4],
    [0.2, 0.1, 0.4, 1.5]
], dtype=np.float64)

# Ensure it's symmetric positive definite by making it symmetric
SPD = 0.5 * (SPD + SPD.T)
# Add to diagonal to ensure positive definiteness
SPD = SPD + np.eye(4) * 5.0

# Create B matrix with compatible shape (4, 3)
# This will be solved as: _sym(SPD) @ X = B
B = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=np.float64)

ARGS = {
    "SPD": SPD,
    "B": B
}
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, 3) — shape (4, 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
spd_sqrt Ran
ran, honoured the contract we drafted
converseoptimality/RL-Benchmarking/Code/family.py
code served (permissive licence) · get_code("5ffefa29100c6eaf")
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 numpy as np

def _sym(A):
    return 0.5 * (A + A.T)

def spd_sqrt(A, eps=1e-12):
    w, V = np.linalg.eigh(_sym(A))
    w = np.clip(w, eps, None)
    return V * np.sqrt(w) @ V.T

# Create a small symmetric positive definite matrix
np.random.seed(0)
# Generate a random matrix and make it SPD by X @ X.T
X = np.random.randn(4, 4)
A = X @ X.T

ARGS = {
    "A": A,
    "eps": 1e-12
}
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
get_oracle Not yet run
unverified (harvested, no recorded run)
converseoptimality/RL-Benchmarking/Code/benchmarks/oracles.py
code served (permissive licence) · get_code("fe857983ccd18dba")
How it ran

no invocation recorded.

get_spec Not yet run
unverified (harvested, no recorded run)
converseoptimality/RL-Benchmarking/Code/benchmarks/registry.py
code served (permissive licence) · get_code("474a6bc3ed284f11")
How it ran

no invocation recorded.

load_spec Not yet run
unverified (harvested, no recorded run)
converseoptimality/RL-Benchmarking/Code/benchmarks/registry.py
code served (permissive licence) · get_code("0deb494da5fd8a21")
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, 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 7 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

The objective comparison of Reinforcement Learning (RL) algorithms is notoriously complex as outcomes and benchmarking of performances of different RL approaches are critically sensitive to environmental design, reward structures, and stochasticity inherent in both algorithmic learning and environmental dynamics. To manage this complexity, we introduce a rigorous benchmarking framework by extending converse optimality to discrete-time, control-affine, nonlinear systems with noise. Our framework provides necessary and sufficient conditions, under which a prescribed value function and policy are optimal for constructed systems, enabling the systematic generation of benchmark families via homotopy variations and randomized parameters. We validate it by automatically constructing diverse environments, demonstrating our framework's capacity for a controlled and comprehensive evaluation across algorithms. By assessing standard methods against a ground-truth optimum, our work delivers a reproducible foundation for precise and rigorous RL benchmarking.

For agents

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

get_harvested_code_for_paper("2603.17631")
get_code_for_paper("2603.17631")
have("2603.17631")

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

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

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

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

Connect an agent — have() is free.