SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.20019 · 2026

Multi-Objective Reinforcement Learning for Generating Covalent Inhibitor Candidates

Renee Gil

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures 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.20019.json · badge: /api/ran/2604.20019.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
CDDLeiden/DrugEx canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
FunctionStatusWhere it lives
generateBackupDir Ran
ran; our contract draft was wrong, not the code
CDDLeiden/DrugEx/drugex/logs/utils.py
code served (permissive licence) · get_code("704870bb2ed93373")
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 os
import tempfile

# Create a temporary directory for the root
root_dir = tempfile.mkdtemp()

# Define arguments for generateBackupDir
backup_id = 42

ARGS = {
    'root': root_dir,
    'backup_id': backup_id
}
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 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
generate_backup_runID Ran
ran, honoured the contract we drafted
CDDLeiden/DrugEx/drugex/logs/utils.py
code served (permissive licence) · get_code("b75d75d7ed3fc51f")
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 int, ndim 0, dtype family int, 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 os
import re
import tempfile
import shutil

BACKUP_DIR_FOLDER_PREFIX = 'backup'

def generate_backup_runID(path='.'):
    """ 
    Generates runID for generation backups of files to be overwritten 
    If no previous backfiles (starting with #) exists, runid is set to 0, else to previous runid+1
    """
    regex = f'{BACKUP_DIR_FOLDER_PREFIX}_[0-9]+'
    previous = [int(re.search('[0-9]+', file)[0]) for file in os.listdir(path) if re.match(regex, file)]
    runid = 1
    if previous:
        runid = max(previous) + 1
    return runid


# Create a temporary directory with some backup folders
temp_dir = tempfile.mkdtemp()

# Create some existing backup directories to test the function
os.makedirs(os.path.join(temp_dir, 'backup_0'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'backup_1'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'backup_3'), exist_ok=True)

# Create some non-backup files/dirs to ensure they don't interfere
os.makedirs(os.path.join(temp_dir, 'other_folder'), exist_ok=True)
with open(os.path.join(temp_dir, 'some_file.txt'), 'w') as f:
    f.write('test')

ARGS = {
    'path': temp_dir
}
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 int, ndim 0, dtype family int, 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_runid Ran
ran; our contract draft was wrong, not the code
CDDLeiden/DrugEx/drugex/logs/config.py
code served (permissive licence) · get_code("6d7e5debe19798a5")
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 os
import tempfile
from datetime import datetime

# Create a temporary directory for testing
temp_log_dir = tempfile.mkdtemp()

ARGS = {
    'log_folder': temp_log_dir,
    'old': True,
    'id': None
}
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 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
DesignArgParser Not yet run
unverified (harvested, no recorded run)
CDDLeiden/DrugEx/drugex/generate.py
code served (permissive licence) · get_code("3b0f039a28497900")
How it ran

no invocation recorded.

load_molecules Not yet run
unverified (harvested, no recorded run)
CDDLeiden/DrugEx/drugex/dataset.py
code served (permissive licence) · get_code("05a8833aaa4bdb6e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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

Rational design of covalent inhibitors requires simultaneously optimizing multiple properties, such as binding affinity, target selectivity, or electrophilic reactivity. This presents a multi-objective problem not easily addressed by screening alone. Here we present a machine learning pipeline for generating covalent inhibitor candidates using multi-objective reinforcement learning (RL), applied to two targets: epidermal growth factor receptor (EGFR) and acetylcholinesterase (ACHE). A SMILES-based pretrained LSTM serves as the generative model, optimized via policy gradient RL with Pareto crowding distance to balance competing scoring functions including synthetic accessibility, predicted covalent activity, residue affinity, and an approximated docking score. The pipeline rediscovers known covalent inhibitors at rates of up to 0.50% (EGFR) and 0.74% (ACHE) in 10,000-structure runs, with candidate structures achieving warhead-to-residue distances as short as 5.5 Å (EGFR) and 3.2 Å (ACHE) after further docking-based screening. More notably, the pipeline spontaneously generates structures bearing warhead motifs absent from the training data -including allenes, 3-oxo-β-sultams, and α-methylene-β-lactones -all of which have independent literature support as covalent warheads. These results suggest that RL-guided generation can explore covalent chemical space beyond its training distribution, and may be useful as a tool for medicinal chemists working on covalent drug discovery.

For agents

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

get_harvested_code_for_paper("2604.20019")
get_code_for_paper("2604.20019")
have("2604.20019")

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

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

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

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

Connect an agent — have() is free.