Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2026 Jun 12:2026.06.10.731383. [Version 1] doi: 10.64898/2026.06.10.731383

MAHLER: Integrating Metadynamics and Inverse Folding to Predict Antibody-Antigen Kinetics

Da Teng 1,2,4, Mary Pitman 3, Punit K Jha 3, Amogh Sood 3, Dominic Rufa 3, Kevin Ryczko 3, Andrea Bortolato 3, Pratyush Tiwary 1,2,4,5,*
PMCID: PMC13277939  PMID: 42327283

Abstract

Binding kinetics are crucial for antibody function, shaping pharmacokinetics and in vivo efficacy beyond what equilibrium affinity captures. We present “Metadynamics-Anchored Hybrid Learning for Engineering off-Rates (MAHLER)”, a fully open-source machine learning/physics hybrid method that predicts relative antibody-antigen residence times at scale. Incorporating inverse-folding models into molecular dynamics simulations, MAHLER shows first-in-class screening-grade accuracy in calculating relative antibody-antigen dissociation kinetics across a family of point mutants. After initial antigen-specific setup, each prediction takes only 4 minutes on a single NVIDIA A100 GPU, compared to days even with already enhanced molecular dynamics simulations. This provides practical kinetics-aware complement to current computational design approaches that focus primarily on binding affinity for antibody-antigen complexes.

Introduction

AI-assisted computational antibody design is maturing rapidly, with state-of-the-art models now achieving double-digit success rates in in vitro binding affinity validation1-3. Despite this progress, the kinetic profile of antigen-antibody (AgAb) binding remains a critical blind spot in computational design. Binding affinity alone is often insufficient to predict in vivo therapeutic outcomes4, 5. However, the dissociation rate (koff), or the inverse of the residence time (τ), dictates the duration of biological interaction, thereby governing therapeutic efficacy and pharmacokinetics6. Additionally, in diagnostics, longer residence time is the primary driver of sensitivity in ultrasensitive immunoassays7.

Kinetics-aware AI design of antibodies, while desirable, remains difficult for numerous reasons5. First, experimental data for kinetics is scarce and often noisy due to external factors like non-specific binding, which limits the applicability of purely supervised machine learning techniques8, 9. Second, current structure-based models lack the sensitivity needed to reliably predict the subtle effects of single-point mutations10, which are crucial in antibody engineering. Some differences are also not reflected in the static bound structure, but rather manifest in the physical interactions that occur during the dissociation process4. While physics-based sampling such as molecular dynamics (MD) can theoretically capture these nuances, it suffers from severe sampling bottlenecks. While standard unbiased MD is typically limited at its very best to several hundred microseconds, the dissociation of therapeutically relevant antibodies often occurs on the seconds timescale, placing it far beyond the practical reach of these simulations11.

Infrequent metadynamics (IfMetaD) offers a theoretical framework within the metadynamics family of enhanced sampling methods to bridge this gap, predicting residence times primarily for protein-ligand systems12-15, and more recently, protein-protein complexes16, 17. Despite its potential, the low computation throughput of IfMetaD hinders its broader application in prospective antibody design. Most importantly, prospective design requires screening a large number of candidate mutants. While automated protocols have been recently developed for calculating absolute protein-small molecule residence times14, 15, IfMetaD remains prohibitively expensive for high-throughput screening of antibody-antigen kinetics. Meanwhile, IfMetaD relies on high-quality collective variables (CVs) to accurately describe the dissociation process. Identifying CVs that capture relevant slow degrees of freedom often requires extensive trial-and-error simulation, which has been shown feasible for protein-small molecule systems14, 15, 18 but remains exceptionally challenging for macromolecular protein-protein interfaces19-21.

Here, we describe a first-in-class protocol (Figure 1a), called Metadynamics-Anchored Hybrid Learning for Engineering off-Rates (MAHLER), which integrates AlphaFold2-RAVE (af2rave)22, 23, IfMetaD12, and inverse folding models (IFM)24 to efficiently sample the dissociation of antibody-antigen complexes. For a given wild-type (WT) complex, af2rave generates a reduced-dimensional latent space that encodes slowly interconverting conformations possibly relevant to the dissociation process (Figure S4). Applying IfMetaD within this optimized latent space, with the learned latent variables serving as the collective variables (CVs) for biasing, allows us to accelerate dissociation events and accurately estimate residence times for the WT complex (Figure 1c). By incorporating the IFM framework, MAHLER eliminates the need for repeated IfMetaD simulations on each individual mutant by reweighting the single WT IfMetaD trajectory with much faster inverse folding model inferences, directly addressing the aforementioned challenges. Detailed simulation parameters and CV generation protocols are provided in the Methods section.

Figure 1. Workflow of MAHLER and its validation systems.

Figure 1.

(a) Overview of the computational workflow described in this paper. The orange and purple color scheme is used consistently throughout the manuscript to distinguish between methods. An example is shown in panel (b), where the gray curve corresponds to an IfMetaD simulation of the wild-type (WT) sequence of 2CMR, serving as a one-time, antigen-specific setup. The purple curve is a mutant F54A reweighted with MAHLER from the WT trajectories, and the orange curve is derived from per-mutant IfMetaD using CVs learned from WT sampling. (c) Illustration of regular IfMetaD and MAHLER. A trajectory of molecular coordinates x0,⋯,xt is sampled from IfMetaD, and the metadynamics bias force along the trajectory is used to compute the acceleration factor α, which connects the simulation time to the real dissociation time. MAHLER takes this trajectory and a mutant sequence to compute a log-likelihood score with ProteinMPNN. These weights are integrated with the bias force to compute the acceleration factor for the mutants, yielding the mutant-specific dissociation time. (d) Side and top views of the two validation systems. Interface residues are marked with spheres.

Results

Metadynamics-Anchored Hybrid Learning for Engineering off-Rates (MAHLER)

While similar approaches have proven successful in small ligand-protein residence time predictions, they are not yet applicable to antibody design problems15. In antibody design, the combinatorial space of sequence hypotheses that must be tested is vast, demanding highly efficient approaches for rapid, high-throughput screening. To bridge this gap, we developed MAHLER to circumvent the prohibitive computational cost of repeated, per-mutant IfMetaD calculations by efficiently reweighting a single WT trajectory using sequence likelihoods derived from an inverse folding model (IFM). As derived in the Methods section 5 building on Ref. 17, Bayes’ theorem allows us to relate the conditional probabilities of WT and mutant sequences to a particular conformation, meaning that sampling the target mutant ensemble can be achieved by applying ProteinMPNN scores as statistical weights to the pre-computed WT trajectories (Equation (5)).

We validated MAHLER on three sets of point mutations across two AgAb systems (Figure 1d) to rigorously evaluate its predictive capabilities and establish its operational boundaries. The two systems selected feature antibodies neutralizing (a) the gp41 protein inner-core mimetic of human HIV-1 (pdb.00002cmr), and (b) the hen eggwhite lysozyme (HEL, pdb.00003hfm). For the gp41 system, both the experimental structure and kinetics measurements were reported in reference 25. The kinetics data were derived from an alanine scan that mutated 12 residues of the antibody to alanine to probe the importance of interfacial residues. In the HEL system, structures26 and kinetic measurements27-29 were reported separately. The kinetics data we selected comprise two sets of mutations where two important residues on the antigen were systematically mutated to different amino acids.

For each validation system, we computed or compiled three sets of data: (1) the experimental koff from the literature, (2) per-mutant IfMetaD calculations utilizing the transferable CVs learned by af2rave, and (3) the reweighted time derived from the WT IfMetaD calculation using MAHLER. By analyzing the correlation among these metrics, we systematically assess the fidelity of our reweighting scheme against brute force simulations and ground-truth experiments. In our brute force calculations, we learned the CV from conformational sampling of the WT AgAb complex, then transfer them to mutants. Since the CVs learned by af2rave used in these simulations are linear combinations of distances between Cα atoms of interface residues, they can be seamlessly transferred across mutants.

MAHLER predictions agree with per-mutant calculations

Our calculations show that the relative koff predicted by MAHLER strongly correlates with per-mutant calculations (Figure 2a-c), demonstrating its viability as an efficient replacement for expensive, repetitive IfMetaD calculations for antibody-antigen kinetics. This validates our core hypothesis: evaluating structure-conditioned sequence likelihoods from an IFM within our trajectory reweighting framework provides sufficient information to reweight a single sampling trajectory and accurately infer kinetic properties of unseen mutants. The Spearman coefficient rs (Table 1) quantifies this success, revealing robust correlations (~ 0.6) for the D101 mutants of 3HFM (Figure 2b) and 2CMR (Figure 2c), and a moderate but statistically meaningful rank-ordering capacity for the R21 mutants of 3HFM (Figure 2a). This level of accuracy in predicting relative unbinding kinetics of antibody-antigen systems is comparable with the state-of-the-art accuracy recently demonstrated in protein-small molecule absolute unbinding kinetics prediction.14 Notably, within the 3HFM dataset, the significant outliers (such as the R21E and D101R mutants) arise consistently from charge flipping (Figure 2a-b), a persistently difficult problem in other methods, including free energy perturbation (FEP)30,31.

Figure 2. Performance of predictive methods.

Figure 2.

Each panel plots the relative koff of a set of mutants, and a solid line for the best linear fit (without charge flipping), as well as a dashed line for y=x that is the perfect prediction. The error bars are from bootstrapping the individual samples 1000 times as detailed in Methods section. (a-c) compares MAHLER’s reweighting results with per-mutant IfMetaD calculation. (d-f) compares MAHLER predictions with experimental data.

Table 1. Correlations between different measurements.

In the three systems we computed the Spearman correlation (rs) and Pearson correlation (rp) between 3 different pairs of measurements from MAHLER, IfMetaD, and experiment.

Pair of measurements 3HFM (R21) 3HFM (D101) 2CMR (Ala-scan)
rs rp rs rp rs rp
MAHLER IfMetaD 0.381 0.253 0.600 0.573 0.643 0.547
MAHLER Experiment −0.299 −0.508 0.657 0.316 0.490 0.483
IfMetaD Experiment 0.527 0.368 0.086 0.220 0.685 0.629

Benchmarking MAHLER against experimental kinetics identifies sampling limits

However, when benchmarked directly against experiments, MAHLER exhibits system-dependent levels of agreement (Figure 2d-f, Table 1). For 2CMR, the correlation achieves screening-grade accuracy capable of informing antibody design, with both rs and Pearson correlation rp consistently high at ~ 0.5. In contrast, performance on the 3HFM system drops significantly. The model fails to capture the trend for R21 mutants, while for D101 mutants, it successfully predicts the ranking (rs) but struggles to reproduce the numerical correlation (rp).

Fundamentally, MAHLER integrates two primary inputs (Figure 3a): sampling trajectories from IfMetaD and scoring weights from the IFM. For predictions to achieve fidelity with experimental data, both components must be highly reliable. Supporting this requirement, evaluation of the two 3HFM validation sets reveals that where MAHLER’s accuracy degrades, the underlying baseline per-mutant IfMetaD calculations similarly exhibit a poor correlation with experimental benchmarks (Figure 3c-d). Given the robust correlation observed between MAHLER and the reference per-mutant calculations (Figure 2a-c), the IFM weights are clearly excluded as the primary accuracy bottleneck, allowing us to turn our focus entirely to the underlying sampling quality. MAHLER succeeds on the antigen-antibody interaction in the 2CMR system, which is predominantly hydrophobic, while struggling on the 3HFM interface, which features more than ten pairs of polar interactions. This chemical complexity makes it very difficult to fully describe the dissociation of the 3HFM complex using only two CVs. The dissociation pathway of 3HFM likely involves a combinatorially large number of intermediate states characterized by different states of hydrogen bonds and other interactions forming/breaking. Consequently, these states can be difficult to describe adequately with low-dimensional CVs, a limitation signified by the weak correlation between the baseline IfMetaD calculations and experiments.

Figure 3. Dissecting the assumptions of MAHLER and its accuracy.

Figure 3.

(a) MAHLER’s accuracy relies on two key factors: the quality of the underlying sampling of IfMetaD and the accuracy of the Inverse Folding Models. (b) The average IFM score from an unbiased trajectory from the experimental structure of 2CMR, plotted against the experimental koff value. Error bar is from mixing three replicas of sampling and bootstrapping 1000 times with replacement. (c-e) Comparing MAHLER’s prediction directly with experimental measurements in three validation systems. Solid line is the linear fit and the dashed line is y=x which is the perfect agreement.

To definitively prove that capturing the explicit physical unbinding trajectory is what drives this predictive capacity, rather than simple static sequence matching, we scored unbiased MD simulations initiated from the experimental 2CMR complex structure. Without observing the dissociation process, the mean ProteinMPNN scores alone fail entirely to correlate with the experimental koff (Figure 3b). This confirms that IfMetaD’s conformational sampling of the dissociation pathway is a strict prerequisite for predictive success. This failure mirrors recent findings in protein folding, where unbiased MD was similarly shown to yield no benefit for IFM-based stability predictions32. Ultimately, these results demonstrate that mere equilibrium fluctuations are insufficient and samples of the physical dissociation process is indispensable for accurate kinetic predictions.

However, this requirement does not necessitate flawless sampling to achieve engineering utility. Instead, MAHLER provides a highly practical and scalable compromise by utilizing af2rave to rapidly extract transferable CVs from bound-state data. Because MAHLER’s reweighting demonstrates system-independent agreement with explicit per-mutant calculations (Figure 2a-c), the framework establishes a self-consistent method for validation. In a prospective library screen, one can cross-check the high-throughput reweighted profiles by running explicit IfMetaD simulations on a small subset of variants. If the explicit simulation times align with the reweighted predictions, it provides immediate statistical confirmation that the underlying af2rave CV has adequately resolved the slow degrees of freedom governing that specific sequence space. Conversely, whenever highly disruptive changes such as localized charge-flipping mutations introduce structural uncertainty, this targeted physical validation can be selectively deployed as an internal diagnostic check to safeguard the accuracy of the screen.

Performance of reweighting is hundreds of times faster than per-mutant IfMetaD

MAHLER allows us to achieve breakthrough efficiency in sequence screening. Specifically for the 2CMR system, this reweighting method is 760 times cheaper for each mutant than repeated IfMetaD simulations. Such a drastic reduction in computational cost makes it especially useful for prospective designs. On average, a data point from trajectory reweighting costs only 0.064 GPU hours on an NVIDIA A100, whereas the explicit calculations with IfMetaD take 48.7 GPU hours each. After an initial setup, the reweighting calculation becomes around 20 times faster in wall clock time than wet-lab experiments (96-minute half-life for 2CMR WT25). At the scale of a library screen of ~ 105 sequences, the time saving is around 4 × 106 GPU hours and millions of dollars (Figure 4).

Figure 4. Computation cost of MAHLER compared with brute-force screening.

Figure 4.

The cost is estimated on NVIDIA A100 cost of $3.67/hour at Google Cloud Platform a2-highgpu-1g.

Discussion

Predicting kinetics is intrinsically a formidable challenge, yet it remains extremely important for rational antibody design. Inferring kinetic rates from a static experimental structure is analogous to reconstructing an entire temporal trajectory from a single static observation. To address this gap, we introduce MAHLER, a framework that combines AF2RAVE for CV learning with a reweighting scheme utilizing protein IFMs. We demonstrate that an IFM coupled with enhanced sampling can serve as a highly efficient replacement for computationally expensive, per-mutant IfMetaD calculations. A core contribution of this work is demonstrating that rigorous enhanced sampling is a prerequisite for predicting kinetics, even when deploying sophisticated machine learning models trained on structural data, as scoring static equilibrium fluctuations yields no correlation with experimental koff (Figure 3b). Furthermore, the baseline sampling quality dictates whether MAHLER achieves quantitative agreement with experimental benchmarks, as demonstrated by the screening-grade rank-ordering achieved for 2CMR (rs∼0.5) compared to the challenges encountered at the polar 3HFM interface.

To understand the system-dependent performance of MAHLER, we need to examine the contrasting biochemical profiles of our validation targets. The framework delivers screening-grade accuracy for the 2CMR system, where the experimental alanine scan probes a predominantly rigid, hydrophobic interface. In contrast, the 3HFM interface is governed by a cooperative network of over ten polar interactions, systematically mutated to introduce complex hydrogen-bonding variations and charge-flipping events. Conceptually, trajectory reweighting requires that the structural conformations explored by the wild-type ensemble remain highly representative of those preferred by the mutants. Because the hydrophobic substitutions in 2CMR maintain structural homology with the wild-type unbinding pathway, the reference trajectory provides an excellent foundation for kinetic inference. However, disrupting the intricate polar networks or flipping localized charges in 3HFM forces the mutant complexes to seek entirely alternative dissociation pathways, visiting transition states and intermediates that are fundamentally absent from the wild-type simulation. Crucially, the strong agreement observed between MAHLER and explicit per-mutant IfMetaD calculations across both systems confirms that the inverse folding model’s scoring capacity is not the limiting factor. Instead, these results define a clear physical boundary for the protocol: reweighting is highly valid provided the engineered mutations optimize or perturb the interface without completely re-routing the physical mechanism of dissociation.

Another fundamental source of error stems from the IFMs themselves, which are adept at extrapolating in structural space but are not guaranteed to work reliably in sequence space. This behavior is primarily dictated by their training paradigm. Models like ProteinMPNN take geometric features such as pairwise distances of backbone atoms as inputs, and added structural noise during training to capture stochastic local coordinate variations.24 However, because they are trained on scarce, individual PDB structures mapped to specific sequences, they cannot see the underlying evolutionary or homology context. Consequently, they can overlook sequence-space dependencies when evaluating engineered variants, suggesting that integrating a evolutionary prior from language model could help with this training data scarcity and significantly improve their prediction for design tasks. Despite this limitation, the correlation we observed between MAHLER and IfMetaD calculations is on par with thermodynamic predictors widely deployed in industry, establishing what is considered practically usable for prospective engineering workflows. For context, state-of-the-art molecular docking methods typically yield a Spearman r of approximately 0.6 when compared to experimental binding free energies33. Similarly, recent IFM-based binding free energy predictors32 generally report correlations between 0.5 and 0.7 depending on the system; thus, the alignment of our kinetic framework with these benchmarks underscores that we are likely reaching the current accuracy limit inherent to zero-shot IFMs.

To contextualize this dependency, an analogy can be drawn to the development of free energy perturbation (FEP) methods. While Zwanzig proposed the original theoretical framework for FEP34 in 1954, it did not become a practical tool until computational hardware advanced11 and force field development35-37 reached a critical threshold of accuracy. Today, relative FEP methods are reaching a practical 1-2 kcal/mol accuracy, and absolute FEP methods are catching up quickly38, 39. Just as FEP required highly calibrated physical force fields and faster computation to become mainstream, the MAHLER framework relies on the continued maturation of IFMs to serve as structural foundation models or “force fields”, and continued development in data-driven CV discovery.

In summary, the MAHLER framework establishes a scalable hybrid paradigm that successfully overcomes the throughput barriers historically associated with predicting macromolecular dissociation kinetics. By combining IFM-based trajectory reweighting with physical sampling, we achieve relative residence-time predictions with the necessary accuracy for high-throughput screening at a manageable computational cost. This breakthrough unlocks the ability to explore vast mutant libraries previously unimaginable with wet-lab experiments or explicit physics-based simulations alone. Consequently, our work significantly advances the scope of inverse-folding reweighting protocols17 and demonstrates that kinetics-aware antibody design is no longer just a theoretical goal, but a scalable computational reality. Ultimately, our results provide the practical framework needed to transition kinetic optimization from a niche challenge into a standard pillar of prospective immunotherapy design.

Methods

1. Interface residue distances and interface fraction of native contacts

Interface residue distances (dIR) and interface fraction of native contacts Q-value can then be defined with the experimental structure. Native contacts were defined as any heavy atom pairs across the Ag-Ab interface that are closer than 5 Å. The fraction of native contacts was defined as in Ref. 40 to be a continuous function that maps a structure to a value between [0, 1].

Q(X)=1X∑i∈Ab∑j∈Ag11+exp[β(rij(X)−λrij0)] (1)

where β=5Å−1 and λ=1.8. The reference distance rij0 is taken from the experimental structure. Interface residues are defined as those residues with at least one atom involved in native contacts (Figure S5). The dIR is calculated as the distance between the center of mass (COM) of Cα atoms of Ag interface residues and that of Ab interface residues.

2. Structural hypothesis generation with AlphaFold-Multimer

The AgAb complex structures were sampled with AF-M 2.3 as implemented in ColabFold 1.5.5, together with its MMseq2 server.41, 42 We used AF-M for its more commercially permissive license and easily tunable MSA depth to control diversity versus quality. The generated structures were input into the af2rave protocol to learn a reaction coordinate.

A common way to introduce diversity into AlphaFold predictions is to limit the MSA information available to the model43. However, we observed that when reduced MSA was used for AF-M, the quality of the structures was significantly compromised. Often, the individual chains were still well-folded, but we observed unphysical clashes between chains. This problem was less common in single chain predictions. Introducing templates significantly reduced structural diversity but improved the quality. Balancing all these factors, we applied a three-step strategy to maintain both diversity and quality.

First, we supplied a template, but for the antigen only. Antigens in resolved experimental structures often only contain fragments interacting with the antibody. Providing a template for the antigen significantly improved the quality of the folded antigen and reduced clashes. However, if a template for the antibody was also provided, diversity in loop structures and binding epitopes disappeared.

Second, we increased the number of recycles to five and saved all intermediate structures after each recycle. Each recycle of AF-M Evoformer will update the pair representation of the protein, sometimes changing the relative position of chains44. This strategy allowed us to extract more information from the inference process.

Third, we applied a steric clash filter to filter out structures with dangerously close heavy atoms (closer than 1.0 Å). This served as the last guard against unphysical structures.

For 2CMR, for example, our protocol eventually yielded 11450 structures from four MSA depths (8:16, 16:32, 32:64, and 512:5120) with 128 seeds for each of the five AF-M models. This setup performed 128 × 5(models) × 4(MSA depths) = 2560 inferences, but with intermediate structures saved for each recycle, we more than quadrupled the number of outputs to 11450. Finally, 4958 of them (43.3%) passed the steric clash filter. The system 3HFM yielded a similar 14919 structures, and only 1907 (12.8%) passed the steric clash filter.

3. Infrequent Metadynamics

Infrequent metadynamics (IfMetaD) builds upon the standard metadynamics (MetaD) framework to estimate residence times12. MetaD simulations drive systems out of local minima by depositing a repulsive, history-dependent bias potential, allowing rare events such as AgAb dissociation to be sampled within accessible simulation timescales45, 46. The core premise of IfMetaD is that if the bias deposition is slow enough to avoid corrupting the transition state region, the acceleration factor α (defined as the ratio of the physical residence time τ to the simulation time τM) can be calculated with a simple relation:

α=ττM≈Z0ZM=〈eβV(s(x),t)〉M, (2)

where Z0 and ZM are the partition functions of the reactant in the unbiased and metadynamics ensembles, respectively, and V(s(x),t) is the time-dependent bias acting on the collective variables s(x).

In practice, the physical clock time is recovered by discrete sums over the metadynamics trajectory steps:

τ=∑i∈MetaDeβV(s(xi),ti)Δti, (3)

where {xi} represents trajectory frames saved at interval Δti.

Because AgAb dissociation is a stochastic process governed by Poisson kinetics, the residence times are random variables that follow an exponential distribution.47 Therefore, IfMetaD is performed using multiple independent replicas. The resulting distribution of dissociation times is then fit to an exponential cumulative distribution function (CDF) (Figure 1b) to yield a robust statistical estimate of koff.

In our calculations, we started from a structure equilibrated in the AlphaFold2-RAVE process, and used the same simulation protocol as described in the next section.

4. AlphaFold2-RAVE

Successful IfMetaD relies on a well-chosen set of collective variables (CVs). While the definition of an “ideal” CV varies depending on whether one aims to capture the reaction mechanism or the transition state12, 48, 49, IfMetaD imposes specific requirements based on Equation (2). This equation links the theoretical acceleration to the partition function of the reactant ensemble only50,51. This implies that the primary contributor to the acceleration factor is the sampling within the reactant basin15, effectively removing the need for detailed knowledge of the transition state. Consequently, a satisfactory CV must facilitate thorough sampling of the bound AgAb complex. Variables with significant degeneracy, such as RMSD or center-of-mass distances, are therefore unsuitable as they fail to resolve the basin’s distinct metastable states (Supplementary Information section A.1).

Generated structures from the previous step were input into the feature selection module of the af2rave package23. The algorithm first selected the 200 interatomic distances with the highest coefficient of variation from the defined key atoms. Key atoms included Cα of the interface residues, but may extend to other atoms if prior knowledge is available about the specific system (Supplementary Information section A.2 and Ref. 23). Principal component analysis (PCA) reduced the dimensionality of these 200 distances to 20 components, after which K-medoids clustering identified 15 representative structures. Seven structures with Q<0.85 were discarded. The remaining eight structures, plus the experimental crystal structure, were each simulated for 50 ns, yielding a cumulative sampling time of 0.45 μs. During these simulations, the 200 selected pairwise distances were recorded. The AMINO (Automatic Mutual Information Noise Omission) module52 then analyzed these time series to remove redundancy, narrowing the selection to ~ 20 distinct distances (Figure S5). Finally, the SPIB module (using Δt = 0.1 ns and default parameters) processed these inputs to learn a 2D latent space. The resulting collective variables (CVs) were linear combinations of these interatomic distances19.

Metadynamics simulations were performed in this latent space using GROMACS 202353 patched with PLUMED 2.954. A Gaussian bias with a height of 0.3 kcal/mol and a width of 0.05 was deposited every 10 ps on the two latent variables, with a bias factor of γ = 15. Simulations were monitored via dIR and Q (though not biased) and were terminated when the dissociation criteria (dIR greater than initial value plus 3 Å and Q<0.5) were both met. The acceleration factor from Eq. 2 was calculated on the fly by PLUMED. The final dissociation time was computed as the product of the acceleration factor and the simulation time. Trajectories were saved to disk every 10 ps.

The resulting two CVs encode essential information about the dissociation process through extrapolation. Crucially, the latent space was learned using MD data from bound structures only (Q>0.85). To test how well this space extrapolates to the dissociation process, we ran 30 exploratory well-tempered metadynamics (WTMetaD) simulations by aggressively biasing the interface residue distance (dIR) and Q (defined in Methods). While these ad hoc CVs are inappropriate for statistical sampling (Supplementary Information section A.1), they quickly drive the system to dissociate. When these dissociation trajectories were projected onto our learned latent space, the two latent variables correlated smoothly with the Q-value and dIR (Figure S4) of the sampled structures.

5. Reweighting and off-rate calculation

The derivation of the IFM reweighting framework begins with Bayes’ theorem, which allows us to relate the conditional probabilities of a wild-type (WT) sequence S and a mutant sequence S′ for a particular conformation x:

P(x∣S)P(S)=P(S∣x)P(x) (4a)
P(x∣S′)P(S′)=P(S′∣x)P(x) (4b)

Dividing Equation (4a) by Equation (4b) and rearranging yields the master reweighting relationship:

P(x∣S′)=P(x∣S)⋅P(S′∣x)P(S∣x)︸from IFM⋅P(S)P(S′)︸≈1,

Consequently, sampling from the target mutant ensemble X′∼P(x∣S′) can be achieved by reweighting samples from the reference WT distribution X∼P(x∣S), for which simulations have already been performed.

This theoretical basis for the reweighting was first derived by Brotzakis et al. in Ref. 17. However, our protocol departs from their approach in two key respects. First, in their work, they biased the RMSD of the whole system compared to the experimental structure as the only CV. As described before and in Supplementary Information section A.1, this CV does not help distinguish different metastable states and is not the best choice of CV when sampling dissociation. In our work, we biased a machine-learned two-dimensional CV from af2rave for better sampling.

Second, we approximate the ratio of sequence priors P(S)∕P(S′) as unity32, instead of using a protein language model. We justify this approximation with two main arguments. First, while previous studies have modeled this term using protein language models (pLMs)17, 32, pLMs are trained on natural evolutionary databases and may not accurately reflect the statistical trends of artificial protein design, where sequences often deviate significantly from evolutionary manifolds55. From a strictly statistical perspective, in the absence of evolutionary constraints, there is no a priori reason to favor one sequence over another. Second, recent work by Frellsen et al.32 analyzing the thermodynamic interpretation of inverse folding models found minimal difference in correlation with experimental data whether the prior term was included or not. Given these factors, we opted for the parsimonious approach of assuming a uniform prior, thereby avoiding unnecessary model complexity.

The reweighting factor in Equation (5) relies on the likelihood of a sequence conditioned on a specific structure, P(S∣x), which is directly estimated using scores from an IFM, where we adopted ProteinMPNN24. In practice, each trajectory of the WT simulation is independently reweighted with the mutant sequence to predict a new dissociation time. Combining this structural weight with the expression of the acceleration factor in Eq. 2, we get the expression for reweighted time:

τ′=∑i∈MetaDP(S′∣xi)P(S∣xi)eβV(s(xi),ti)Δti, (6)

where i iterates over all saved MetaD trajectories.

We employed ProteinMPNN24 to estimate the negative log-likelihood −logP(S∣x). We used the pre-trained model with a context length of 48 amino acids and a training noise level of 0.2 (v_48_020). In this context, S corresponds to the wild-type (WT) sequence, and S′ corresponds to the specific point mutant under study.

Once dissociation times were obtained for each replica, either directly from IfMetaD or via reweighting, we constructed the empirical CDF of the dissociation events over time (Figure 1b). This distribution was fit to a theoretical exponential CDF, P(t)=1−e−t∕τ, to extract the characteristic residence time τ. The dissociation rate was then calculated as koff=1∕τ.

The error bars in all main text figures represent the standard deviation obtained via bootstrapping. We performed resampling with replacement on the dissociation events to generate 1000 bootstrap samples (each containing 300 events). A new CDF was computed and fit for each sample to determine the standard deviation of the resulting τ distribution. The error bars in Figure 3b correspond to the standard error of the mean across the three independent MD replicas.

Supplementary Material

Supplement 1

Acknowledgements

P.T. was supported by the National Institute of General Medical Sciences of the National Institutes of Health under Award Number R35GM142719. D.T. was supported by SandboxAQ. P.T. is an investigator at the University of Maryland-Institute for Health Computing, which is supported by funding from Montgomery County, Maryland, and The University of Maryland Strategic Partnership: MPowering the State, a formal collaboration between the University of Maryland, College Park, and the University of Maryland, Baltimore. We thank UMD HPC Zaratan and NSF ACCESS (project CHE180027P) for computational resources. The authors thank Akashnathan Aranganathan, Dr. Shams Mehdi, Suemin Lee, Dr. Xinyu Gu, and Dr. Yunrui Qiu for helpful discussions.

Footnotes

Code Availability

An open source package for our protocol is available at github.com/tiwarylab/mahler. The data from the IfMetaD was deposited at doi.org/10.5281/zenodo.17886490 and a demonstration notebook of the reweighting code is available at https://colab.research.google.com/github/tiwarylab/mahler/blob/main/notebook/MAHLER_Reweighting.ipynb. This notebook downloads the trajectory and structure from Zenodo and calls the MAHLER package to reweight it. It takes around 50 minutes to run on a NVIDIA A100 runtime and reproduces Figure 2f in the main text.

Conflict of Interests

The authors declare no conflict of interests.

References

  • 1.Bennett N. R. et al. Atomically accurate de novo design of antibodies with RFdiffusion. bioRxiv 10.1101/2024.03.14.585103, DOI: 10.1101/2024.03.14.585103 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Erasmus M. F. et al. AIntibody: An experimentally validated in silico antibody discovery design challenge. Nat. Biotechnol. 42, 1637–1642, DOI: 10.1038/s41587-024-02469-9 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Chai Discovery Team et al. Zero-shot antibody design in a 24-well plate. bioRxiv 10.1101/2025.07.05.663018, DOI: 10.1101/2025.07.05.663018 (2025). [DOI] [Google Scholar]
  • 4.Knockenhauer K. E. & Copeland R. A. The importance of binding kinetics and drug-target residence time in pharmacology. Br J Pharmacol 181, 4103–4116, DOI: 10.1111/bph.16104 (2024). [DOI] [PubMed] [Google Scholar]
  • 5.Lodge J. et al. Quantifying antibody binding: Techniques and therapeutic implications. mAbs 17, 2459795, DOI: 10.1080/19420862.2025.2459795 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Batra S. K., Jain M., Wittel U. A., Chauhan S. C. & Colcher D. Pharmacokinetics and biodistribution of genetically engineered antibodies. Curr. Opin. Biotechnol. 13, 603–608, DOI: 10.1016/S0958-1669(02)00352-X (2002). [DOI] [PubMed] [Google Scholar]
  • 7.Dinh T. L., Ngan K. C., Shoemaker C. B. & Walt D. R. Using Antigen–antibody Binding Kinetic Parameters to Understand Single-Molecule Array Immunoassay Performance. Anal. Chem. 88, 11335–11339, DOI: 10.1021/acs.analchem.6b03192 (2016). [DOI] [PubMed] [Google Scholar]
  • 8.Phillip Y., Kiss V. & Schreiber G. Protein-binding dynamics imaged in a living cell. Proc. Natl. Acad. Sci. U.S.A. 109, 1461–1466, DOI: 10.1073/pnas.1112171109 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Mathur P., Fomitcheva Khartchenko A., Stavrakis S., Kaigala G. V. & deMello A. J. Quantifying Antibody Binding Kinetics on Fixed Cells and Tissues via Fluorescence Lifetime Imaging. Anal. Chem. 94, 10967–10975, DOI: 10.1021/acs.analchem.2c01076 (2022). [DOI] [PubMed] [Google Scholar]
  • 10.Buel G. R. & Walters K. J. Can AlphaFold2 predict the impact of missense mutations on structure? Nat Struct Mol Biol 29, 1–2, DOI: 10.1038/s41594-021-00714-2 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Shaw D. E. et al. Anton 3: Twenty microseconds of molecular dynamics simulation before lunch. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC ’21, 1–11, DOI: 10.1145/3458817.3487397 (Association for Computing Machinery, New York, NY, USA, 2021). [DOI] [Google Scholar]
  • 12.Tiwary P. & Parrinello M. From Metadynamics to Dynamics. Phys. Rev. Lett. 111, 230602, DOI: 10.1103/PhysRevLett.111.230602 (2013). [DOI] [PubMed] [Google Scholar]
  • 13.Ray D. & Parrinello M. Kinetics from Metadynamics: Principles, Applications, and Outlook. J. Chem. Theory Comput. 19, 5649–5670, DOI: 10.1021/acs.jctc.3c00660 (2023). [DOI] [PubMed] [Google Scholar]
  • 14.Smith Z. et al. Toward Automated Physics-Based Absolute Drug Residence Time Predictions. J. Chem. Inf. Model. DOI: 10.1021/acs.jcim.5c01832 (2025). [DOI] [PubMed] [Google Scholar]
  • 15.Lee S., Wang D., Seeliger M. A. & Tiwary P. Calculating Protein–Ligand Residence Times through State Predictive Information Bottleneck Based Enhanced Sampling. J. Chem. Theory Comput. 20, 6341–6349, DOI: 10.1021/acs.jctc.4c00503 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Klyukin K. & Alexandrov V. Kinetics of pH-dependent interactions between PD-1 and PD-L1 immune checkpoint proteins from molecular dynamics. Proteins: Struct. Funct. Bioinforma. 88, 1162–1168, DOI: 10.1002/prot.25885 (2020). [DOI] [PubMed] [Google Scholar]
  • 17.Brotzakis Z. F., Vendruscolo M. & Skretas G. Design of Protein Sequences with Precisely Tuned Kinetic Properties. bioRxiv 2025.02.13.638027, DOI: 10.1101/2025.02.13.638027 (2025). [DOI] [Google Scholar]
  • 18.Adury V. S. S., Tiwary P., Gu X. & Shekhar M. Early-Enrichment Hit Discovery via Reversible-Work c(t) Estimation in Metadynamics (CTMD), DOI: 10.64898/2026.02.05.703972 (2026). 2026.02.05.703972. [DOI] [Google Scholar]
  • 19.Wang D. & Tiwary P. State predictive information bottleneck. J. Chem. Phys. 154, 134111, DOI: 10.1063/5.0038198 (2021). [DOI] [PubMed] [Google Scholar]
  • 20.Mardt A., Pasquali L., Wu H. & Noé F. VAMPnets for deep learning of molecular kinetics. Nat. Commun. 9, 5, DOI: 10.1038/s41467-017-02388-1 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Brotzakis Z. F., Limongelli V. & Parrinello M. Accelerating the Calculation of Protein–Ligand Binding Free Energy and Residence Times Using Dynamically Optimized Collective Variables. J. Chem. Theory Comput. 15, 743–750, DOI: 10.1021/acs.jctc.8b00934 (2019). [DOI] [PubMed] [Google Scholar]
  • 22.Vani B. P., Aranganathan A., Wang D. & Tiwary P. AlphaFold2-RAVE: From Sequence to Boltzmann Ranking. J. Chem. Theory Comput. 19, 4351–4354, DOI: 10.1021/acs.jctc.3c00290 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Teng D., Meraz V. J., Aranganathan A., Gu X. & Tiwary P. Af2rave: Protein ensemble generation with physics-based sampling. Digit. Discov. 4, 2052–2061, DOI: 10.1039/D5DD00201J (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Dauparas J. et al. Robust deep learning–based protein sequence design using ProteinMPNN. Science 378, 49–56, DOI: 10.1126/science.add2187 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Luftig M. A. et al. Structural basis for HIV-1 neutralization by a gp41 fusion intermediate–directed antibody. Nat Struct Mol Biol 13, 740–747, DOI: 10.1038/nsmb1127 (2006). [DOI] [PubMed] [Google Scholar]
  • 26.Padlan E. A. et al. Structure of an antibody-antigen complex: Crystal structure of the HyHEL-10 Fab-lysozyme complex. Proc. Natl. Acad. Sci. 86, 5938–5942, DOI: 10.1073/pnas.86.15.5938 (1989). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Rajpal A., Taylor M. G. & Kirsch J. F. Quantitative evaluation of the chicken lysozyme epitope in the HyHEL-10 fab complex: Free energies and kinetics. Protein Sci. 7, 1868–1874, DOI: 10.1002/pro.5560070903 (1998). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Taylor M. G., Kirsch J. F. & Rajpal A. Kinetic epitope mapping of the chicken lysozyme.HyHEL-10 fab complex: Delineation of docking trajectories. Protein Sci. 7, 1857–1867, DOI: 10.1002/pro.5560070902 (1998). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Pons J., Rajpal A. & Kirsch J. F. Energetic analysis of an antigen/antibody interface: Alanine scanning mutagenesis and double mutant cycles on the hyhel-10/lysozyme interaction. Protein Sci. 8, 958–968, DOI: 10.1110/ps.8.5.958 (1999). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Sampson J. M. et al. Robust Prediction of Relative Binding Energies for Protein–Protein Complex Mutations Using Free Energy Perturbation Calculations. J. Mol. Biol. 436, 168640, DOI: 10.1016/j.jmb.2024.168640 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Clark A. J. et al. Relative Binding Affinity Prediction of Charge-Changing Sequence Mutations with FEP in Protein–Protein Interfaces. J. Mol. Biol. 431, 1481–1493, DOI: 10.1016/j.jmb.2019.02.003 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Frellsen J. et al. Zero-shot protein stability prediction by inverse folding models: A free energy interpretation. arXiv 10.48550/arXiv.2506.05596, DOI: 10.48550/arXiv.2506.05596 (2025). 2506.05596. [DOI] [Google Scholar]
  • 33.Yang C. & Zhang Y. Lin F9: A Linear Empirical Scoring Function for Protein–Ligand Docking. J. Chem. Inf. Model. 61, 4630–4644, DOI: 10.1021/acs.jcim.1c00737 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Zwanzig R. W. High-Temperature Equation of State by a Perturbation Method. I. Nonpolar Gases. J. Chem. Phys. 22, 1420–1426, DOI: 10.1063/1.1740409 (1954). [DOI] [Google Scholar]
  • 35.Brooks B. R. et al. CHARMM: A program for macromolecular energy, minimization, and dynamics calculations. J. Comput. Chem. 4, 187–217, DOI: 10.1002/jcc.540040211 (1983). [DOI] [Google Scholar]
  • 36.Jorgensen W. L., Chandrasekhar J., Madura J. D., Impey R. W. & Klein M. L. Comparison of simple potential functions for simulating liquid water. J. Chem. Phys. 79, 926–935, DOI: 10.1063/1.445869 (1983). [DOI] [Google Scholar]
  • 37.Weiner S. J. et al. A new force field for molecular mechanical simulation of nucleic acids and proteins. J. Am. Chem. Soc. 106, 765–784, DOI: 10.1021/ja00315a051 (1984). [DOI] [Google Scholar]
  • 38.Wang L. et al. Accurate and Reliable Prediction of Relative Ligand Binding Potency in Prospective Drug Discovery by Way of a Modern Free-Energy Calculation Protocol and Force Field. J. Am. Chem. Soc. 137, 2695–2703, DOI: 10.1021/ja512751q (2015). [DOI] [PubMed] [Google Scholar]
  • 39.Abel R., Wang L., Harder E. D., Berne B. J. & Friesner R. A. Advancing Drug Discovery through Enhanced Free Energy Calculations. Acc. Chem. Res. 50, 1625–1632, DOI: 10.1021/acs.accounts.7b00083 (2017). [DOI] [PubMed] [Google Scholar]
  • 40.Best R. B., Hummer G. & Eaton W. A. Native contacts determine protein folding mechanisms in atomistic simulations. Proc. Natl. Acad. Sci. U.S.A. 110, 17874–17879, DOI: 10.1073/pnas.1311599110 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Evans R. et al. Protein complex prediction with AlphaFold-Multimer. bioRxiv 2021.10.04.463034, DOI: 10.1101/2021.10.04.463034 (2022). [DOI] [Google Scholar]
  • 42.Mirdita M. et al. ColabFold: Making protein folding accessible to all. Nat. Methods 19, 679–682, DOI: 10.1038/s41592-022-01488-1 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.del Alamo D., Sala D., Mchaourab H. S. & Meiler J. Sampling alternative conformational states of transporters and receptors with AlphaFold2. eLife 11, e75751, DOI: 10.7554/eLife.75751 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Yin R. & Pierce B. G. Evaluation of AlphaFold antibody–antigen modeling with implications for improving predictive accuracy. Protein Sci. 33, e4865, DOI: 10.1002/pro.4865 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Barducci A., Bussi G. & Parrinello M. Well-Tempered Metadynamics: A Smoothly Converging and Tunable Free-Energy Method. Phys. Rev. Lett. 100, 020603, DOI: 10.1103/PhysRevLett.100.020603 (2008). 0803.3861. [DOI] [PubMed] [Google Scholar]
  • 46.Dama J. F., Parrinello M. & Voth G. A. Well-Tempered Metadynamics Converges Asymptotically. Phys. Rev. Lett. 112, 240602, DOI: 10.1103/PhysRevLett.112.240602 (2014). [DOI] [PubMed] [Google Scholar]
  • 47.Salvalaglio M., Tiwary P. & Parrinello M. Assessing the Reliability of the Dynamics Reconstructed from Metadynamics. J. Chem. Theory Comput. 10, 1420–1425, DOI: 10.1021/ct500040r (2014). [DOI] [PubMed] [Google Scholar]
  • 48.Bolhuis P. G., Dellago C. & Chandler D. Reaction coordinates of biomolecular isomerization. Proc. Natl. Acad. Sci. U.S.A. 97, 5877–5882, DOI: 10.1073/pnas.100127697 (2000). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Fullenkamp C. R. et al. Machine Learning-Augmented Molecular Dynamics Simulations (MD) Reveal Insights Into the Disconnect Between Affinity and Activation of ZTP Riboswitch Ligands. Angew. Chem. Int. Ed. 64, e202505971, DOI: 10.1002/anie.202505971 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Voter A. F. A method for accelerating the molecular dynamics simulation of infrequent events. J. Chem. Phys. 106, 4665–4677, DOI: 10.1063/1.473503 (1997). [DOI] [Google Scholar]
  • 51.Grubmüller H. Predicting slow structural transitions in macromolecular systems: Conformational flooding. Phys. Rev. E 52, 2893–2906, DOI: 10.1103/PhysRevE.52.2893 (1995). [DOI] [PubMed] [Google Scholar]
  • 52.Ravindra P., Smith Z. & Tiwary P. Automatic mutual information noise omission (AMINO): Generating order parameters for molecular systems. Mol. Syst. Des. Eng. 5, 339–348, DOI: 10.1039/C9ME00115H (2020). [DOI] [Google Scholar]
  • 53.Abraham M. J. et al. GROMACS: High performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX 1–2, 19–25, DOI: 10.1016/j.softx.2015.06.001 (2015). [DOI] [Google Scholar]
  • 54.Bonomi M. et al. Promoting transparency and reproducibility in enhanced molecular simulations. Nat. Methods 16, 670–673, DOI: 10.1038/s41592-019-0506-8 (2019). [DOI] [PubMed] [Google Scholar]
  • 55.Huang P.-S., Boyken S. E. & Baker D. The coming of age of de novo protein design. Nature 537, 320–327, DOI: 10.1038/nature19946 (2016). [DOI] [PubMed] [Google Scholar]
  • 56.Noé F. & Clementi C. Collective variables for the study of long-time kinetics from molecular trajectories: Theory and methods. Curr. Opin. Struct. Biol. 43, 141–147, DOI: 10.1016/j.sbi.2017.02.006 (2017). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1

Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES