Abstract
Inverse folding is an important step in current computational antibody design. Recently deep learning methods have made impressive progress in improving the sequence recovery of antibodies given their 3D backbone structure. However, inverse folding is often a one-to-many problem, i.e. there are multiple sequences that fold into the same structure. Previous methods have not taken into account the diversity between the predicted sequences for a given structure. Here we create AntiDIF, an antibody-specific discrete diffusion model for inverse folding. Compared with state-of-the-art methods, we show that AntiDIF improves diversity between predictions while keeping high sequence recovery rates. Furthermore, forward folding of the generated sequences shows good agreement with the target 3D structure.
Introduction
In antibody design, the "inverse folding" problem is a classic one-to-many mapping: many different amino acid sequences can potentially fold into the same 3D shape. While recent deep learning models have become very good at "sequence recovery" (predicting the original native sequence), they often lack diversity. For researchers, diversity is a critical feature. A target 3D structure for a therapeutic antibody requires multiple sequence options to optimize for secondary properties like stability, low immunogenicity, or manufacturability. Existing antibody-specific models often produce very similar outputs; attempting to force diversity through sampling "temperature" usually results in a sharp drop in accuracy.
AntiDIF is a new discrete diffusion model designed to address this. It generates a diverse set of valid sequences for a given structure, providing drug designers with a broader menu of candidates without sacrificing structural accuracy.
Methods
AntiDIF leverages discrete diffusion to navigate the sequence space, built upon the RL-DIF framework for general proteins. It utilizes the Discrete Diffusion Probabilistic Models (D3PM) framework, treating transitions between amino acids as a Markov process.
The core denoising engine uses PiGNN layers from the PiFold architecture. It processes 3D coordinates of the antibody backbone, constructs a k-nearest neighbor (kNN) graph between residues, and uses geometric features to predict the "clean" amino acid sequence from a noisy version. During training, the model learns to reverse a "forward noising" process. At inference, it starts with total noise and iteratively denoises the sequence, conditioned on the target 3D backbone.
The model was trained on the Structural Antibody Database (SAbDab) and the Observed Antibody Space (OAS), using ~148,000 predicted structures to ensure a wide variety of sequences. Strict filtering was applied to focus on the hypervariable Complementary Determining Regions (CDRs).
Breaking the Accuracy-Diversity Trade-off
A key insight of this work is that AntiDIF shifts the Pareto frontier of the inverse folding problem. In traditional models like AntiFold, increasing diversity via sampling temperature quickly degrades sequence recovery. AntiDIF maintains high accuracy while providing significantly more variety.
Because diffusion models are inherently generative and probabilistic, they are better suited for "one-to-many" problems than deterministic or simple softmax-based models. They sample from the entire distribution of plausible sequences rather than clustering around a single most likely candidate. Notably, CDRH3 remains the most challenging region, showing the lowest recovery and highest diversity across all models, reflecting its biological role as the most variable part of the antibody.
Key Results
AntiDIF achieves nearly an order of magnitude higher diversity than the current state-of-the-art (AntiFold) at default settings. Despite this, its sequence recovery rates remain competitive with AntiFold and outperform established models like AbMPNN and IF1 across most CDR loops.
To ensure these diverse sequences are physically plausible, the authors performed "forward folding" (predicting 3D structure from sequence). The resulting structures showed excellent agreement with target backbones, with RMSD values often below 1.0Å for most loops.
Limitations and Future Work
While computational metrics are strong, the study relies on ABodyBuilder2 for structural validation, which may introduce specific biases. Furthermore, the paper lacks experimental "wet-lab" data to confirm that these sequences retain binding affinity in practice. Future iterations could also benefit from conditioning generation on specific antigens to refine binding specificity.
Summary updated