C9 — the generator hunt
01 / Goal
Add a third, independent generator to the portfolio.
- Strategy difference: a different architecture entirely — not a variation of the RFdiffusion line.
- Answers: does the third generator transfer to this target? (Not via the CA-only pipeline.)
02 / Experiments
01 · G — generate and convert 2026-11-02
100 backbones in about an hour; the output is a CA trace in binder-first chain order, remapped to the project layout.
02 · V — fold both slices 2026-11-02
ProteinMPNN CA-only (designing the binder chain only), a CA-trace pose screen, then folds of the top 30 and a second slice of 40.
03 · The generator is open and runs locally 2026-11-04
The hosted NIM's RFD4-Proteina is public: nvidia/RFD4-Proteina and the Diffusers build, BSD 3-Clause, released 2026-10-19, 435.6M parameters, 1.74 GB in FP32. It runs in BF16 on the local 12 GB GPU with the same annotated-CIF conditioning our NIM requests used, and it emits sequence and all-atom structure together. The release is itself a rank-32 LoRA of a pretrain-base, which is the fine-tuning route. Smoke run (scripts/rfd4_smoke.py): the shipped example first, then our target - a 64-residue binder against the G12D pMHC in about one minute, chains A/B/C held fixed at 276/99/10 residues, one new chain added.
04 · The target verified against the challenge reference 2026-11-04
The challenge's three parts against our local structure, 7OW6 chains A-C with the TCR removed: beta2-microglobulin exact (99 residues), the G12D peptide VVVGADGVGK exact, and HLA-A*11:01 at 99.1 percent identity. The only difference is the disordered C-terminal tail LSSQT (5 residues), which the crystal does not resolve and which sits far from the binding groove. Construct numbering 25-305 maps cleanly onto our chain.
05 · Wet-lab labels for calibrating the scores 2026-11-04
Downloaded under custom-model/data/. ATLAS holds 1,174 TCR-mutant affinities on pMHC with KD, dG and dDeltaG, plus 803 TCR-pMHC structures. SKEMPI2 holds 7,085 measured mutation effects, 764 of them at TCR/pMHC interfaces. The sharpest external fact: the JDI TCR binds the KRAS G12D decamer on HLA-A*11:01 at 63 uM, affinity enhancement takes it to 743 pM, and the wild-type peptide stays at 3.0 uM (PDB 7PB2 and 7OW6 for G12D, 7OW5 for WT); the paper attributes the selectivity to indirect electrostatic differences, the thesis this project has tested all along. The loop's own reward needs no labels - this data is here to measure how well the scores track real binding.
06 · The chosen loop: reward-tuned LoRA 2026-11-04
The chosen strategy is a RAFT-style loop. Generate N backbones around the fixed peptide motif; sequence them with ProteinMPNN or LigandMPNN; co-fold each with boltz; score with the composite (interface metrics, the tri-state, the E-score); keep the top-K under the existing gates; LoRA-SFT on the winners; repeat, with held-out designs as the guard against reward collapse. One cycle is about 1.5 to 2 h. Rejected alternatives: RFdiffusion-based particle steering (older model, porting is real work) and reward backpropagation through the trajectory (research-grade). Also recorded: an integrated local pipeline (RFAA or RFdiffusion generator, one orchestrator) and, later, a parametric helix-bundle generator that optimizes the pose against the E-score directly. The loop is drawn out in custom-model/diagram-pipeline.html (the frozen submission path against the RAFT training loop; the LoRA adapter is the only trained component).
07 · The local baseline, and it matches the hosted funnel 2026-11-04
32 designs from the local RFD4-Proteina (seeds 1000-1031, about one minute each), then the whole pipeline - co-fold, s1 screen, E-score - in about 90 minutes. Result: 6 of 32 interfaces are JDI-like (ipTM >= 0.8), 19 percent against the hosted campaign's about 15 percent, best interface batch1-017 at ipTM_pep 0.959. The organizer epitope gate (peptide_read >= 0.61) caught none of them: the best read 0.577 (batch1-008), just under. No design scored E below -1.0, and the strongest interfaces carry positive E (wrong field direction) - exactly the raw-design behaviour the hosted funnel showed. Raw generation is not the bottleneck: the local model matches the hosted one at about a third of the wall time, with no rate limits. These 32 designs and their scores are themselves training material for the reward loop.
08 · A competing generator, measured and not adopted 2026-11-04
BoltzGen (MIT, all-atom binder design) was run on our target: 8 designs through its full six-step pipeline, on a spec that mirrors the shipped peptide-in-pMHC example, then through our own funnel after fixing a chain-order mismatch (BoltzGen emits the binder as chain A; our pipeline expects A = HLA). Head-to-head with the local batch: its designs dock confidently (ipTM_pep 0.965-0.974, 8 of 8) but do not engage the peptide epitope (peptide_read 0.101 max against the local RFD4's 0.577) and sit flat on the E-score (best -0.06 against -0.86). Its internal metrics rank these designs as good; the epitope-specific instruments disagree. Eight designs is a small sample and its recommended campaign is 10,000 or more, so this is a plumbing verdict, not a final quality claim - but nothing here motivates displacing the RFD4, and the training program proceeds against the RFD4 as planned.
09 · The E-score against wet-lab affinity: a scope found 2026-11-04
First calibration of the electrostatic instrument against measured binding. A whole-interface Coulomb sum (E_int) was computed for 12 ATLAS structures that carry a median Kd (61 were selected, 12 had usable affinity rows), then compared with log10 Kd: Pearson r = -0.08. The naive whole-interface form does not predict measured affinity, so interface-wide electrostatics is not an affinity proxy here. The site-specific E-score - charged groups against the P6 aspartate, distance-dependent dielectric - keeps its one passing control, the JDI sign check (-0.67), and stays the specificity instrument. The mutant-versus-wild-type reading is a local effect, which is the scope note, not a failure of the instrument.
10 · The tune hits the 12 GB wall (honest record) 2026-11-04
The first LoRA fine-tune of RFD4-Proteina used the official diffusers example on 8 of the best batch1 complexes. Every configuration failed in the same place, the forward-backward pass on the ~490-residue complex: rank 32 / alpha 64 and rank 8 / alpha 32, bf16, gradient checkpointing, expandable_segments on and off. The failing allocation is small (102 MiB) - the card sits at the edge, not far over. The 4-bit route fails too: an NF4 base loads in 1.2 GB, a tenth of the card, but training allocates about 26 GiB of activations, so the wall is the activations, not the weights. Six verified fixes (quant configs, peft-versus-transformers helper moves, HF interface stubs, VAE kwarg leakage) reached the same place. Conclusion, final for this machine: the 12 GB card cannot fine-tune this model on our target's complexes at any setting tried. Options recorded, in order: train on shorter class I complexes from ATLAS (cheapest, untested), quantized base with LoRA, or tune a different component - the frozen RFD4 already generates at parity, so the specificity gap is not a generator problem.
11 · The truncated-complex attempt: the wall does not move 2026-11-04
The remaining idea was to shrink the training complexes instead of the model. A truncated dataset was built (binder + peptide + full beta2m + HLA residues 1-200, the groove-carrying part: 379 residues against 449) and the same 4-bit recipe ran on it. At 520 tokens against the full complex's 620 the out-of-memory peak moved from 25.99 to 25.86 GiB, so a 16 percent length cut moved the peak by 0.5 percent: the allocation is effectively input-independent at our sizes, and fine-tuning is not reachable on this card by input shaping. The design-side route replaced it the same day - the loop with the v4 composite improved the submission with no training at all, on the 18 gate passers the v3 composite could not rank (see the next chapter). The choice of fallback (shorter class I complexes, a quantized base, or another component) still needs the owner's decision and is recorded in the site-sync TODO.
12 · The composite gains the organizer's gate term (v4) 2026-11-04
The v3 composite (30 i_pDAE, 20 ipTM, 20 dfree, 20 E, 10 dWT) had no term for the surface the organizers name as the target: the peptide in the groove. Composite v4 keeps the same shape and adds a 20 percent peptide_read term (25 i_pDAE, 15 ipTM, 15 dfree, 15 E, 10 dWT, 20 peptide_read), with a hard veto on a positive E. Re-ranking the generation-4 pool (104 designs) finds 18 designs that clear the organizers' own archive gate (peptide_read >= 0.61), best 0.766, which the v3 ranking could not see. The evolution loop's own selection moved to this ranking the same evening, so the loop breeds from the gate top. The consequence is on the submission table: six of the gate passers entered the twenty (C10).
13 · Tool audit and the 2026 field 2026-11-04
boltz 2.2.1 is the latest release, and its affinity head does NOT cover protein-protein binding, so there is still no direct Kd estimate for a binder from boltz: the E-score and the interface metrics remain the specificity instruments. The open models released after our NIM campaigns started, all candidates for the generator slot: BoltzGen (MIT, all-atom binder design), PXDesign (ByteDance, Apache 2.0, 17 to 82 percent nanomolar hit rates on seven targets) and Protenix-v2. Chai-2 is access-gated but reports a peptide-MHC target among its validated cases. OpenDDE was installed for a second co-folding opinion and then shelved: it rebooted the host twice, its retry pass collected 20 complex files and produced no scores, and it is a binder-versus-nonbinder instrument, not a G12D-versus-WT one. PXDesign/Protenix-v2 was never run - it needs conda or Docker and its recommended server sends the target off-machine - so it stays the backup generator. APBS is not installed and is an optional post-deadline addition; Complexa and OpenFold3 were available and unused; no all-atom MD or FEP run was made, because the BioEmu2 ensembles cover thermal stability.
14 · The provenance record of the top three 2026-11-04
The chain of the set's best three designs is now written down end to end (records/final2/PROVENANCE.md): hosted generation, fold and screens, one repair swap, one evolution swap, then the full instrument set. Rank 1 L58K-Q15K (Q15K took it to 90.5, E -3.65), rank 2 A16K (67.5 to 87.1, E -3.75, the set's best read) and rank 3 W57K (84.3) - the order as this record was written, before the evening's epitope-gate re-cut moved W57K out of the set (C10). All three begin at the same place: a backbone from the hosted generator. Stages 3 to 10 are already ours or open (boltz, chai-lab, ProteinMPNN, BioEmu2). The submission's methods text is written from these records (records/final2/METHODS.md).
15 · F — the tune on rented silicon 2026-11-05
Local training was closed first, after six verified out-of-memory attempts on the 12 GB card: the 435M model needs about 26 GiB per allocation. The tune moved to a rented A100-80GB, ran the official tutorial recipe against the test dataset, and kept a checkpoint ladder every ten epochs in a persisting volume.
16 · G — the comparison that misled 2026-11-07
100 designs were generated from the tuned checkpoint and 100 from the released weights, then scored with the same geometry pass. Both sets produced 4-chain complexes, and both were clean.
17 · P — the placement check that reversed it 2026-11-07
For each generated complex, measure the binder-to-peptide distance, the peptide contact count, and the closest approach to the MHC. A real pose sits at 2.5-4 A; below 1.5 A the atoms interpenetrate, which no real structure does.
18 · G — 100 designs through the fold funnel 2026-11-08
100 raw designs were converted to fold inputs with canonical chains, folded at five diffusion samples each, and scored. The fold batch ran 100 of 100 with no failures in about two hours of local GPU time.
19 · S — the three-arm specificity panel 2026-11-08
Every gate passer was folded again with the wild-type peptide and with no peptide at all, and the top three across three seeds. A design only counts when the mutant arm passes the gate while both other arms fail it.
20 · E — the electrostatic instrument agrees 2026-11-08
The histidine-aware E-score was run on the new candidates as an independent check, reading the charge environment around the mutant aspartate.
03 / Results — this campaign's best designs
| design | score | in submission |
|---|
- selection score (0-100) — The primary selection score, from select-top20.py: 100 x (2.0*A + 1.5*B + 1.0*E + 0.5*R) / 25. A = activation geometry (how many of the 6 agonist features the pose meets, and whether samples agree), B = binding (ipSAE, with a bonus for pDockQ2 >= 0.30), E = expression (pLDDT band + Kyte-Doolittle hydropathy), R = epitope reach. Each component is capped at 5, so the weighted total caps at 25. The six epitope-gate additions of 2026-11-04 carry the v4 composite instead (25 i_pDAE + 15 ipTM + 15 dfree + 15 E + 10 dWT + 20 peptide_read): same 0-100 scale, different formula. Row order is this score, descending. (higher is better)