FROM-WET COURSE GUIDE

From Wet Lab to RL Env: 10,000 Drug-Discovery Campaigns in a Weekend

A chapter-by-chapter readback of the free course by Ian Quigley on Latent Space.

Length1:49:56
Chapters21
Modules5
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

Models trained on public chemistry data learn the 'sociology' of the chemists who made molecules, not chemistry itself. Leash Bio counters this by generating billions of controlled, reproducible binding measurements and using them as a physical substrate for reinforcement-learned chemical reasoning.

Who it's for
Read this guide if
  • You work in ML for drug discovery and want to know why public datasets mislead models
  • You're curious how DNA-encoded libraries (DELs) produce clean, ML-ready binding data
  • You're interested in lab-in-the-loop RL environments grounded in real experiments
  • You want lessons in spotting model 'cheating' and experimental confounders
Skip ahead if
  • You want a hands-on tutorial or code walkthrough
  • You're looking for basic biology or chemistry primers
  • You only care about antibody or protein-based drug ML
In brief
  • Duration: ~1 hour 50 minutes (6,596 seconds)
  • 12 chapters across 5 chronological modules
  • Tools discussed: DELs, Hermes (ESM + ChemBERTa cross-attention model), XGBoost, Polaris, Kaggle, Boltz, LLM agents (Qwen, GLM)
  • Level: advanced — assumes familiarity with ML and basic drug-discovery concepts
  • Covers the ~4-billion-interaction Kaggle competition and ~13M tests across ~500 protein targets

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Foundations: Why DELs and How They Work

0:00

Introduction

Setting up the central provocation: classifiers can identify which of 1,815 chemists made a molecule from structure alone, hinting that models learn sociology rather than physics.

3:03

DNA-Encoded Libraries Explained

How DNA barcodes attached to small molecules let enormous chemical libraries be pooled and screened by sequencing, with conventional libraries reaching millions and the largest DELs around 40 trillion compounds.

7:41

DEL Selection and Controls

The mechanics of a selection run—proteins on magnetic beads, washing, PCR, sequencing—and the engineered negative controls and unique molecular identifiers needed to interpret results.

10:31

Avoiding False Positives from DNA Binding

Encoding each molecule with 32–48 barcodes reveals DNA-driven false positives, and enriched sequences can even recover known protein DNA-binding motifs.

Signal Quality and the Leash Approach

12:21

Does the DNA Tag Distort Results?

Off-DNA synthesis of hits has real attrition, but for ML training the barcode is genuine physical signal that models can simply condition on; reruns over months reproduce the same hits.

17:12

Screening Hundreds of Proteins, Not One

Unlike classical DEL practice of screening one target after months of protein prep, Leash screens each library against hundreds of proteins, exposing batch differences and enabling protocol tweaks from a genomics-methods background.

18:40

Recursion Lessons and the Recursion Mafia

Years at Recursion taught the founders how models cheat on high-dimensional biology data—like predicting which instrument ran an experiment—and a cluster of ex-Recursion startups applies that epistemic rigor to noisy measurements.

21:18

Why Small Molecules Matter

Small molecules can be pills and enter cells, unlike antibodies, and their ML prediction lags protein drugs due to data scarcity; Leash aims to screen every human protein to predict off-target toxicity.

The Kaggle Competition and Hermes

27:31

The 4-Billion-Interaction Kaggle Competition

Leash released a dataset of roughly 4 billion physical binding interactions—1,000× larger than BindingDB—with difficulty tiers built around shared building blocks, hubs, and a fully hidden hard library.

31:45

Competition Results and the Bitter Lesson

About 2,000 teams competed; nobody beat chance on the hardest evaluation, and simple SMILES representations beat fancier 3D approaches—failure that validated scaling a better measurement regime.

40:46

The Hermes Model Architecture

Hermes combines an ESM protein embedding and a SMILES language model via cross attention, a deliberate inductive bias for protein–molecule interaction that avoids the 'Picasso problem' of local-only features.

44:38

Memorization Splits and Baselines

By clustering building blocks and excluding whole clusters from train/test splits, they showed XGBoost degrades steadily with out-of-distribution splits while Hermes stays flat, exposing memorization in simpler baselines.

Clever Hans: Models Learn the Chemist, Not Chemistry

47:46

Predicting the Chemist from the Molecule

A classifier trained on ChEMBL molecules achieves 60% top-five accuracy identifying one of 1,815 chemists, and confusions only occur among chemists at the same institution—evidence of learnable personal style.

50:57

Creator Vectors Predict Binding

A model given only a 1,815-element vector of creator probabilities predicts activity as well as chemical formulas, and molecular weight tops public benchmarks only because chemists iteratively grow successful molecules.

55:59

Training Only on Internal Data

Leash trains exclusively on internally generated data and compares Hermes to Boltz, finding cases where Boltz nails PDB molecules it likely memorized while Hermes generalizes from unseen chemical space.

Engineering Negatives and RL Agents

1:01:11

Breaking Pockets with Mutations

The lab mutates 3–5 pocket amino acids, uses competitive binders, and re-screens: chemical series displaced by a competitor vanish when the pocket breaks, providing real counterfactual negatives public datasets lack.

1:08:38

Attention Maps and Protein 'Nicknames'

Hermes' attention landed on short non-conserved protein stretches—memorized nicknames rather than binding sites—until pocket mutations were added to training, after which attention spread much more evenly.

1:15:47

Language Models and Agentic SAR Campaigns

LLM agents receive 10 binders and 10 non-binders, form hypotheses, and pick molecules from millions under a budget of 100, replicating 10,000 medicinal-chemistry SAR campaigns in a weekend as reinforcement rollouts.

1:22:49

DEL Limitations, ADMET, and Translating to Mice

Library flatness, building-block availability, and easy-disassembly critiques are discussed, alongside moving from library hits to mouse PKPD in six months and a Thompson-sampling-driven library design loop.

1:33:44

Economics, the Kusuri Paradox, and Scale

Discovery costs only millions versus the $200M–$1B of development, the 'why collect data if you need a model?' paradox is answered by breadth across targets, and the team has run ~5,000 screens over ~2,000 protein constructs.

1:40:19

Outstanding Problems and Takeaways

Raw DEL reads can't yet proxy KD (SPR work is underway), scalability depends on a culture of catching cheating modes like misfolding (the lumacaftor filter), and parallelizable purification is the wished-for bottleneck remover.

Moment by moment

TimeWhy it matters
27:31The reveal of the 4-billion-interaction dataset—1,000× larger than anything prior—measured by one person in a basement
32:02Nobody beat chance on the hardest Kaggle eval, and three of the top five were a noisy tutorial notebook
50:57A model given only creator-identity probabilities predicts binding as well as chemical formulas—models learn sociology, not chemistry
1:08:38Hermes' attention maps show it memorized protein 'nicknames' instead of binding pockets, and how mutations fixed it
1:22:49The claim that agents ran over 10,000 SAR-style drug-discovery campaigns in a single weekend

Do this next

  1. Explore Leash Bio's released competition data and evals on Polaris, including raw read counts and binary labels, to reproduce the out-of-distribution split experiments
  2. Test a simple SMILES-based baseline against a 3D graph model on a binding dataset and check for memorization using building-block-clustered train/test splits
  3. Design a 'Clever Hans' audit for your own model: train it on metadata-only features (batch, instrument, author) and see how much signal it captures

Common questions

What is a DNA-encoded library (DEL)?

A pooled chemical library where each small molecule carries a DNA barcode. Binding to a target protein is selected and read out by sequencing the barcodes, letting libraries from millions to trillions of compounds be screened in a tube.

Why can't models just be trained on public binding data like ChEMBL?

Public datasets encode chemist sociology: models can identify the chemist from a molecule alone and predict activity as well from creator-identity vectors as from chemical formulas, meaning they memorize human style and molecular-weight artifacts rather than physics.

How does Leash Bio generate counterfactual training data?

They mutate amino acids in binding pockets (with AlphaFold's help for design), use competitive binders, and re-screen whole DELs. Chemical series that disappear only when the pocket breaks provide real negative examples public structural datasets lack.

What is the reinforcement learning setup described in the episode?

LLM agents get 10 binders and 10 non-binders, form a binding hypothesis, then pick up to 100 molecules from a screened space of 6.5 million and get instant measured results—like a coding sandbox, but grounded in physical, reproducible activity-cliff data.

Spot a mistake?

Every chapter summary is hand-checked against the full video, but with a two-hour deep technical conversation, subtle details can slip. If you spot an error in a timestamp, claim, or summary, please email us and we'll correct it.

More course guides