HELM-GPT Co-optimisation

Reinforcement learning over macrocycles with non-canonical chemistry, co-optimising target affinity and membrane permeability.

Table of contents

  1. Overview
  2. Install
  3. Phase 1 — RL co-optimisation
  4. Phase 2 — Structural evaluation
  5. Phase 3 — Composite scoring
  6. Quality thresholds
  7. Reporting
  8. Operational notes
  9. Full protocol

Overview

Three phases:

  1. RL co-optimisation — HELM-GPT generates macrocycles against a dual reward: an XGBoost target-affinity model and a random-forest permeability model. Both score locally, so the loop is fast.
  2. Structural evaluation — each candidate goes to exactly one structure predictor, chosen by heavy-atom count, then to Gnina docking
  3. Final selection — track-dependent composite scoring

Unlike the structure-based workflows, this one designs in HELM notation, so non-canonical residues, N-methylation, D-amino acids and side-chain cyclisation are all in the search space.

Install

cpskill install binder_design_helmgpt

This installs helm_gpt_mcp, boltz_mcp, alphafold3_mcp and gnina_mcp.

claude
> /binder-design-helmgpt

Phase 1 — RL co-optimisation

loss_type  = "reinvent_cpl"
n_steps    = 500
batch_size = 32

Keep the prior, n_steps, batch_size and loss_type identical across targets — change one for one target and the per-target reward curves are no longer comparable.

The affinity model emits log10(Kd / nM), so lower is more potent. A gate of log < 1.0 admits Kd < 10 nM, not 10 µM. The permeability model emits log Papp in log cm/s, pass gate > −6.0.

Phase 2 — Structural evaluation

Routing is exclusive: each candidate is evaluated by one structure predictor, never both.

Heavy atoms Structure predictor iPTM reported as
≤ 128 Boltz-2 (affinity + complex) boltz2_ligand_iptm
> 128 AlphaFold3 af3_iptm

Boltz-2 cannot take ligands above 128 heavy atoms. Below the threshold it already writes the complex PDB and confidence terms that AF3 was being read for, so running both cost 15–60 minutes per candidate for no additional term in the composite and left the reported iPTM ambiguous.

postprocess_phase3.py detects which track produced results, selects the matching weight scheme, and records the predictor in an iptm_source column. If neither track yields usable confidence it fails loudly rather than substituting one predictor for the other.

Orthogonal validation is opt-in. To claim independent structural validation, run both predictors deliberately (orthogonal_validation: true in benchmark/configs/workflows.yaml) and report them as separate columns. Never collapse them with a best-of rule — taking the better of two scores is a selection bias that inflates the composite. Under exclusive routing the structural confidence and the Gnina pose derive from the same complex, so they are not orthogonal validations of each other.

Gnina then docks the ligand back into the receptor extracted from the predicted complex, returning a Vina affinity and a CNN pKd.

Phase 3 — Composite scoring

Both schemes sum to 1.0 and are defined in benchmark/configs/workflows.yaml. Each metric is min–max normalised within the candidate set.

Track A — ≤ 128 heavy atoms (Boltz-2 + Gnina)

Metric Weight
Kd 0.20
Permeability 0.15
Boltz-2 affinity 0.15
Boltz-2 affinity probability 0.10
Boltz-2 ligand-iPTM 0.10
Gnina CNN affinity 0.15
Gnina Vina score 0.15

Track B — > 128 heavy atoms (AlphaFold3 + Gnina)

Metric Weight
Kd 0.25
Permeability 0.20
AF3 iPTM 0.15
Gnina CNN affinity 0.20
Gnina Vina score 0.20

Quality thresholds

Metric Gate
Target Kd < 10 µM
Permeability > −6.0 log cm/s
AF3 iPTM > 0.60
Gnina CNN > 6.0 pKd

Reporting

# Which models ran per candidate, and where each iPTM value came from
python workflow-skills/scripts/helmgpt/provenance_report.py <phase1_run_dir>

# 12-panel figure set
python workflow-skills/scripts/helmgpt/helmgpt_viz.py <results_dir> [--merged]

Operational notes

  • AlphaFold3 needs its C extension. Without it every prediction aborts at import with ModuleNotFoundError: No module named 'alphafold3.cpp' in under a second. Check with tool-mcps/alphafold3_mcp/env/bin/python -c "from alphafold3.cpp import cif_dict" before launching Track B.
  • Each target needs its own MSA. Passing the wrong .a3m silently predicts the wrong complex.
  • Strip NUL bytes from ColabFold alignments before handing them to Boltz.
  • Docking is the long pole. A ~90-heavy-atom macrocycle takes minutes; split candidates across GPUs with the stride/offset arguments rather than running one lane.

Full protocol

See workflow-skills/binder_design_helmgpt.md.


Copyright © 2026 Charles XU. Distributed under the MIT License.