SlowGuess's picture
Add Batch 8a0df344-8624-4ce1-8663-584eb11aa50d
1c9f708 verified

AbDiffuser: Full-Atom Generation of in vitro Functioning Antibodies

Karolis Martinkus1, Jan Ludwiczak1, Kyunghyun Cho1,4, Wei-Ching Liang2, Julien LaFrance-Vanasse2, Isidro Hotzel2, Arvind Rajpal2, Yan Wu2, Richard Bonneau1, Vladimir Gligorijevic1, Andreas Loukas1

1Prescient Design, Genentech, Roche 2Antibody Engineering, Genentech, Roche 4NYU

Abstract

We introduce AbDiffuser, an equivariant and physics-informed diffusion model for the joint generation of antibody 3D structures and sequences. AbDiffuser is built on top of a new representation of protein structure, relies on a novel architecture for aligned proteins, and utilizes strong diffusion priors to improve the denoising process. Our approach improves protein diffusion by taking advantage of domain knowledge and physics-based constraints; handles sequence-length changes; and reduces memory complexity by an order of magnitude, enabling backbone and side chain generation. We validate AbDiffuser in silico and in vitro. Numerical experiments showcase the ability of AbDiffuser to generate antibodies that closely track the sequence and structural properties of a reference set. Laboratory experiments confirm that all 16 HER2 antibodies discovered were expressed at high levels and that $57.1%$ of the selected designs were tight binders.

1 Introduction

We focus on the generation of immunoglobulin proteins, also known as antibodies, that help the immune system recognize and neutralize pathogens. Due to their potency and versatility, antibodies constitute one of the most popular drug modalities, with 10 out of 37 newly FDA-approved drugs in 2022 being immunoglobulins [58]. The ability to generate new antibodies with pre-defined biochemical properties in silico carries the promise of speeding up the drug design process.

Several works have attempted to generate antibodies by learning to form new sequences that resemble those found in nature [21; 19; 82]. An issue with sequence-based approaches is that it is hard to determine the properties that render a protein a functional molecule (and an antibody a potent drug) without inspecting a 3D model of the functional state such as an interface or active site. So far, almost all of the first design methods that have enabled novel protein design used carefully curated structure-function information to score the designs [45; 48; 30]. The determinant role of structure on function has motivated numerous works to co-design sequence and structure [4; 24; 89; 34; 43; 3; 51] or to first design the protein backbone and then fill in the amino acid identities [90; 32; 15; 87; 50; 92; 47].

An emerging paradigm for protein generation is that of equivariant diffusion [90; 89; 51]. Protein diffusion models combine ideas from equivariant and physics-informed protein structure representations [37] with advances in denoising diffusion probabilistic models [28] to gradually transform noise to a partial structure. The generated structure is then refined by adding side chains and optimizing atom positions to form a full-atom 3D model of a protein.

A pertinent challenge when generating protein structure is satisfying the appropriate equivariance and physics constraints while also balancing modeling complexity and fidelity. Most current protein models rely on equivariant transformers [37; 73] or graph neural networks [11; 43] to satisfy SE(3)

equivariance and typically represent parts of the protein geometry in angle space. The latter recipe can be set up to build a physics-informed model that respects (many) desired constraints but comes with increased complexity. As a consequence, these models are expensive to train and are often applied to a partial protein, ignoring the side chain placement [43; 51] or even deferring the determination of amino acid identity to a later stage [90; 32]. Alternatively, some works focus on the regeneration of complementarity-determining regions (CDRs) of antibodies that are of particular importance to binding [34; 43; 33; 53; 78; 44], which also helps to reduce the complexity of the problem.

Our work is motivated by the observation that key large protein families, here we focus on the antibody protein family, typically have strong properties, such as an ability to be mapped to a reliable sequence ordinate via sequence alignment. Our main contribution is an equivariant diffusion model called AbDiffuser that is designed to exploit these properties. We show that incorporating family-specific priors into the diffusion process significantly improves generation efficiency and quality.

AbDiffuser relies on a new universal SE(3) equivariant neural network that we call the Aligned Protein Mixer (APMixer). In contrast to existing equivariant architectures used for antibodies and proteins, APMixer models residue-to-residue relations implicitly and is particularly effective in handling sequence length changes. Additionally, its significantly smaller memory footprint makes it possible to generate full antibody structures, including framework, CDRs, and side chains. Our approach to residue representation is made possible by a projection method guaranteeing that bond and angle constraints are respected while operating in coordinate and not angle space, a better match to diffusion with Gaussian noise. We also benefit from the effects of overparameterization by scaling the network size to hundreds of millions of parameters on a single GPU; an order of magnitude improvement over the corresponding (E)GNN architectures. Having a powerful model that generates the full antibody structure is shown to be beneficial for the quality of the designed proteins.

We evaluate AbDiffuser on the generation of antibodies from paired Observable Antibody Space (pOAS) [61], modeling of HER2 binders and antigen-conditioned CDR redesign. Numerical experiments demonstrate that the proposed representation, architecture, and priors enable AbDiffuser to better model the sequence and structural properties of natural antibodies. We also submitted a subset of our proposed HER2 binders for experimental validation in a laboratory. Of the 16 samples submitted, $100%$ were expressed as actual antibodies and $37.5%$ bound to the target with an average pKD of 8.7. Of these, the subset containing raw/filtered samples achieved a binding rate of $22.2% / 57.1%$ and an average pKD of 8.53/8.78, with our tightest binder slightly improving upon the affinity of the cancer drug Trastuzumab. These results provide the first experimental evidence that a generative model trained on mutagenesis data can reliably (with high probability) create new antibody binders of high affinity, even without post-selection by learned or physics-based binding predictors.

Due to space limitations, we refer the reader to the appendix for a detailed discussion of related work, for method details including proofs, as well as for additional numerical results.

2 Denoising Diffusion for Protein Generation

This section describes how we utilize denoising diffusion to generate antibody sequence and structure. The ideas presented are influenced by previous work on denoising diffusion [26; 5; 28]. The main contributions that distinguish our work are presented in Sections 3 and 4.

We adopt the denoising diffusion framework in which, given a data point $X_0$ , the forward diffusion process gradually adds noise to form corrupted samples $X_{t}$ . These samples form a trajectory $(X_0,X_1,\dots,X_t,\dots,X_T)$ of increasingly noisy data, interpolating from the data distribution $X_0\sim p(X_0)$ to that of an easy-to-sample prior $X_{T}\sim p(X_{T})$ , such as a Gaussian. The process is constructed to be Markovian, so that $q(X_{2},\ldots ,X_{T}|X_{0}) = q(X_{1}|X_{0})\Pi_{t = 2}^{T}q(X_{t}|X_{t - 1})$ .

To generate new data, a neural network learns to approximate the true denoising process $\hat{X}_0 = \phi(\bar{X}_t, t)$ , which can be achieved by minimizing the variational upper bound of the negative log-likelihood [84; 26; 5]. In our diffusion process, we factorize the posterior probability distribution over the atom positions and residue types:

q(Xt∣Xtβˆ’1)=q(Xtpos∣Xtβˆ’1pos)q(Xtres∣Xtβˆ’1res), q (X _ {t} | X _ {t - 1}) = q (X _ {t} ^ {\mathrm {p o s}} | X _ {t - 1} ^ {\mathrm {p o s}}) q (X _ {t} ^ {\mathrm {r e s}} | X _ {t - 1} ^ {\mathrm {r e s}}),

where a Gaussian and a categorical distribution govern the noise applied to atom positions and residue types, respectively. We cover these in detail in Sections B.2 and B.3. The reverse diffusion process is

joint: the model jointly considers atom positions and residue types $(\hat{X}_0^{\mathrm{pos}},\hat{X}_0^{\mathrm{res}}) = \phi (X_t^{\mathrm{pos}},X_t^{\mathrm{res}},t)$ . Throughout the paper, we use $X^{\mathrm{pos}}\in \mathbb{R}^{n\times 3}$ as a matrix of antibody atom positions and $X^{\mathrm{res}}\in \mathbb{R}^{r\times 21}$ as a matrix of one-hot encodings of residue types (20 amino acids and a gap).

3 Aligned Protein Mixer

We present Aligned Protein Mixer (APMixer), a novel neural network for processing proteins from a family of aligned proteins. In particular, we focus on antibodies, although the method can in principle be applied to any sufficiently large protein family by using a family-specific global alignment [81; 57]. We first explain how we ensure SE(3) equivariance and how we account for variable sequence lengths in Sections 3.1 and 3.2. The model is detailed in Section 3.3 and our approach to incorporate physics-based constraints on bond angles and lengths is described in Section 3.4.

3.1 SE(3) Equivariance by Frame Averaging

Any neural network $\phi$ whose input $X$ has dimension $n\times 3$ can be made equivariant or invariant to group transformations by averaging the model outputs over a carefully selected subset of group elements called frames $\mathcal{F}(X)$ [68]. For example, this has been used successfully to make equivariant self-attention models for the prediction of protein-ligand binding energy [35].

We achieve the desired equivariance to rotations and translations (the SE(3) group) as follows:

Xp o s=1∣F(Xp o s)βˆ£βˆ‘(R,t)∈F(Xp o s)Ο•(Xp o sRβˆ’1t,Xr e s)RT+1t,(1) X ^ {\text {p o s}} = \frac {1}{| \mathcal {F} (X ^ {\text {p o s}}) |} \sum_ {(R, t) \in \mathcal {F} (X ^ {\text {p o s}})} \phi (X ^ {\text {p o s}} R - 1 t, X ^ {\text {r e s}}) R ^ {T} + 1 t, \tag {1}

where $t = \frac{1}{n}\mathbf{1}^T X^{\mathrm{pos}}$ is the centroid of our points and the four canonical rotation matrices $R$ forming the four frames $\mathcal{F}(X^{\mathrm{pos}}) \subset \operatorname{SE}(3)$ needed to achieve equivariance can be determined based on Principle Component Analysis. More specifically, we obtain three unit-length eigenvectors $v_{1}, v_{2}, v_{3}$ corresponding to the eigenvalues $\lambda_{1}, \lambda_{2}, \lambda_{3}$ from the eigendecomposition of the covariance matrix $C = (X^{\mathrm{pos}} - 1t)^T(X^{\mathrm{pos}} - 1t) \in \mathbb{R}^{3 \times 3}$ and define the four frames as

F(Xpos)={([Ξ±v1,Ξ²v2,Ξ±v1Γ—Ξ²v2],t)∣α,β∈{βˆ’1,1}}. \mathcal {F} (X ^ {\mathrm {p o s}}) = \left\{\left([ \alpha v _ {1}, \beta v _ {2}, \alpha v _ {1} \times \beta v _ {2} ], t\right) | \alpha , \beta \in \{- 1, 1 \} \right\}.

To respect the fixed chirality of proteins observed in humans, we desire equivariance w.r.t. SE(3) and not E(3) which also includes reflections. As such, when constructing frames the third axis sign is not varied but its direction is determined by the right-hand rule (cross product of the first two axes).

SE(3) invariance can be similarly achieved:

Xr e s=1∣F(Xp o s)βˆ£βˆ‘(R,t)∈F(Xp o s)Ο•(Xp o sRβˆ’1t,Xr e s)(2) X ^ {\text {r e s}} = \frac {1}{\left| \mathcal {F} \left(X ^ {\text {p o s}}\right) \right|} \sum_ {(R, t) \in \mathcal {F} (X ^ {\text {p o s}})} \phi \left(X ^ {\text {p o s}} R - 1 t, X ^ {\text {r e s}}\right) \tag {2}

We make use of equation 2 when denoising residue types $X^{\mathrm{res}}$ as they are invariant to the rotation of the antibody, and equation 1 for the prediction of atom positions $X^{\mathrm{pos}}$ .

3.2 Handling Length Changes by Multiple Sequence Alignment

The version of APMixer investigated in this work is built on top of the AHo antibody residue numbering scheme proposed by Honegger and Pluckthun [27]. This numbering scheme was constructed in a data-driven fashion using information from known antibody structures. For each residue in an antibody chain, it assigns an integer position in [1, 149] based on the structural role of the residue (e.g. being in a particular CDR loop or in the framework region between two particular CDR loops). Essentially all known antibodies fit into this representation [27].

As we are modeling paired antibody sequences (the heavy and light chain), the full representation is a $2 \times 149$ element sequence, where 149 heavy chain elements are followed by 149 light chain elements. We represent AHo gaps physically as 'ghost' residue placeholders; their position is determined in data pre-processing by linearly interpolating between the corresponding atoms of the nearest existing residues (trivial, due to the use of AHo numbering).

Our experiments confirm that the proposed representation consistently improves generation quality. The reason is two-fold: a) Each antibody chain is now represented as a fixed-length sequence with

149 positions that are either empty gaps or are filled with an appropriate amino acid. This fixed-length representation encompasses antibodies with diverse loop lengths via alignment and thus allows our generative model to internally choose how many residues the generated protein will have. In contrast, many of the non-sequence-based protein, small molecule, and graph generative models [49; 54; 28; 90; 32] require the number of elements in the object to be specified beforehand. b) The sequence position directly implies the structural role that the amino acid needs to perform, which makes it easier for the model to pick up structure-specific rules.

3.3 The APMixer Architecture

Our use of a fixed length representation for the immunoglobin variable domain fold family (Section 3.2) also allows us to forgo traditional architecture choices in favor of a more efficient architecture inspired by the MLP-Mixer [86]. We build the model architecture out of blocks, where each block consists of two MLPs, that are applied consecutively on the columns and the rows

X.,j=X.,j+W2ρ(W1L a y e r N o r m(X.,j))f o r a l lj∈[c] X _ {., j} = X _ {., j} + W _ {2} \rho \left(W _ {1} \text {L a y e r N o r m} \left(X _ {., j}\right)\right) \text {f o r a l l} j \in [ c ]

Xi,β‹…=Xi,β‹…+W4ρ(W3L a y e r N o r m(Xi,β‹…))f o r a l li∈[r], X _ {i, \cdot} = X _ {i, \cdot} + W _ {4} \rho \left(W _ {3} \text {L a y e r N o r m} \left(X _ {i, \cdot}\right)\right) \text {f o r a l l} i \in [ r ],

of the input matrix $X \in \mathbb{R}^{r \times c}$ , with $\rho$ being an activation function, and using the notation $[k] = (1, \ldots, k)$ . We define the model input as a fixed-size matrix $X$ combining $X^{\mathrm{pos}}$ and $X^{\mathrm{res}}$ with one sequence element per row ( $2 \times 149$ rows in total). In each row, we encode the residue type and all of the atom positions for that residue (e.g., the $C, C_{\alpha}, N, C_{\beta}$ backbone atoms). These input matrix rows are embedded in higher-dimensional vectors using an MLP. Specifically, using this representation, our input matrix $X$ has $r = 2 \times 149$ rows and $c = 21 + 4 \times 3$ columns.

To achieve equivariance to atom translations and rotations, we can either apply frame averaging (Section 3.1) on the whole model or on each AbDiffuser block individually. We chose the second option as in our preliminary experiments this improved performance. Frame averaging can be applied on high-dimensional embeddings simply by splitting them into three-dimensional sub-vectors and using each to compute the SE(3) frames [68]. To account for that residue types are invariant to Euclidean transformations, while the atom positions are equivariant, we split each block's input and output vectors in half, with one half being treated equivariantly and the other invariantly.

Model complexity and SE(3)-universality. APMixer models pairwise interactions implicitly by operating on rows and columns of the input interchangeably. Thus, its memory complexity grows linearly with the number of residues. This contrasts with the usual quadratic complexity of traditional structure-based models and allows us to do more with a fixed run-time, parameter, and/or memory budget. In Appendix G we prove that the model on top of which APMixer is built is SE(3)-universal, meaning that it can approximate any SE(3)-equivariant function.

We also remark that, in principle, other models, such as a 1D CNN or a transformer, could be used in place of the MLPs in APMixer. With such sequence-length-independent models, we would no longer require a multiple sequence alignment of the given protein family, though this would possibly come at the expense of universality and efficiency.

3.4 Physics-informed Residue Representation by Projection

Atoms within a protein adhere to strong constraints. In principle, a neural network trained with enough data can learn to respect these constraints. However, over a fixed data budget, it can be advantageous to construct a model in a manner that guarantees that its outputs never violate the constraints. Previous work commonly represents proteins in terms of rotation and translation of rigid residue frames and uses idealized residue representations to recover atom positions [37; 73]. Although there is a long tradition of modeling backbone and side chain degrees of freedom in angle space [67; 14], operating in angle space adds modeling complexity and makes diffusion potentially inaccurate [94; 8; 90]. We take a different route and devise a way to respect bond constraints while operating in a global coordinate frame, which works seamlessly with standard Gaussian diffusion for atom positions.

Specifically, inspired by interior-point methods [72] that alternate between optimization and projection steps, we design a new non-parametric projection layer that is applied to both model inputs and outputs. The model and the noising process are allowed to move the atoms freely, and the projection layer then corrects their positions such that the constraints are respected.

Backbone residue projection. We use a reference residue backbone $(C, C_{\alpha}, N, C_{\beta})$ with idealized bond lengths and angles [17]. As the backbone atoms are rigid, we rely on the Kabsch algorithm [38] to identify the optimal roto-translation between the projection layer's input and the rigid reference residue's atom positions. We apply the transformation to the reference residue and output the resulting atom positions. We also ensure that the distance between the corresponding $C$ and $O$ atoms in the output is 1.231 Γ… while staying as close as possible to the input $O$ position. The reference residue is also used to represent the AHo ghost residue atoms. Idealizing a backbone in this way usually results in a negligible RMSE to the original structure of $\sim 5 \cdot 10^{-3} \AA$ .

Side chain projection. We employ a similar idea to constrain the placement of side chains. In contrast to structure prediction [37; 46], we cannot use one idealized side chain per amino acid, since the sequence is unknown during generation. Our solution is to convert all side chains to a generic representation with enough degrees of freedom to account for the exact placement of all atoms. The amino acid side chains have up to 4 bonds that they can rotate around by dihedral angles. These degrees of freedom can be captured by constructing a side-chain template that consists of 4 pseudo-carbon atoms, for which the dihedral angles are rotated in the same way as for the original side chain. If the original side chain has fewer degrees of freedom, we simply set the corresponding dihedral angles to $180^{\circ}$ such that the atoms forming the dihedral angle lie on a plane. The projection layer then only has to ensure that the bond lengths between the pseudo-atoms are respected. We set the bond length to $1.54\AA$ because carbon atoms are the most common atoms that form the dihedral angles of real amino acids. This representation can be seen in Figure 1. To recover the full-atom structure, we extract the dihedral angles from the side chain template; the angles are then applied to idealized amino acid-specific templates.


Figure 1: The proposed internal generic side chain representation. The dihedral-defining atoms (orange) from the full-atom representation (top) are used to construct a generic four-atom representation (bottom). If the side chain has fewer than four angles, additional atoms (gray) are placed in the generic side chain to correspond to a $180^{\circ}$ angle. The full atom representation is recovered by applying matching rotations to an appropriate side chain template.

4 Informative Diffusion Priors

It has been hypothesized that diffusion processes for generation should be tailored to the particular task to increase performance [88; 5]. In Appendix E.1, we present a theoretical argument confirming that choosing a good prior reduces the complexity of the learnable model needed to achieve good-quality denoising. Our bound stated in Theorem E.1 reveals that one cannot learn a simple generative model that fits the data well unless the prior has a small Wasserstein distance to the data distribution.

Armed with this knowledge, we next introduce two types of priors that are incorporated into our diffusion model: a) position-specific residue frequencies that describe sequence conservation of the immunoglobulin fold, and b) conditional dependencies between atom positions.

4.1 AHo-specific Residue Frequencies

A separate benefit of having a fixed-length sequence representation (see Section 3.2) is that we can use the residue frequency at each position as a diffusion prior. To do this, we estimate marginal position-specific categorical distributions $Q^1, \ldots, Q^{2*149}$ over residue types from the training data and use these to define the noise in the discrete residue-type diffusion (see Appendix B.3). Since AHo aligns residues based on their structural role within the protein, the estimated prior distributions exhibit significant variability across positions and have low entropy in preserved regions of the immunoglobulin fold. In this way, the noise $q(X_t^{\mathrm{res}}|X_0^{\mathrm{res}}) = \mathrm{Cat}(X_0^{\mathrm{res}}(\beta_tI + (1 - \beta_t)Q^i))$ at every step of the forward process depends on the residue position $i$ in the fixed-length sequence representation. Gap frequencies are also captured in these noise matrices.

4.2 Encoding Conditional Atom Dependencies

It is a consequence of their chain-like structure that neighboring residue atom positions of proteins are strongly correlated. Theorem E.1 suggests that encoding these correlations within the diffusion process eases the denoising complexity and can free the model to focus on more challenging aspects.

To this end, we capture the conditional independence relations between atom positions by a Gaussian Markov Random Field (GMRF) [42]. The latter corresponds to a Gaussian $\mathcal{N}(0,\Sigma)$ over atom positions whose precision matrix $\Sigma^{-1} = L + aI$ is equal to the shifted graph Laplacian $L = \mathrm{diag}(A1) - A$ associated with the adjacency matrix $A$ . The GMRF operates under the assumption that node features (e.g., 3D positions) for which there is no edge in the adjacency $A$ are conditionally independent. Some concurrent works [32; 36] also considered conditional atom dependencies by hand-crafting correlation matrices that capture chain relations between residues. We take a step further by proposing to automatically learn the sparse conditional dependence relations from the training data. Our approach entails estimating a sparse adjacency matrix $A$ that captures the data variance under the GMRF model. The details are described in Appendix F.

5 Experiments

We evaluate AbDiffuser's ability to design antibodies. After describing the experimental setup and metrics, Section 5.1 presents in silico tests illustrating the effect of our proposed changes on the generation quality. Section 5.2 details in vitro results showcasing the ability of our method to design new expressing antibodies that bind to a known antigen. Further analyses can be found in the Appendices K and L, whereas experiments on CDR redesign in SAbDab are in Appendix N.

Baselines. We compare APMixer with: a) a sequence transformer based on BERT [12; 74] whose output is folded to recover the structure; b) an E(n) Equivariant Graph Neural Network (EGNN) [75] which is a popular choice for tasks such as 3D molecule generation [28], antibody CDR loop inpainting [43], and antibody generation [89]; and c) a FA-GNN [68], corresponding to a standard GNN with SE(3) equivariance attained by frame averaging. We also evaluate the proposed informative antibody-specific priors using all of these architectures. To ensure the comparison is performed fairly and under similar settings, we always use the projection layer and our diffusion implementation only varying the denoising model architecture. In the OAS task, we also compare our diffusion-based approach with d) the IgLM [80] antibody language model. To ensure that it generates paired OAS-like sequences, we condition the generation on the subsequences of the first and last few amino acids taken from pOAS sequences (something that our approach does not need). It is also important to note that the comparison is not fair, since the publicly available IgLM model was trained on 558M sequences that also include the whole paired OAS (105k sequences) and the test set we use. So, in many ways, IgLM's performance represents the best results we could ever hope to achieve with a sequence-only approach. We also compare with e) dyMEAN [44], which is the only other antibody generative model previously shown to be able to jointly generate the full strucuture and sequence. In the binder generation task, we compare with f) RefineGNN [34], g) MEAN [43] and h) DiffAb [53], three state-of-the-art geometric deep learning methods for CDR redesign.

Metrics. The quality of generated sequences is measured in terms of their naturalness (inverse perplexity of the AntiBERTy [74] model), closeness to the closest antibody in the training set in terms of edit distance, and stability estimated by IgFold. We also verify that the generated antibody sequences satisfy the appropriate biophysical properties using four additional structure-based metrics [69]: CDR region hydrophobicity (CDR PSH), patches of positive (CDR PPC), and negative charge (CDR PNC), and symmetry of electrostatic charges of heavy and light chains (SFV CSP). The metrics applied to generated structures focus primarily on the estimated free energy $\Delta G$ using Rosetta [2] and RMSD for backbone heavy atom positions as compared to IgFold [73] predictions. More details can be found in Appendix J.

As we want to estimate how well the entire data distribution is captured, in all cases except RMSD, we report the Wasserstein distance between the scores of the sequences in the test split and the scores of the generated sequences. As a reference, we also report the baseline metrics achieved by the sequences and structures in the validation set. A generative model that approaches or matches these values is effectively as good at modeling the distribution of the specific metric in consideration as i.i.d. sampling. The test set and the generated set always have 1000 examples.

Further details on training and implementation can be found in Appendix M.

ModelW1(Nat.)↓W1(Clo.)↓W1(Sta.)↓W1(PSH)↓W1(PPC)↓W1(PNC)↓W1(CSP)↓W1(Ξ”G)↓RMSD↓
Validation Set Baseline0.01500.00430.01020.83010.04410.01760.48891.0814β€”
Transformer0.53080.44101.228425.82650.23240.22782.7925β€”β€”
Transformer (AHo)0.44560.34740.53516.44900.16410.05932.3472β€”β€”
IgLM* [80]0.11030.04840.057711.06750.04130.06711.9274β€”β€”
dyMEAN [44]0.13190.16000.04233.91450.15660.29292.3711601.11533.8157
EGNN0.39880.26550.35472.11150.14860.10851.98811586.01609.8231
EGNN (AHo)0.33290.22290.29048.16200.12630.10750.79781714.273410.0628
EGNN (AHo & Cov.)0.34820.23740.24432.56320.11900.04621.21841015.89269.4814
FA-GNN0.41410.28220.43022.53300.16960.11641.788622.79880.8617
FA-GNN (AHo)0.34070.22630.23442.32720.14110.13061.60468.75060.8321
FA-GNN (AHo & Cov.)0.27850.16690.08155.44400.04930.02120.776815.36700.8814
AbDiffuser (uniform prior)0.28370.14190.21883.13640.07270.16911.387438.84170.8398
AbDiffuser (no projection)0.23780.15290.06942.35300.06370.07930.73766313.249511.1431
AbDiffuser (no Cov.)0.23090.11070.12351.23920.06640.05110.645317.73220.6302
AbDiffuser0.19790.09210.06622.32190.03140.02850.666213.30510.5230
AbDiffuser (side chains)0.09160.05200.01866.31660.02090.07540.867616.61170.4962

Table 1: Antibody generation based on Paired OAS [61]. AHo denotes models that use AHo numbering and position-specific residue frequencies. Cov denotes models that use the learned covariance. IgLM is denoted by * since it was trained on significantly more data (including the test set) and was given part of the sequence to bootstrap generation. The top three results in each column are highlighted as First, Second, Third.

ModelParameters ↑Memory (training) ↓Memory (generation) ↓Generation time ↓
Transformer84M14GB15GB3.2 min
EGNN39.3M78GB16GB22.6 min
FA-GNN9.4M75GB38GB9.5 min
AbDiffuser169M12GB3GB2.3 min

Table 2: Number of parameters, model memory consumption during training with a batch size of 4 and memory consumption with the time taken to generate a batch of 10 examples for paired OAS.

5.1 Paired OAS Generation

We focus on matching the distribution of 105k paired sequences from the Observed Antibody Space database [61] folded with IgFold and optimized with Rosetta [2].

Table 1 summarizes the results. Generated samples by AbDiffuser improve upon baselines on nearly all fronts, even compared to the IgLM language model which was trained on magnitudes more data (especially when concerning structure-related metrics). dyMEAN GNN-based model struggles in this distribution modeling task and is the only model tested that does not achieve the perfect uniqueness of the generated samples (58. $2%$ unique). The experiment also corroborates our analysis (Theorem E.1) on the benefit of informative priors to diffusion: using a position-specific residue type frequency (AHo) and encoding conditional atom dependencies through a learned covariance matrix (Cov.) helps to improve the ability of most models to capture the pOAS distribution. Interestingly, including the learned covariance can sometimes noticeably improve the quality of the generated sequences (FA-GNN), but its strong benefit to structure quality is only felt when the model is powerful enough to model the structure well (APMixer). Inclusion of AHo numbering and position-specific frequencies improves all models. We perform a similar ablation for APMixer by setting the prior distribution to uniform (uniform prior) and observe a similar performance drop.

To interpret the fidelity of the generated structures, we recall that IgFold uses an ensemble of 4 models followed by Rosetta optimization and that, on average, individual IgFold models (before ensembling) achieve an RMSD of 0.4239 on the test set. Therefore, in this regard, the structures created by AbDiffuser are nearly indistinguishable from the test set structures (RMSD of 0.4962). A more detailed analysis of per-region RMSD can be found in Appendix K. We further observe that when no projection layer is used and instead one uses standard diffusion to predict the noise added to the atom positions [28], the training becomes less stable and the model can fail to learn to generate good structures. Encouragingly, forcing AbDiffuser to model side chain positions alongside the backbone tends to improve the similarity of the generated sequences (Naturalness, Closeness, Stability). This is likely due to the strong coupling between feasible side chain conformations and residue types. The generated side chains get an average Rosetta packing score of 0.624, whereas folded and Rosetta-optimized structures have a mean packing score of 0.666. Recalling that a packing score above 0.6 is widely considered good [77; 66; 3], we deduce that AbDiffuser is able to generate physically plausible side chain conformations. When available, we also use the side chain positions

ModelW1(Nat.) ↓W1(Clc.) ↓W1(Sta.) ↓W1(PSH) ↓W1(PPC) ↓W1(PNC) ↓W1(CSP) ↓W1(Ξ”G) ↓RMSD ↓pbind ↑Uniq. ↑
Validation Set Baseline0.00110.00030.00611.31830.01960.01140.32802.0350β€”0.8676100%
MEAN [43]0.00720.00090.02678.41840.01840.02310.41088.59810.77920.776738.9%
DiffAb [53]0.00740.00140.04980.54810.00970.00673.46476.74190.41510.887699.7%
RefineGNN [34]0.00110.00040.00260.54820.00530.00460.1260β€”β€”0.7132100%
Transformer (AHo)0.00140.00310.00971.36810.01710.01400.2657β€”β€”0.3627100%
EGNN (AHo & Cov.)0.00130.00300.01021.12410.01230.02360.24411967.52809.21800.3626100%
FA-GNN (AHo & Cov.)0.00180.00300.00630.41580.01070.00560.264476.78523.18000.4576100%
AbDiffuser0.00130.00180.00280.49680.02050.01130.15886.43010.38220.5761100%
AbDiffuser (side chains)0.00100.00050.00621.29090.01150.00290.094832.04640.40460.6848100%
AbDiffuser (Ο„ = 0.75)0.00050.00110.00540.39340.01480.01290.17856.24680.37070.6382100%
AbDiffuser (s.c., Ο„ = 0.75)0.00050.00040.01261.85100.01260.00170.091712.89230.39820.7796100%
AbDiffuser (Ο„ = 0.01)0.00080.00140.02652.59440.02060.00530.237815.22000.33450.911599.7%
AbDiffuser (s.c. Ο„ = 0.01)0.00150.00240.01591.50430.02100.01260.5173114.48410.67950.943691.4%

Table 3: Generating Trastuzumab mutants based on the dataset by Mason et al. [55]. The top three results in each column are highlighted as First, Second, and Third. Multiple approaches can generate sequences similar to the test set, but generating predicted binders (large $p_{\mathrm{bind}}$ ) is considerably harder.

predicted by the model for the $\Delta G$ energy estimation. Even though this procedure is expected to generate results slightly different when compared to backbone-only models (in the latter case missing side chain atoms are first repacked based on the rotamer libraries before the energy minimization step), we still observe a high overlap between the resultant energies. This further highlights the quality of side-chain prediction.

It should be noted that $\Delta G$ energy computation and some additional structure-based metrics [69] (i.e., CDR PSH, CDR PPC, CDR PNC, SFV CSP) are inherently susceptible to even minor changes in the geometry of the modeled structures. Thus, in line with the discussions by Raybould et al. [69], the overall trends of these metrics can be used to assess the generated samples as similar or dissimilar to the reference distributions, but one should not fall into the trap of overly focusing on the specific values attained. From this perspective, most structure-based models do sufficiently well on these metrics, perhaps with the exception of EGNN $\Delta G$ .

In Table 2 we show that APMixer is able to use an order of magnitude more parameters with a smaller memory footprint during training and offers more efficient sample generation, compared to the baseline architectures, on Nvidia A100 80GB GPU.

5.2 Generating HER2 Binders

Antibody generative models can be used to explore a subset of the general antibody space, such as the binders of the target antigen. The purpose of modeling and expanding a set of binders is twofold: a) it allows us to rigorously validate our generative models in a setup more tractable than denovo design; b) from a practical standpoint, it sets the ground for the optimization of properties that render binding antibodies drugs, such as developability, immunogenicity, and expression, allowing efficient exploration of the binder space [21; 63]. Note that sufficiently large libraries consisting of antibodies of variable binding affinity are usually discovered during the very early stages of the drug design process by means of high-throughput experiments [64; 76; 55]. Thus, the data used here can be sufficiently easier to obtain than the crystal structures usually assumed in CDR redesign experiments.

We use the Trastuzumab CDR H3 mutant dataset by Mason et al. [55] which was constructed by mutating 10 positions in the CDR H3 of the cancer drug Trastuzumab. The mutants were then evaluated using a high-throughput noisy assay to determine if they bind the HER2 antigen. After discarding all duplicate sequences and sequences that appear in both the binder set and the non-binder set, we are left with 9k binders and 25k non-binders. The generative models were trained only on the binder set. Separately, we train a classifier based on the APMixer architecture to distinguish binders from non-binders. The classifier achieves $87.8%$ accuracy on a randomly selected test set of 3000 antibodies, implying that the predicted binding probability is a somewhat informative metric for how tightly the binder distribution is approximated by the models.

The computational results summarized in Table 3 evidence that AbDiffuser closely approximates the binder distribution. Although most models achieve results close to those achieved by the validation set1, the sequence-based baseline struggles to capture the features that convey binding; evidenced by the low predicted binding probability. GNN-based baselines struggle to predict the correct structure

(RMSD above 3) producing structures with unreasonably high Amber energy. As a result, the binding probability of their designs is lower than that of the more powerful structural models.

Next, we look at the two baselines that only redesign CDR H3 instead of generating the whole antibody. RefineGNN [34] manages to closely capture the sequence and biophysical characteristics and generates sufficiently good binders. DiffAb [53], which is another diffusion-based model, achieves the best binding probability out of the CDR redesign baselines. MEAN [43] generated few unique sequences (38.9% uniqueness) and failed some of the distribution-based metrics (Naturalness, CDR PSH). dyMEAN [44] collapsed to always generating a single sample, thus we did not report its results. The overfitting behavior of MEAN and dyMEAN can be attributed to the reconstruction-based training objective and the fact that they were designed for a slightly different task of CDR redesign with different antigens, instead of the single antigen we have here.

Due to the use of iterative refinement and reconstruction-based training objectives, RefineGNN and MEAN focus on the generation of the most likely examples. Focusing on high-likelihood modes is especially beneficial here, as the experiment that was used to create the dataset is noisy. Diffusion models can also be adjusted to focus on prevalent modes by reducing the temperature $\tau$ of the denoising process. In the Gaussian case, we specified the temperature as the scaling factor of the noise added during the reverse process (Appendix B.2), whereas in the discrete case we specified it as the temperature of the model output softmax function (Appendix B.3). We observe that a slight reduction of the temperature helps to improve the general distribution fit across almost all metrics. Reducing the temperature further boosts the binding probability, but, as expected, can result in a slight loss of diversity. Using a higher temperature slightly increases the Stability Wasserstein distance while improving Stability. The phenomenon occurs because the model is no longer concerned with fitting low-likelihood modes of the real distribution that contain structures of poor stability.

In contrast to MEAN, RefineGNN and DiffAb, which only redesign the CDR H3 of the test-set structures, AbDiffuser generates full antibodies and still achieves better sequence similarity. MEAN [43] also produced structures of noticeably worse RMSD, which can be explained as follows: a) as we see in Appendix K, MEAN does not predict CDR H3 positions as well; b) changing CDR H3 can impact the most-likely conformation of the overall antibody, something that the CDR inpainting models cannot account for. We do not report the RMSD and $\Delta G$ for RefineGNN as it does not place the generated CDR H3 loop in the reference frame of the original antibody.

The AbDiffuser model that also generates side chains generally achieved better sequence similarity (Naturalness, Closeness) and better binding probability than the backbone-only model, but a worse similarity of sequence stability. Furthermore, while the side chain model achieved a worse overall structure quality ( $\Delta G$ , RMSD), as we see in Appendix K it predicted CDR H3 positions more precisely, which is the main desideratum in this experiment.

5.3 In Vitro Validation

We further validate our designs through an in vitro experiment. As shown in Figure 2, all submitted designs were expressed and purified successfully (average concentration of $1.25\mathrm{mg / ml}$ ) and an average of $37.5%$ of the designs were confirmed binders with $\mathrm{pKD}\in [8.32,9.50]$ (higher is better) whose average was 8.70. The binding rate was improved (from $22.2%$ to $57.1%$ ) when considering designs that were additionally filtered so that they were better than the bottom 25th quantile in every metric (naturalness, RMSD, etc.) and a classifier trained to distinguish binders from non-binders predicted that they bound with high confidence. This increase in binding for filtered samples suggests that our selected metrics indeed correlate with desirable in vitro characteristics. Our best binder belonged to the latter set and its pKD of 9.50 was slightly above Trastuzumab (not in the training set) while differing in 4 positions of the CDR H3 loop. Further examination of the top binders is performed in Figure 3 and Appendix L.

In contrast to the only other comparable study for ML-based Trastuzumab CDR H3 mutant design by Shanehsazzadeh et al. [76], our best binder had $\mathrm{pKD} = -\log_{10}(3.17^{-10}) = 9.50$ , while the best binder found by Shanehsazzadeh et al. had $\mathrm{pKD} = 9.03$ . Two important differences between the two studies are that: we trained on binders and tested 16 samples in the wet lab, while Shanehsazzadeh et al. used a simpler sequence infilling model trained on a large set of generic antibodies to generate 440k candidate sequences that were filtered in the wet-lab using high-throughput screening to identify 4k binders, of which 421 were selected to be tested using precise SPR measurements. The fact that our


Figure 2: In vitro validation of AbDiffuser designs in terms of their ability to express (left), binding affinity (center), and binding rate (right). The 'raw' column corresponds to randomly selected generated antibodies, whereas 'filtered' designs were additionally filtered by in silico screening.


Figure 3: HER2 structure and the 3D structures of generated binders highlighted in different colors. AbDiffuser has learned to redesign part of the binding interface while maintaining affinity. Our tightest binder achieved a pKD of 9.5 which, accounting for experimental variability, is akin to Trastuzumab whose average measured pKD was 9.21.

approach required 26x fewer precise SPR wet-lab experiments to find a better binder hints toward a major improvement in efficiency. This highlights the importance of new and more efficient generative models for antibodies and more efficient, and thus powerful architectures such as APMixer.

The work of Shanehsazzadeh et al. [76] also shows that high-throughput wet-lab experiments can be used to build sufficiently large datasets of target-specific binders without starting from a known binder. This provides a straightforward way to train AbDiffuser on new targets.

After good binders are determined through high-throughput and SPR experiments, at the end of the drug discovery process, an experimental 3D structure of the bound complex is often produced. In recent works, redesigning CDRs in such co-crystal structures has been a popular task [53; 43; 34]. To that end, Appendix N investigates how AbDiffuser can be adopted for it and shows that it offers much better sequence recovery rates than the current state-of-the-art diffusion model for the CDR redesign [53].

6 Conclusions

We propose a denoising model that deviates from conventional practice in deep learning for protein design. APMixer enjoys the benefits of the best protein models (SE(3) equivariance, universality), while being significantly more memory efficient. We also show how to tailor the diffusion process to antibody generation by incorporating priors that enable the handling of variable-length sequences and allow the model to navigate strong bond constraints while operating in an extrinsic coordinate space that supports Gaussian noise. In our future work, we want to apply our method to protein families beyond antibodies, as organized in CATH [81] and Pfam [57]. Promising examples include the TIM-barrel fold and enzyme families, such as SAM-dependent methyltransferases, long-chain alcohol oxidases, and amine dehydrogenases [83].

References

[1] R. Akbar, P. A. Robert, M. Pavlovic, J. R. Jeliazkov, I. Snapkov, A. Slabodkin, C. R. Weber, L. Scheffer, E. Miho, I. H. Haff, et al. A compact vocabulary of paratope-epitope interactions enables predictability of antibody-antigen binding. Cell Reports, 34(11):108856, 2021.
[2] R. F. Alford, A. Leaver-Fay, J. R. Jeliazkov, M. J. O'Meara, F. P. DiMaio, H. Park, M. V. Shapovalov, P. D. Renfrew, V. K. Mulligan, K. Kappel, et al. The rosetta all-atom energy function for macromolecular modeling and design. Journal of chemical theory and computation, 13(6):3031–3048, 2017.
[3] N. Anand, R. Eguchi, I. I. Mathews, C. P. Perez, A. Derry, R. B. Altman, and P.-S. Huang. Protein sequence design with a learned potential. Nature communications, 13(1):1-11, 2022.
[4] I. Anishchenko, S. J. Pellock, T. M. Chidyausiku, T. A. Ramelot, S. Ovchinnikov, J. Hao, K. Bafna, C. Norn, A. Kang, A. K. Bera, et al. De novo protein design by deep network hallucination. Nature, 600(7889):547-552, 2021.
[5] J. Austin, D. D. Johnson, J. Ho, D. Tarlow, and R. van den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in Neural Information Processing Systems, 34: 17981-17993, 2021.
[6] S. Bachas, G. Rakocevic, D. Spencer, A. V. Sastry, R. Haile, J. M. Sutton, G. Kasun, A. Stachyra, J. M. Gutierrez, E. Yassine, et al. Antibody optimization enabled by artificial intelligence predictions of binding affinity and naturalness. bioRxiv, 2022.
[7] S. Bond-Taylor, P. Hessey, H. Sasaki, T. P. Breckon, and C. G. Willcocks. Unleashing transformers: Parallel token prediction with discrete absorbing diffusion for fast high-resolution image generation from vector-quantized codes. In European Conference on Computer Vision (ECCV), 2022.
[8] V. D. Bortoli, E. Mathieu, M. J. Hutchinson, J. Thornton, Y. W. Teh, and A. Doucet. Riemannian score-based generative modelling. In A. H. Oh, A. Agarwal, D. Belgrave, and K. Cho, editors, Advances in Neural Information Processing Systems, 2022.
[9] B. Buchfink, K. Reuter, and H.-G. Drost. Sensitive protein alignments at tree-of-life scale using diamond. Nature methods, 18(4):366-368, 2021.
[10] A. V. Collis, A. P. Brouwer, and A. C. Martin. Analysis of the antigen combining site: correlations between length and sequence composition of the hypervariable loops and the nature of the antigen. Journal of molecular biology, 325(2):337-354, 2003.
[11] J. Dauparas, I. Anishchenko, N. Bennett, H. Bai, R. Ragotte, L. Milles, B. Wicky, A. Courbet, R. de Haas, N. Bethel, et al. Robust deep learning based protein sequence design using proteinmpnn. bioRxiv, 2022.
[12] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
[13] J. Dunbar, K. Krawczyk, J. Leem, T. Baker, A. Fuchs, G. Georges, J. Shi, and C. M. Deane. Sabdab: the structural antibody database. Nucleic acids research, 42(D1):D1140–D1146, 2014.
[14] R. L. Dunbrack Jr. Rotamer libraries in the 21st century. Current opinion in structural biology, 12(4):431-440, 2002.
[15] R. R. Eguchi, C. A. Choe, and P.-S. Huang. Ig-vae: Generative modeling of protein structure by direct 3d coordinate generation. Biorxiv, pages 2020–08, 2022.
[16] A. Elnaggar, M. Heinzinger, C. Dallago, G. Rihawi, Y. Wang, L. Jones, T. Gibbs, T. Feher, C. Angerer, M. Steinegger, et al. Protrans: towards cracking the language of life's code through self-supervised deep learning and high performance computing. arXiv preprint arXiv:2007.06225, 2020.
[17] R. A. Engh and R. Huber. Structure quality and target parameters. International Tables for Crystallography, 2006.

[18] N. Ferruz, M. Heinzinger, M. Akdel, A. Goncearenco, L. Naef, and C. Dallago. From sequence to function through structure: deep learning for protein design. Computational and Structural Biotechnology Journal, 2022.
[19] N. Ferruz, S. Schmidt, and B. HΓΆcker. Protagt2 is a deep unsupervised language model for protein design. Nature communications, 13(1):1-10, 2022.
[20] K. Gao, L. Wu, J. Zhu, T. Peng, Y. Xia, L. He, S. Xie, T. Qin, H. Liu, K. He, et al. Incorporating pre-training paradigm for antibody sequence-structure co-design. bioRxiv, pages 2022–11, 2022.
[21] V. Gligorijevic, D. Berenberg, S. Ra, A. Watkins, S. Kelow, K. Cho, and R. Bonneau. Function-guided protein design by deep manifold sampling. bioRxiv, 2021.
[22] K. K. Haefeli, K. Martinkus, N. Perraudin, and R. Wattenhofer. Diffusion models for graphs benefit from discrete state spaces. In The First Learning on Graphs Conference, 2022.
[23] B. Hanin. Universal function approximation by deep neural nets with bounded width and relu activations. Mathematics, 7(10):992, 2019.
[24] Z. Harteveld, J. Southern, M. Defferrard, A. Loukas, P. Vandergheynst, M. Bronstein, and B. Correia. Deep sharpening of topological features for de novo protein design. In ICLR2022 Machine Learning for Drug Discovery, 2022.
[25] D. Hendrycks and K. Gimpel. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016.
[26] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840-6851, 2020.
[27] A. Honegger and A. PlΓΌckthun. Yet another numbering scheme for immunoglobulin variable domains: an automatic modeling and analysis tool. Journal of molecular biology, 309(3): 657-670, 2001.
[28] E. Hoogeboom, V. G. Satorras, C. Vignac, and M. Welling. Equivariant diffusion for molecule generation in 3d. In International Conference on Machine Learning, pages 8867-8887. PMLR, 2022.
[29] Y.-C. Hsiao, Y.-J. J. Chen, L. D. Goldstein, J. Wu, Z. Lin, K. Schneider, S. Chaudhuri, A. Antony, K. Bajaj Pahuja, Z. Modrusan, et al. Restricted epitope specificity determined by variable region germline segment pairing in rodent antibody repertoires. In MAbs, volume 12, page 1722541. Taylor & Francis, 2020.
[30] P.-S. Huang, J. J. Love, and S. L. Mayo. A de novo designed protein-protein interface. Protein Science, 16(12):2770-2774, 2007.
[31] W. Huang, J. Han, Y. Rong, T. Xu, F. Sun, and J. Huang. Equivariant graph mechanics networks with constraints. In International Conference on Learning Representations, 2022.
[32] J. Ingraham, M. Baranov, Z. Costello, V. Frappier, A. Ismail, S. Tie, W. Wang, V. Xue, F. Obermeyer, A. Beam, et al. Illuminating protein space with a programmable generative model. bioRxiv, 2022.
[33] W. Jin, R. Barzilay, and T. Jaakkola. Antibody-antigen docking and design via hierarchical structure refinement. In International Conference on Machine Learning, pages 10217-10227. PMLR, 2022.
[34] W. Jin, J. Wohlwend, R. Barzilay, and T. S. Jaakkola. Iterative refinement graph neural network for antibody sequence-structure co-design. In International Conference on Learning Representations, 2022.
[35] W. Jin, S. Sarkizova, X. Chen, N. Hacohen, and C. Uhler. Unsupervised protein-ligand binding energy prediction via neural euler's rotation equation. arXiv preprint arXiv:2301.10814, 2023.

[36] B. Jing, E. Erives, P. Pao-Huang, G. Corso, B. Berger, and T. Jaakkola. Eigenfold: Generative protein structure prediction with diffusion models. arXiv preprint arXiv:2304.02198, 2023.
[37] J. Jumper, R. Evans, A. Pritzel, T. Green, M. Figurnov, O. Ronneberger, K. Tunyasuvunakool, R. Bates, A. Ε½Γ­dek, A. Potapenko, et al. Highly accurate protein structure prediction with alphafold. Nature, 596(7873):583-589, 2021.
[38] W. Kabsch. A discussion of the solution for the best rotation to relate two sets of vectors. Acta Crystallographica Section A: Crystal Physics, Diffraction, Theoretical and General Crystallography, 34(5):827-828, 1978.
[39] V. Kalofolias. How to learn a graph from smooth signals. In Artificial Intelligence and Statistics, pages 920–929. PMLR, 2016.
[40] M. A. Ketata, C. Laue, R. Mammadov, H. StΓ€rk, M. Wu, G. Corso, C. Marquet, R. Barzilay, and T. S. Jaakkola. Diffdock-pp: Rigid protein-protein docking with diffusion models. arXiv preprint arXiv:2304.03889, 2023.
[41] D. Kingma, T. Salimans, B. Poole, and J. Ho. Variational diffusion models. Advances in neural information processing systems, 34:21696-21707, 2021.
[42] D. Koller and N. Friedman. Probabilistic graphical models: principles and techniques. MIT press, 2009.
[43] X. Kong, W. Huang, and Y. Liu. Conditional antibody design as 3d equivariant graph translation. In The Eleventh International Conference on Learning Representations, 2023.
[44] X. Kong, W. Huang, and Y. Liu. End-to-end full-atom antibody design. arXiv preprint arXiv:2302.00203, 2023.
[45] B. Kuhlman, G. Dantas, G. C. Ireton, G. Varani, B. L. Stoddard, and D. Baker. Design of a novel globular protein fold with atomic-level accuracy. science, 302(5649):1364-1368, 2003.
[46] J. H. Lee, P. Yadollahpour, A. Watkins, N. C. Frey, A. Leaver-Fay, S. Ra, K. Cho, V. Gligorijevic, A. Regev, and R. Bonneau. Equifold: Protein structure prediction with a novel coarse-grained structure representation. bioRxiv, 2022.
[47] J. S. Lee, J. Kim, and P. M. Kim. Score-based generative modeling for de novo protein design. Nature Computational Science, pages 1-11, 2023.
[48] J. K. Leman, B. D. Weitzner, S. M. Lewis, J. Adolf-Bryfogle, N. Alam, R. F. Alford, M. Aprahamian, D. Baker, K. A. Barlow, P. Barth, et al. Macromolecular modeling and design in rosetta: recent methods and frameworks. Nature methods, 17(7):665-680, 2020.
[49] R. Liao, Y. Li, Y. Song, S. Wang, W. Hamilton, D. K. Duvenaud, R. Urtasun, and R. Zemel. Efficient graph generation with graph recurrent attention networks. In Advances in Neural Information Processing Systems, pages 4255-4265, 2019.
[50] Y. Lin and M. AlQuraishi. Generating novel, designable, and diverse protein structures by equivariantly diffusing oriented residue clouds. arXiv preprint arXiv:2301.12485, 2023.
[51] S. L. Lisanza, J. M. Gershon, S. W. K. Tipps, L. Arnoldt, S. Hendel, J. N. Sims, X. Li, and D. Baker. Joint generation of protein sequence and structure with rosettafold sequence space diffusion. bioRxiv, pages 2023–05, 2023.
[52] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
[53] S. Luo, Y. Su, X. Peng, S. Wang, J. Peng, and J. Ma. Antigen-specific antibody design and optimization with diffusion-based generative models for protein structures. In A. H. Oh, A. Agarwal, D. Belgrave, and K. Cho, editors, Advances in Neural Information Processing Systems, 2022.

[54] K. Martinkus, A. Loukas, N. Perraudin, and R. Wattenhofer. Spectre: Spectral conditioning helps to overcome the expressivity limits of one-shot graph generators. In Proceedings of the International Conference on Machine Learning (ICML), 2022.
[55] D. M. Mason, S. Friedensohn, C. R. Weber, C. Jordi, B. Wagner, S. M. Meng, R. A. Ehling, L. Bonati, J. Dahinden, P. Gainza, et al. Optimization of therapeutic antibodies by predicting antigen specificity from antibody sequence via deep learning. Nature Biomedical Engineering, 5(6):600-612, 2021.
[56] I. Melnyk, V. Chenthamarakshan, P.-Y. Chen, P. Das, A. Dhurandhar, I. Padhi, and D. Das. Reprogramming large pretrained language models for antibody sequence infilling. arXiv e-prints, pages arXiv-2210, 2022.
[57] J. Mistry, S. Chuguransky, L. Williams, M. Qureshi, G. A. Salazar, E. L. Sonnhammer, S. C. Tosatto, L. Paladin, S. Raj, L. J. Richardson, et al. Pfam: The protein families database in 2021. Nucleic acids research, 49(D1):D412-D419, 2021.
[58] A. Mullard. 2022 fda approvals. Nature Reviews Drug Discovery, 2023.
[59] A. Q. Nichol and P. Dhariwal. Improved denoising diffusion probabilistic models. In International Conference on Machine Learning, pages 8162–8171. PMLR, 2021.
[60] C. Norn, B. I. Wicky, D. Juergens, S. Liu, D. Kim, D. Tischer, B. Koepnick, I. Anishchenko, F. Players, D. Baker, et al. Protein sequence design by conformational landscape optimization. Proceedings of the National Academy of Sciences, 118(11):e2017228118, 2021.
[61] T. H. Olsen, F. Boyles, and C. M. Deane. Observed antibody space: A diverse database of cleaned, annotated, and translated unpaired and paired antibody sequences. Protein Science, 31 (1):141–146, 2022.
[62] T. H. Olsen, I. H. Moal, and C. M. Deane. AbLang: an antibody language model for completing antibody sequences. Bioinformatics Advances, 2(1), 06 2022.
[63] J. W. Park, S. Stanton, S. Saremi, A. Watkins, H. Dwyer, V. Gligorijevic, R. Bonneau, S. Ra, and K. Cho. Propertydag: Multi-objective bayesian optimization of partially ordered, mixed-variable properties for biological sequence design. arXiv preprint arXiv:2210.04096, 2022.
[64] J. Parkinson, R. Hard, and W. Wang. The resp ai model accelerates the identification of tight-binding antibodies. Nature Communications, 14(1):454, 2023.
[65] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32, pages 8024–8035. Curran Associates, Inc., 2019.
[66] N. F. Polizzi, Y. Wu, T. Lemmin, A. M. Maxwell, S.-Q. Zhang, J. Rawson, D. N. Beratan, M. J. Therien, and W. F. DeGrado. De novo design of a hyperstable non-natural protein-ligand complex with sub-Γ  accuracy. Nature chemistry, 9(12):1157–1164, 2017.
[67] J. W. Ponder and F. M. Richards. Tertiary templates for proteins: use of packing criteria in the enumeration of allowed sequences for different structural classes. Journal of molecular biology, 193(4):775-791, 1987.
[68] O. Puny, M. Atzmon, E. J. Smith, I. Misra, A. Grover, H. Ben-Hamu, and Y. Lipman. Frame averaging for invariant and equivariant network design. In International Conference on Learning Representations, 2022.
[69] M. I. Raybould, C. Marks, K. Krawczyk, B. Taddese, J. Nowak, A. P. Lewis, A. Bujotzek, J. Shi, and C. M. Deane. Five computational developability guidelines for therapeutic antibody profiling. Proceedings of the National Academy of Sciences, 116(10):4025-4030, 2019.
[70] P. B. Reis, G. P. Barletta, L. Gagliardi, S. Fortuna, M. A. Soler, and W. Rocchia. Antibody-antigen binding interface analysis in the big data era. Frontiers in Molecular Biosciences, 9, 2022.

[71] A. Rives, J. Meier, T. Sercu, S. Goyal, Z. Lin, J. Liu, D. Guo, M. Ott, C. L. Zitnick, J. Ma, et al. Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences. Proceedings of the National Academy of Sciences, 118(15):e2016239118, 2021.
[72] C. Roos, T. Terlaky, and J.-P. Vial. Interior point methods for linear optimization. 2005.
[73] J. A. Ruffolo and J. J. Gray. Fast, accurate antibody structure prediction from deep learning on massive set of natural antibodies. Biophysical Journal, 121(3):155a-156a, 2022.
[74] J. A. Ruffolo, J. J. Gray, and J. Sulam. Deciphering antibody affinity maturation with language models and weakly supervised learning. arXiv preprint arXiv:2112.07782, 2021.
[75] V. G. Satorras, E. Hoogeboom, and M. Welling. E (n) equivariant graph neural networks. In International conference on machine learning, pages 9323-9332. PMLR, 2021.
[76] A. Shanehsazzadeh, S. Bachas, G. Kasun, J. M. Sutton, A. K. Steiger, R. Shuai, C. Kohnert, A. Morehead, A. Brown, C. Chung, et al. Unlocking de novo antibody design with generative artificial intelligence. bioRxiv, pages 2023-01, 2023. URL https://www.biorxiv.org/content/10.1101/2023.01.08.523187v2.
[77] W. Sheffler and D. Baker. Rosettaholes: rapid assessment of protein core packing for structure prediction, refinement, design, and validation. Protein Science, 18(1):229-239, 2009.
[78] C. Shi, C. Wang, J. Lu, B. Zhong, and J. Tang. Protein sequence and structure co-design with equivariant translation. arXiv preprint arXiv:2210.08761, 2022.
[79] E. L. Shrock, R. T. Timms, T. Kula, E. L. Mena, A. P. West Jr, R. Guo, I.-H. Lee, A. A. Cohen, L. G. McKay, C. Bi, et al. Germline-encoded amino acid-binding motifs drive immunodominant public antibody responses. Science, 380(6640):eadc9498, 2023.
[80] R. W. Shuai, J. A. Ruffolo, and J. J. Gray. Generative language modeling for antibody design. bioRxiv, pages 2021-12, 2021.
[81] I. Sillitoe, N. Bordin, N. Dawson, V. P. Waman, P. Ashford, H. M. Scholes, C. S. Pang, L. Woodridge, C. Rauer, N. Sen, et al. Cath: increased structural coverage of functional space. Nucleic acids research, 49(D1):D266–D273, 2021.
[82] J. M. Singer, S. Novotney, D. Strickland, H. K. Haddox, N. Leiby, G. J. Rocklin, C. M. Chow, A. Roy, A. K. Bera, F. C. Motta, et al. Large-scale design and refinement of stable proteins using sequence-only models. PloS one, 17(3):e0265020, 2022.
[83] F. L. Sirota, S. Maurer-Stroh, Z. Li, F. Eisenhaber, and B. Eisenhaber. Functional classification of super-large families of enzymes based on substrate binding pocket residues for biocatalysis and enzyme engineering applications. Frontiers in bioengineering and biotechnology, page 674, 2021.
[84] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pages 2256-2265. PMLR, 2015.
[85] S. Stanton, W. Maddox, N. Gruver, P. Maffettone, E. Delaney, P. Greenside, and A. G. Wilson. Accelerating bayesian optimization for biological sequence design with denoising autoencoders. In International Conference on Machine Learning, pages 20459-20478. PMLR, 2022.
[86] I. O. Tolstikhin, N. Houlsby, A. Kolesnikov, L. Beyer, X. Zhai, T. Unterthiner, J. Yung, A. Steiner, D. Keysers, J. Uszkoreit, et al. Mlp-mixer: An all-mlp architecture for vision. Advances in Neural Information Processing Systems, 34:24261–24272, 2021.
[87] B. L. Trippe, J. Yim, D. Tischer, T. Broderick, D. Baker, R. Barzilay, and T. Jaakkola. Diffusion probabilistic modeling of protein backbones in 3d for the motif-scaffolding problem. arXiv preprint arXiv:2206.04119, 2022.
[88] C. Vignac, I. Krawczuk, A. Siraudin, B. Wang, V. Cevher, and P. Frossard. Digress: Discrete denoising diffusion for graph generation. arXiv preprint arXiv:2209.14734, 2022.

[89] R. Vinod, K. K. Yang, and L. Crawford. Joint protein sequence-structure co-design via equivariant diffusion. In NeurIPS 2022 Workshop on Learning Meaningful Representations of Life, 2022.
[90] J. L. Watson, D. Juergens, N. R. Bennett, B. L. Trippe, J. Yim, H. E. Eisenach, W. Ahern, A. J. Borst, R. J. Ragotte, L. F. Milles, et al. Broadly applicable and accurate protein design by integrating structure prediction networks and diffusion generative models. bioRxiv, 2022.
[91] D. N. Woolfson. A brief history of de novo protein design: minimal, rational, and computational. Journal of Molecular Biology, 433(20):167160, 2021.
[92] K. E. Wu, K. K. Yang, R. v. d. Berg, J. Y. Zou, A. X. Lu, and A. P. Amini. Protein structure generation via folding diffusion. arXiv preprint arXiv:2209.15611, 2022.
[93] K. Xu, W. Hu, J. Leskovec, and S. Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations, 2019.
[94] J. Yim, B. L. Trippe, V. De Bortoli, E. Mathieu, A. Doucet, R. Barzilay, and T. Jaakkola. Se (3) diffusion model with application to protein backbone generation. arXiv preprint arXiv:2302.02277, 2023.

A Related Work

The literature on computational methods for protein design is vast. We focus here on machine learning methods for protein sequence and structure generation and refer the interested reader to the relevant reviews by Woolfson [91]; Ferruz et al. [18] for broader context.

A.1 Protein Language Models

The first works on protein generation focused on language modeling [16; 21; 71; 85]. Motivated by the observation that the natural forces driving antibody sequence formation, namely V(D)J recombination and the selective pressure in the presence of an antigen referred to as somatic hypermutation, are distinct from other proteins, recent works have also built antibody-specific language models. Therein, large-scale models trained on millions of sequences, such as AntiBERTy [74] and IgLM [80], have been used to generate full-length antibody sequences across different species or restore missing regions in the antibody sequence [62; 56].

A.2 Protein Structure Generation

These approaches use equivariant architectures to generate proteins and antibodies in 3D. We broadly distinguish two strategies: backbone-first and sequence-structure co-design.

The backbone-first strategy simplifies the generation problem by splitting it into two steps: the generation of the protein backbone and of the protein sequence given the backbone structure. A backbone can be designed by refining a rationally constructed template [24] or by a structure-based generative model [90; 32; 15; 87; 50; 92; 47]. On the other hand, the determination of the residues that fit the backbone can be cast within the self-supervised learning paradigm [3; 11] or by minimizing some score that is a proxy for energy [60]. Despite the promise of backbone-first strategies, in the context of deep learning, it is generally preferable to solve problems in an end-to-end fashion. Decoupling the problem into separate steps can also prohibit the modeling of complex dependencies between backbone and sequence, as early decisions are not updated in light of new evidence. As discussed by Harteveld et al. [24], one failure mode of the backbone-first strategy is obtaining a secondary structure that is not physically realizable with natural amino acids. It is also worth mentioning that structure diffusion generative models can also be used for protein-protein docking, as shown by Ketata et al. [40].

Sequence and structure co-design entails learning to generate a full protein in an end-to-end fashion [51; 89]. In this paper we also adopt this strategy. As highlighted in the introduction, AbDiffuser differs from these previous works in the neural architecture and protein representation (APMixer), as well as by shaping the diffusion process to better suit the problem domain.

A relevant line of works has also focused on the re-generation of the complementarity-determining regions (CDRs) of antibodies, a subset of the heavy and light chains containing typically between 48 and 82 residues [10] of particular relevance to binding [34; 20; 43; 33; 53; 78; 44]. These constitute meaningful first steps towards the goal of full-atom antibody design that we consider in this work. Having the ability to regenerate the full antibody sequence and structure significantly enlarges the design space while also enabling the probing of properties beyond affinity, such as stability and immunogenicity. Furthermore, even in the context of affinity optimization, it can be beneficial to also redesign the framework and vernier regions, as the latter sometimes interact with the antigen and affect the CDR conformation [1; 70; 79].

B Antibody Diffusion

This section complements the discussion in Section 2 by describing in greater detail how we frame denoising diffusion.

B.1 Additional Background on Denoising Diffusion

Recall that the forward process $q(X_{1},\dots,X_{T}|X_{0}) = q(X_{1}|X_{0})\Pi_{t=2}^{T}q(X_{t}|X_{t-1})$ , is Markovian. This Markovianity allows for the recovery of the reverse process

q(Xtβˆ’1∣Xt,X0)=q(Xt∣Xtβˆ’1)q(Xtβˆ’1∣X0)q(Xt∣X0). q \left(X _ {t - 1} \mid X _ {t}, X _ {0}\right) = \frac {q \left(X _ {t} \mid X _ {t - 1}\right) q \left(X _ {t - 1} \mid X _ {0}\right)}{q \left(X _ {t} \mid X _ {0}\right)}.

Thus, to generate new data, a neural network learns to approximate the true denoising process $\hat{X}_0 = \phi(X_t, t)$ , which can be accomplished by minimizing the variational upper bound on the negative loglikelihood [84; 26; 5]:

Le l b o(X0):=Eq(X0)[DKL(q(XT∣X0)βˆ₯p(XT))⏟LT(X0)+βˆ‘t=2TEq(Xt∣X0)DKL(q(Xtβˆ’1∣Xt,X0)βˆ₯pΞΈ(Xtβˆ’1∣Xt))⏟Lt(X0)βˆ’Eq(X1∣X0)log⁑(pΞΈ(X0∣X1))⏟L1(X0)](3) \begin{array}{l} L _ {\text {e l b o}} \left(X _ {0}\right) := \mathbb {E} _ {q \left(X _ {0}\right)} \left[ \underbrace {D _ {K L} \left(q \left(X _ {T} \mid X _ {0}\right) \| p \left(X _ {T}\right)\right)} _ {L _ {T} \left(X _ {0}\right)} \right. \tag {3} \\ + \sum_ {t = 2} ^ {T} \mathbb {E} _ {q (X _ {t} | X _ {0})} \underbrace {D _ {K L} (q (X _ {t - 1} | X _ {t} , X _ {0}) \| p _ {\theta} (X _ {t - 1} | X _ {t}))} _ {L _ {t} (X _ {0})} \\ \left. - \mathbb {E} _ {q (X _ {1} | X _ {0})} \underbrace {\log \left(p _ {\theta} \left(X _ {0} \mid X _ {1}\right)\right)} _ {L _ {1} (X _ {0})} \right] \\ \end{array}

In practice, the model is trained to optimize each of the $L_{t}(X_{0})$ loss terms and the $L_{0}(X_{0})$ loss term individually, by sampling an arbitrary time step $t \in {1, T}$ . Note that $L_{T}(X_{0})$ approaches 0 for any data distribution if sufficiently many time steps are used. The latent variable distribution $q$ is usually defined so that one can directly sample any step in the trajectory efficiently.

As discussed in Section 2, in our diffusion process, we factorize the posterior probability distribution over the atom positions and residue types:

q(Xt∣Xtβˆ’1)=q(Xtpos∣Xtβˆ’1pos)q(Xtres∣Xtβˆ’1res). q \big (X _ {t} | X _ {t - 1} \big) = q \big (X _ {t} ^ {\mathrm {p o s}} | X _ {t - 1} ^ {\mathrm {p o s}} \big) q \big (X _ {t} ^ {\mathrm {r e s}} | X _ {t - 1} ^ {\mathrm {r e s}} \big).

We discuss the constituent processes in the following two sections.

B.2 Equivariant Diffusion of Atom Positions

One of the most important features in the training of a diffusion model is the ability to efficiently sample any step in the forward process $q(X_{t}^{\mathrm{pos}}|X_{0}^{\mathrm{pos}})$ . This is easily achieved if we use a Gaussian distribution $q(X_{t}^{\mathrm{pos}}|X_{0}^{\mathrm{pos}}) = \mathcal{N}(\alpha_{t}X_{0}^{\mathrm{pos}},\sigma_{t}^{2}\Sigma)$ , where $\alpha_{t}$ and $\sigma_t^2$ are positive, scalar-valued functions of $t$ , with $\alpha_{1}\approx 1$ and $\alpha_{T}\approx 0$ . A common way to define the noisig process is the variance-preserving parameterization [84; 26] with $\alpha_{t} = \sqrt{1 - \sigma_{t}^{2}}$ . A forward process step in this general diffusion formulation can be expressed as $q(X_{t}^{\mathrm{pos}}|X_{t - 1}^{\mathrm{pos}}) = \mathcal{N}(\alpha_{t|t - 1}X_0^{\mathrm{pos}},\sigma_{t|t - 1}^2\Sigma)$ , where $\alpha_{t|t - 1} = \alpha_t / \alpha_{t - 1}$ and $\sigma_{t|t - 1}^2 = \sigma_t^2 -\alpha_{t|t - 1}^2\sigma_{t - 1}^2$ . Similarly, a reverse process step $q(X_{t - 1}^{\mathrm{pos}}|X_{t}^{\mathrm{pos}},X_{0}^{\mathrm{pos}})$ can then be expressed as the following Gaussian:

N(Ξ±t∣tβˆ’1Οƒtβˆ’12Xtpos+Ξ±tβˆ’1Οƒt∣tβˆ’12X0posΟƒt2,Οƒt∣tβˆ’12Οƒtβˆ’12Οƒt2Ξ£). \mathcal {N} \left(\frac {\alpha_ {t | t - 1} \sigma_ {t - 1} ^ {2} X _ {t} ^ {\mathrm {p o s}} + \alpha_ {t - 1} \sigma_ {t | t - 1} ^ {2} X _ {0} ^ {\mathrm {p o s}}}{\sigma_ {t} ^ {2}}, \frac {\sigma_ {t | t - 1} ^ {2} \sigma_ {t - 1} ^ {2}}{\sigma_ {t} ^ {2}} \Sigma\right).

Similarly to Watson et al. [90], we can reduce the temperature $\tau$ of the Brownian motion of the backward process by scaling the variance of this Gaussian distribution by $\tau$ .

Kingma et al. [41] showed that the training objective for the Gaussian distribution can be simplified to

Lt(X0p o s)=12(SNR⁑(tβˆ’1)βˆ’SNR⁑(t))βˆ₯X^0p o sβˆ’X0p o sβˆ₯Ξ£βˆ’12, L _ {t} \left(X _ {0} ^ {\text {p o s}}\right) = \frac {1}{2} \left(\operatorname {S N R} (t - 1) - \operatorname {S N R} (t)\right) \| \hat {X} _ {0} ^ {\text {p o s}} - X _ {0} ^ {\text {p o s}} \| _ {\Sigma^ {- 1}} ^ {2},

where the signal-to-noise ratio is $\mathrm{SNR}(t) = (\alpha_t / \sigma_t)^2$ and $| \cdot |_{\Sigma^{-1}}^2 = \operatorname{tr}\big((\cdot)^T\Sigma^{-1}(\cdot)\big)$ .

It is quite common in the literature to choose a slightly different optimization objective. In particular, it has been found that predicting the noise $\hat{\epsilon} = \phi(X_t^{\mathrm{pos}}, t)$ that has been added $X_t^{\mathrm{pos}} = \alpha_t X_0^{\mathrm{pos}} + \sigma_t \epsilon$ ,

$\epsilon \sim \mathcal{N}(0,\Sigma)$ and using an unweighted loss $L_{t}(X_{0}^{\mathrm{pos}}) = \frac{1}{2}|\hat{\epsilon} - \epsilon|_{\Sigma^{-1}}^{2}$ improves model training [26; 41; 28]. A possible explanation is that this parameterization makes it easier for the model to minimize the loss at time steps close to $T$ . We found that a similar effect can be obtained by re-weighing the mean prediction loss (Appendix C):

Lt(X0p o s)=12SNR⁑(t)βˆ₯X^0p o sβˆ’X0p o sβˆ₯Ξ£βˆ’12,(4) L _ {t} \left(X _ {0} ^ {\text {p o s}}\right) = \frac {1}{2} \operatorname {S N R} (t) \| \hat {X} _ {0} ^ {\text {p o s}} - X _ {0} ^ {\text {p o s}} \| _ {\Sigma^ {- 1}} ^ {2}, \tag {4}

which empirically renders the mean $\hat{X}0^{\mathrm{pos}} = \phi (X_t^{\mathrm{pos}},t)$ and error $\hat{\epsilon} = \phi (X_t^{\mathrm{pos}},t)$ prediction alternatives perform comparably. We rely on equation 4 throughout our experiments, since predicting $\hat{X}0^{\mathrm{pos}} = \phi (X_t^{\mathrm{pos}},t)$ allows for easier incorporation of known constraints, such as atom bond lengths (see Section 3.4). As shown in Appendix D, $L{1}(X{0}^{\mathrm{pos}})$ can also be optimized using the same objective.

B.3 Discrete Residue-type Diffusion

To define the discrete diffusion process for the residue types we adopt the formulation introduced by Austin et al. [5]. If we have a discrete random variable with $k$ categories, represented as a one-hot vector $X^{\mathrm{res}}$ , we define the forward process $q(X_{t}^{\mathrm{res}}|X_{0}^{\mathrm{res}}) = \mathrm{Cat}(X_{0}^{\mathrm{res}}Q_{t})$ , where the transition matrix $Q_{t} = \beta_{t}I + (1 - \beta_{t})Q$ is a linear interpolation between identity and target distribution $Q$ (e.g., uniform distribution). Similarly to atom diffusion, one forward process step is $q(X_{t}^{\mathrm{res}}|X_{t-1}^{\mathrm{res}}) = \mathrm{Cat}(X_{t}^{\mathrm{res}}Q_{t|t-1})$ , where $Q_{t|t-1} = Q_{t-1}^{-1}Q_{t}$ . From this, a single reverse process step can be expressed as:

q(Xtβˆ’1r e s∣Xtr e s,X0r e s)=Cat⁑(Xtr e sQt∣tβˆ’1TβŠ™X0r e sQtβˆ’1Z), q (X _ {t - 1} ^ {\text {r e s}} | X _ {t} ^ {\text {r e s}}, X _ {0} ^ {\text {r e s}}) = \operatorname {C a t} \left(\frac {X _ {t} ^ {\text {r e s}} Q _ {t | t - 1} ^ {T} \odot X _ {0} ^ {\text {r e s}} Q _ {t - 1}}{\mathcal {Z}}\right),

for an appropriate normalizing constant $\mathcal{Z}$ . In the discrete case, we implement temperature $\tau$ scaling as the temperature of the softmax applied to the model output. This serves to sharpen the target categorical distribution $\sim p^{1 / \tau}$ .

Similarly to the atom diffusion case, we use a simplified objective for the discrete diffusion [22; 7] which has been found to lead to better results:

Lt(X0res)=βˆ’Ξ²tlog⁑pΞΈ(X0res∣Xtres) L _ {t} \left(X _ {0} ^ {\mathrm {r e s}}\right) = - \beta_ {t} \log p _ {\theta} \left(X _ {0} ^ {\mathrm {r e s}} \mid X _ {t} ^ {\mathrm {r e s}}\right)

Hyperparameter $\beta_{t}$ ensures that the loss weight is proportional to the fraction of unchanged classes and we set $\beta_{t} = \alpha_{t}^{2}$ to keep the noise schedules for the residue-type diffusion and atom-position diffusion the same. We also note that now the $L_{1}(X_{0})$ loss term is simply the cross-entropy of the model prediction $L_{1}(X_{0}) = \log p_{\theta}(X_{0}|X_{1})$ . The derivation of our loss can be found in Appendix E.

C Re-weighted Optimization Objective for Atom Positions

As shown by Kingma et al. [41], the $L_{t}$ term in the variational upper bound corresponds to

Lt(X0p o s)=12(SNR⁑(tβˆ’1)βˆ’SNR⁑(t))βˆ₯X^0p o sβˆ’X0p o sβˆ₯Ξ£βˆ’12. L _ {t} \left(X _ {0} ^ {\text {p o s}}\right) = \frac {1}{2} \left(\operatorname {S N R} (t - 1) - \operatorname {S N R} (t)\right) \| \hat {X} _ {0} ^ {\text {p o s}} - X _ {0} ^ {\text {p o s}} \| _ {\Sigma^ {- 1}} ^ {2}.

If we instead parameterize $X_{t}^{\mathrm{pos}} = \alpha_{t}X_{0}^{\mathrm{pos}} + \sigma_{t}\epsilon$ we can directly re-write this as

Lt(Ο΅)=12(SNR⁑(tβˆ’1)SNR⁑(t)βˆ’1)βˆ₯Ο΅^βˆ’Ο΅βˆ₯Ξ£βˆ’12. L _ {t} (\epsilon) = \frac {1}{2} \left(\frac {\operatorname {S N R} (t - 1)}{\operatorname {S N R} (t)} - 1\right) \| \hat {\epsilon} - \epsilon \| _ {\Sigma^ {- 1}} ^ {2}.

Meanwhile, the simplified objective of Ho et al. [26] is instead defined as

Lt(Ο΅)=12βˆ₯Ο΅^βˆ’Ο΅βˆ₯Ξ£βˆ’12. L _ {t} (\epsilon) = \frac {1}{2} \| \hat {\epsilon} - \epsilon \| _ {\Sigma^ {- 1}} ^ {2}.

If we reverse the parameterization as $\epsilon = \frac{X_t^{\mathrm{pos}} - \alpha_t X_0^{\mathrm{pos}}}{\sigma_t}$ and using the fact that $\mathrm{SNR}(t) = \alpha_t^2 / \sigma_t^2$ this becomes

Lt(X0pos)=12βˆ₯Xtposβˆ’Ξ±tX^0posΟƒtβˆ’Xtposβˆ’Ξ±tX0posΟƒtβˆ₯Ξ£βˆ’12=12SNR⁑(t)βˆ₯X^0posβˆ’X0posβˆ₯Ξ£βˆ’12. L _ {t} (X _ {0} ^ {\mathrm {p o s}}) = \frac {1}{2} \left\| \frac {X _ {t} ^ {\mathrm {p o s}} - \alpha_ {t} \hat {X} _ {0} ^ {\mathrm {p o s}}}{\sigma_ {t}} - \frac {X _ {t} ^ {\mathrm {p o s}} - \alpha_ {t} X _ {0} ^ {\mathrm {p o s}}}{\sigma_ {t}} \right\| _ {\Sigma^ {- 1}} ^ {2} = \frac {1}{2} \operatorname {S N R} (t) \| \hat {X} _ {0} ^ {\mathrm {p o s}} - X _ {0} ^ {\mathrm {p o s}} \| _ {\Sigma^ {- 1}} ^ {2}.

D Reconstruction Loss for Atom Positions

For the Gaussian atom position diffusion (Section B.2 we need to account for a few considerations in the reconstruction term $L_{1}(X_{0})$ of the variational upper bound. Assuming that the data probability is constant, $q(X_0^{\mathrm{pos}}|X_1^{\mathrm{pos}})\approx \mathcal{N}(\frac{X_1^{\mathrm{pos}}}{\alpha_1},\frac{\sigma_1^2}{\alpha_1^2}\Sigma)$ . Similarly to Hoogeboom et al. [28], we parameterize the mean using the model prediction instead:

L1(X0p o s)=log⁑Zβˆ’1βˆ’12SNR⁑(1)βˆ₯X0p o sβˆ’X^0p o sβˆ₯Ξ£βˆ’12. L _ {1} \left(X _ {0} ^ {\text {p o s}}\right) = \log \mathcal {Z} ^ {- 1} - \frac {1}{2} \operatorname {S N R} (1) \| X _ {0} ^ {\text {p o s}} - \hat {X} _ {0} ^ {\text {p o s}} \| _ {\Sigma^ {- 1}} ^ {2}.

As highlighted by Hoogeboom et al. [28], this increases the quality of the results.

Isotropic distributions, such as Gaussians with appropriate covariance matrices, assign the same probability to every rotation of a vector in 3D, implying that the resulting atom diffusion process is equivariant w.r.t. orthogonal group O3. To additionally impose that the diffusion is translation-equivariant, we follow Hoogeboom et al. [28] and use a re-normalized multivariate Gaussian distribution, where the sample center of mass is fixed to zero: $\sum_{i=1}^{n} X_i^{\mathrm{pos}} = 0$ . The latter has the same law as an ordinary Gaussian with the main difference that the normalizing constant is now $\mathcal{Z} = \left(\sqrt{2\pi}\sigma\right)^{3(n-1)}$ for $n$ atoms in 3D space.

It is clear to see that the O3 property is satisfied if we have an identity covariance. However, it also holds for non-isotropic covariance matrices. Let us define $Z \sim \mathcal{N}(0,I)$ of dimension $n \times 3$ and $X^{\mathrm{pos}} = KZ$ , where $\Sigma^{-1} = KK^{T}$ . The latter can be re-written as $x_0 = \operatorname{vec}(X_0) = (I \otimes K)\operatorname{vec}(Z) = \Sigma^{1/2}z$ . We then note that for any 3x3 unitary matrix $U$ , we have $x_0^\top(U^\top \otimes I)\Sigma^{-1}(U \otimes I)x_0 = x_0^\top(U^\top \otimes I)(I \otimes L)(U \otimes I)x_0 = x_0^\top(U^\top U \otimes L)x_0 = x_0^\top(I \otimes L)x_0$ . In other words, since the covariance acts on the node dimension and the unitary matrix acts on the spatial dimension, they are orthogonal and do not affect each other.

E Simplified Discrete Diffusion Optimization Objective

We can obtain the simplified training objective by taking a slightly different bound on the negative log-likelihood to the one presented in Equation 3 [22]:

βˆ’log⁑(pΞΈ(X0))≀EX1:T∼q(X1:T∣X0)[βˆ’log⁑(pΞΈ(X0:T)q(X1:T∣X0))]=Eq[βˆ’log⁑(pΞΈ(X0:T)q(X1:T∣X0))]=Eq[βˆ’log⁑(pΞΈ(XT))βˆ’βˆ‘t=2Tlog⁑(pΞΈ(Xtβˆ’1∣Xt)q(Xt∣Xtβˆ’1))βˆ’log⁑(pΞΈ(X0∣X1)q(X1∣X0))]=Eq[βˆ’log⁑(pΞΈ(XT))βˆ’log⁑(pΞΈ(X0∣X1)q(X1∣X0))βˆ’βˆ‘t=2Tlog⁑(q(Xtβˆ’1∣Xt,X0)pΞΈ(X0∣Xt)q(Xtβˆ’1∣Xt,X0)β‹…q(Xtβˆ’1∣X0)q(Xt∣X0))]=Eq[βˆ’log⁑(pΞΈ(XT)q(XT∣X0))⏟LT(X0)βˆ’βˆ‘t=2Tlog⁑(pΞΈ(X0∣Xt))⏟Lt(X0)βˆ’log⁑(pΞΈ(X0∣X1))⏟L1(X0)] \begin{array}{l} - \log \left(p _ {\theta} \left(X _ {0}\right)\right) \leq \mathbb {E} _ {X _ {1: T} \sim q \left(X _ {1: T} \mid X _ {0}\right)} \left[ - \log \left(\frac {p _ {\theta} \left(X _ {0 : T}\right)}{q \left(X _ {1 : T} \mid X _ {0}\right)}\right) \right] \\ = \mathbb {E} _ {q} \left[ - \log \left(\frac {p _ {\theta} \left(X _ {0 : T}\right)}{q \left(X _ {1 : T} \mid X _ {0}\right)}\right) \right] \\ = \mathbb {E} _ {q} \left[ - \log \left(p _ {\theta} \left(X _ {T}\right)\right) - \sum_ {t = 2} ^ {T} \log \left(\frac {p _ {\theta} \left(X _ {t - 1} \mid X _ {t}\right)}{q \left(X _ {t} \mid X _ {t - 1}\right)}\right) - \log \left(\frac {p _ {\theta} \left(X _ {0} \mid X _ {1}\right)}{q \left(X _ {1} \mid X _ {0}\right)}\right) \right] \\ = \mathbb {E} _ {q} \left[ - \log \left(p _ {\theta} \left(X _ {T}\right)\right) - \log \left(\frac {p _ {\theta} \left(X _ {0} \mid X _ {1}\right)}{q \left(X _ {1} \mid X _ {0}\right)}\right) \right. \\ \left. - \sum_ {t = 2} ^ {T} \log \left(\frac {q \left(X _ {t - 1} \mid X _ {t} , X _ {0}\right) p _ {\theta} \left(X _ {0} \mid X _ {t}\right)}{q \left(X _ {t - 1} \mid X _ {t} , X _ {0}\right)} \cdot \frac {q \left(X _ {t - 1} \mid X _ {0}\right)}{q \left(X _ {t} \mid X _ {0}\right)}\right) \right] \\ = \mathbb {E} _ {q} \left[ - \underbrace {\log \left(\frac {p _ {\theta} \left(X _ {T}\right)}{q \left(X _ {T} \mid X _ {0}\right)}\right)} _ {L _ {T} \left(X _ {0}\right)} - \sum_ {t = 2} ^ {T} \underbrace {\log \left(p _ {\theta} \left(X _ {0} \mid X _ {t}\right)\right)} _ {L _ {t} \left(X _ {0}\right)} - \underbrace {\log \left(p _ {\theta} \left(X _ {0} \mid X _ {1}\right)\right)} _ {L _ {1} \left(X _ {0}\right)} \right] \\ \end{array}

In this formulation, compared to equation 3, the term $L_{t} = D_{\mathrm{KL}} \left( q(X_{t-1}|X_{t}, X_{0}) | p_{\theta}(X_{t-1}|X_{t}) \right)$ is replaced by

Lt=βˆ’log⁑(pΞΈ(X0∣Xt)) L _ {t} = - \log \left(p _ {\theta} \left(X _ {0} | X _ {t}\right)\right)

To form the discrete loss $L_{t}(X_{0}^{\mathrm{res}})$ , we additionally weight each loss term $L_{t}$ by $\beta_{t}$ to match the loss weighting used for the atom positions (Appendix C). Note that when this objective is minimized, the original $D_{\mathrm{KL}}$ term will also be at a minimum.

E.1 Non-Informative Priors Demand Higher Complexity Denoising Models

Denote by $p$ the data distribution and by $p_{\theta}$ the learned distribution, the latter of which is obtained by the push-forward $p_{\theta}(f_{\theta}(Z)) = q(Z)$ of some prior measure $q$ by function $f_{\theta}$ . In the context of denoising diffusion, $Z = X_{T}$ , while $f_{\theta} = \phi(X_{T}, T)$ is the learned reverse process.

We prove the following general result which relates the informativeness of the prior with the quality of the generative model and the complexity of the function computed:

Theorem E.1. For any $f_{\theta}$ that is an invertible equivariant function w.r.t. a subgroup $G$ of the general-linear group $GL(d,\mathbb{R})$ the following must hold:

cq(fΞΈ)β‰₯Wt(p,q)βˆ’Wt(p,pΞΈ), c _ {q} (f _ {\theta}) \geq W _ {t} (p, q) - W _ {t} (p, p _ {\theta}),

where $c_{q}(f) \coloneqq (\min_{g \in \mathbf{G}} \mathbf{E}{Z \sim q}[| f(gZ) - Z|{t}^{t}])^{1 / t}$ quantifies the expected complexity of the learned model under $q$ , $W_{t}(p,p_{\theta})$ is the Wasserstein $t$ -distance of our generative model to the data distribution, and $W_{t}(p,q)$ is the distance between prior and posterior.

The bound asserts that one cannot learn a simple (in terms of $c_{q}(f)$ ) generative model that fits the data well unless the prior has a small Wasserstein distance to the data distribution.

The complexity measure $c_{q}(f)$ is particularly intuitive in the context of denoising diffusion. For the diffusion of atom positions with a SE(3) equivariant model $\phi$ , we have

cq(Ο•)=min⁑g∈SE(3)EXT[βˆ₯Ο•(gXT,T)βˆ’XTβˆ₯22], c _ {q} (\phi) = \min _ {g \in \mathrm {S E} (3)} \mathbf {E} _ {X _ {T}} [ \| \phi (g X _ {T}, T) - X _ {T} \| _ {2} ^ {2} ],

that corresponds to the expected amount of denoising that the model performs throughout the reverse process, discounting for rotations. By selecting an informative prior, we decrease $W_{t}(p,q)$ and therefore reduce the amount of denoising our model needs to do.

Proof. We recall that the Wasserstein $t$ -distance between two probability measures $p, p'$ with finite $t$ -moments is

Wt(p,pβ€²):=(infβ‘Ξ³βˆˆΞ“(p,pβ€²)E(X,Xβ€²)∼γ[βˆ₯Xβˆ’Xβ€²βˆ₯t])1/t, W _ {t} (p, p ^ {\prime}) := \left(\inf _ {\gamma \in \Gamma (p, p ^ {\prime})} \mathbf {E} _ {(X, X ^ {\prime}) \sim \gamma} [ \| X - X ^ {\prime} \| _ {t} ]\right) ^ {1 / t},

where the coupling $\gamma$ is a joint measure on $\mathbb{R}^d\times \mathbb{R}^d$ whose marginals satisfy $\int_{\mathbb{R}^d}\gamma (X,X')dx' = p(X)$ and $\int_{\mathbb{R}^d}\gamma (X,X')dx = p'(X')$ , whereas $\Gamma (p,p')$ is the set of all couplings of $p,p'$ .

We will first lower bound $W_{1}(p_{\theta},q)$ . To achieve this, let $X = f(Z)$ and $X' = f_{\theta}(Z')$ and select $\gamma^{}(X,X') = 0$ when $Z \neq Z'$ and $\gamma^{}(X,X') = q(Z)$ otherwise, which is a coupling because it satisfies $\int_{X'} \gamma^{}(X,X') dx' = q(Z) = p(X)$ and $\int_{X} \gamma^{}(X,X') dx = q(Z') = p_{\theta}(X')$ . Then, exploiting that the Wasserstein distance is a metric (and thus abides by the triangle inequality), we get

(by the definition of $\gamma^{*}$ and invertibility of $f$ )

Wt(pΞΈ,q)β‰₯Wt(p,q)βˆ’Wt(p,pΞΈ)(b y)=Wt(p,q)βˆ’(infβ‘Ξ³βˆˆΞ“(p,pΞΈ)∫X,Xβ€²Ξ³(X,Xβ€²)βˆ₯Xβˆ’Xβ€²βˆ₯ttdxdxβ€²)1/tβ‰₯Wt(p,q)βˆ’(∫X,Xβ€²Ξ³βˆ—(X,Xβ€²)βˆ₯Xβˆ’Xβ€²βˆ₯ttdxdxβ€²)1/t=Wt(p,q)βˆ’(∫X(∫Xβ€²Ξ³βˆ—(X,Xβ€²)βˆ₯Xβˆ’Xβ€²βˆ₯ttdxβ€²)dx)1/t=Wt(p,q)βˆ’(∫Xp(X)βˆ₯Xβˆ’fΞΈ(fβˆ’1(X))βˆ₯ttdx)1/t=Wt(p,q)βˆ’(EX∼p[βˆ₯Xβˆ’fΞΈ(fβˆ’1(X))βˆ₯tt])1/t=Wt(p,q)βˆ’(EZ∼q[βˆ₯f(Z)βˆ’fΞΈ(fβˆ’1(f(Z)))βˆ₯tt])1/t=Wt(p,q)βˆ’(EZ∼q[βˆ₯f(Z)βˆ’fΞΈ(Z)βˆ₯tt])1/t(5) \begin{array}{l} W _ {t} \left(p _ {\theta}, q\right) \geq W _ {t} (p, q) - W _ {t} \left(p, p _ {\theta}\right) \quad (\text {b y}) \\ = W _ {t} (p, q) - \left(\inf _ {\gamma \in \Gamma (p, p _ {\theta})} \int_ {X, X ^ {\prime}} \gamma (X, X ^ {\prime}) \| X - X ^ {\prime} \| _ {t} ^ {t} d x d x ^ {\prime}\right) ^ {1 / t} \\ \geq W _ {t} (p, q) - \left(\int_ {X, X ^ {\prime}} \gamma^ {*} (X, X ^ {\prime}) \| X - X ^ {\prime} \| _ {t} ^ {t} d x d x ^ {\prime}\right) ^ {1 / t} \\ = W _ {t} (p, q) - \left(\int_ {X} \left(\int_ {X ^ {\prime}} \gamma^ {*} (X, X ^ {\prime}) \| X - X ^ {\prime} \| _ {t} ^ {t} d x ^ {\prime}\right) d x\right) ^ {1 / t} \\ = W _ {t} (p, q) - \left(\int_ {X} p (X) \| X - f _ {\theta} \left(f ^ {- 1} (X)\right) \| _ {t} ^ {t} d x\right) ^ {1 / t} \\ = W _ {t} (p, q) - \left(\mathbf {E} _ {X \sim p} [ \| X - f _ {\theta} (f ^ {- 1} (X)) \| _ {t} ^ {t} ]\right) ^ {1 / t} \\ = W _ {t} (p, q) - \left(\mathbf {E} _ {Z \sim q} [ \| f (Z) - f _ {\theta} (f ^ {- 1} (f (Z))) \| _ {t} ^ {t} ]\right) ^ {1 / t} \\ = W _ {t} (p, q) - \left(\mathbf {E} _ {Z \sim q} [ \| f (Z) - f _ {\theta} (Z) \| _ {t} ^ {t} ]\right) ^ {1 / t} \tag {5} \\ \end{array}

Next, we upper bound $W_{t}(p_{\theta},q)$ . Let $G$ be any subgroup of the general linear group $\mathrm{GL}(d,\mathbb{R})$ for which $f_{\theta}(Z)$ is equivariant and further denote by $g\in G$ an element of the said group.

We fix $\gamma^{#}(X,Z) = q(Z)$ when $X = f_{\theta}(gZ)$ and $\gamma^{#}(X,Z) = 0$ , otherwise. To see that the latter is a valid coupling notice that $f_{\theta}g$ is bijective as the composition of two bijective functions, implying:

∫γ#(X,Z)dz=q(zx)a n d∫γ#(X,Z)dx=q(Z), \int \gamma^ {\#} (X, Z) d z = q \left(z _ {x}\right) \quad \text {a n d} \quad \int \gamma^ {\#} (X, Z) d x = q (Z),

with $z_{x} = (f_{\theta}\circ g)^{-1}(X)$ . Further,

q(zx)=pΞΈ(fΞΈ(gβˆ’1(fΞΈβˆ’1(X))))(s i n c epΞΈ(X)=q(fΞΈ(Z)))=pΞΈ(gβˆ’1fΞΈ(fΞΈβˆ’1(X)))(b y)=pΞΈ(gβˆ’1X)=pΞΈ(X),(b y) \begin{array}{l} q \left(z _ {x}\right) = p _ {\theta} \left(f _ {\theta} \left(g ^ {- 1} \left(f _ {\theta} ^ {- 1} (X)\right)\right)\right) \quad \text {(s i n c e} p _ {\theta} (X) = q \left(f _ {\theta} (Z)\right)) \\ = p _ {\theta} \left(g ^ {- 1} f _ {\theta} \left(f _ {\theta} ^ {- 1} (X)\right)\right) \quad (\text {b y}) \\ = p _ {\theta} \left(g ^ {- 1} X\right) \\ = p _ {\theta} (X), \quad (\text {b y}) \\ \end{array}

as required for $\gamma^{#}$ to be a coupling. We continue by bounding the Wasserstein metric in light of $\gamma^{#}$ :

Wt(pΞΈ,q)t=infβ‘Ξ³βˆˆΞ“(pΞΈ,q)∫γ(X,Z)βˆ₯Xβˆ’Zβˆ₯ttdxdz(b y)β‰€βˆ«Ξ³#(X,Z)βˆ₯Xβˆ’Zβˆ₯ttdxdz(d u e t o t h e i n i f i m u m)=∫(∫γ#(X,Z)βˆ₯Xβˆ’Zβˆ₯ttdx)dz=∫q(Z)βˆ₯fΞΈ(gZ)βˆ’Zβˆ₯ttdz(b y)=EZ∼q[βˆ₯fΞΈ(gZ)βˆ’Zβˆ₯tt](6) \begin{array}{l} W _ {t} \left(p _ {\theta}, q\right) ^ {t} = \inf _ {\gamma \in \Gamma \left(p _ {\theta}, q\right)} \int \gamma (X, Z) \| X - Z \| _ {t} ^ {t} d x d z \quad (\text {b y}) \\ \leq \int \gamma^ {\#} (X, Z) \| X - Z \| _ {t} ^ {t} d x d z \quad \text {(d u e t o t h e i n i f i m u m)} \\ = \int \left(\int \gamma^ {\#} (X, Z) \| X - Z \| _ {t} ^ {t} d x\right) d z \\ = \int q (Z) \| f _ {\theta} (g Z) - Z \| _ {t} ^ {t} d z \quad (\text {b y}) \\ = \mathbf {E} _ {Z \sim q} [ \| f _ {\theta} (g Z) - Z \| _ {t} ^ {t} ] \tag {6} \\ \end{array}

Combining equation 5 and equation 6, we get

min⁑g∈GEZ∼q[βˆ₯fΞΈ(gZ)βˆ’Zβˆ₯tt]β‰₯Wt(p,q)βˆ’(EZ∼q[βˆ₯f(Z)βˆ’fΞΈ(Z)βˆ₯tt])1/t,(7) \min _ {g \in G} \mathbf {E} _ {Z \sim q} [ \| f _ {\theta} (g Z) - Z \| _ {t} ^ {t} ] \geq W _ {t} (p, q) - \left(\mathbf {E} _ {Z \sim q} [ \| f (Z) - f _ {\theta} (Z) \| _ {t} ^ {t} ]\right) ^ {1 / t}, \tag {7}

as claimed.

In the context of our paper, we have $Z = X_{T} \sim \mathcal{N}(0,\Sigma)$ , $f_{\theta}(Z) = \hat{X}_0 = \phi(X_T, T)$ , $f(Z) = X_0$ , $G$ is the standard Euclidean group SE(3), and we select $t = 2$ . Then, the aforementioned inequality becomes

min⁑g∈SE(3)EXT[βˆ₯Ο•(XT,T)βˆ’gXTβˆ₯22]β‰₯W2(p,qT)βˆ’EXT[βˆ₯Ο•(XT,T)βˆ’Ο•βˆ—(XT,T)βˆ₯22],(8) \min _ {g \in \mathrm {S E} (3)} \mathbf {E} _ {X _ {T}} [ \| \phi (X _ {T}, T) - g X _ {T} \| _ {2} ^ {2} ] \geq W _ {2} (p, q _ {T}) - \sqrt {\mathbf {E} _ {X _ {T}} [ \| \phi (X _ {T} , T) - \phi^ {*} (X _ {T} , T) \| _ {2} ^ {2} ]}, \tag {8}

where we have changed the position of $g$ by exploiting that the $\ell_2$ norm is unitary invariant and that $\phi$ is SE(3) equivariant. Alternatively, we can obtain the following tighter bound by stopping earlier at the derivation of equation 5:

EXT[βˆ₯Ο•(XT,T)βˆ’XTβˆ₯22]β‰₯W2(p,qT)βˆ’W2(pΞΈ,p),(9) \mathbf {E} _ {X _ {T}} \left[ \| \phi \left(X _ {T}, T\right) - X _ {T} \| _ {2} ^ {2} \right] \geq W _ {2} (p, q _ {T}) - W _ {2} \left(p _ {\theta}, p\right), \tag {9}

where $q_{T}$ is the law of $X_{T}$ .

F Learning the Conditional Dependence Relations Between Atoms

We consider the zero-mean multivariate Gaussian whose inverse covariance matrix $\Sigma^{-1} = L + aI$ corresponds to a sparse weighted Laplacian matrix $L$ . Intuitively, $L_{ij}$ should be zero if the position of the point $i$ is independent of that of $j$ given the positions of the neighbors of $i$ being fixed. The term $a$ is a small constant whose role is to shift the spectrum of $L$ and thus make the Laplacian invertible.

We follow the framework of [39] and optimize $L$ by minimizing the following objective:

min⁑L∈Ltr⁑((Xp o s)TLXp o s)+f(L), \min _ {L \in \mathcal {L}} \operatorname {t r} \left(\left(X ^ {\text {p o s}}\right) ^ {T} L X ^ {\text {p o s}}\right) + f (L),

where the $m \times 3$ matrix $X$ contains the 3D positions of the $m$ points modeled and $f(L)$ are some optional constraints we can enforce on the graph Laplacian (and thus also to the adjacency matrix $A$ ).

The log-likelihood of vectors $X$ on the graph defined by $L$ can be directly expressed as a function of the graph adjacency matrix and the pairwise distance matrix $Z$ :

tr⁑((Xp o s)TLXp o s)=AβŠ™Z=12βˆ‘i,jAijβˆ₯Xip o sβˆ’Xjp o sβˆ₯22. \operatorname {t r} \left(\left(X ^ {\text {p o s}}\right) ^ {T} L X ^ {\text {p o s}}\right) = A \odot Z = \frac {1}{2} \sum_ {i, j} A _ {i j} \| X _ {i} ^ {\text {p o s}} - X _ {j} ^ {\text {p o s}} \| _ {2} ^ {2}.

Kalofolias [39] propose the following optimization objective, to recover the optimal adjacency, which with a logarithmic term also ensures that every node has at least one neighbor, which is something we also desire:

min⁑A∈Aβˆ₯AβŠ™Zβˆ₯1βˆ’1Tlog⁑(A1)+12βˆ₯Aβˆ₯22. \min _ {A \in \mathcal {A}} \| A \odot Z \| _ {1} - \mathbf {1} ^ {T} \log (A \mathbf {1}) + \frac {1}{2} \| A \| _ {2} ^ {2}.

An efficient primal-dual algorithm exists for solving this optimization problem [39]. The adjacency matrix that we recover using the mean distance matrix over all of the proteins in paired OAS can be seen in Figure 4. Our use of AHo numbering allows us to directly estimate such mean distances, as with our representation every antibody effectively possesses the same number of residues.

To increase the stability of the Cholesky decomposition $L = KK^T$ , which is needed for sampling co-variate noise $X_{t}^{\mathrm{pos}} = \alpha_{t}X_{0}^{\mathrm{pos}} + \sigma_{t}K\epsilon, \epsilon \sim \mathcal{N}(0,1)$ , we instead use the generalized Laplacian $L = \operatorname{diag}(A1) - A + I$ for the diffusion process.


Figure 4: We define a Gaussian prior on the atom positions by learning an adjacency (conditional dependence) matrix for antibody backbone atom positions from all of the folded paired heavy and light chains in the Observed Antibody Space (OAS) [61]. Dependencies between framework residue atom positions and even correlations between heavy (top-left) and light (bottom-right) chain atom positions are distinctly captured.

G Proof of SE(3) universality

In the following, we prove the SE(3) universality of an MLP-mixer backbone model combined with frame-averaging.

Concretely, let $X$ be an $n \times m$ matrix with bounded entries and consider the backbone model: $\phi(X) = c_{L} \circ r_{L-1} \circ \dots \circ c_{3} \circ r_{2} \circ c_{1}(X)$ , where the subscript denotes layer, $c_{l}$ is an MLP operating independently on each column of its input matrix, and similarly, $r_{l}$ is an MLP operating independently on each row of its input.

It is a consequence of Theorem 4 in [68] that if $\mathcal{F}$ is a bounded $G$ -equivariant frame and if $\phi$ is a backbone model that is universal over any compact set, then combining $\phi$ with frame-averaging over a frame-finite domain (i.e., a domain within which the frame cardinality is finite) yields a $G$ -equivariant universal model $\langle \phi \rangle_{\mathcal{F}}$ . Since the $\mathrm{SE}(3)$ frame is bounded and thus the domain is frame-finite (see also Proposition 1 [68]), to show that $\langle \phi \rangle_{\mathcal{F}}$ is a universal approximator of any continuous $\mathrm{SE}(3)$ function, it suffices to show that the MLP-mixer is a universal approximator over continuous functions over any compact set (or simply universal).

To proceed, we will show that there exists a parameterization so that $\phi(X) = c_L([z; \mathrm{vec}(X)])$ for some vector $z$ . We can then rely on the universal approximation property [23] of MLPs to conclude that $\phi$ is also universal.

We first provide an exact constructive argument on how this can be achieved:

  1. Let $V$ be a $(n + 1) \times (n + 1)$ unitary matrix whose first column is the constant vector $\mathbf{1}$ and set $U = V_{\cdot,1}$ : to be the $n + 1 \times n$ submatrix. The first MLP embeds each column vector $x$ isometrically into $n + 1$ as follows: $c_1(x) = Ux$ . By construction, every column of the output $X'$ is now orthogonal to $\mathbf{1}$ .

  2. The network appends $U$ to the left of $X'$ and $(UX; \dots; UX)$ to the right. Since appending to the right involves replicating each row multiple times, it can be done by a linear row operation. Appending to the left is slightly more involved and can be achieved by iteratively building $U$ column by column, with each column added by using a row MLP to add one dimension with a constant value and a column MLP to project the new constant vector introduced to the appropriate column of $U$ . The key here is that, since we have guaranteed that the columns are always orthogonal to the constant vector, the column MLP can always distinguish the newly introduced column from the ones already at play. Let $X''$ be the result of this process.

  3. A column MLP projects each column of the $(n + 1)\times (n + nm)$ matrix to $n$ dimensions by multiplying by $U^{\top}$ . The output of this layer is $X^{\prime \prime \prime} = [I;X;\dots ;X]$ .

  4. A row MLP zeros out all elements except those indexed by the one-hot encoding in the first $n$ entries. The latter can be done by a ReLU MLP with one hidden layer: if all entries of our input are smaller than $b$ and the input is (onehot(i), x), the first linear layer adds $b$ to only the entries $[n + in : n + in + n)$ and shifts every element by $-b$ using its bias. The latter lets the correct elements pass the ReLU with an unchanged value while setting all other elements to zero, as required. Let the output of this layer be $X^{\prime \prime \prime \prime}$ with

Xi,:β€²β€²β€²β€²=(Ii,:;0;β‹―0βžΓ—iβˆ’1;Xi,:;0;β‹―0βžΓ—nβˆ’i). X _ {i,:} ^ {\prime \prime \prime \prime} = (I _ {i,:}; \overbrace {0 ; \cdots 0} ^ {\times i - 1}; X _ {i,:}; \overbrace {0 ; \cdots 0} ^ {\times n - i}).

  1. A column MLP sums up all entries. The output is now a row vector $(\mathbf{1};X_{1,:}^{\top};\dots ;X_{n,:}^{\top})^{\top}$ of length $n + nm$ , as required.

Steps 1 and 2 of the above constructive argument are inefficient because they rely on very simple layers. This can be avoided if we utilize more powerful MLPs (i.e., functions $c_{l}$ and $r_{l}$ ) and an existence argument. Specifically, as there exists a continuous function that achieves step 2, by the universality of MLPs there also exists an MLP that approximates the step arbitrarily well. Similarly, rather than increasing the dimension to $n + 1$ at step 1, one may argue that the MLP can assign some vector outside of the bounded domain where the input data resides, and thus the dimension can remain $n$ . Therefore, in this setting, only a constant number of MLPmixer blocks are needed to obtain the desired output.

This concludes the proof.

H Noise Schedule

In our denoising model, we use the cosine-like schedule proposed by Hoogeboom et al. [28], with a 1000 denoising steps:

Ξ±t=(1βˆ’2s)β‹…(1βˆ’(tT)2)+s, \alpha_ {t} = (1 - 2 s) \cdot \left(1 - \left(\frac {t}{T}\right) ^ {2}\right) + s,

where a precision $s = 1e^{-4}$ is used to avoid numerical instability. As $\sigma_t = \sqrt{1 - \alpha_t^2}$ and $\beta_{t} = \alpha_{t}^{2}$ , it is sufficient to define just $\alpha_{t}$ . Following Nichol and Dhariwal [59] we clip $\alpha_{t|t-1}$ to be at least 0.001, to avoid instability during sampling and then recompute $\alpha_{t}$ as a cumulative product. To further ensure numerical stability, as recommended by Kingma et al. [41] we compute the negative log SNR curve $\gamma(t) = -\log \alpha_t^2 + \log \sigma_t^2$ . This parameterization allows for numerically stable computation of all important values [41], for example, $\alpha_t^2 = \text{sigmoid}(-\gamma(t))$ , $\sigma_t^2 = \text{sigmoid}(\gamma(t))$ , $\sigma_{t|t-1}^2 = -\text{expm1}(\text{softplus}(\gamma(t-1)) - \text{softplus}(\gamma(t))) = -\text{expm1}(\gamma(t-1) - \gamma(t))\sigma_t^2$ , and $\text{SNR} = \exp(-\gamma(t))$ . Where $\text{expm1}(x) = \exp(x) - 1$ and $\text{softplus}(x) = \log(1 + \exp(x))$ .

I Full Training and Sampling Algorithms

For convenience, in Algorithms 1 and 2 we describe the full training and sampling procedures.

Algorithm 1 Training
1: repeat
2: Get a data point:
3: $X_0^{\mathrm{pos}}, X_0^{\mathrm{seq}} \sim q(X_0^{\mathrm{pos}}, X_0^{\mathrm{seq}})$
4: Sample some time step:
5: $t \sim \mathrm{Uniform}(1, \dots, T)$
6: $X_t^{\mathrm{pos}} \sim \mathcal{N}(\alpha_t X_0^{\mathrm{pos}}, \sigma_t^2 \Sigma)$
7: $X_t^{\mathrm{seq}} \sim \mathrm{Categorical}(X_0^{\mathrm{res}} Q_t)$ , here $Q_t = \beta_t I + (1 - \beta_t) Q$
8: Predict:
9: $\hat{X}_0^{\mathrm{pos}}, \hat{X}_0^{\mathrm{seq}} = f_\theta$ . (Project $(X_t^{\mathrm{pos}}), X_t^{\mathrm{seq}}, t$ )
10: $\hat{X}_0^{\mathrm{pos}} = \mathrm{Project}\left(\hat{X}_0^{\mathrm{pos}}\right)$
11: Compute losses:
12: $L_t(\hat{X}_0^{\mathrm{pos}}) = \frac{1}{2} \mathrm{SNR}(t) | \hat{X}0^{\mathrm{pos}} - X_0^{\mathrm{pos}} |{\Sigma^{-1}}^2$
13: $L_t(\hat{X}_0^{\mathrm{res}}) = \beta_t \text{CrossEntropy}\left(\hat{X}_0^{\mathrm{res}}, X_0^{\mathrm{res}}\right)$
14: Take a gradient step on: $\nabla_\theta\left(L_t(\hat{X}_0^{\mathrm{pos}}) + L_t(\hat{X}_0^{\mathrm{seq}})\right)$
15: until converged

Algorithm 2 Sampling
1: Initialize:
2: $X_{T}^{\mathrm{pos}} \sim \mathcal{N}(0, \Sigma)$
3: $X_{T}^{\mathrm{seq}} \sim \mathrm{Categorical}(Q)$
4: Loop over the time steps:
5: for $t = T, \dots, 1$ do
6: Predict:
7: $\hat{X}{0}^{\mathrm{pos}}, \hat{X}{0}^{\mathrm{seq}} = f_{\theta}\left(\mathrm{Project}\left(X_{t}^{\mathrm{pos}}\right), X_{t}^{\mathrm{seq}}, t\right)$
8: $\hat{X}{0}^{\mathrm{pos}} = \mathrm{Project}\left(\hat{X}{0}^{\mathrm{pos}}\right)$
9: Sample next state:
10: if $t > 1$ then
11: $X_{t-1}^{\mathrm{pos}} \sim \mathcal{N}\left(\frac{\alpha_{t|t-1}\sigma_{t-1}^{2}X_{t}^{\mathrm{pos}} + \alpha_{t-1}\sigma_{t|t-1}^{2}\hat{X}{0}^{\mathrm{pos}}}{\sigma{t}^{2}}, \frac{\sigma_{t|t-1}\sigma_{t-1}}{\sigma_{t}}\Sigma\right)$
12: $X_{t-1}^{\mathrm{seq}} \sim \mathrm{Categorical}\left(\frac{X_{t}^{\mathrm{res}}Q_{t|t-1}^{T} \odot \hat{X}{0}^{\mathrm{res}}Q{t-1}}{\mathcal{Z}}\right)$
13: else
14: $X_{0}^{\mathrm{pos}} \sim \mathcal{N}(\hat{X}{0}^{\mathrm{pos}}, \frac{\sigma{1}^{2}}{\alpha_{1}^{2}}\Sigma)$
15: $X_{0}^{\mathrm{seq}} \sim \mathrm{Categorical}\left(\hat{X}{0}^{\mathrm{seq}}\right)$
16: return $X
{0}^{\mathrm{pos}}, X_{0}^{\mathrm{seq}}$ .

J Metrics Used in the Numerical Experiments

The metrics applied to generated sequences include methods that measure naturalness, similarity to the closest extant antibody, and stability. To examine Naturalness we use the inverse perplexity of the AntiBERTy [74] model trained on a large corpus of antibody chain sequences. As shown by Bachas et al. [6] this score correlates with antibody developability and immunogenicity. To explore Closeness we use fast sequence alignment [9] to determine the closest sequence in the training set. The mean sequence identity (fractional edit distance) to the closest training sequence is then reported as a score. Here Stability is operationalized by estimating the error of the folded structure using IgFold [73]. This error can be used to rank the sequences by how stable we expect their folds to

be. We take the 90th percentile of the residue error as an estimate of the sequence fold stability; the latter typically corresponds to the CDR H3 and L3 loops, which have the most influence over the antibody's functional properties. To further verify that the generated antibody sequences satisfy appropriate biophysical properties, we rely on four additional structure-based metrics Raybould et al. [69]: CDR region hydrophobicity (CDR PSH), patches of positive (CDR PPC), and negative charge (CDR PNC), and symmetry of electrostatic charges of heavy and light chains (SFV CSP). These metrics operate on folded sequences (using IgFold) and take into account distance-aggregated structural properties of CDR regions (and their spatial vicinity), and their significant deviation from reference values is typically associated with bad developability properties of antibodies such as poor expression, aggregation, or non-specific binding [69].

To evaluate the overall similarity of the generated and the test-set distributions, for all of these sequence metrics, we report the Wasserstein distance between the scores of the sequences in the test split and the scores of the generated sequences.

The metrics applied to the generated structures focus primarily on scores known to correlate with free energy and RMSD. a) We use free energy $\Delta G$ estimated using Rosetta [2] to evaluate the stability of the generated structure. Although lower energy is normally associated with higher stability of the protein structure, one needs to be careful not to reward disproportionally small energies achieved when a miss-formed protein collapses into a morph-less aggregate. Thus, we again report the Wasserstein distance between the generated and test energy distributions. b) RMSD. We also re-fold the generated sequence with IgFold [73] and report the RMSD for the backbone $N,C_{\alpha},C,C_{\beta}$ and $O$ atom positions. RMSD is reported as a mean over the generated structures as it captures how well each generated structure matches its sequence.

K Detailed Generated Structure RMSD Evaluation

ModelFull ↓Fr ↓Fr. H ↓CDR H1 ↓CDR H2 ↓CDR H3 ↓Fr. L ↓CDR L1 ↓CDR L2 ↓CDR L3 ↓
EGNN9.82319.37109.292913.172013.003210.33609.391814.676810.158410.4860
EGNN (AHo)10.06289.47179.355213.173013.461112.24349.531415.388410.697511.0732
EGNN (AHo & Cov.)9.48148.75818.620612.945413.223712.09398.817415.284110.050411.1167
FA-GNN0.86170.57480.50930.66710.74382.25300.61570.81990.59461.1576
FA-GNN (AHo)0.83210.47770.46180.68810.78672.28840.48600.93980.50531.1165
FA-GNN (AHo & Cov.)0.88140.59340.52360.59680.62132.07880.59660.79070.45211.3536
AbDiffuser (uniform prior)0.83980.59370.57420.76230.67051.83650.60950.88250.47951.0698
AbDiffuser (no projection)11.143111.006210.827913.869214.413910.436711.170915.753611.520511.2404
AbDiffuser (no Cov.)0.63020.40110.38260.49460.55561.65530.41690.55850.43210.8310
AbDiffuser0.52300.31090.28620.35680.39171.50730.33220.40360.32570.7599
AbDiffuser (side chains)0.49620.33710.30720.34150.37681.33700.36370.36890.34760.8173

Table 4: Detailed RMSD for generated antibodies based on Paired OAS dataset [61]. The top three results in each column are highlighted as First, Second, Third.

ModelFull ↓Fr ↓Fr. H ↓CDR H1 ↓CDR H2 ↓CDR H3 ↓Fr. L ↓CDR L1 ↓CDR L2 ↓CDR L3 ↓
MEAN [43]0.77920.33600.30450.45690.33592.90530.36450.44250.24900.6862
EGNN (AHo & Cov.)9.21808.78188.552712.001812.577010.03088.939614.22699.539110.4077
FA-GNN (AHo & Cov.)3.18003.37611.85290.64460.52232.02024.27210.56330.53763.4047
AbDiffuser0.38220.21860.16690.36110.27371.16990.26100.19370.20060.6648
AbDiffuser (side chains)0.40460.26860.22460.38610.31151.11910.30730.22420.23790.7122
AbDiffuser (Ο„ = 0.75)0.37070.21380.16150.35410.27091.12100.25630.18300.19460.6615
AbDiffuser (s.c., Ο„ = 0.75)0.39820.27290.22770.39140.29171.06240.31270.24920.25480.7131
AbDiffuser (Ο„ = 0.01)0.33450.20000.14630.33890.27230.95560.24300.15300.17920.6582
AbDiffuser (s.c. Ο„ = 0.01)0.67950.61680.59380.81610.71131.15500.63960.79380.70480.8395

Table 5: Detailed RMSD for generated antibodies based on Trastuzumab mutant dataset [55]. The top three results in each column are highlighted as First, Second, Third.

Here, in Tables 4 and 5 we provide per-region distances between folded and optimized structures of the generated sequences and the generated structures. As you can see these distances correlate well with the overall RMSD reported in the main text. As the folded structures are optimized, we also investigate how the error changes if similarly to folding models we also use Rosetta [2] to optimize the generated structures in Tables 6 and 7. As can be seen, the optimization slightly reduces the RMSDs, but the relatively modest change for AbDiffuser-generated structures hints at the fact that

the generated structures were relatively physically plausible. In Table 5 we see that while the model that generates the side chains achieves a worse overall RMSD, in most cases it models CDR H3 more precisely, which is the most important part function-wise. This seeming focus on CDR H3 might explain why this model achieved a better predicted binding probability, even while modeling the overall structure slightly worse.

ModelFull ↓Fr ↓Fr. H ↓CDR H1 ↓CDR H2 ↓CDR H3 ↓Fr. L ↓CDR L1 ↓CDR L2 ↓CDR L3 ↓
EGNN9.81299.34879.264713.220613.169910.43279.372214.836810.152610.6565
EGNN (AHo)10.13649.52339.396113.361113.701412.47939.591815.691910.811511.3710
EGNN (AHo & Cov.)9.54118.82028.676113.018613.393812.18438.884915.436810.135211.2356
FA-GNN0.78170.48440.42280.55580.62932.15330.52050.72220.46171.0457
FA-GNN (AHo)0.77670.41160.39180.60020.70312.23110.42280.83720.40541.0333
FA-GNN (AHo & Cov.)0.77980.50610.45410.54850.59491.98460.51950.71210.39141.2032
AbDiffuser (uniform prior)0.81220.55280.53000.70530.61841.81290.57040.83260.39141.0416
AbDiffuser (no projection layer)10.919410.725510.525313.649915.034610.984610.908315.931011.605911.7446
AbDiffuser (no Cov.)0.58670.34250.32060.42720.48481.62610.36060.49210.32960.7801
AbDiffuser0.50680.28960.26420.32820.37081.49210.31100.38710.26110.7334
AbDiffuser (side chains)0.44630.27510.24260.27640.32661.28690.30250.31870.23900.7533

Table 6: Detailed RMSD for generated antibodies based on Paired OAS dataset [61] after optimization with Rosetta [2]. The top three results in each column are highlighted as First, Second, Third.

ModelFull ↓Fr ↓Fr. H ↓CDR H1 ↓CDR H2 ↓CDR H3 ↓Fr. L ↓CDR L1 ↓CDR L2 ↓CDR L3 ↓
MEAN [43]0.74120.30040.27180.53950.29092.78300.32610.37580.25930.6849
EGNN (AHo & Cov.)9.25358.81708.570112.033012.799310.12568.991114.45889.705910.6565
FA-GNN (AHo & Cov.)2.16312.25221.15410.67340.57832.08922.91011.45170.57972.1591
AbDiffuser0.36920.20170.14150.33490.24741.14640.24790.17430.15890.6625
AbDiffuser (side chains)0.40870.27550.23040.36320.30441.10650.31410.29570.19200.7217
AbDiffuser (Ο„ = 0.75)0.35840.19690.13580.32830.24591.10030.24340.16420.15130.6599
AbDiffuser (s.c., Ο„ = 0.75)0.39810.27470.22670.36150.27951.04970.31550.29390.20500.7151
AbDiffuser (Ο„ = 0.01)0.32100.18370.12020.30230.24640.92880.23060.12570.12850.6583
AbDiffuser (s.c. Ο„ = 0.01)0.62980.56610.54500.71350.60251.08700.58680.68780.60120.8720

Table 7: Detailed RMSD for generated antibodies based on Trastuzumab mutant dataset [55] after optimization with Rosetta [2]. The top three results in each column are highlighted as First, Second, Third.

L Wet-Lab Validation of Designs

In our wet-lab experiments, we follow the procedure of Hsiao et al. [29]. As we focus on Trastuzumab mutants, the experiments need to account for the fact that the part of the HER2 antigen to which Trastuzumab binds is prone to misfolding in vitro. In the usual experimental procedure for the SPR measurements of Kd values, the antibody is immobilized and the antigen (in this case HER2) is used as a ligand. However, for the domain to which Trastuzumab is binding in HER2, taking into account the problem of misfolding, the standard procedure described by Hsiao et al. [29] is to immobilize the antigen and treat the antibody as a ligand, making the 'misfolded' HER2 essentially invisible in the binding kinetics.

As pointed out by Mason et al. [55], mutating Trastuzumab such that the resulting antibody still binds to HER2 is quite challenging, as some binders in the dataset are just one edit away from non-binders. We also check the similarity of our new binders verified in the wet-lab experiments to both the binder and non-binder sets from the dataset. As can be seen in Table 8 some of the best binders we discovered are equidistant to both sets.

To further highlight the similarity of the non-binder and the binder sets from Mason et al. [55] we include the residue frequency (logo) plots for the CDR H3 positions that were varied in Figure 5.

M Implementation and Training Details

As mentioned in the main text, all of the models are evaluated using the same denoising procedure. They also share the input embedding procedure: we utilize a learned dictionary for each amino acid type and another learned dictionary for the chain type (light or heavy). These initial embeddings are summed together to form the input to the actual model. For all models except the APMixer, an

Generated binderBinder dist.Num. closest bindersNon-binder dist.Num. closest non-bindersKD↓
SRYGSSGFYQFTY22225.35e-08
SRWLASGFYTFAY11224.72e-09
SRWSGDGFYQFDY11234.12e-09
SRWRGSGFYEFDY11232.89e-09
SRWRASGFYAYDY123192.00e-09
SRYGGFGFYQFDY23221.86e-09
SRYGGSGFYTFDY28223.17e-10

Table 8: Edit distances of our generated binders to closest binders and non-binders in the dataset by Mason et al. [55], together with the number of such closest (non-)binders.


Figure 5: Logo plots for relative amino acid frequencies in the mutated CDR H3 positions for binders (top) and non-binders (bottom) in the dataset by Mason et al. [55].

additional sinusoidal sequence position embedding is included in the sum. The model also receives the time step $t$ as an additional input, concatenated with the other inputs. Similar to Hoogeboom et al. [28], we found this simple time-step conditioning to work well. The input and output of the model are always processed with our constraint layer from Section 3.4. The amino acid type predictions are made by computing a vector product with the input amino acid dictionary.

We will cover the model-specific architectural details in the following.

M.1 APMixer Details

We build ab mixer out of blocks as described in Section 3.3, where each block consists of two MLPs, that are applied consecutively on the columns

X.j=X.j+W2ρ(W1L a y e r N o r m(X.j))f o r a l lj∈[c] X _ {. j} = X _ {. j} + W _ {2} \rho \left(W _ {1} \text {L a y e r N o r m} \left(X _ {. j}\right)\right) \text {f o r a l l} j \in [ c ]

and on the rows

Xi,β‹…=Xi,β‹…+W4ρ(W3L a y e r N o r m(Xi,β‹…))f o r a l li∈[r]. X _ {i, \cdot} = X _ {i, \cdot} + W _ {4} \rho \left(W _ {3} \text {L a y e r N o r m} \left(X _ {i, \cdot}\right)\right) \text {f o r a l l} i \in [ r ].

The whole APMixer used 8 such blocks plus an embedding MLP and two readout MLPs, one for predicting residue atom positions and another for the residue type predictions. Their outputs are respectively processed using equivariant and invariant frame averaging formulations.

As we noted earlier, each block is wrapped in frame averaging. We choose to process half of the output equivalently and half invariantly. It is possible to just use the equivariant formulation throughout the inner blocks, but we found this to slightly improve the performance of the model. Possibly because this aligns slightly better with having position-invariant sequence features. In this case, we extend the APMixer block to have a linear layer before the column MLP, to merge the two representations.

We use 2 layer MLPs throughout, with the embedding dimension of $h = 1920$ . The column MLP is applied on three columns at a time to ensure easier modeling of 3D interactions. Also, to facilitate easier modeling of multiplicative interactions (e.g. forces) these MLPs use gated activation in the hidden layer $x = x_{0:h} * \sigma(x_{h:2h})$ , where $x$ is the output of the linear layer, $h$ is the embedding dimension (the MLPs hidden dimension is effectively $2 \times h$ ) and $\sigma$ is the activation function. We chose to use the SiLU [25] activation function as it appears to perform the best on geometric tasks, both on APMixer and the baseline GNN architectures.

M.2 Baselines

M.2.1 Transformer

For the sequence-only generation, we use a standard transformer encoder[12] as implemented by PyTorch [65], with 3 blocks, embedding dimension of 2048, and pre-normalization. The transformer uses the GELU [25] activation function as standard.

M.2.2 EGNN

We use the EGNN [75] as implemented for the equivariant molecule diffusion by Hoogeboom et al. [28]. We extend it to work with residues that have many atoms by using the formulation proposed by Huang et al. [31] and also used by Kong et al. [43], which for updating each node (residue) make use of the distances $Z_{ij}^{l} = X_{i} - X_{j}$ between atoms in each residue:

mij=Ο•e(hil,hj,Zijl(Zijl)T), m _ {i j} = \phi_ {e} \left(h _ {i} ^ {l}, h _ {j}, Z _ {i j} ^ {l} \left(Z _ {i j} ^ {l}\right) ^ {T}\right),

mi=βˆ‘jmij, m _ {i} = \sum_ {j} m _ {i j},

hil+1=Ο•h(hil,mi), h _ {i} ^ {l + 1} = \phi_ {h} \left(h _ {i} ^ {l}, m _ {i}\right),

Xil+1=Xil+βˆ‘jZi,jlβˆ₯Zi,jlβˆ₯2+1Ο•x(hit,hjt,Zijl(Zijl)T), X _ {i} ^ {l + 1} = X _ {i} ^ {l} + \sum_ {j} \frac {Z _ {i , j} ^ {l}}{\| Z _ {i , j} ^ {l} \| _ {2} + 1} \phi_ {x} \left(h _ {i} ^ {t}, h _ {j} ^ {t}, Z _ {i j} ^ {l} (Z _ {i j} ^ {l}) ^ {T}\right),

where $X_{i}$ is a matrix of $a\times 3$ if we have $a$ atoms per residue.

To improve the model stability, we apply a layer normalization on $h^t$ at the beginning of each such block. We wrap every block in EGNN in our constraint layer Section 3.4. The EGNN has 6 such blocks and uses an embedding dimension of 576. As standard, we use SiLU activation and, similarly to AgentNet, we found it slightly beneficial to use a hidden dimension in the MLP of twice the embedding size. The model uses a readout MLP to make the final embedding which is used to predict the amino acid type. This layer is also preceded by layer normalization. An embedding MLP is used for the inputs.

M.2.3 FA GNN

We use the same GNN architecture as used by Puny et al. [68]:

mi,j=Ο•e(hil,hj) m _ {i, j} = \phi_ {e} \left(h _ {i} ^ {l}, h _ {j}\right)

mi=βˆ‘jmi,j m _ {i} = \sum_ {j} m _ {i, j}

hil+1=Ο•h(hil,mi), h _ {i} ^ {l + 1} = \phi_ {h} \left(h _ {i} ^ {l}, m _ {i}\right),

which is essentially the same architecture as EGNN, just without the distance-based edge features and explicit position updates. To process the positions, we wrap each of these GNN blocks using frame averaging, and for the very first embedding MLP we supply residue atom positions as inputs together with the other features.

The FA-GNN has 4 of these GNN blocks and uses an embedding dimension of 384. SiLU activation and the hidden MLP dimension of twice the embedding dimension are used. The FA-GNN uses the same setup as APMixer with two readout heads for amino acid type prediction and atom position prediction.

M.3 Training

We use AdamW for training [52] with a weight decay of 0.01 and with a learning rate of $2 \cdot 10^{-4}$ for all structure models, while the transformer used a learning rate of $1 \cdot 10^{-4}$ . We experimented with weight decay of $1e - 12$ and learning rates in the range of $1 \cdot 10^{-3}$ to $1 \cdot 10^{-4}$ for all models, to determine the chosen values. We also normalize the gradient norm to unit length during training. All models use a batch size of 4. This is the maximum batch size that allows training the baseline models on our 80GB GPU. The APMixer due to the better memory complexity allows for batch sizes up to

32, but to keep the setup similar, we also used a batch size of 4 for it. For paired OAS we train the models for 50 epochs, while for HER2 binder generation we train for 600 epochs, for around 1.25M training steps in both cases. The Paired OAS dataset [61] was split into 1000 test samples and 1000 validation samples. Similarly, the HER2 binder dataset [55] was split to have 1000 test samples and 100 validation samples.

We keep track of the exponential moving average of the model weights, for all models, with a coefficient of 0.995, and use these weights at test time. No model selection is performed.

During training, we use idealized atom positions as returned by our projection layer (Section 3.4) as the target. This ensures that the exact target configuration is reachable by the model.

The CDR redesign baselines of RefineGNN [34] and MEAN [43] were trained for the same amount of steps using the default parameters and early stopping.

All experiments were performed on an 80GB A100 GPU.

M.4 APMixer Classifier

We adapt APMixer for HER2 binder classification (Section 5.2) by including a global readout. This readout is constructed by applying mean pooling over the frames and residues after each APMixer block and then applying a layer normalization and a linear layer. All of the linear layer outputs are summed to obtain the final prediction. This follows a popular graph classification readout used in GNNs [93].

The classifier is trained for 100 epochs using a batch size of 16. No exponential moving average of weights is used, and the model with the best validation accuracy is selected. The full HER2 dataset was split to have 3000 test samples and 1000 validation samples.

N Conditional CDR Redesign

While co-crystal structures usually come quite late in the drug discovery process, performing CDR structure and sequence redesign for a given, unseen co-crystal structure is a popular benchmark for deep generative models [53; 43; 44; 34]. Here, we use the data split from Luo et al. [53], derived from the SAbDab database of antibody-antigen structures [13]. This split ensures that all antibodies similar to those of the test set ( $>50%$ CDR H3 identity) are removed from the training set. In contrast to the experimental setup of Luo et al. [53], we report the results for the more difficult task of redesigning all CDRs at once $^2$ , rather than redesigning a single CDR at a time. Following Luo et al. [53], the results are averaged over 100 samples for each of the 19 test structures. We observed that in this setup the minimization protocol used by Luo et al. [53] increased the RMSD values (Table 9), therefore, we report the results without it.

To adapt AbDiffuser to this conditional case, we build a bipartite graph between the antibody CDR residues and the nearest antigen residues that are at most $10\AA$ away, in terms of $C_{\beta} - C_{\beta}$ distance. Then we simply replace the initial MLP embedding layer with a one-layer FA-GNN. The rest of the APMixer architecture remains unchanged. We trained AbDiffuser with a batch size of 8 for 30k steps, with the rest of hyperparameters staying the same as before.

Table 9 shows that in this conditional setup AbDiffuser outperforms the state-of-the-art diffusion baseline (DiffAb) in amino acid recovery (AA) by a wide margin. This good performance could be attributed to the usefulness of AHo numbering, and APMixer being better at modeling sequences than a GNN. Our ablation experiments on paired OAS generation (Table 1) corroborate this hypothesis. Although the CDR RMSD results are generally quite comparable between DiffAb and AbDiffuser, importantly, AbDiffuser performs better in CDR H3, which has the most variability in its structure and can influence the binding the most. Both methods strongly outperform RosettaAntibodyDesign (RAbD) [2], the state-of-the-art computational biology antibody design program, in terms of amino acid recovery.

ModelCDR H1CDR H2CDR H3CDR L1CDR L2CDR L3
AA↑RMSD↓AA↑RMSD↓AA↑RMSD↓AA↑RMSD↓AA↑RMSD↓AA↑RMSD↓
Rosetta (RAbD)* [2]22.85%2.26125.5%1.64122.14%2.934.27%1.20426.3%1.76720.73%1.624
DiffAb (Minimized)* [53]65.75%1.18849.31%1.07626.78%3.59755.67%1.38859.32%1.37346.47%1.627
DiffAb (Minimized) [53]66.37%1.37142.82%1.33728.27%3.79862.91%1.52062.59%1.65349.38%1.616
DiffAb [53]66.37%0.80242.82%0.72228.27%3.55062.91%1.12062.59%1.02549.38%1.066
AbDiffuser79.09%1.12072.33%0.99536.14%2.92185.08%1.13885.02%1.27375.68%0.990
AbDiffuser (side chains)76.30%1.58465.72%1.44934.10%3.34681.44%1.46283.22%1.39773.15%1.591
AbDiffuser (Ο„ = 0.75)79.76%1.08372.96%0.95036.53%2.80585.60%1.09885.71%1.23776.29%0.955
AbDiffuser (s.c., Ο„ = 0.75)76.06%1.71366.38%1.51234.71%3.21481.93%1.37383.54%1.35173.32%1.509
AbDiffuser (Ο„ = 0.01)81.11%1.07574.27%0.94637.27%2.79586.26%1.11586.85%1.23877.06%0.966
AbDiffuser (s.c. Ο„ = 0.01)75.36%2.46366.89%2.01035.56%3.12483.10%1.52582.95%1.62374.19%1.502

Table 9: Generating CDR structure and sequence for existing co-crystal structures from SAbDab [13]. All CDRs are generated at once. The amino acid recovery rate (AA) and RMSD are reported for each individual region. Baseline models from Luo et al. [53] marked by * generated CDRs one at a time.