Bach Pham
Back

LANCE: learning enzyme kinetics

Bach Pham | First author
With Professor Jeffery B. Klauda & PhD student Kinjal Mondal
Laboratory of Molecular and Thermodynamic Modeling
University of Maryland | Revising for journal submission | Not yet published

Enzyme measurements are sparse and depend on experimental conditions. LANCE predicts kcat, Km, and Ki with one shared architecture and three prediction heads.

October 2026: Professor Jeffery B. Klauda and PhD student Kinjal Mondal reviewed the manuscript and requested more ablation evidence. I am currently running 12 controlled ablation experiments on UMD's Zaratan HPC cluster under energybio-eng. Results are pending. See the study design -->

One model, three predictions

Architectural organization: CatPred trains three separate task models; LANCE-7R shares protein and molecule representations, latent actions, and three prediction heads.
Architectural organization: CatPred and LANCE-7R. Select to view it full size.

From protein sequences and SMILES to shared features

  • Frozen ESM++ protein features. I cache residue embeddings from the 600M-parameter ESM Cambrian model through ESM++. Each residue has 1,152 features, projected to 512 dimensions in the learned backbone. The protein language model stays frozen, so training reuses its features without backpropagating through 600M parameters.
  • RDKit graphs and a D-MPNN. RDKit converts molecular SMILES into atom-bond graphs. I adapted CatPred's directed message-passing encoder to produce 300-dimensional atom states, then project them to 512 dimensions. Reactants, substrates, inhibitors, and training-only products share the same encoder weights.
  • Early molecule-conditioned cross-attention. Four query tokens derived from the molecule attend to enzyme residues through 8 attention heads. A learned task gate controls how much this interaction changes the global enzyme representation, before the kinetic prediction heads.

Two JEPA objectives, shared latent actions

Joint-Embedding Predictive Architecture (JEPA)-style learning guides two latent routes with different roles. Two shared 64-dimensional action vectors combine enzyme-interface and molecule features. A shared residual adapter uses task embeddings to adjust the actions for each endpoint, then projects them to update separate binding and catalytic representations:

  • Reaction JEPA predicts a latent displacement from a stop-gradient reactant anchor toward a stop-gradient product target. Smooth-L1 and in-batch contrastive losses supervise the predicted state and displacement. Products supply training targets, not inference inputs; rows without products still receive kinetic supervision.
  • Binding JEPA trains on Michaelis and inhibition examples using a stop-gradient target formed from the molecule and enzyme-interface states. It provides product-free self-consistency supervision, rather than a measured enzyme-ligand complex or an experimentally validated binding state.

SIGReg-style regularization matches randomly projected representation distributions to a standard Gaussian to discourage collapse. A separate squared-cosine penalty discourages the two action vectors from becoming copies. These objectives guide the representations; the pending ablations test how much they contribute to prediction quality.

Training the predictor

The 22.53M-parameter Python/PyTorch backbone uses CUDA BF16 mixed precision. That parameter count excludes the frozen 600M protein feature extractor. Three heteroscedastic regression heads predict a mean and log variance using beta-weighted Gaussian negative log likelihood. Temperature and pH enter with missing-value flags, so an absent measurement is distinguishable from zero.

  • Task-balanced batches of 256: approximately 86 turnover, 85 Michaelis, and 85 inhibition examples per batch.
  • AdamW and gradient clipping: a 3-epoch learning-rate warm-up, up to 150 epochs, and early-stopping patience of 20.
  • Two-stage fitting: train the shared backbone first, then freeze it and fit the 406-parameter retriever for 20 epochs.
  • 10-member ensemble: reported predictions average independently trained seed models, each sharing its encoders across all 3 tasks.

A 406-parameter memory correction

LANCE-7R freezes the backbone and fits a small retrieval module. An eligible exact-reactant match gates whether memory can adjust kcat predictions while leaving Km and Ki unchanged. Without an eligible exact match, the original neural prediction is preserved.

A learned diagonal metric ranks 64-dimensional protein keys by cosine similarity, after excluding the query's target-specific 99% sequence cluster. A temperature-weighted average of up to 8 eligible labels and a bounded residual MLP form the correction. The residual also receives approximate different-reactant neighbor statistics: exact matching controls eligibility, but the correction is not based exclusively on exact-match neighbors.

Full LANCE-7R architecture: sequence and molecule encoders feed cross-attention and shared binding and catalytic actions; dashed JEPA targets are training-only. An exact-reactant label memory corrects only the kcat output.
Full LANCE-7R architecture. Dashed paths are training-only supervision; the upper band is the kcat memory correction.

LANCE-7R vs. CatPred

We retrained CatPred v1.0.0 on the same CatPred-DB split using ten independent runs per task and evaluated both systems on exactly matched rows.

LANCE-7R has favorable point estimates in 18 of 18 Heldout/OOD99 comparisons and 41 of 48 comparisons across all supplied Heldout and sequence-OOD cohorts.

On the 348-row turnover OOD99 cohort, R^2 improves from 0.323 to 0.395 and MAE falls from 1.024 to 0.979. On 1,193 held-out inhibition measurements, MAE falls from 0.865 to 0.788. These results measure the complete system; they do not establish how much of the gain comes from either JEPA objective alone.

Heldout/OOD99 scores informed architecture development, so these are development-benchmark comparisons rather than untouched confirmation. Target-specific sequence OOD also does not rule out exposure through another kinetic task in the shared model.

Connecting molecular prediction to drug discovery

Inhibition constants connect enzyme modeling to inhibitor evaluation. LANCE predicts Ki alongside turnover and substrate kinetics from enzyme and molecular features. This makes the work relevant to the computational characterization of enzyme inhibitors in drug discovery.

On 1,193 held-out inhibition measurements, the complete system reduces log10 MAE by 8.9% relative to retrained CatPred, from 0.865 to 0.788, and raises R^2 from 0.633 to 0.674. These are benchmark prediction results; prospective compound screening and experimental validation remain future work.

Bold indicates the better point estimate. n is the number of evaluated rows.

R^2 | higher is better
Target / cohortCatPredLANCE-7R
kcat | Heldoutn = 2,3170.6110.651
kcat | OOD99n = 3480.3230.395
kcat | OOD80n = 3060.2710.341
kcat | OOD60n = 2430.2210.287
kcat | OOD40n = 1600.1450.224
kcat | OOD20n = 1040.1260.157
Km | Heldoutn = 4,1170.6490.672
Km | OOD99n = 4790.5400.549
Km | OOD80n = 3800.5510.560
Km | OOD60n = 2820.5490.553
Km | OOD40n = 1730.4830.474
Ki | Heldoutn = 1,1930.6330.674
Ki | OOD99n = 1400.4710.524
Ki | OOD80n = 1220.3820.433
Ki | OOD60n = 1010.3500.428
Ki | OOD40n = 700.3740.322
MAE | lower is better
Target / cohortCatPredLANCE-7R
kcat | Heldoutn = 2,3170.7010.657
kcat | OOD99n = 3481.0240.979
kcat | OOD80n = 3061.0461.003
kcat | OOD60n = 2431.1171.075
kcat | OOD40n = 1601.2231.161
kcat | OOD20n = 1041.3461.323
Km | Heldoutn = 4,1170.5470.517
Km | OOD99n = 4790.6480.632
Km | OOD80n = 3800.6600.645
Km | OOD60n = 2820.6890.678
Km | OOD40n = 1730.7660.774
Ki | Heldoutn = 1,1930.8650.788
Ki | OOD99n = 1400.9940.941
Ki | OOD80n = 1221.0451.010
Ki | OOD60n = 1011.0511.008
Ki | OOD40n = 701.0501.121
P1mag (%) | higher is better
Target / cohortCatPredLANCE-7R
kcat | Heldoutn = 2,31777.6880.02
kcat | OOD99n = 34861.8162.36
kcat | OOD80n = 30661.3761.44
kcat | OOD60n = 24358.2758.02
kcat | OOD40n = 16054.4455.62
kcat | OOD20n = 10449.1348.08
Km | Heldoutn = 4,11784.6385.94
Km | OOD99n = 47979.4679.96
Km | OOD80n = 38077.8278.68
Km | OOD60n = 28275.0776.24
Km | OOD40n = 17370.4671.10
Ki | Heldoutn = 1,19367.7571.58
Ki | OOD99n = 14058.8663.57
Ki | OOD80n = 12255.5759.84
Ki | OOD60n = 10157.2359.41
Ki | OOD40n = 7056.7154.29

CatPred: mean of ten outer ensembles. LANCE-7R: one selected ten-member ensemble. R^2 and MAE use log10 targets; P1mag (within 10x) is the percentage with absolute log10 error below 1. OOD labels are the supplied target-specific sequence-identity cohorts; Km and Ki have no supplied OOD20 rows. Counts summarize metric directions across nested cohorts, not statistical significance.

Testing what drives the gains

A stronger complete model does not tell us which objectives help. My new study holds the architecture, parameter count, data protocol, and training schedule fixed while changing only the loss coefficients. Each condition uses two paired seeds and 150 epochs: 12 backbone training runs in total, submitted through Slurm on UMD's Zaratan HPC cluster.

  1. Kinetic supervision only: the full architecture with auxiliary losses disabled.
  2. Binding JEPA: kinetic supervision plus the binding objective family.
  3. Reaction JEPA: kinetic supervision plus the reaction objective family.
  4. Both JEPA branches: tests their combined contribution and interaction.
  5. Both branches + SIGReg: tests the representation regularizer.
  6. Full loss recipe: tests the remaining auxiliary objectives as a group.

I separated checkpoint selection, memory calibration, and final reporting into three groups disjoint by pooled 99% sequence cluster. Comparisons use the same report rows and paired seeds, with each kinetic target reported separately. Released test and OOD labels are not loaded by this study; the new report groups may still be sequence-similar to training data.

The full-loss checkpoints also support three memory comparisons: no memory, a simple exact-label average, and learned retrieval. These reuse the same backbones, exclude neighbors in the query's target-specific 99% sequence cluster, and preserve the other two kinetic outputs.

Local checks cover all six configurations, matching initial weights, finite gradients, small end-to-end runs, retrieval exclusions, and Slurm submission and resume behavior. These validate the implementation; the full study has no results to report yet. Two seeds provide an initial repeatability check. This study tests loss contributions, not whether the learned representations are physical binding or catalytic states.