SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.19146 · 2026

RL-ABC: Reinforcement Learning for Accelerator Beamline Control

Denis Derkach, Fedor Ratnikov, Anwar Ibrahim, Maxim Kaledin, Alexey Petrenko

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 1 failure 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/2604.19146.json · badge: /api/ran/2604.19146.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
Anwar9Ibrahim/RL-ABC community
Papers with Code archive
6 ran · 2 no recorded run
FunctionStatusWhere it lives
Actor Ran
ran on a synthesized input · constructed an object; no result was computed
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("d3e22fc2c8926db9")
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, Actor: 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 = {
    'input_dims': 4,
    'n_actions': 3,
    'fc1_dims': 800,
    'fc2_dims': 600,
    'fc3_dims': 512,
    'fc4_dims': 256,
}
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 Actor — 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 Actor 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
Critic Ran
ran on a synthesized input · constructed an object; no result was computed
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("5f0a44af9e3f1e52")
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, Critic: 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 = {
    "input_dims": 4,
    "n_actions": 3,
    "fc1_dims": 800,
    "fc2_dims": 600,
    "fc3_dims": 512,
    "fc4_dims": 256,
}
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 Critic — 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 Critic 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
GaussianNoise Ran
ran on a synthesized input · constructed an object; no result was computed
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("97b89ec796c61e49")
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, GaussianNoise: 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 numpy as np

ARGS = {
    "action_dim": 4,
    "mu": 0.0,
    "sigma": 1.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 GaussianNoise — 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 GaussianNoise 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
OUNoise Ran
ran on a synthesized input · constructed an object; no result was computed
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("a1ab3164a1f62a5a")
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, OUNoise: 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 numpy as np

ARGS = {
    "action_dim": 4,
    "mu": 0.0,
    "theta": 0.15,
    "sigma": 0.2,
}
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 OUNoise — 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 OUNoise 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
ReplayBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("208064288fc2783c")
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, ReplayBuffer: the run constructed the object and did not call it, so no result was computed. 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 numpy as np
import random

torch.manual_seed(0)
np.random.seed(0)
random.seed(0)

# Create a ReplayBuffer instance
replay_buffer = object.__new__(type('ReplayBuffer', (), {}))
replay_buffer.buffer = []

# Populate the buffer with sample transitions
# Each transition: (state, action, reward, next_state, done, action_mask, next_action_mask)
num_samples = 5
state_dim = 4
action_dim = 3
num_actions = 6

for i in range(num_samples):
    state = np.random.randn(state_dim).astype(np.float32)
    action = np.random.randn(action_dim).astype(np.float32)
    reward = np.array([np.random.randn()], dtype=np.float32)
    next_state = np.random.randn(state_dim).astype(np.float32)
    done = np.array([0.0], dtype=np.float32)
    action_mask = np.random.randint(0, 2, size=(num_actions,)).astype(np.float32)
    next_action_mask = np.random.randint(0, 2, size=(num_actions,)).astype(np.float32)
    
    replay_buffer.buffer.append((state, action, reward, next_state, done, action_mask, next_action_mask))

# Convert to deque to match the actual implementation
from collections import deque
replay_buffer.buffer = deque(replay_buffer.buffer, maxlen=1000000)

ARGS = {
    'capacity': int(1000000.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 ReplayBuffer — 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 ReplayBuffer 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
setLogger Ran
ran; our contract draft was wrong, not the code
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("53f62f3486c97525")
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 csv
import tempfile
import os

# Create a temporary directory for the log file
temp_dir = tempfile.mkdtemp()
log_file_path = os.path.join(temp_dir, 'environment_log.csv')

ARGS = {
    'load': False,
    'log_file': log_file_path,
    'headers': ('reward', 'actions', 'duration')
}
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 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
DDPGAgent Not yet run
unverified (harvested, no recorded run)
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("ea447dde584febcb")
How it ran

no invocation recorded.

set_seed Not yet run
unverified (harvested, no recorded run)
Anwar9Ibrahim/RL-ABC/rl_framework/Agents/DDPG.py
code served (permissive licence) · get_code("11db5e9483680b9e")
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

Example lattice and simulation files for the Elegant beam dynamics code (.lte, .ele), configuration files, pretrained model checkpoints, and evaluation logs Nature of problem: Applying reinforcement learning to particle accelerator beamline optimization requires addressing several interrelated challenges. Beamline tuning is physically simultaneous rather than sequential, so it must be reformulated as a Markov decision process. State representations need to capture relevant beam physics in fixed-dimensional vectors suitable for neural networks. The system must integrate with existing simulation infrastructure, and researchers need the flexibility to experiment with different algorithms and configurations. Existing solutions require significant custom development for each beamline, limiting adoption of RL techniques in the accelerator physics community. Solution method: RLABC provides an automated pipeline for transforming Elegant beamline configurations into RL environments. Given standard Elegant lattice files (.lte) and command files (.ele), RLABC parses and preprocesses the beamline to insert diagnostic watch points before each tunable element, constructs a graph representation for efficient queries about element relationships, extracts a fixed 57-dimensional state vector from beam statistics, covariance matrices, and aperture parameters, and provides a configurable reward function based on particle transmission. The environment implements the Gymnasium interface (the maintained successor to OpenAI Gym) for compatibility with standard RL libraries (Stable-Baselines3). Stage learning strategies enable curriculum-based training that progressively increases problem complexity. Additional comments including restrictions and unusual features: RLABC is designed as a flexible research platform rather than a fixed optimization

For agents

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

get_harvested_code_for_paper("2604.19146")
get_code_for_paper("2604.19146")
have("2604.19146")

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

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

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

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

Connect an agent — have() is free.