AbFlow : End-to-end Paratope-Centric Antibody Design by Interaction Enhanced Flow Matching Conference: Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1; August 09–13, 2026; Jeju Island, Republic of Korea Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1 (KDD ’26), August 09–13, 2026, Jeju Island, Republic of Korea DOI: 10.1145/3770854.3780296 ISBN: 979-8-4007-2258-5/2026/08 Thanks: Zhewei Wei is the corresponding author. The work was partially done at Gaoling School of Artificial Intelligence, Beijing Key Laboratory of Research on Large Models and Intelligent Governance, Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE, and Pazhou Laboratory (Huangpu), Guangzhou, Guangdong 510555, China. CCS: Applied computing Molecular structural biology CCS: Applied computing Bioinformatics CCS: Computing methodologies Neural networks Wenda Wang, Yang Zhang, Zhewei Wei, Wenbing Huang Abstract . Antigen-antibody binding is a critical process in the immune response. Although recent progress has advanced antibody design, current methods lack a generative framework for end-to-end modeling of full-atom antibody structures and struggle to fully exploit antigen-specific geometric information for optimizing local binding interfaces and global structures. To overcome these limitations, we introduce AbFlow, a flow-matching framework that leverages optimal transport to design full-atom antibodies end-to-end. AbFlow incorporates an extended velocity field network featuring an equivariant Surface Multi-channel Encoder, which uses surface-level antigen interaction data to refine the antibody structure, particularly the CDR-H3 region. Extensive experiments in paratoep-centric antibody design, multi-CDRs and full-atom antibody design, binding affinity optimization, and complex structure prediction show that AbFlow produces superior antigen-antibody complexes, especially at the contact interface, and markedly improves the binding affinity of generated antibodies. † † cc-license: by Resource Availability: The source code of this paper has been made publicly available at https://doi.org/10.5281/zenodo.18085636 . Our code is also available at https://github.com/WangWenda87/AbFlow.git for direct access and updates. 1. Introduction Antibodies can specifically recognize and bind to antigens, thus playing multiple immune defense functions, such as neutralizing the toxicity of pathogens and marking pathogens for clearance by immune cells ( Buchwalow and Böcker 2009 ) . The design of antibodies for specific antigens is significant in biology and immunology ( Almagro et al. 2018 ; Douglass et al. 2021 ; Swartz et al. 2012 ) . However, due to the key binding role and high variability of the complementarity-determining regions (CDRs) of antibodies, this task is often challenging ( Wang et al. 2024 ; Fu and Sun 2022 ; Wang et al. 2023 ) . Antibody design involves the joint generation of an antibody’s complete sequence and full-atom structure. Traditional energy-based optimization ( Choi et al. 2015 ; Li et al. 2014 ) was initially applied. Later, 1D sequence learning-based language models ( Saka et al. 2021 ; Liu et al. 2020 ) emerged, characterized by their ability to model antibody sequences linearly, focusing on capturing patterns and relationships within amino acid sequences without considering the 3D structural context. Figure 1. Overall illustration of antibody design algorithm. Given antibody sequences lacking CDR-H3, generate complete sequences and 3D structures. Unlike existing methods that mostly focus on a single step (e.g., CDR-H3 generation) in antibody design tasks and a few end-to-end frameworks, we propose a novel generative end-to-end architecture. Overall illustration of antibody design algorithm. Recent antibody design approaches can be broadly classified into step-by-step pipelines and end-to-end generative methods. Step-by-step methods decompose the antibody design task into sequential stages, with models tailored to specific sub-problems—typically focusing on CDR design, particularly CDR-H3. These methods generally follow a fixed pipeline: starting from predicting the antibody structure from its sequence ( Ruffolo et al. 2023 ) , docking the antibody and antigen structures ( Pierce et al. 2011 ; Yan et al. 2020 ) , then generating or predicting CDR-H3 sequences and structures ( Kong et al. 2022 ; Jin et al. 2022 ; Luo et al. 2022 ; Zhu et al. 2024 ) , and finally performing side-chain packing based on residue identity and geometry ( Alford et al. 2017 ) . Among these, MEAN ( Kong et al. 2022 ) and HERN ( Jin et al. 2022 ) adopt GNN-based predictive frameworks, while DiffAb ( Luo et al. 2022 ) and AbX ( Zhu et al. 2024 ) utilize diffusion-based generative modeling for CDR synthesis. In contrast, end-to-end methods ( Kong et al. 2023 ; Wang et al. 2025 ) aim to model the antibody design process holistically. Given a specific antigen and a partial antibody sequence lacking the CDR-H3, these methods directly generate the complete antibody sequence and full-atom 3D structure in a single, unified framework. For example, dyMEAN ( Kong et al. 2023 ) performs full-atom generation through modules including antibody initialization, multi-channel equivariant encoding, and joint sequence-structure prediction. Recent methods further realize end-to-end design via flow matching: dyAb ( Tan et al. 2025 ) generates CDR sequences and structures during a fine-grained optimization stage before grafting them onto a coarse-grained template, while IgFlow ( Nagaraj et al. 2024 ) performs joint discrete–continuous flow matching on the entire antibody to produce coupled sequence–structure designs. Despite significant progress in antibody design, two critical challenges persist. First, current generative frameworks insufficiently integrate sequence-structure generation with global geometric message passing. Existing models either perform local (e.g., CDR or paratope) antibody structure generation, but generally fail to model the structural information flow between the paratope and the rest of the antibody or to account for holistic structural refinement, resulting in weak coupling between generative dynamics and structural information propagation ( Luo et al. 2022 ; Zhu et al. 2024 ) . This decoupling limits their ability to produce globally coherent full-atom antibodies. Second, the inability to leverage fine-grained antigen geometry for precise interface modeling. Current models struggle to utilize detailed geometric features of the antigen surface, limiting their ability to accurately model antigen-antibody interfaces ( Zhao et al. 2024 ) . This shortcoming impairs structural signal propagation across the antibody framework, leading to suboptimal interface complementarity and reduced global structural coherence in generated antibodies. Based on the aforementioned research progress and challenges, we propose AbFlow , a novel flow-based generative framework for end-to-end full-atom antibody design. Our main contributions are as follows: \bullet Our AbFlow employs a paratope-restricted flow matching module for efficient high-fidelity generation. The framework incorporates an EGNN-based joint generative and message-passing velocity field that both drives paratope flow dynamics and propagates structural information from the generated paratope to the full antibody. This dual functionality enables coherent full-atom refinement of the entire antibody despite applying flow only to a local region. \bullet To address the lack of antigen-specific geometric context in existing methods, we propose an equivariant Surface Multi-channel Encoder (SME) that extracts fine-grained structural cues from the antigen surface. This geometric information is subsequently injected into the velocity field network to effectively guide paratope generation in an antigen-aware and interaction-consistent manner. \bullet Extensive experiments on paratope–centric antibody design , multi-CDRs and full-atom antibody design , binding affinity optimization , and complex structure prediction demonstrate that our AbFlow outperforms existing step-by-step and end-to-end baselines in structural accuracy, interface quality, and binding affinity. See Figure 1 for a schematic comparison of different antibody design paradigms, including step-by-step pipelines, conventional end-to-end frameworks, and our generative approach. 2. Related Work Antibody design. Antibody aims to develop antibodies that can bind to specific antigens with high efficiency. Based on the diffusion probabilistic model, DiffAb ( Luo et al. 2022 ) iteratively updates the amino acid type, position, and orientation of CDRs to achieve tasks such as sequence-structure co-design. HERN ( Jin et al. 2022 ) employs a hierarchical equivariant refinement network. The paratope docking task predicts atomic forces through a hierarchical message passing network. MEAN ( Kong et al. 2022 ) models antibody design as a 3D-equivariant graph translation problem, with the multi-channel equivariant attention network and the progressive full-shot decoding strategy. dyMEAN ( Kong et al. 2023 ) , an end-to-end full-atom model, through an adaptive multi-channel encoder, iteratively updates the antibody sequence and structure. Our work further develops this end-to-end method, enhancing the quality of the interaction between the generated antibody and the antigen, as well as their binding affinity. Generative model. In recent years, generative models, including diffusion-based and flow-based models, have been increasingly used in molecular and protein generation tasks. AlphaFold 3 ( Abramson et al. 2024 ) replaces the structure module of AlphaFold 2 ( Jumper et al. 2021 ) with a diffusion module for generating 3D structures. DiffAb ( Luo et al. 2022 ) and AbX ( Zhu et al. 2024 ) are based on DDPM ( Ho et al. 2020 ) and score-based models ( Song et al. 2021 ) , respectively, for antibody CDR design. Flow matching ( Lipman et al. 2022 ; Liu et al. 2022 ; Albergo and Vanden-Eijnden 2023 ) simulates the transport from a simple distribution to the target (data) distribution by learning Continuous Normalizing Flows (CNFs). Flow matching has recently gained widespread use in molecular generation tasks. ETFlow ( Hassan et al. 2024 ) implements molecular 3D conformer optimization based on flow matching, while GOAT ( Hong et al. 2025 ) combines flow and optimal transport theory for 3D molecular generation. In our work, we apply the local flow matching framework to end-to-end antibody design tasks. Surface representation. The structure surface contains the geometric and chemical information that reflects the interaction patterns and relationship with other molecules. MaSIF ( Gainza et al. 2020 ; Sverrisson et al. 2021 ) decomposes the surface into overlapping radial patches, extracts features, and embeds them into vector descriptors, applying them to various tasks with the help of geometric deep learning. EquiPocket ( Zhang et al. 2024 ) treats proteins as graph structures, extracting atomic geometric information and predicting ligand binding sites using an E(3)-equivariant graph neural network for modeling and message passing. SurfPro ( Song et al. 2024 ) models surface features with a hierarchical encoder and generates amino acid sequences with an autoregressive decoder. We introduce surface representation into the antibody design task to convey more fine-grained interaction information between the antigen and the antibody. 3. Notations and Problem Setting A general antibody has a characteristic Y-shaped structure composed of two heavy chains and two light chains held together by disulfide bonds. It has constant domains that remain unchanged among different antibodies, and variable regions at the tips of the Y that specifically recognize and bind to antigens. Our work lies in the variable regions V=\{V_{h},V_{l}\} , where V_{h} and V_{l} represent the variable regions in the heavy and light chains. A variable region can be divided into four framework regions (FRs) and three complementarity-determining regions (CDRs). In work related to antibody design, CDR design refers to the design of the coordinates and sequence of the third complementarity-determining region (CDR-H3) of the heavy chain. Since the sequence of this part of the antibody is highly variable and often unknown, it dominates the binding of antigen and antibody ( MacCallum et al. 1996 ) . In this paper, we refer to CDR-H3 as the paratope according to ( Jin et al. 2022 ) . Additionally, the part of an antigen that binds to the antibody is called the epitope . Following ( Kong et al. 2022 ) and ( Kong et al. 2023 ) , we use the graph format \mathcal{G}=(\mathcal{V},\mathcal{E}) to represent the epitope and paratope used in this work. Here, node set V consists of all residues in the structure, where V=\{v_{i}\}_{i=1}^{|\mathcal{V}|} and v_{i}=(a_{i},X_{i}) . In this, a_{i}\in\mathbb{R} represents the type of the i-th amino acid, and X_{i}\in\mathbb{R}^{3\times c_{i}} represents the full-atom 3D coordinates of the residue, where c_{i} indicates the number of atoms in this residue. As a full-atom design method, we need to represent the different numbers of atoms in different residues. The edge set \mathcal{E} is calculated based on the distances between nodes in \mathcal{G} . We calculate the pair-wise distance between two residues v_{i} and v_{j} as Equaion ( 1 ) : (1) d\left(v_{i},v_{j}\right)=\min_{1\leq m\leq c_{i},1\leq n\leq c_{j}}\left\|\boldsymbol{X}_{i}(:,m)-\boldsymbol{X}_{j}(:,n)\right\|_{2}. Here, X_{i}(:,m) and X_{j}(:,n) , respectively, represent the m-th atom of residue i and the n-th atom of residue j. Then, we calculate the k-nearest neighborhood (KNN) of each residue. In this way, we can define epitope \mathcal{G}_{E}=(\mathcal{V}_{E},\mathcal{E}_{E}) , antibody \mathcal{G}_{A}=(\mathcal{V}_{A},\mathcal{E}_{A}) and paratope \mathcal{G}_{P}=(\mathcal{V}_{P},\mathcal{E}_{P}) . Problem Setting: The main task of our work is to design the full-atom antibody 3D structures as well as the paratope sequences under the premise that only the epitope is known and the sequence of the antibody without the CDR-H3 part is available. Expressed in symbols: Given the epitope \mathcal{G}_{E}=(\mathcal{V}_{E},\mathcal{E}_{E}) and the antibody sequence with missed paratope \{a_{i}|i\in\mathcal{V_{A}},i\notin\mathcal{V_{P}}\} , design paratope sequences \{a_{i}|i\in\mathcal{V}_{P}\} and full-atom antibody 3D coordinates \{X_{i}|i\in\mathcal{V}_{A}\} . Beyond this basic problem setting, AbFlow can be naturally extended to a broader range of antibody modeling tasks. In particular, we demonstrate the scalability of our framework through applications to multi-CDRs design and antigen-antibody complex structure prediction, highlighting its flexibility and generality across different antibody modeling scenarios. 4. Method Figure 2 presents an overview of our AbFlow method. Next, we will provide a detailed introduction to each module in the architecture. Section 4.1 discusses the definition of the flow matching framework applied in antibody structures and the process of paratope distribution’s transport. Section 4.2 introduces the definition and sampling of the epitope surface. And section 4.3 presents the extended velocity field network, including Surface Multi-Channel Encoder (SME) used to enhance the interaction between epitope and paratope information, as well as the network that propagates structural information from the paratope to the entire antibody. Section 4.4 presents the training loss and algorithms of training and sampling. Figure 2. Overall architecture of AbFlow. Input the antigen epitope and the antibody sequence lacking CDR-H3 as introduced in Section 3 . We extract the paratope as the flow for the transport of probability distribution. In the single-step forward process, we introduce an extended velocity field network that not only predicts flow dynamics but also enhances specific-antigen binding interface information through a Surface Multi-channel Encoder (SME), propagating this information from the paratope to the entire antibody structure. Overall architecture of AbFlow. 4.1. Flow Matching with Optimal Transport To address the absence of flow-based frameworks in existing antibody design models, we propose to model antibody structure distributions through continuous normalizing flows (CNFs). But the direct application of CNFs to a complete antibody will result in a calculation efficiency problem due to the large 3D structure. To resolve this bottleneck, we strategically constrain the CNFs to focus solely on paratope structures X=\{X_{i}|i\in\mathcal{V_{P}}\} . The aim is to learn a time-dependent velocity field u(x,t):\mathbb{R}^{N\times 3}\times[0,1]\rightarrow\mathbb{R}^{N\times 3} associated with the transport map X_{t}:\mathbb{R}^{N\times 3}\times[0,1]\rightarrow\mathbb{R}^{N\times 3} that can guide samples transport from a simple distribution, we use Gaussian noise in our work, to a target data distribution that represents true paratope structures. Sampling can be achieved by solving ordinary differential equations (ODEs) as shown in Equation ( 2 ). (2) X_{t+\Delta t}=u(X_{t},t),X_{0}=x_{0}\sim\rho_{0}. Here, x_{0} refers to the initial samples from the Gaussian distribution. We can construct the conditional probability path p(x_{t}|x_{1}) and predict the conditional velocity field u(x_{t}|x_{1}) . We consider the Gaussian conditional probability path: (3) \rho_{t}(x|x_{1})=\mathcal{N}(x_{t}|\mu_{t}(x_{1}),\sigma^{2}_{t}(x_{1})I). Then the flow \psi_{t}(x) can be considered as the affine transformation that maps to \rho_{t}(x|x_{1}) conditioned on x_{1} : (4) \psi_{t}(x)=\sigma_{t}(x_{1})x+\mu_{t}(x_{1}). According to the Wasserstein-2 optimal transport solution ( Neklyudov et al. 2023 ; Friesecke 2024 ) , we formulate the conditional probability path \rho_{t}(x|x_{1}) using the mean and standard deviation that vary linearly over time, as shown in the Equation ( 5 ): (5) \mu_{t}(x_{1})=tx_{1},\sigma_{t}(x_{1})=1-(1-\sigma_{min})t. Consequently, the flow can be expressed as \psi_{t}(x)=[1-(1-\sigma_{min})t]x+tx_{1} . The state of the flow at time t , \mathbf{x_{t}=\psi_{t}(x_{0})} , can also be interpreted as a linear interpolation between x_{0} and x_{1} . The loss function of the CFM can be regarded as a regression prediction of the true velocity field, which is obtained by differentiating the flow with respect to t , as shown in Equation ( 6 ): (6) \mathcal{L}_{\text{CFM}}(\theta)=\mathbb{E}_{t\sim U[0,1],x_{0},x_{1}\sim\Gamma(\rho_{0},\rho_{1})}\left\|v_{\theta}(x_{t})-\left(x_{1}-(1-\sigma_{\min})x_{0}\right)\right\|^{2}. Where U is a Uniform distribution, \Gamma(\cdot,\cdot) is a coupling distribution, and \rho_{0} and \rho_{1} are respectively the marginal distributions of \Gamma with respect to x_{1} and x_{0} . v_{\theta} represents the network that fits the true velocity field. It is also worth noting that, inspired by Rectified Flow ( Liu et al. 2022 ) , to avoid trajectory crossings that may occur from interpolating randomly paired samples drawn from two distributions, we adopt a method of pre-aligning the sample pairs . Specifically, we solve for the transition, rotation, and permutation that minimize the structural distance between the Gaussian noise and paratope samples, i.e, \arg\min_{\mathbf{R},\mathbf{t},\mathbf{\pi}}||x_{1}-{\mathbf{\pi}}({\mathbf{R}}x_{0}+\mathbf{t})||^{2} . We use the Kabsch algorithm ( Kabsch 1976 ) to compute the optimal translation \vec{\mathbf{t}} and optimal rotation \vec{\mathbf{R}} , and the Hungarian algorithm ( Kuhn 1955 ) to compute the optimal permutation \vec{\mathbf{\pi}} . Accordingly, the noise samples paired with corresponding paratope samples are given by \hat{x}_{0}=\vec{\mathbf{\pi}}(\vec{\mathbf{R}}x_{0}+\vec{\mathbf{t}}) . The flow loss we ultimately use can be formulated as Equation ( 7 ): (7) \mathcal{L}_{F}=\mathbb{E}_{t\sim U[0,1],x_{0},x_{1}\sim\Gamma(\rho_{0},\rho_{1})}\left\|v_{\theta}(x_{t})-\left(x_{1}-(1-\sigma_{\min})\hat{x}_{0}\right)\right\|^{2}. The above describes our flow matching framework based on optimal transport. In the following, we will introduce the design of the predicted velocity field network architecture. 4.2. Surface Definition and Sampling In this section, we describe the procedure for constructing surface vertices around the epitope and sampling representative points for interaction with the paratope. Since the paratope inherently forms a flexible and well-defined surface on the antibody, we focus exclusively on modeling the surface of the epitope to enhance the message passing between the antigen and antibody. Given the epitope residues \{X_{i}\mid i=1,2,\dots,N=|\mathcal{V}_{E}|\} , we utilize MSMS ( Sanner et al. 1996 ) to generate a dense set of surface vertices \mathbb{S}=\{s_{1},s_{2},\dots,s_{M}\} within a radius of 1.5 Å centered on the epitope region, where M\gg N . For each vertex s_{i}\in\mathbb{S} , we assign an attribution residue by identifying its nearest epitope residue according to the following rule: v_{j}=\arg\min_{1\leq k\leq N}\|s_{i}-X_{k}\|_{2}. This association partitions the vertex set \mathbb{S} into N disjoint subsets, each corresponding to an epitope residue: (8) \displaystyle\mathbb{S}_{v_{p}} \displaystyle=\{s_{q}\}_{q=1}^{m_{p}},\quad p=1,\ldots,N, (9) \displaystyle\sum_{p=1}^{N}m_{p} \displaystyle=M,\quad 0\leq m_{p}\ll M. To reduce computational cost and maintain robustness across residues, we randomly sample at most M_{0} surface vertices for each epitope residue before each round of message passing. These sampled vertices are then used to interact with the paratope, injecting local geometric and chemical information from the antigen surface into the antibody representation. Notably, we avoid using all available vertices or a multi-channel aggregation strategy, as the number of vertices associated with each epitope residue varies significantly and can become prohibitively large in practice. 4.3. SME and Velocity Field Network Next, to address the challenge that specific antigen structure information is underutilized in guiding antibody design, we propose a Surface Multi-channel Encoder (SME) to propagate finer-grained, surface-level epitope information to paratope structures. SME can uniformly handle residues with different channel sizes on the paratope as well as surface vertices on the epitope surface, whose size is far larger than the channel size of residues. It can also effectively capture the geometric context between surface vertices and residue atoms, enabling fine-grained message construction. By aggregating these geometry-aware messages, the SME module facilitates directional information from the epitope surface to the antibody paratope . The process of a single update can be represented by Equation ( 10 )-( 14 ). (10) \displaystyle m_{ij} \displaystyle=\phi_{m}\left(S_{i}^{(l)},S_{j}^{(l)},\text{msg}(X_{i}^{(l)},X_{s_{j}}^{(l)})\right), (11) \displaystyle\text{msg}(X_{i}^{(l)},X_{s_{j}}^{(l)})) \displaystyle=\frac{\phi_{v}\left(A_{i}^{T}D(X_{i}^{(l)},X_{s_{j}}^{(l)})\right)}{\|D(X_{i}^{(l)},X_{s_{j}}^{(l)})\|_{F}+\epsilon}, (12) \displaystyle X_{ij} \displaystyle=\sum_{k=1}^{M}\left(X_{i}^{(l)}-\mathbf{1}X_{s_{j}}^{(l)}[k,:]\right), (13) \displaystyle S_{i}^{(l+1)} \displaystyle=\phi_{s}(S_{i}^{(l)},\sum_{j\in\mathcal{N}_{i}}m_{ij}), (14) \displaystyle X^{(l+1)}_{i} \displaystyle=X^{(l)}_{i}+\frac{1}{|\mathcal{N}_{i}|}\sum_{j\in\mathcal{N}_{i}}X_{ij}\phi_{x}(m_{ij}). Where S_{i},X_{i} are the sequence and coordinate representation of the i-th residue node, respectively, X_{s_{j}}\in\mathbb{R}^{M\times 3} represents the coordinates of surface vertices belonging to the j-th residue. \mathcal{N}_{i} represents the neighbor of residue i, \phi_{m},\phi_{v},\phi_{x} are different MLP layers, and 1 is a vector of all ones. D(\cdot,\cdot) is the calculation of the pair-wise Euclidean distance of two matrices. For the learnable attribute matrix A_{i}\in\mathbb{R}^{c_{i}\times d} , the vector of each row is learned from the type and position of the corresponding i-th atom. We discuss and prove the E(3)-equivariance of SME in Appendix A . The SME module is integrated into the velocity field network v_{\theta} , enabling it to jointly predict flow dynamics and propagate antigen-specific messages across the antibody structure. To construct v_{\theta} , we combine SME with the Atom Multi-channel Encoder (AME) from ( Kong et al. 2023 ) , forming a hybrid message-passing backbone. While SME focuses on fine-grained surface-level transmission of antigen-epitope information to the paratope (critical for binding affinity), AME handles global structural propagation. This design allows localized paratope flow modeling while retaining full-atom generation capabilities. The process handled by the velocity network v_{\theta} for a single step of the sequence S_{t} and coordinates X_{t} is: (15) S_{t+1},X_{t+1}=v_{\theta}(S_{t},X_{t}) For convenience in representing the subsequent algorithm, let S_{t+1} and X_{t+1} be denoted as v_{\theta}^{s}(t) and v_{\theta}^{x}(t) , respectively. 4.4. Training and Sampling Loss. The total loss of the model, in addition to the flow loss \mathcal{L}_{F} defined in Equation ( 7 ), also incorporates losses measuring the differences between the generated antibody (both sequence and structure) and the ground truth. These include sequence loss \mathcal{L}_{seq} , structure loss \mathcal{L}_{struct} , and docking loss \mathcal{L}_{dock} that indicates the quality of the docking interface. More details about the loss are presented in Appendix F . (16) \mathcal{L}=\mathcal{L}_{F}+\mathcal{L}_{seq}+\mathcal{L}_{struct}+\mathcal{L}_{dock}. We further note that the flow loss \mathcal{L}_{F} , defined in Equation 7 , can also be interpreted as a constraint on the docking interface. This arises because the true velocity field in \mathcal{L}_{F} inherently models the temporal evolution of paratope coordinates during the flow-matching process, while the velocity field network v_{\theta} simultaneously predicts these coordinates updates. Here we present the training algorithm in Algorithm 1 according to the model mentioned above. The input data includes the sequences of antibodies and specific antigenic epitope data. The objective is to learn how to generate antibody structures and sequences that meet expectations by optimizing the model parameter \theta . Algorithm 1 Training Algorithm of AbFlow 1: Input: antibody and specific-antigen epitope data, where the paratope data distribution is denoted as \rho_{1} . 2: Initialize: vector field network v_{\theta} , initial Gaussian noise \rho_{0} 3: while \theta has not converged do 4: t\sim\mathcal{U}(0,1),\ X_{0}\sim\rho_{0},X_{1}\sim\rho_{1} 5: \vec{\mathbf{R}},\vec{\mathbf{t}},\vec{\mathbf{\pi}}=\arg\min_{\mathbf{R},\mathbf{t},\mathbf{\pi}}||X_{1}-{\mathbf{\pi}}({\mathbf{R}}X_{0}+\mathbf{t})||^{2} 6: \hat{X}_{0}=\vec{\mathbf{\pi}}(\vec{\mathbf{R}}X_{0}+\vec{\mathbf{t}}) 7: x_{t}=[1-(1-\sigma_{min})t]\hat{X}_{0}+tX_{1} 8: \mathcal{L}_{F}=\mathbb{E}_{t,X_{0},X_{1}\sim\Gamma(\rho_{0},\rho_{1})}\left\|v_{\theta}^{x}(t)-\left(X_{1}-(1-\sigma_{\min})\hat{X}_{0}\right)\right\|^{2} \triangleright Eq. 7 9: \mathcal{L}=\mathcal{L}_{F}+\mathcal{L}_{seq}+\mathcal{L}_{struct}+\mathcal{L}_{dock} \triangleright Eq. 16 10: end while 11: return v_{\theta} In the Algorithm 2 , we describe the sampling process of the AbFlow model. This process is based on an ordinary differential equation (ODE) solver and obtains the target antibody structure from the noise by guiding the generation process. Algorithm 2 Sampling Algorithm of AbFlow Input: vector field model v_{\theta} , sampling steps n_{s} 2: X_{0}\sim\mathcal{N}(0,I),S_{0}=[MASK],\Delta t=1/n_{s} for t=0,\Delta t,\dots,1-\Delta t do 4: X_{t+\Delta t}=X_{t}+v_{\theta}^{x}(t) \triangleright ODE solution S_{t+\Delta t}=S_{t}+v_{\theta}^{s}(t) 6: end for \hat{X}_{1},\hat{S}_{1}\leftarrow v_{\theta}(X_{1},S_{1}) 8: //Perform message passing from paratope to the entire antibody again after the final step. return \hat{X}_{1},\hat{S}_{1} Note that during both training and sampling, the input and output of v_{\theta} are the entire antibody’s sequence and structure, and the paratope of the structure is extracted to serve as the flow for transport of probability distribution and ODE-based sampling. 5. Experiments Table 1. Comparison of Different Models on the Paratope-centric Antibody Design Task. AbFlow results include standard deviations and their corresponding 2\sigma confidence coverage to reflect statistical stability. Model Overall Interface AAR \uparrow TMscore \uparrow IDDT \uparrow CAAR \uparrow RMSD \downarrow DockQ \uparrow RosettaAb ( Adolf-Bryfogle et al. 2018 ) 0.3231 0.9717 0.8272 0.1458 17.70 0.137 DiffAb ( Luo et al. 2022 ) 0.3531 0.9695 0.8281 0.2217 23.24 0.158 MEAN ( Kong et al. 2022 ) 0.3738 0.9688 0.8252 0.2411 17.30 0.162 HERN ( Jin et al. 2022 ) 0.3265 - - 0.1927 9.15 0.294 dyMEAN ( Kong et al. 2023 ) 0.4365 0.9726 0.8454 0.2811 8.11 0.409 dyAb ( Tan et al. 2025 ) 0.3789 0.9264 0.6957 0.2614 9.86 0.342 AbFlow 0.4234 \pm 0.1334 (96.7%) 0.9736 \pm 0.009 (93.3%) 0.8522 \pm 0.0216 (95%) 0.2824 \pm 0.2037 (96.7%) 8.25 \pm 4.55 (98.3%) 0.423 \pm 0.161 (93.3%) AbFlow-G 0.4204 0.9736 0.8522 0.279 8.28 0.422 To validate the effectiveness of our proposed AbFlow, we conducted experiments on 4 critical tasks related to antibody generation: 1) paratope-centric antibody design ( 5.2 ), multi-CDRs and full-atom antibody design ( 5.3 ), binding affinity optimization ( 5.4 ), and complex structure prediction ( 5.5 ). We also provide details of our experimental setups (in 5.1 ) and ablation studies on key modules (in Section 6 ) to verify their contributions. 5.1. Experiment Setup Datasets . The experiments are trained on the Structural Antibody Database (SAbDab) ( Dunbar et al. 2014 ) . For the full-atom antibody design task, the RAbD benchmark ( Adolf-Bryfogle et al. 2018 ) composed of 60 diverse complexes selected by domain experts is used for test. For the affinity optimization task, antibodies from SKEMPI V2.0 ( Jankauskaitė et al. 2019 ) are used for evaluation. We confirm that there are no duplicate samples between the training set and the test set to avoid data leakage. More details about the dataset are presented in Appendix B . Baselines . For end-to-end full-atom antibody design methods, we use three representative baselines spanning different generative paradigms: dyMEAN ( Kong et al. 2023 ) (GNN-based), IgGM ( Wang et al. 2025 ) (diffusion-based), and dyAb ( Tan et al. 2025 ) (flow-based). For other models used in CDR-H3 generation, including RosettaAb ( Adolf-Bryfogle et al. 2018 ) , MEAN ( Kong et al. 2022 ) , DiffAb ( Luo et al. 2022 ) , and HERN ( Jin et al. 2022 ) , we standardized the remaining steps of the step-by-step pipeline to ensure a fair comparison with our AbFlow. Specifically, we use IgFold ( Ruffolo et al. 2023 ) for antibody structure prediction, HDock ( Yan et al. 2020 ) for antigen-antibody docking, and Rosetta ( Alford et al. 2017 ) is used for side-chain packing. Here we use IgFold instead of AlphaFold ( Jumper et al. 2021 ) due to its specialization in antibody structure prediction. Metrics . For the full-atom antibody design task, we employed metrics evaluating sequence recovery (AAR, CAAR ( Ramaraj et al. 2012 ) ) and structural similarity (TM-score ( Zhang and Skolnick 2007 ; Xu and Zhang 2010 ) , lDDT ( Mariani et al. 2013 ) , RMSD ( Kabsch 1976 ) , DockQ ( Basu and Wallner 2016 ; Mirabello and Wallner 2024 ) ) to assess the quality of generated antibody structures in terms of both structural fidelity and antigen-antibody docking interface geometry. For the binding affinity optimization task, we utilized binding free energy change ( \Delta\Delta G ) ( Shan et al. 2022 ) and IMP to quantify optimization efficacy and success rates. Detailed definitions of these evaluation metrics are provided in Section 5.3 and Appendix C . 5.2. Paratope-centric Antibody Design This task is the main experiment outlined in Section 3 , which involves the co-design of the 1D CDR-H3 sequence and the 3D coordinates of the full-atom antibody. We compare our AbFlow model with several baseline methods. As shown in Table 1 , AbFlow achieves the best performance across most evaluation metrics. This includes both the entire antibody structure (TMscore, lDDT) and the CDR-H3 sequence along with its interface with the epitope (CAAR, DockQ). Notably, the RMSD reported here corresponds to the entire antigen-antibody complex after structural alignment of the CDR-H3 region. This alignment is performed to focus on the quality of the entire antibody structure, with particular attention to the CDR-H3 region, which plays a central role in antigen binding. Additionally, we also evaluated AbFlow on the updated DockQ v2 ( Mirabello and Wallner 2024 ) across the entire test set, where AbFlow scored 0.339 compared to dyMEAN’s 0.332, further demonstrating AbFlow’s superior performance. To assess the stability of our model, we also provide results from multiple sampling called AbFlow-G(Generator), where 30 samples were generated for each test target. The results demonstrate high consistency across repeated trials, highlighting the robustness of the model, which is enabled by the deterministic flow matching mechanism that ensures stable trajectory generation while maintaining efficient sampling. Figure 3 presents a case study from our full-atom antibody design task. In this case, the SME module enhances the interaction between the epitope and the paratope. Compared to dyMEAN, AbFlow better avoids steric clashes in the generated structure, which is crucial for improving the rationality and stability of the antibody design. Reducing steric clashes—defined as the undesirable overlap between atoms—leads to more physically plausible structures and improves the quality of the antigen-antibody interface, which better reflects the true nature of their interaction. Figure 3. Case Study of the Full-atom Antibody Design Task. The structures on the left and right show antibodies generated by dyMEAN and AbFlow, respectively. The antibody designed by dyMEAN (yellow) exhibits a distinct steric clash (red circle) with the epitope, while AbFlow (pink) effectively avoids this clash, generating a structure highly similar to the true antibody (green). Case Study of the Full-atom Antibody Design Task. 5.3. Multi-CDRs and Full-atom Antibody Design To evaluate the scalability of AbFlow beyond CDR-H3 generation, we further conduct multi-CDR design experiments on the RAbD test set, covering all six CDRs (H1–H3, L1–L3). As shown in Table 2 , AbFlow consistently achieves the lowest RMSD across all CDRs, demonstrating its ability to model cross-CDR structural dependencies and maintain global structural coherence even when multiple loops are generated simultaneously. Our AbFlow outperforms DiffAb ( Luo et al. 2022 ) , dyMEAN ( Kong et al. 2023 ) , and AbX ( Zhu et al. 2024 ) by a clear margin on both heavy-chain and light-chain loops. These results confirm that the paratope-restricted flow matching and EGNN-based refinement in AbFlow generalize effectively to multi-region antibody design. Beyond CDR-level evaluation, we further assess AbFlow on full-atom antibody structure prediction, where only dyMEAN provides comparable baselines among existing end-to-end methods. As presented in Table 2 , AbFlow achieves superior performance on all global structural metrics, including RMSD, TMscore, lDDT, and DockQ, highlighting its advantage in generating accurate and coherent full-antibody structures. Table 2. Multi-CDRs and full-atom design results. Multi-CDRs Results Method CDR (H) RMSD \downarrow CDR (L) RMSD \downarrow DiffAb H1 0.88 L1 0.85 dyMEAN 1.09 1.03 AbX 0.85 0.78 AbFlow 0.63 0.64 DiffAb H2 0.78 L2 0.55 dyMEAN 1.11 0.66 AbX 0.76 0.45 AbFlow 0.55 0.25 DiffAb H3 2.86 L3 1.39 dyMEAN 3.88 1.44 AbX 2.50 1.18 AbFlow 1.83 0.65 Full-atom Results RMSD \downarrow TMscore \uparrow lDDT \uparrow DockQ \uparrow dyMEAN 1.357 0.9653 0.8028 0.396 AbFlow 1.102 0.9707 0.8151 0.431 5.4. Binding Affinity Optimization Antibody binding affinity optimization is essential for enhancing the interaction between antibodies and their target antigens, improving specificity and efficacy while minimizing off-target effects. To achieve this, it is crucial to optimize the binding affinity by altering as few residues as possible. In this task, we use \Delta\Delta G as a key metric to evaluate the optimization effect, which represents the change in binding affinity, and \Delta L , which tracks the number of residues altered after optimization. These \Delta\Delta G values are predicted using a GNN-based model, which is further refined by training a multi-layer perceptron (MLP) to improve accuracy. Additionally, we introduce the IMP (IMprovement Percentage), which quantifies the proportion of improvement in binding affinity achieved after optimization. Table 3. Affinity Optimization Comparison of Different Models. Best \Delta\Delta G\downarrow \Delta L\downarrow IMP(\%)\uparrow DiffAb ( Luo et al. 2022 ) -2.17 7.06 - MEAN ( Kong et al. 2022 ) -6.48 8.96 - dyMEAN ( Kong et al. 2023 ) -7.7 4.92 36.7% AbFlow -16.46 6.79 38.4% Table 3 presents a comparison of our AbFlow model with other methods, including DiffAb ( Luo et al. 2022 ) , MEAN ( Kong et al. 2022 ) , and dyMEAN ( Kong et al. 2023 ) , across three key metrics: best \Delta\Delta G , \Delta L , and IMP. The results show that AbFlow outperforms the other methods in terms of both reducing the changes in binding affinity and minimizing the number of altered residues. Furthermore, AbFlow achieves a higher IMP, indicating a greater proportion of improvement in binding affinity. These results highlight that AbFlow is not only effective in optimizing the binding affinity but also makes acceptable structural changes to the antibody. Figure 4. \Delta\Delta G Comparison at Different Length of Changed Residues. Different Length of Changed Residues. Figure 4 presents a comparison of affinity optimization results when the number of changed residues is constrained. Specifically, the optimization was performed under various thresholds, limiting the maximum number of residues that could be altered to 1, 2, 4, and 8. The figure compares the performance of AbFlow with dyMEAN across these different thresholds. It shows that AbFlow maintains stable optimization performance, consistently achieving favorable \Delta\Delta G values, even when the number of residues altered is limited. 5.5. Complex Structure Prediction We also evaluated the performance of AbFlow on the complex structure prediction task, specifically in predicting the antigen-antibody complex structure given the complete antibody sequences. The results were compared to those of HDock ( Yan et al. 2020 ) , HERN ( Jin et al. 2022 ) , dyMEAN ( Kong et al. 2023 ) , and AlphaFold 3 ( Abramson et al. 2024 ) . Notably, both HDock and HERN are docking methods, requiring first the prediction of the antibody structure using IgFold ( Ruffolo et al. 2023 ) , followed by docking the antigen and antibody using their respective methods, and then assembling the side-chain with Rosetta. In contrast, AlphaFold 3 directly predicts the complex structure when provided with the sequences of both the antigen and the antibody. Table 4. Antigen-antibody Structure Prediction Comparison of Different Models. Model TMscore \uparrow lDDT \uparrow RMSD \downarrow DockQ \uparrow HDock ( Yan et al. 2020 ) 0.9701 0.8439 16.32 0.202 HERN ( Jin et al. 2022 ) 0.9702 0.8441 9.63 0.429 dyMEAN ( Kong et al. 2023 ) 0.9731 0.8673 9.05 0.452 AlphaFold 3 ( Abramson et al. 2024 ) 0.9799 0.921 9.47 0.475 AbFlow 0.9714 0.8618 9.01 0.455 Interestingly, our tests also revealed that AbFlow performs better when the flow model’s sampling process is omitted. By using only the velocity network as an encoder, we achieved superior results, showing that this simplified approach can enhance the overall performance of end-to-end protein structure prediction tasks. We evaluated the methods using TM-score, lDDT, and DockQ, as shown in Table 4 . Our results indicate that AbFlow outperforms all methods except AlphaFold3 in terms of docking metrics (RMSD DockQ), which reflects the quality of interaction prediction. While AlphaFold3 excels at predicting monomer structures, it leaves room for improvement in protein complex predictions. The gap between our method and AlphaFold3, in this regard, is not insurmountable, providing a clear direction for future development. 6. Ablation Study In this section, we evaluate the effects of the proposed framework and modules in AbFlow, as well as the influence of sampling steps. Table 5. Ablation Study Results on the Full-atom Antibody Design AAR \uparrow TMscore \uparrow lDDT \uparrow CAAR \uparrow RMSD \downarrow DockQ \uparrow AbFlow 0.4234 0.9736 0.8522 0.2824 8.25 0.423 w \ o Flow 0.4 0.9721 0.8448 0.264 7.76 0.417 w \ o SME 0.4046 0.9732 0.8506 0.2602 8.12 0.335 AbFlow-10 0.4234 0.9736 0.8522 0.2824 8.25 0.423 AbFlow-20 0.4178 0.9736 0.8522 0.277 8.26 0.424 AbFlow-50 0.4213 0.9736 0.8521 0.2812 8.29 0.42 Table 5 presents the results of the ablation study for the full-atom antibody design task. The results demonstrate that both the flow matching and SME module significantly enhance the generation of full-atom antibodies. The w/o Flow setting refers to a scenario where the flow matching framework is not used, and the model is reduced to an end-to-end prediction model, with the velocity network serving as the encoder. This setting indicates that the velocity field network v_{\theta} in the flow matching framework ensures the overall accuracy of sequence-structure co-design. And the w/o SME indicates that the SME module notably improves the interface quality. We also show the sampling efficiency by choosing different sampling steps ( n_{s}=10,20,50 ) in Table 5 . The results demonstrate that our method achieves superior performance with fewer generation steps, primarily due to the focused modeling of flow transport exclusively on the paratope region. This region typically spans 10-20 residues in length, and the average length of the test set is 13 residues. Compared to ( Hassan et al. 2024 ) , which targets small-molecule 3D conformer generation. Notably, our approach attains protein-level generation efficiency comparable to small-molecule methods. Table 6. Ablation Study Results on the Affinity Optimization Best \Delta\Delta G\downarrow \Delta L\downarrow IMP\%\uparrow AbFlow -16.46 6.79 38.4% w \ o Flow -5.41 2.59 40% w \ o SME -5.71 4.41 40.8% dyMEAN -7.7 4.92 36.7% Table 6 presents the ablation study results of AbFlow on the binding affinity optimization task. The results show that the complete AbFlow model significantly improves the affinity optimization performance. Even though it tends to change more residues, the resulting improvement in \Delta\Delta G is substantial. We believe that the optimization gains achieved at the cost of \Delta L are acceptable. 7. Computational Efficiency To assess the computational efficiency of AbFlow, we compare both its theoretical complexity and empirical runtime against predictive end-to-end methods as well as step-by-step generative baselines. Compared with dyMEAN, AbFlow performs flow matching–based sampling rather than single-step predictive inference. This inevitably introduces a sampling step T and a dependence on the number of sampled surface vertices M_{0} —an overhead that can be further optimized in future work. Even with this acceptable increase in computational cost, as shown in Table 7 , AbFlow achieves substantially stronger structural performance, representing a favorable trade-off relative to dyMEAN’s simpler predictive formulation. When compared with step-by-step methods such as DiffAb, AbFlow demonstrates advantages in both accuracy and efficiency. DiffAb requires 13,s for CDR-H3 diffusion plus 9.89,s for template generation (22.89,s total), whereas AbFlow completes full-atom generation in comparable or less time while producing significantly better structures. These results highlight that restricting flow matching to the paratope and coupling it with EGNN refinement yields an efficient and effective framework for full-atom antibody design. Table 7. Comparison of training and inference efficiency per sample across models. Model Train (s) Infer (s) Model Infer (s) AbFlow 4.56 1.4 (per step) AbFlow 14 dyMEAN 2.21 0.47 DiffAb 22.89 8. Future Work While our method demonstrates promising results, several limitations remain to be addressed. The surface information aggregation mechanism, though effective for capturing geometric and physicochemical features, introduces computational overhead that prolongs inference time and may limit real-time or high-throughput applications. A promising direction for future work is to develop adaptive surface sampling strategies—dynamically selecting an appropriate number of surface vertices for each epitope based on its geometry—to further reduce computational cost while preserving the fidelity of geometric information. On the application side, our problem setting assumes CDR-dominated binding, which limits applicability to cases where framework–epitope interactions are essential. Extending AbFlow to handle such framework-dominated regimes represents an important direction for future work. In addition, although our study focuses on antibodies, extending the framework to broader protein complexes (e.g., protein–ligand or peptide binders) remains an open challenge. Such generalization would further expand the applicability of our approach to wider protein engineering tasks. 9. Conclusion In this study, we introduced AbFlow, an end-to-end flow-matching framework designed to optimize the full-atom antibody design process. By leveraging paratope-centric distribution transport and enhancing the velocity field network with an equivariant Surface Multi-channel Encoder (SME), AbFlow offers efficient full-atom antibody design. Our experiments demonstrate that AbFlow significantly outperforms existing generative and predictive methods in generating structurally accurate antibodies with improved binding affinity. Furthermore, AbFlow is poised to accelerate the development of therapeutic antibodies, especially in scenarios requiring rapid responses to emerging diseases or the creation of personalized immunotherapies. Acknowledgements. This research was supported in part by National Natural Science Foundation of China (No. 92470128, No. U2241212, No.62376276), by Beijing Nova Program (No. 20230484278). We also wish to acknowledge the support provided by the fund for building world-class universities (disciplines) of Renmin University of China, by Intelligent Social Governance Interdisciplinary Platform, Major Innovation & Planning Interdisciplinary Platform for the “Double-First Class” Initiative, Public Policy and Decision-making Research Lab, and Public Computing Cloud, Renmin University of China. Appendix Appendix A E(3)-Equivariance of the velocity field network In this section, we prove the E(3)-equivariance of our proposed velocity field network. Note that ( Kong et al. 2023 ) has already demonstrated the E(3)-equivariance of the AME module; thus, it suffices to prove the equivariance of the SME module through the following theorem. Theorem A.1. Let \{X_{i}^{(l)}\}_{i\in\mathcal{V}_{A}\cup\mathcal{V}_{E}} denote the coordinates of residue nodes and \{X_{s_{j}}^{(l)}\}_{j\in\mathcal{N}_{i}} the coordinates of interacting surface points. Let \{S_{i}^{(l)}\}_{i\in\mathcal{V}_{A}\cup\mathcal{V}_{E}} denote the hidden states of residue sequence, respectively. Then, under any Euclidean transformation g=(Q,t)\in\mathrm{E}(3) , the Surface Multi-channel Encoder is E(3)-invariant with respect to sequence inputs and E(3)-equivariant with respect to coordinate inputs. Express this in formulation: (17) S_{i}^{(l)}\mapsto QS_{i}^{(l)}+t\quad\Rightarrow\quad S_{i}^{(l+1)}\mapsto S_{i}^{(l+1)}. (18) X_{i}^{(l)}\mapsto QX_{i}^{(l)}+t\quad\Rightarrow\quad X_{i}^{(l+1)}\mapsto QX_{i}^{(l+1)}+t. Proof. First, it is evident that the surface vertices corresponding to a residue are determined by their relative positional relationships, and thus remain invariant under the transformation g\in\mathrm{E}(3) . Meanwhile, the coordinates of surface vertices \{X_{s_{j}}^{(l)}\}_{j\in\mathcal{N}_{i}} vary synchronously with the residues coordinates X_{i} . This implies: (19) X_{i}\mapsto QX_{i}+t\Rightarrow X_{s_{j}}\mapsto QX_{s_{j}}+t,\forall j\in\mathcal{N}_{i}. For a residue node i and a neighboring surface node s_{j} , the m_{ij} is computed via (20) m_{ij}=\phi_{m}(S_{i}^{(l)},S_{s_{j}}^{(l)},\text{msg}(X_{i}^{(l)},X_{s_{j}}^{(l)})). Here, the message is constructed as: \displaystyle\text{msg}(X_{i}^{(l)},X_{s_{j}}^{(l)}) \displaystyle=\phi_{v}\left(\frac{A_{i}^{\top}D(X_{i}^{(l)},X_{s_{j}}^{(l)})}{D(X_{i}^{(l)},X_{s_{j}}^{(l)})+\epsilon}\right), (21) \displaystyle D[p,q] \displaystyle=\|X_{i}^{(l)}[p,:]-X_{s_{j}}^{(l)}[q,:]\|_{2}. for each element in matrix D that indicates Euclidean distance between a residue and a surface vert, satisfies: \displaystyle\|(QX_{i}[p,:]+t)-(QX_{s_{j}}[q,:]+t)\|_{2}=\|Q(X_{i}[p,:]-X_{s_{j}}[q,:])\|_{2} \displaystyle=\sqrt{[Q(X_{i}[p,:]-X_{s_{j}}[q,:])]^{\top}[Q(X_{i}[p,:]-X_{s_{j}}[q,:])]} \displaystyle=\sqrt{(X_{i}[p,:]-X_{s_{j}}[q,:])^{\top}Q^{\top}Q(X_{i}[p,:]-X_{s_{j}}[q,:])} \displaystyle=\sqrt{(X_{i}[p,:]-X_{s_{j}}[q,:])^{\top}(X_{i}[p,:]-X_{s_{j}}[q,:])} \displaystyle=\|X_{i}[p,:]-X_{s_{j}}[q,:]\|_{2}. So we have \text{msg}(QX_{i}^{(l)}+t,QX_{s_{j}}^{(l)}+t)=\text{msg}(X_{i}^{(l)},X_{s_{j}}^{(l)}) , thus m_{ij} is invariant under g=(Q,t) . According to the update process of S_{i} : (22) S_{i}^{(l+1)}=\phi_{s}(S_{i}^{(l)},\sum_{j\in\mathcal{N}_{i}}m_{ij}). we can prove that our SME module remains invariant with respect to the sequence hidden states S_{i} . Next, applying transformation g to the geometric messages X_{ij} involved in the aggregation process, we have: \displaystyle X_{i}^{(l)}-\mathbf{1}X_{s_{j}}^{(l)}[k,:]\mapsto\ \displaystyle QX_{i}^{(l)}+t-(Q\mathbf{1}X_{s_{j}}^{(l)}[k,:]+t) (23) \displaystyle=Q(X_{i}^{(l)}-\mathbf{1}X_{s_{j}}^{(l)}[k,:]),\quad k=1,\dots,M. thus X_{ij}\mapsto QX_{ij} . SME updates the residues coordinates by: (24) X_{i}^{(l+1)}=X_{i}^{(l)}+\frac{1}{|\mathcal{N}_{i}|}\sum_{j\in\mathcal{N}_{i}}X_{ij}\cdot\phi_{e}(m_{ij}). As X_{i}^{(l)}\mapsto QX_{i}^{(l)}+t , X_{ij}\mapsto QX_{ij} , and \phi_{e}(m_{ij}) is invariant, we obtain: (25) X_{i}^{(l+1)}\mapsto QX_{i}^{(l)}+t+\frac{1}{|\mathcal{N}_{i}|}\sum_{j}QX_{ij}\cdot\phi_{e}(m_{ij})=QX_{i}^{(l+1)}+t. Thus far, we have rigorously proven that the Surface Multi-channel Encoder (SME) module exhibits E(3)-equivariance with respect to the input residue coordinates. Appendix B Data and Model Availability All datasets and model weights are publicly available at https://huggingface.co/wenda8759/AbFlow , including PDB files with train/validation/test splits and trained model weights for all experiments. Appendix C Evaluation Metrics We use the following several metrics to compare the performance of our AbFlow with other models on full-atom antibody design task: Amino Acid Recovery (AAR) : The overlapping ratio of the generated sequence and the ground truth. CAAR ( Ramaraj et al. 2012 ) : Computes AAR restricted to binding residues whose minimum distance from epitope residues is below 6.6Å. TMscore ( Zhang and Skolnick 2007 ; Xu and Zhang 2010 ) : Measures the global similarity between the generated structure and the ground truth in terms of C_{\alpha} coordinates. Local Distance Difference Test (lDDT) ( Mariani et al. 2013 ) : Contrasts the difference of the atom-wise distance between the generated structure and the ground truth to evaluate local similarity. RMSD : Calculates the Root Mean Square Deviation regarding the absolute coordinates of CDR-H3 without Kabsch ( Kabsch 1976 ; Mirabello and Wallner 2024 ) alignment. DockQ : ( Basu and Wallner 2016 ) : A comprehensive score for the docking quality of a complex structure. \mathbf{\Delta\Delta G} : Represents the change in Gibbs free energy of the protein complex upon mutation, reflecting the effect of the mutation on protein stability or binding affinity. For the metrics used to evaluate binding affinity optimization in Section 5.3 : (26) \displaystyle best\Delta\Delta G=\frac{1}{D}\sum_{d=1}^{D}\mathop{\min}_{p}\Delta\Delta G_{dp}, (27) \displaystyle mean\Delta\Delta G=\frac{1}{DP}\sum_{d=1}^{D}\sum_{p=1}^{P}\Delta\Delta G_{dp}. Appendix D Settings of Surface Sampling Here, we describe how the number of surface vertices on the epitope was determined. Based on the surface cutoff of 1.5 Åintroduced in Section 4.2 , we computed the number of surface vertices per residue across the training set and obtained an average of approximately \overline{|\mathbb{S}|}\approx 75 . Since each residue is assigned a fixed-size surface vertex set M_{0} , residues with fewer than M_{0} vertices are padded with zero vectors. To ensure that most residues provide sufficient geometric information without excessive padding, we set M_{0}=\frac{2}{3}\,\overline{|\mathbb{S}|}\approx 50 . Figure 5. Schematic diagram of surface definition and message passing. We generate surface vertices within a cutoff of 1.5 Å around the epitope. For each vertex, we assign the nearest residue. Then, we perform message passing between the surface vertices and the antibody paratope using SME to enhance the learning ability of the interaction. Schematic diagram of surface definition and message passing. Appendix E Generation After the modules described above, AbFlow performs a final decoding step to produce both sequence and structure outputs. For sequence generation, the hidden states are transformed into amino acid probabilities using a softmax over the 20 residue types. For structure generation, after all n_{layers} iterations of the velocity-field network, the predicted coordinates are aligned to the native paratope using the method of ( Kabsch 1976 ) . Since the full antibody structure is generated from the paratope outward, only minimal refinement is required during alignment to dock the antibody to the antigen. Appendix F Losses Losses . In this part, we specifically introduce the various losses that make up the Equation 16 in Section 4.4 , including the three parts except for the flow matching loss \mathcal{L}_{F} : sequence loss \mathcal{L}_{seq} , structure loss \mathcal{L}_{struct} , and docking loss \mathcal{L}_{dock} . The sequence loss calculates the cross-entropy loss between the predicted amino acid type p_{i}^{(t)} in each iteration and the one-hot vector p_{i}^{true} of the actual type: (28) \mathcal{L}_{seq}=\frac{1}{T\left|\mathcal{V}_{P}\right|}\sum_{t=1}^{T}\sum_{i\in\mathcal{V}_{P}}\ell_{ce}\left(p_{i}^{(t)},p_{i}^{true}\right). The structure loss consists of two parts: the coordinate loss and the chemical bond loss, which measure the global and local deviations respectively. The coordinate loss calculates the huber loss between the final iteration X_{i}^{(T)} and the ground truth X_{i}^{true} after alignment. The chemical bond loss calculates the huber loss between the lengths of the chemical bonds used in the structure of X_{i}^{(T)} and the lengths of the ground truth bonds. \mathcal{L}_{struct}=\mathcal{L}_{coord}+\mathcal{L}_{bond} . (29) \mathcal{L}_{coord}=\frac{1}{\left|\mathcal{V}_{A}\right|}\sum_{v_{i}\in\mathcal{V}_{A}}\ell_{huber}\left(X_{i}^{(T)},X_{i}^{true}\right), (30) \mathcal{L}_{bond}=\frac{1}{|\mathcal{B}|}\sum_{b\in\mathcal{B}}\ell_{huber}\left(b^{(T)},b^{true}\right). The docking loss focuses on the connected-paratope and calculates the coordinate loss between the connected-paratope and the native paratope as well as the distances loss of the external edges in \mathcal{E}_{E\cup C} . (31) \mathcal{L}_{cp}=\frac{1}{\left|\mathcal{V}_{C}\right|}\sum_{i\in\mathcal{V}_{C}}\ell_{huber}\left(X_{i}^{(T)},X_{i}^{true}\right). (32) \mathcal{L}_{dist}=\frac{1}{T\left|\mathcal{V}_{E}\right|\left|\mathcal{V}_{C}\right|}\sum_{t=1}^{T}\sum_{\begin{subarray}{c}u\in\mathcal{V}_{E},\\ v\in\mathcal{V}_{C}\end{subarray}}\ell_{huber}\left(d^{(t)}(u,v),d^{true}(u,v)\right). Where d(u,v),d^{true}(u,v) respectively represent the predicted and true residues distance between u\in\mathcal{V}_{E},v\in\mathcal{V}_{C} . \mathcal{L}_{dock}=\mathcal{L}_{cp}+\mathcal{L}_{dist} . Appendix G Hyperparameter and Hardware Requirements Our AbFlow is trained using the Adam optimizer within the PyTorch data-parallel framework, implemented on 2 NVIDIA A100 GPUs, each with 80GB of VRAM. The hyperparameters of the model are detailed in Table 8 . Table 8. Model hyperparameters and training configurations Hyperparameter Value Description embed_size 64 Sequence embedding size. hidden_size 128 Hidden state dimension. n_layers 3 Velocity field network layers. k_neighbors 9 KNN neighbors per node. batch_size 16 Training batch size. M_{0} 50 Surface vertices per residue. n_steps 10 ODE sampling steps.