WorksAgricultural and Biological Sciences
GABIF: An Adaptive Guided Graph Denoising Framework for Antibody Conditional Inverse Folding
Abstract
Antibodies play a central role in the human immune system, and their design is critical for vaccine development, therapeutic intervention, and improving human longevity. However, the vast combinatorial search space of antibodies poses a fundamental challenge for de novo discovery. Recent advances in deep learning, particularly denoising diffusion models, have demonstrated strong potential in protein inverse folding. Nevertheless, existing approaches are largely constrained to learning from natural antibody repertoires, thereby generating sequences that closely resemble natural antibodies. Such similarity, however, does not necessarily translate into improved functional performance in downstream applications. In this work, we develop a novel generative protein design model that enables the generation and optimization of antibody sequences tailored to specific downstream tasks and target metrics. Besides training on given an antibody dataset, we guide the generative model by an antibody-antigen binding affinity predictor for conditional discrete diffusion. The model is pre-trained on a given antibody dataset. Meanwhile, an antibody-antigen binding affinity predictor is incorporated as a conditional signal in a discrete diffusion framework, where a regressor serves as the conditional probability to guide the learning of the amino acid probability distribution of sequences under the objective of affinity optimization. In silico experiments demonstrate that our antibody design model achieves performance comparable to state-of-the-art approaches, while the proposed regressor effectively improves binding affinity, as validated by an independent external predictor. Furthermore, our results highlight that the combination of finetuning and supervised guidance provides a powerful paradigm for adapting pretrained models to downstream tasks.
Introduction
Protein inverse folding aims to generate amino acid (AA) sequences that are compatible with a target tertiary structure. As protein function is fundamentally determined by structure, inverse folding has become a core component of modern computational protein design pipelines. In recent years, this paradigm has attracted significant attention in therapeutic antibody engineering, where the ability to generate functional antibody sequences from predefined structural scaffolds has the potential to substantially accelerate drug discovery and biomedical development. Rationally designed antibodies play a central role in a broad range of applications, including targeted cancer therapy, immune checkpoint modulation, antiviral therapeutics, and precision diagnostics. However, compared with general protein design, antibody design imposes substantially stricter requirements on sequence generation due to the highly specific biochemical, structural, and functional constraints associated with antigen recognition and binding.
Despite rapid progress in computational biology and deep learning, antibody design remains fundamentally challenging because of the enormous combinatorial search space of protein sequences. Traditional antibody engineering pipelines often rely heavily on expert knowledge and involve complex procedures such as antibody–antigen co-modeling, molecular dynamics simulations, and complementary-determining region (CDR) optimization. These approaches are computationally expensive, difficult to scale, and typically require substantial domain expertise. Recent advances in deep learning have therefore motivated the development of data-driven approaches for protein inverse folding. In particular, transformer-based protein language models (PLMs) and geometric deep learning frameworks have demonstrated strong capabilities in capturing sequence–structure relationships and generating biologically plausible protein sequences [1, 2, 3, 4]. Existing approaches mainly formulate inverse folding as a conditional generation problem, where the target protein structure serves as conditioning information for recovering compatible AA sequences.
Current computational protein design methods are largely dominated by masked language models (MLMs) [5, 6], autoregressive sequence models [7, 8, 9], and more recently, diffusion probabilistic models. While MLMs and autoregressive models have achieved promising performance, their generation mechanisms are often constrained by local token prediction objectives or sequential decoding processes, which may limit the diversity and controllability of generated sequences. In contrast, diffusion models provide a flexible probabilistic framework capable of generating diverse and high-quality samples through iterative denoising. Their strong representation capacity and stable training dynamics have led to substantial success across various generative modeling tasks, including image synthesis, molecular generation, and protein design.
Several recent studies [10, 11, 12] have explored diffusion-based frameworks for antibody generation and inverse folding. Although these methods are capable of producing structurally plausible antibodies, they predominantly learn the distribution of naturally occurring antibody repertoires. Consequently, generated sequences tend to remain close to naturally observed antibodies rather than being explicitly optimized for downstream therapeutic objectives. However, high similarity to natural antibodies does not necessarily translate into improved functional performance in real-world applications. In practical therapeutic antibody development, downstream properties such as antigen-binding affinity, specificity, stability, and developability are often substantially more important than merely reproducing natural sequence distributions. Therefore, a key challenge in modern antibody generation lies in moving beyond natural-distribution imitation toward property-guided therapeutic optimization.
To address this challenge, we propose GABIF, a guided-regressor generative framework for controllable antibody design and property-aware protein inverse folding. Rather than merely modeling the distribution of naturally occurring antibodies, GABIF enables task-oriented sequence generation conditioned on downstream objectives such as binding affinity optimization. The proposed framework adopts a discrete diffusion-based inverse folding architecture as the generative backbone and can be pretrained on arbitrary protein or antibody datasets to learn sequence–structure relationships in a data-driven manner. Furthermore, GABIF is designed as a modular guided generation framework that can flexibly incorporate external property predictors during the sampling process. In this work, we integrate the antibody–antigen binding affinity predictor ProAffinity-GNN [13] as a guidance regressor to steer the diffusion trajectory toward antibody sequences with enhanced binding affinity. This design allows GABIF to unify pretrained generative modeling and downstream property optimization within a single controllable generation framework. Inspired by classifier-guided diffusion and Bayesian posterior sampling, the affinity predictor provides conditional signals that steer the generation trajectory toward antibody sequences with desirable binding properties. This guided generation mechanism enables GABIF to move beyond passive modeling of natural antibody distributions and instead perform task-oriented optimization during sequence generation.
Extensive in silico experiments demonstrate that GABIF achieves competitive or superior performance compared with state-of-the-art antibody inverse folding approaches across multiple evaluation benchmarks, including sequence recovery, structural consistency, and binding affinity estimation. Furthermore, ablation studies verify the effectiveness of the proposed guidance strategy and highlight the importance of supervised conditional generation for downstream therapeutic optimization. Our results suggest that the synergy between pretrained generative models and property-guided diffusion provides a powerful paradigm for controllable antibody design and broader AI-driven therapeutic discovery.
Our main contributions are summarized as follows:
We propose GABIF, a guided discrete diffusion framework for antibody inverse folding with conditional affinity optimization.
We integrate an external affinity predictor into the diffusion sampling process to steer generation toward therapeutically desirable antibody sequences.
Extensive experiments demonstrate that GABIF achieves strong structural fidelity while substantially improving predicted binding affinity compared with existing approaches.
Code and pretrained models are publicly available at https://github.com/Mintanxon/GABIF.
Related Work
Denoising diffusion models have recently emerged as a powerful class of generative frameworks due to their ability to produce high-quality and diverse samples across multiple modalities [14, 15, 16]. Originating from stochastic diffusion processes and score-based generative modeling, diffusion probabilistic models iteratively transform noise into structured data and have demonstrated strong performance in image, waveform, and molecular generation tasks. Beyond continuous domains, substantial efforts have extended diffusion models to discrete spaces for modeling categorical and sequential data [17, 18, 19]. In particular, discrete diffusion frameworks have shown notable advantages in preserving the structural properties of graph and sequence data, making them highly suitable for biological applications.
In computational protein and antibody design, recent advances in protein language models (PLMs) and geometric deep learning have significantly improved the ability to generate biologically plausible protein sequences [20, 21, 22, 23]. More recently, diffusion-based approaches such as DiffAb, AntiFold, and IgGM [10, 12, 24] have explored antibody generation and inverse folding using denoising diffusion mechanisms. While these methods achieve promising structural fidelity and controllability, they primarily focus on modeling natural antibody distributions and lack explicit optimization toward downstream therapeutic objectives such as binding affinity. In contrast, our work introduces a guided-regressor diffusion framework that integrates external property predictors into the generation process, enabling controllable and affinity-aware antibody design.
Methods
GABIF is derived from GraDe-IF [25] and operates as a graph neural network-based diffusion model for protein inverse folding. We represent the residue graph of a protein as . Each AA in the protein corresponds to a node in the residue graph. denotes the node matrix, where is the number of residues, and represents the dimensionality of residue attributes, including AA type (one-hot encoded, where refers to the alphabet), 3-dimensional coordinates position and other properties like physicochemical attributes. denotes the edges of the residue graph, encoding contact relationships between AA nodes. Each edge is assigned with additional attributes, such as interatomic distances and peptide bond positions. Our model performs diffusion-based generation on this residue graph to solve the protein inverse folding task. Figure 1 illustrates the overview of the diffusion and denoising process of GABIF based on antibody structures.
Figure 1. Overview of the diffusion and denoising process in GABIF. Given an antigen–antibody complex structure, the model first constructs a residue-level graph representation. During the forward diffusion process, noise is progressively added to the amino acid (AA) types, transforming one-hot encoded sequences into a fully noisy uniform distribution. In the reverse process, sequences are iteratively denoised from sampled noise using the diffusion denoising network. Finally, an argmax operation converts the predicted probability distributions into one-hot vectors, yielding the generated antibody amino acid sequences.
Protein Inverse Folding Problem
In this work, protein inverse folding is defined as a conditional generation problem: Given a residue graph encoding a protein’s backbone structure (represented by ), the objective is to generate novel AA sequences which could fold into the given structure. More specifically, the inverse folding problem is formalized as learning the conditional distribution from the native protein structures and AA sequences. During training, the model is required to recover the native AA sequence from the given protein structure by minimizing the cross-entropy loss between predicted and native AA probabilities. During inference, the model samples novel AA sequences from the learned distributions, thereby enabling de novo protein design.
Discrete Diffusion Process in Inverse Folding
Denoising Diffusion Probabilistic Models (DDPM) have established remarkable success in image generation, by implementing a Markov chain that gradually adds Gaussian noise to corrupt training data, then reverses this process and samples from Gaussian distribution for generation [15].
Due to the categorical nature of one-hot encoded AA sequences, we adopt the diffusion models for discrete data, Discrete Denoising Diffusion Probabilistic Models (D3PM) [26] to define diffusion process on the discrete state space. The basic idea of D3PM is to corrupt one-hot encoded AA labels into the noise distribution not Gaussian distribution, like uniform distribution. Specifically, for the diffusion process in inverse folding, we gradually add noise to each AA node by transition matrix . We formally define the diffusion process as:
where:
denotes the step of diffusion process.
is the time-dependent transition matrix:
is the annealing schedule preserving original identity and undergoes a progressive decay until 0 as .
The final stationary distribution could be defined by:
For (2), one could replace the uniform noise into biased noise by incorporating biological priors:
where denotes the biased noise (e.g., BLOSUM substitution probabilities calculated from natural protein database). Consequently, the marginal probability distribution at any step could be derived through the cumulative product of transition matrices:
where .
Reverse Denoising Process
The diffusion process corrupts the original data into noise through a forward Markov chain, while the reverse process progressively denoises to generate sample data. If the true reverse distributions are known, one could reconstruct data by iteratively denoising from random noise . The objective of diffusion models is to train denoising models to approximate the true reverse distributions through parameterized neural networks . From D3PM, the posterior distribution given is:
where is short for categorical distribution . The reverse process is parameterized to predict the logits of the distribution:
Since both distribution and factorize, the KL divergence between and could be easily summed for each random variable. After training the denoising network, novel AA sequences could be designed by sampling from the noise with given native structure and denoising under multiple iterations.
Conditional Inverse Folding
Notably, inverse folding models alone could only generate novel natural-protein-like sequences by learning native AA probability distributions, but higher similarity to natural proteins does not guarantee better performance of generated proteins (e.g., higher binding affinity or improved thermostability) [27]. In typical protein design practice, a large number of candidate sequences are generated using inverse folding models, and subsequently screened to identify ideal mutants, which is often resource-intensive and time-consuming. To accelerate this process, it is required to guide the generation process towards desired properties.
In this paper, we propose the concept of conditional inverse folding, where a regressor is incorporated as guidance during the diffusion process. The concept of conditional inverse folding is motivated by classifier-guided conditional generation in diffusion models [28]. In conditional generation, the model generates content given a condition , i.e., it learns the conditional probability distribution . By Bayes rules:
The gradient of the logarithm of Equation (8):
The first term represents the gradient of the unconditional diffusion process, while the second term corresponds to the classifier gradient. A scaling parameter is incorporated into Equation (9) to adjust the signal of classifier guidance:
This classifier-guided approach allows the model to perform conditional generation towards the label specified by the classifier.
In conditional inverse folding, an appropriate predictor is required for guidance according to the target properties. For antibody design, we employ an antibody-antigen binding affinity predictor to guide the model in generating novel antibodies with improved affinity.
Final Step Guidance
A challenge in classifier guidance is that, in the earlier steps of the diffusion process, the generated samples are highly noisy. This noisy input could lead to inaccurate predictions by the classifier and potentially cause a divergence from the true labels. One potential solution is to train a classifier that predicts the final labels from the noisy data. However, for antibody design, predicting the binding affinity without noise is still difficult, and predicting from noisy data is even more challenging. Consequently, we adopt a final step guidance strategy, where guidance is applied not from the beginning, but after a series of denoising steps. This approach maintains the accuracy and stability of the predictions on low-noise data.
Architecture of GABIF Denoising Networks
The full architecture of the GABIF denoising networks is depicted in Figure 2. The backbone of GABIF model is derived from GraDe-IF, which was originally trained on the general protein structure dataset CATH [29]. To adapt it for antibody design tasks, we further finetune the model on antibody structures from SAbDab [30] to enable antibody design capabilities. The model leverages the rotation equivariance of Equivariant Graph Denoising Network (EGNN) [31] to capture structural features of biomolecules in 3-dimensional space and integrates DDIM to accelerate the sampling process of the diffusion model. For the guidance in conditional inverse folding, we use ProAffinity-GNN as the binding affinity predictor. This module separately constructs intra-molecular and inter-molecular graphs, and utilizes GNN modules to predict the binding strength between two interacting molecules. ProAffinity-GNN is also originally designed for general protein complexes. Therefore, when integrating it into GABIF, we train the model using antibody-antigen complexes which include experimentally measured binding affinities from SAbDab. We show the detailed sampling and inference process in Appendix § 6. The model and datasets used in this paper are available at https://github.com/Mintanxon/GABIF.
Figure 2. The architecture of GABIF denoising networks guided with affinity regressor.
Experiments
Our evaluation benchmark is divided into three parts: sequence evaluation metrics, structure evaluation metrics and binding affinity estimation [32]. We conduct the experiments with an NVIDIA RTX 4090 GPU. For sequence and structure evaluations (see metric definitions in Appendix § 7), we test our model by redesigning each CDR region of both the heavy and light chains of antibodies using the SAb-23H2-Ab dataset released in IgGM paper [12], and compare the performance with current structure-based antibody inverse folding models [10, 12, 24]. For each antibody we design 10 mutants, and the experiments for each model take approximately several hours to complete. It is important to note that, due to the lack of a standard dataset split, current antibody design models are often trained on the latest public dataset or proprietary antibody data with self-defined training and test split, which potentially causes data leakage. We have confirmed that the test data in our evaluation do not overlap with the training data of GABIF. For binding affinity estimation, we utilize a third-party predictor trained on antibody-antigen affinity data for a specific antigen, and then use it to evaluate the affinity of 50 designed antibodies. We also carry out an ablation study to discuss the effects of finetuning GraDe-IF on the antibody dataset and the impact of full step guidance against final step guidance.
Sequence and Structure Evaluation Metrics
The experimental results of designing all six CDRs on the benchmark dataset is presented in Table 1:
| Metric | Model | H1 | H2 | H3 | L1 | L2 | L3 | Total |
| CAAR | GABIF | 0.750 | 0.718 | 0.541 | 0.698 | 0.708 | 0.592 | 0.668 |
| CAAR | AntiFold | 0.749 | 0.738 | 0.584 | 0.751 | 0.767 | 0.751 | 0.723 |
| CAAR | DiffAb | 0.773 | 0.794 | 0.565 | 0.698 | 0.527 | 0.702 | 0.677 |
| CAAR | IgGM | 0.790 | 0.727 | 0.467 | 0.568 | 0.445 | 0.621 | 0.603 |
| MSR | GABIF | 0.841 | 0.909 | 1.000 | 0.841 | 0.705 | 1.000 | 0.883 |
| MSR | AntiFold | 0.886 | 0.909 | 1.000 | 0.818 | 0.523 | 0.886 | 0.837 |
| MSR | DiffAb | 0.818 | 0.750 | 0.955 | 0.818 | 0.727 | 0.909 | 0.830 |
| MSR | IgGM | 0.795 | 0.864 | 0.955 | 0.932 | 0.795 | 0.955 | 0.883 |
| RMSD WT:10.043 | GABIF | 12.211 | 12.248 | 13.601 | 11.639 | 11.710 | 11.946 | 12.226 |
| RMSD WT:10.043 | AntiFold | 13.216 | 13.824 | 14.150 | 12.820 | 11.610 | 11.270 | 12.815 |
| RMSD WT:10.043 | DiffAb | 11.995 | 13.760 | 14.318 | 12.288 | 11.998 | 13.383 | 12.957 |
| RMSD WT:10.043 | IgGM | 12.549 | 13.214 | 15.571 | 11.108 | 11.256 | 12.255 | 12.659 |
| TM-score WT:0.800 | GABIF | 0.748 | 0.752 | 0.721 | 0.766 | 0.764 | 0.765 | 0.753 |
| TM-score WT:0.800 | AntiFold | 0.762 | 0.728 | 0.712 | 0.755 | 0.765 | 0.781 | 0.750 |
| TM-score WT:0.800 | DiffAb | 0.756 | 0.732 | 0.703 | 0.764 | 0.776 | 0.745 | 0.746 |
| TM-score WT:0.800 | IgGM | 0.743 | 0.740 | 0.694 | 0.766 | 0.773 | 0.753 | 0.745 |
| lDDT WT:0.855 | GABIF | 0.839 | 0.840 | 0.824 | 0.843 | 0.842 | 0.836 | 0.837 |
| lDDT WT:0.855 | AntiFold | 0.844 | 0.837 | 0.827 | 0.845 | 0.846 | 0.842 | 0.840 |
| lDDT WT:0.855 | DiffAb | 0.845 | 0.840 | 0.824 | 0.842 | 0.847 | 0.839 | 0.840 |
| lDDT WT:0.855 | IgGM | 0.842 | 0.836 | 0.817 | 0.840 | 0.845 | 0.831 | 0.835 |
| DockQ WT:0.657 | GABIF | 0.565 | 0.585 | 0.518 | 0.614 | 0.605 | 0.593 | 0.580 |
| DockQ WT:0.657 | AntiFold | 0.597 | 0.569 | 0.517 | 0.605 | 0.612 | 0.616 | 0.586 |
| DockQ WT:0.657 | DiffAb | 0.595 | 0.565 | 0.512 | 0.612 | 0.624 | 0.582 | 0.582 |
| DockQ WT:0.657 | IgGM | 0.576 | 0.561 | 0.482 | 0.600 | 0.611 | 0.568 | 0.566 |
Table 1. Evaluation metrics of antibody design models (numbers in bold denote the best performance)
For sequence evaluation, the evaluation metrics include CAAR and MSR. Notably, AAR reflects the similarity between the denoised output and the original sequence. During training, a higher AAR indicates that the model better captures the true AA probability distribution. However, during inference, an overly high AAR could reduce sampling diversity and may even fail to generate novel sequences. Therefore, an appropriate trade-off between fidelity and diversity for AAR is essential at the inference stage. We report both CAAR and MSR in our sequence evaluation metrics. As shown in Table 1, CAAR and MSR exhibit a negative correlation. While GABIF reports slightly lower CAAR compared to AntiFold and DiffAb, it outperforms IgGM and achieves the highest MSR. This indicates that GABIF achieves a good balance between fidelity and diversity.
The inverse folding models generate novel antibody sequences from the given structure. To assess the structural quality of the designed antibodies, we apply AlphaFold3 [2] to predict the antigen-antibody complex structures. As a control, we also predict the complex structures for the native wild-type (WT) sequences, ensuring a consistent AlphaFold3-involved evaluation setup. To ensure the reliability of AlphaFold3 predictions, WT antibodies with an lDDT score above 0.8 are retained for evaluation.
As shown in Table 1, GABIF achieves the lowest RMSD and highest TM-score. AntiFold exhibits the best performance on lDDT and DockQ, with GABIF is slightly behind. Besides, GABIF surpasses IgGM across all evaluation metrics, with both models verified to have no risk of data leakage.
When further comparing each individual CDR, GABIF achieves superior results on CDR-H2 and CDR-H3 of the heavy chain. CDR-H3 is widely considered as the critical region for determining antibody specificity and tends to be highly variable [33]. Consequently, the superior performance of GABIF on CDR-H3 region highlights its practical applicability in antibody design.
Binding Affinity Estimation
Previous works on computational antibody evaluation primarily limited to sequence and structure evaluation metrics. In our work, we not only introduce regressor guidance for better affinity, but also contribute binding affinity evaluation methods. For in silico binding affinity estimation, we select an external predictor AlphaBind [3] to evaluate the binding affinity of the designed antibodies. Compared to training a general affinity predictor, it is easier and more accurate to train an antigen-specific affinity predictor. Consequently, we utilize the DMS dataset provided by AlphaBind, which includes more than 36,000 affinity values for HER2-specific antibody (PDB ID: 1n8z) CDR-H3 mutants [34], to train the model as a judge. This model is then used to evaluate the affinities of 50 CDR-H3 mutants designed by each model. The binding affinity is represented by transformed Kd in Alphabind. A lower Kd value indicates a stronger binding affinity. The predicted affinities are presented in Figure 3, where the red dashed line represents the wild-type antibody affinity. Data point overlapping with this line indicates that the designed sequence is identical to the native sequence, implying a failed design. As shown in Figure 3, DiffAb fails to design new sequences, and AntiFold also encounters design failures. Overall, the mutants designed by models demonstrate better affinity than the DMS mutants, suggesting that the potential of AI models in antibody design surpasses the traditional ration design. The mutants designed by IgGM exhibit the highest affinity, followed by GABIF and AntiFold. Considering the structural evaluation results, the relatively poor folding ability of IgGM may lead to less accurate affinity predictions. In conclusion, GABIF performs well both in structure and binding affinity evaluation metrics.

Figure 3. The AlphaBind predicted affinities of HER2 antibody CDR-H3 mutants designed by different models. The red dashed line shows the binding affinity of the wild-type antibody.
Ablation Study
To investigate the impact of various components of GABIF, we conduct ablation experiments as shown in Table 2 and Figure C1 (see in Appendix § 8). From Table 2, it is evident that the original GraDe-IF has a much lower CAAR than the others, suggesting that general protein inverse folding models perform poorly on antibody data. After finetuning on the antibody dataset, the CAAR improves significantly. The model with guidance shows a slight decrease in CAAR compared to the model without guidance, which indicates that the guidance could help to generate less natural-antibody-like sequences. The affinities predicted by ProAffinity-GNN are represented by , where and . Therefore, the smaller the , the greater the decrease in , and the greater the improvement in affinity. When no guidance is applied, the mutant affinities are lower than the native antibody, while the affinity improves with the addition of ProAffinity-GNN guidance. However, the structure metrics of the full step guidance model are worse than those of the model without guidance, with the RMSD even exceeding the original GraDe-IF. In contrast, the final step version exhibits improved affinity and the best performance across all structure evaluations, confirming the conclusion above that GABIF excels in both structure and binding affinity metrics.
| Metric | Model | H1 | H2 | H3 | L1 | L2 | L3 | Total |
| CAAR | final step | 0.750 | 0.718 | 0.541 | 0.698 | 0.708 | 0.592 | 0.668 |
| full step | 0.706 | 0.657 | 0.519 | 0.656 | 0.694 | 0.573 | 0.634 | |
| finetune | 0.777 | 0.730 | 0.579 | 0.682 | 0.682 | 0.608 | 0.677 | |
| original | 0.550 | 0.542 | 0.413 | 0.401 | 0.523 | 0.355 | 0.464 | |
| final step | 0.841 | 0.909 | 1.000 | 0.841 | 0.705 | 1.000 | 0.883 | |
| full step | 0.886 | 0.977 | 1.000 | 0.864 | 0.727 | 0.977 | 0.905 | |
| finetune | 0.818 | 0.841 | 1.000 | 0.841 | 0.705 | 1.000 | 0.867 | |
| original | 1.000 | 1.000 | 1.000 | 0.977 | 0.864 | 1.000 | 0.973 | |
| final step | -0.007 | -0.004 | -0.008 | -0.007 | -0.001 | -0.003 | -0.005 | |
| full step | -0.009 | -0.005 | -0.028 | -0.008 | -0.003 | -0.007 | -0.010 | |
| finetune | -0.004 | -0.003 | 0.027 | -0.004 | 0.001 | 0.004 | 0.004 | |
| original | 0.023 | 0.013 | 0.024 | 0.013 | 0.000 | 0.025 | 0.016 | |
| WT:10.043 | final step | 12.211 | 12.248 | 13.601 | 11.639 | 11.710 | 11.946 | 12.226 |
| full step | 12.896 | 12.234 | 13.688 | 13.287 | 11.672 | 12.634 | 12.735 | |
| finetune | 12.980 | 12.175 | 13.749 | 12.204 | 11.342 | 12.297 | 12.458 | |
| original | 13.119 | 12.071 | 12.676 | 12.233 | 10.711 | 14.301 | 12.519 | |
| TM-score WT:0.800 | final step | 0.748 | 0.752 | 0.721 | 0.766 | 0.764 | 0.765 | 0.753 |
| full step | 0.746 | 0.754 | 0.714 | 0.746 | 0.767 | 0.755 | 0.747 | |
| finetune | 0.742 | 0.747 | 0.714 | 0.768 | 0.769 | 0.756 | 0.749 | |
| original | 0.750 | 0.746 | 0.698 | 0.759 | 0.781 | 0.767 | 0.745 | |
| lDDT WT:0.855 | final step | 0.839 | 0.840 | 0.824 | 0.843 | 0.842 | 0.836 | 0.837 |
| full step | 0.841 | 0.842 | 0.822 | 0.839 | 0.843 | 0.834 | 0.837 | |
| finetune | 0.839 | 0.838 | 0.825 | 0.841 | 0.842 | 0.836 | 0.837 | |
| original | 0.834 | 0.836 | 0.815 | 0.839 | 0.847 | 0.820 | 0.832 | |
| DockQ WT:0.657 | final step | 0.565 | 0.585 | 0.518 | 0.614 | 0.605 | 0.593 | 0.580 |
| full step | 0.572 | 0.594 | 0.502 | 0.589 | 0.609 | 0.583 | 0.575 | |
| finetune | 0.560 | 0.577 | 0.521 | 0.610 | 0.608 | 0.579 | 0.576 | |
| original | 0.565 | 0.562 | 0.499 | 0.597 | 0.628 | 0.526 | 0.563 |
Table 2. Evaluation metrics for the ablation study. Numbers in bold indicate the best performance. “Final step” denotes GABIF with guidance applied only at the final denoising step, “full step” denotes GABIF with guidance throughout the entire diffusion process, “finetune” denotes the finetuned GABIF model without guidance, and “original” refers to the original GraDe-IF model.

Figure C1. The AlphaBind predicted affinities of HER2 antibody CDR-H3 mutants designed by GABIF in ablation study (“final step” refers to GABIF model with final step guidance, “full step” refers to GABIF model with full step guidance, “finetune” refers to GABIF without guidance (finetuning only), “original” refers to the original GraDe-IF)
Figure C1 presents the antibody affinities predicted by AlphaBind for different versions of GABIF. The affinities of all the model designs are higher than the DMS data. Similar to the in Table 2, as the guidance interference increases, the value gradually decreases. The consistent trend observed in both ProAffinity-GNN and AlphaBind validates the accuracy of in silico affinity predictions.
In summary, both finetuning and final step guidance effectively enhance the model’s performance, enabling GABIF to design antibody mutants with better performance and higher affinity.
Conclusion
In conclusion, we presented a guided-regressor diffusion framework for controllable antibody design and property-aware protein inverse folding. By integrating an external affinity predictor into the discrete diffusion sampling process, the proposed GABIF enables task-oriented antibody generation toward improved binding affinity while maintaining strong structural consistency. Experimental results demonstrate that GABIF achieves competitive performance against multiple state-of-the-art baselines. More broadly, our results suggest that combining pretrained generative modeling with guided diffusion provides a promising paradigm for controllable therapeutic protein design. In future work, we plan to extend the framework to broader biomolecular generation tasks, including enzyme engineering and multi-objective protein optimization.
Sampling Novel Antibodies
The detailed algorithm of generating novel antibody sequences for GABIF is summarized as Algorithm 1. The model begins with sampling from the noise distribution and iteratively denoises the input by denoising networks. The binding affinity predictor ProAffinity-GNN predicts the affinity of generated antibody and calculates the gradient of higher affinity, thereby steering the antibody generation towards higher affinity. Notably, for final step guidance approach, the guidance is only applied at the final step.
Algorithm 1 GABIF sampling with guidance
Parameter: Guidance scaling parameter
Output: Generated antibody sequence
Sample from noise distribution .
for in do
Predict by denoising network.
Compute by (7).
Predict the affinity of by ProAffinity-GNN and compute the gradient of higher affinity.
Calculate guided by (10).
Sample .
end for
Sample .
return
Definitions of Evaluation Metrics
The metrics used in this paper are composed of sequence evaluation metrics and structure evaluation metrics.
Sequence evaluation metrics include:
CAAR: the recovery rate of AAs (AAR) in CDR regions.
MSR: Mutation Success Rate, refers to the proportion of successful mutations which are not identical to the native sequence.
Structure evaluation is conducted using OpenStructure [35], which provides a convenient command-line interface (CLI) to measure various metrics between predicted and wild-type structures. Structure evaluation metrics include:
RMSD: Root Mean Square Deviation, the average distance between corresponding atoms of two structures after optimal superposition. Lower RMSD values indicate higher structural similarity.
TM-score [36]: Template Modeling Score, the global structural similarity between two protein structures normalized by protein length. It is less sensitive to local deviations and ranges from 0 to 1, where scores above 0.5 typically indicate correct folding [37].
lDDT [38]: Local Distance Difference Test, the local atomic-level accuracy by comparing the preservation of interatomic distances within a neighborhood. It is superposition-free and higher scores indicate better local structural accuracy.
DockQ [39]: the score to quantify the quality of biomolecule docking models by integrating metrics including interface RMSD (iRMSD), ligand RMSD (LRMSD), and fraction of retrieved native contacts (fnat). Higher scores reflect more accurate docking predictions.
Binding Affinity Estimation in Ablation Study
We test the binding affinities of different versions of GABIF sampled antibodies by AlphaBind to investigate the impacts of finetuning and guidance. The results are illustrated in Figure C1. The consistent trend of pKa (Table 2) and transformed Kd (Figure C1) predicted by different models validates the reliability of in silico binding affinity estimation.
References
- [1]Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Žídek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S.A.A., Ballard, A.J., Cowie, A., Romera-Paredes, B., Nikolov, S., Jain, R., Adler, J., Back, T., Petersen, S., Reiman, D., Clancy, E., Zielinski, M., Steinegger, M., Pacholska, M., Berghammer, T., Bodenstein, S., Silver, D., Vinyals, O., Senior, A.W., Kavukcuoglu, K., Kohli, P., Hassabis, D.: Highly accurate protein structure prediction with alphafold. Nature 596(7873), 583–589 (2021) https://doi.org/10.1038/s41586-021-03819-2
- [2]Abramson, J., Adler, J., Dunger, J., Evans, R., Green, T., Pritzel, A., Ronneberger, O., Willmore, L., Ballard, A.J., Bambrick, J., Bodenstein, S.W., Evans, D.A., Hung, C.-C., O’Neill, M., Reimann, D., Tunyasuvunakool, K., Wu, Z., Žemgulytė, A., Arvaniti, E., Beattie, C., Bertolli, O., Bridgland, A., Cherepanov, A., Congreve, M., Cowen-Rivers, A.I., Cowie, A., Figurnov, M., Fuchs, F.B., Gladman, H., Jain, R., Khan, Y.A., Low, C.M.R., Perlin, K., Potapenko, A., Savy, P., Singh, S., Stecula, A., Thillaisundaram, A., Tong, C., Yakneen, S., Zhong, E.D., Zielinski, M., Žídek, A., Bapst, V., Kohli, P., Jaderberg, M., Hassabis, D., Jumper, J.M.: Accurate structure prediction of biomolecular interactions with alphafold 3. Nature 630(8016), 493–500 (2024) https://doi.org/10.1038/s41586-024-07487-w
- [3]Agarwal, A.A., Harrang, J., Noble, D., McGowan, K.L., Lange, A.W., Engelhart, E., Lahman, M.C., Adamo, J., Yu, X., Serang, O., Minch, K.J., Wellman, K.Y., Younger, D.A., Lopez, R.M., Emerson, R.O.: Alphabind, a domain-specific model to predict and optimize antibody-antigen binding affinity. bioRxiv (2024) https://doi.org/10.1101/2024.11.11.622872 https://www.biorxiv.org/content/early/2024/11/11/2024.11.11.622872.full.pdf
- [4]Baek, M., DiMaio, F., Anishchenko, I., Dauparas, J., Ovchinnikov, S., Lee, G.R., Wang, J., Cong, Q., Kinch, L.N., Schaeffer, R., others, Baker, D.: Accurate prediction of protein structures and interactions using a three-track neural network. Science 373(6557), 871–876 (2021) https://doi.org/10.1126/science.abj8754
- [5]Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W., Smetanin, N., Verkuil, R., Kabeli, O., Shmueli, Y., Santos Costa, A., Fazel-Zarandi, M., Sercu, T., Candido, S., Rives, A.: Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 379(6637), 1123–1130 (2023) https://doi.org/10.1126/science.ade2574 https://www.science.org/doi/pdf/10.1126/science.ade2574
- [6]Madani, A., Krause, B., Greene, E.R., Subramanian, V., Sercu, T., Darnell, R.B., Karpatne, A., Olivetti, E., Tang, H., Rives, A., et al.: Large language models generate functional protein sequences across diverse families. Nature Biotechnology 41(8), 1099–1106 (2023) https://doi.org/10.1038/s41587-022-01618-2 https://doi.org/10.1038/s41587-022-01618-2. PMID: 36692140
- [7]Hsu, C., Verkuil, R., Liu, J., Lin, Z., Hie, B., Sercu, T., Lerer, A., Rives, A.: Learning inverse folding from millions of predicted structures. bioRxiv (2022) https://doi.org/10.1101/2022.04.10.487779 https://www.biorxiv.org/content/early/2022/09/06/2022.04.10.487779.full.pdf
- [8]Meier, J., Rao, R., Verkuil, R., Liu, J., Sercu, T., Rives, A.: Language models enable zero-shot prediction of the effects of mutations on protein function. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P.S., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems, vol. 34, pp. 29287–29303. Curran Associates, Inc., ??? (2021). https://proceedings.neurips.cc/paper_files/paper/2021/file/f51338d736f95dd42427296047067694-Paper.pdf
- [9]Nijkamp, E., Ruffolo, J.A., Weinstein, E.N., Naik, N., Madani, A.: Progen2: Exploring the boundaries of protein language models. Cell Systems 14(11), 968–978 (2023) https://doi.org/10.1016/j.cels.2023.10.002
- [10]Luo, S., Su, Y., Peng, X., Wang, S., Peng, J., Ma, J.: Antigen-specific antibody design and optimization with diffusion-based generative models for protein structures. In: Oh, A.H., Agarwal, A., Belgrave, D., Cho, K. (eds.) Advances in Neural Information Processing Systems (2022). https://openreview.net/forum?id=jSorGn2TjgDOI
- [11]Bennett, N.R., Watson, J.L., Ragotte, R.J., Borst, A.J., See, D.L., Weidle, C., Biswas, R., Shrock, E.L., Leung, P.J.Y., Huang, B., Goreshnik, I., Ault, R., Carr, K.D., Singer, B., Criswell, C., Vafaeados, D., Garcia Sanchez, M., Kim, H.M., Vázquez Torres, S., Chan, S., Baker, D.: Atomically accurate de novo design of single-domain antibodies. bioRxiv (2024) https://doi.org/10.1101/2024.03.14.585103 https://www.biorxiv.org/content/early/2024/03/18/2024.03.14.585103.full.pdf
- [12]Wang, R., Wu, F., Gao, X., Wu, J., Zhao, P., Yao, J.: IgGM: A generative model for functional antibody and nanobody design. In: The Thirteenth International Conference on Learning Representations (2025). https://openreview.net/forum?id=zmmfsJpYcqDOI
- [13]Zhou, Z., Yin, Y., Han, H., Jia, Y., Koh, J.H., Kong, A.W.-K., Mu, Y.: Proaffinity-gnn: A novel approach to structure-based protein–protein binding affinity prediction via a curated data set and graph neural networks. Journal of chemical information and modeling 64(23), 8796–8808 (2024)DOI
- [14]Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., Ganguli, S.: Deep unsupervised learning using nonequilibrium thermodynamics. In: Bach, F., Blei, D. (eds.) Proceedings of the 32nd International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 37, pp. 2256–2265. PMLR, ??? (2015). https://proceedings.mlr.press/v37/sohl-dickstein15.html
- [15]Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models. In: Proceedings of the 34th International Conference on Neural Information Processing Systems. NIPS ’20. Curran Associates Inc., Red Hook, NY, USA (2020)arxiv.org/abs/2006.11239
- [16]Chen, N., Zhang, Y., Zen, H., Weiss, R.J., Norouzi, M., Chan, W.: Wavegrad: Estimating gradients for waveform generation. In: International Conference on Learning Representations (ICLR) (2021). Poster. https://openreview.net/forum?id=NsMLjcFaO8Oarxiv.org/abs/2009.00713
- [17]Mittal, G., Engel, J., Hawthorne, C., Simon, I.: Symbolic music generation with diffusion models. In: Proceedings of the 22nd International Society for Music Information Retrieval Conference (ISMIR 2021) (2021). https://archives.ismir.net/ismir2021/paper/000058.pdfarxiv.org/abs/2103.16091
- [18]Seff, A., Zhou, W., Damani, F., Doyle, A., Adams, R.P.: Discrete object generation with reversible inductive construction. In: Advances in Neural Information Processing Systems (NeurIPS), vol. 33 (2019). NeurIPS 2019 Poster. https://arxiv.org/abs/1907.08268
- [19]Vignac, C., Krawczuk, I., Siraudin, A., Wang, B., Cevher, V., Frossard, P.: DiGress: Discrete denoising diffusion for graph generation. In: International Conference on Learning Representations (ICLR) (2023). Poster. https://openreview.net/forum?id=v7XRoHQaQparxiv.org/abs/2209.14734
- [20]Alley, E.C., Khimulyak, G., Biswas, S., AlQuraishi, M., Church, G.M.: Unified rational protein engineering with sequence-based deep representation learning. Nature Methods 16(12), 1315–1322 (2019) https://doi.org/10.1038/s41592-019-0598-1
- [21]Shin, J.-E., Riesselman, A.J., Kollasch, A.W., McMahon, C., Simon, E., Sander, C., Manglik, A., Kruse, A.C., Marks, D.S.: Protein design and variant prediction using autoregressive generative models. Nature Communications 12(1), 2403 (2021) https://doi.org/10.1038/s41467-021-22732-w
- [22]Saka, K., Kakuzaki, T., Metsugi, S., Kashiwagi, D., Yoshida, K., Wada, M., Tsunoda, H., Teramoto, R.: Antibody design using lstm based deep generative model from phage display library for affinity maturation. Scientific Reports 11(1), 5852 (2021) https://doi.org/10.1038/s41598-021-85274-7
- [23]Akbar, R., Bashour, H., Rawat, P., Robert, P.A., Smorodina, E., Cotet, T.-S., FlemKarlsen, K., Frank, R., Mehta, B.B., Vu, M.H., al.: Progress and challenges for the machine learning-based design of fit-for-purpose monoclonal antibodies. mAbs 14(1), 2008790 (2022) https://doi.org/10.1080/19420862.2021.2008790
- [24]Høie, M.H., Hummer, A., Olsen, T.H., Aguilar-Sanjuan, B., Nielsen, M., Deane, C.M.: AntiFold: Improved antibody structure-based design using inverse folding (2024)
- [25]Yi, K., Zhou, B., Shen, Y., Lio, P., Wang, Y.G.: Graph denoising diffusion for inverse protein folding. In: Thirty-seventh Conference on Neural Information Processing Systems (2023). https://openreview.net/forum?id=u4YXKKG5dXarxiv.org/abs/2306.16819
- [26]Austin, J., Johnson, D.D., Ho, J., Tarlow, D., Berg, R.: Structured denoising diffusion models in discrete state-spaces. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P.S., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems, vol. 34, pp. 17981–17993. Curran Associates, Inc., ??? (2021). https://proceedings.neurips.cc/paper_files/paper/2021/file/ Jiang, K., Yan, Z., Di Bernardo, M., Sgrizzi, S.R., Villiger, L., Kayabolen, A., Kim, B.J., Carscadden, J.K., Hiraizumi, M., Nishimasu, H., Gootenberg, J.S., Abudayyeh, O.O.: Rapid in silico directed evolution by a protein language model with EVOLVEpro. Science 387(6732), 6006 (2025) https://doi.org/10.1126/science.adr6006 . Accessed 2025-04-29
- [28]Dhariwal, P., Nichol, A.: Diffusion models beat gans on image synthesis. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P.S., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems, vol. 34, pp. 8780–8794. Curran Associates, Inc., ??? (2021). https://proceedings.neurips.cc/paper_files/paper/2021/file/49ad23d1ec9fa4bd8d77d02681d5fcfa-Paper.pdf
- [29]Orengo, C.A., Michie, A.D., Jones, S., Jones, D.T., Swindells, M.B., Thornton, J.M.: Cath–a hierarchic classification of protein domain structures. Structure 5(8), 1093–1109 (1997)pubmed.ncbi.nlm.nih.gov/9309224
- [30]Dunbar, J., Krawczyk, K., Leem, J., Baker, T., Fuchs, A., Georges, G., Shi, J., Deane, C.M.: Sabdab: the structural antibody database. Nucleic acids research 42(D1), 1140–1146 (2014)DOI
- [31]Satorras, V.G., Hoogeboom, E., Welling, M.: E (n) equivariant graph neural networks. In: International Conference on Machine Learning, pp. 9323–9332 (2021). PMLR
- [32]He, X.-h., Li, J.-r., Xu, J., Shan, H., Shen, S.-y., Gao, S.-h., Xu, H.E.: AI-driven antibody design with generative diffusion models: current insights and future directions. Acta Pharmacologica Sinica 46(3), 565–574 (2025) https://doi.org/10.1038/s41401-024-01380-y . Publisher: Springer Science and Business Media LLC. Accessed 2025-05-23
- [33]Gabrielli, E., Pericolini, E., Cenci, E., Ortelli, F., Magliani, W., Ciociola, T., Bistoni, F., Conti, S., Vecchiarelli, A., Polonelli, L.: Antibody complementarity-determining regions (cdrs): a bridge between adaptive and innate immunity. PloS one 4(12), 8187 (2009)DOI
- [34]Mason, D.M., Friedensohn, S., Weber, C.R., Jordi, C., Wagner, B., Meng, S.M., Ehling, R.A., Bonati, L., Dahinden, J., Gainza, P., et al.: Optimization of therapeutic antibodies by predicting antigen specificity from antibody sequence via deep learning. Nature biomedical engineering 5(6), 600–612 (2021)DOI
- [35]Biasini, M., Schmidt, T., Bienert, S., Mariani, V., Studer, G., Haas, J., Johner, N., Schenk, A.D., Philippsen, A., Schwede, T.: Openstructure: an integrated software framework for computational structural biology. Biological crystallography 69(5), 701–709 (2013)DOI
- [36]Zhang, Y., Skolnick, J.: Scoring function for automated assessment of protein structure template quality. Proteins: Structure, Function, and Bioinformatics 57(4), 702–710 (2004)
- [37]Xu, J., Zhang, Y.: How significant is a protein structure similarity with tm-score= 0.5? Bioinformatics 26(7), 889–895 (2010)DOI
- [38]Mariani, V., Biasini, M., Barbato, A., Schwede, T.: lddt: a local superposition-free score for comparing protein structures and models using distance difference tests. Bioinformatics 29(21), 2722–2728 (2013)DOI
- [39]Basu, S., Wallner, B.: DockQ: a quality measure for protein-protein docking models. PloS one 11(8), 0161879 (2016)DOI

