TorchCraft: Unified binder design by inverting an all-atom structure predictor

arXiv cs.AI Papers

Summary

TorchCraft is a unified binder design framework that inverts all-atom structure predictors like AlphaFold3 to optimize sequences for minibinders, VHHs, cyclic peptides, and ligand-binding proteins, with experimental validation across multiple formats.

arXiv:2609.19770v1 Announce Type: new Abstract: All-atom structure predictors model diverse molecular interactions, but using their learned structural priors for binder design remains challenging. Here we present TorchCraft, a unified binder-design framework that optimizes sequence logits through a frozen all-atom predictor. Implemented in TorchFold, TorchCraft combines confidence, contact, geometric, and sequence-prior objectives within a shared optimization procedure for minibinders, framework-conditioned VHHs, cyclic peptides, and ligand-binding proteins. Using pretrained AlphaFold 3 weights, TorchCraft generated representative minibinders and VHHs with experimentally measured binding across four targets in each format, without post hoc sequence redesign. Computational benchmarks further demonstrated the framework's applicability to cyclic peptides and ligand-conditioned pocket design. TorchCraft extends predictor inversion to multiple binder formats and molecular contexts, providing a common framework for reusing all-atom structural priors in design.
Original Article
View Cached Full Text

Cached at: 09/18/26, 09:24 AM

# TorchCraft: Unified binder design by inverting an all-atom structure predictor
Source: [https://arxiv.org/html/2609.19770](https://arxiv.org/html/2609.19770)
###### Abstract

All\-atom structure predictors model diverse molecular interactions, but using their learned structural priors for binder design remains challenging\. Here we present TorchCraft, a unified binder\-design framework that optimizes sequence logits through a frozen all\-atom predictor\. Implemented in TorchFold, TorchCraft combines confidence, contact, geometric, and sequence\-prior objectives within a shared optimization procedure for minibinders, framework\-conditioned VHHs, cyclic peptides, and ligand\-binding proteins\. Using pretrained AlphaFold3 weights, TorchCraft generated representative minibinders and VHHs with experimentally measured binding across four targets in each format, without post hoc sequence redesign\. Computational benchmarks further demonstrated the framework’s applicability to cyclic peptides and ligand\-conditioned pocket design\. TorchCraft extends predictor inversion to multiple binder formats and molecular contexts, providing a common framework for reusing all\-atom structural priors in design\.

## 1Introduction

De novo binder design seeks sequences that fold reliably and recognize specified molecular targets\.\[[1](https://arxiv.org/html/2609.19770#bib.bib1),[2](https://arxiv.org/html/2609.19770#bib.bib2),[3](https://arxiv.org/html/2609.19770#bib.bib3)\]Advances in structure prediction have made learned structural priors increasingly useful for this task\. AlphaFold2 models protein structure and assembly, whereas all\-atom predictors such as AlphaFold3 can additionally represent nucleic acids, small molecules, ions, and modified residues\.\[[4](https://arxiv.org/html/2609.19770#bib.bib4),[5](https://arxiv.org/html/2609.19770#bib.bib5),[6](https://arxiv.org/html/2609.19770#bib.bib6),[7](https://arxiv.org/html/2609.19770#bib.bib7)\]These capabilities create an opportunity to guide binder design within a common molecular representation, provided that the predictor’s outputs can be converted into effective sequence\-optimization objectives\.

Current design workflows combine structure generation, sequence assignment, and evaluation in different ways\. Backbone\-generation methods, including RFdiffusion, are commonly paired with ProteinMPNN or LigandMPNN and subsequent structure prediction\.\[[8](https://arxiv.org/html/2609.19770#bib.bib8),[9](https://arxiv.org/html/2609.19770#bib.bib9),[10](https://arxiv.org/html/2609.19770#bib.bib10),[11](https://arxiv.org/html/2609.19770#bib.bib11),[12](https://arxiv.org/html/2609.19770#bib.bib12),[13](https://arxiv.org/html/2609.19770#bib.bib13)\]These workflows provide complementary ways to explore sequence and structure, with task scope depending on the molecular representations and constraints supported by each component\.

Predictor\-inversion methods instead optimize sequences directly against outputs of a pretrained structure predictor\.\[[14](https://arxiv.org/html/2609.19770#bib.bib14),[15](https://arxiv.org/html/2609.19770#bib.bib15)\]BindCraft established an experimentally effective AF2\-based workflow for protein binder design\.\[[16](https://arxiv.org/html/2609.19770#bib.bib16)\]BoltzDesign extended all\-atom predictor inversion to additional molecular contexts, while Germinal incorporated antibody\-specific objectives and sequence guidance\.\[[17](https://arxiv.org/html/2609.19770#bib.bib17),[18](https://arxiv.org/html/2609.19770#bib.bib18)\]Forward\-pass approaches such as Protein Hunter and HalluDesign offer a related strategy by alternating structure hallucination and sequence redesign without backpropagating through the predictor\.\[[19](https://arxiv.org/html/2609.19770#bib.bib19),[20](https://arxiv.org/html/2609.19770#bib.bib20)\]These developments motivate further evaluation of how all\-atom predictors can support effective design across binder formats and target chemistries\.

A practical question is whether a shared predictor\-inversion framework can accommodate different binder formats and molecular contexts while producing experimentally functional sequences\. Addressing this question requires both task\-specific constraints, such as a fixed antibody framework or peptide cyclization, and sequence\-level controls that complement structural objectives\. It also requires evaluation beyond the confidence scores used during optimization\.

Here we present TorchCraft, a binder\-design framework that optimizes sequence logits through a frozen all\-atom structure predictor implemented in TorchFold\.\[[21](https://arxiv.org/html/2609.19770#bib.bib21)\]All designs reported here, including experimentally validated binders and computational benchmarks, were generated using pretrained AF3 weights\. The contribution is a shared optimization procedure with task\-specific sequence masks, restraints, priors, and schedules, together with experimental minibinder and VHH demonstrations and computational extensions to cyclic peptides and small\-molecule\-binding proteins\.

## 2Results

### 2\.1TorchCraft as an all\-atom hallucination framework

TorchCraft represents the editable binder sequence as a trainable logit matrix and updates it using gradients of design objectives computed through a frozen predictor \(Figure[1](https://arxiv.org/html/2609.19770#S2.F1)\)\. Each iteration evaluates the target–binder system and adjusts the sequence to improve predicted structural compatibility, interface formation, and task\-specific sequence properties\. Optimization progresses from continuous sequence representations to discrete amino\-acid assignments, yielding a designed sequence and a corresponding predicted all\-atom structure \(Figure[2](https://arxiv.org/html/2609.19770#S2.F2)b\)\.

The all\-atom representation allows the target context to include protein and nonprotein components\. In this study, we apply the framework to minibinders, framework\-conditioned VHHs, head\-to\-tail and disulfide\-linked cyclic peptides, and proteins designed around small\-molecule ligands\. These tasks share the sequence\-optimization engine but use different editable positions, loss terms, molecular constraints, and optimization schedules \(Supplementary Table[S1](https://arxiv.org/html/2609.19770#A2.T1)\)\.

TorchCraft uses the TorchFold implementation to perform sequence optimization with a frozen predictor\. Computational optimizations, including conformer\-generation parallelism, gradient checkpointing, caching, and fused attention, support repeated evaluation during optimization \(Appendix[A\.3](https://arxiv.org/html/2609.19770#A1.SS3)\)\.

![Refer to caption](https://arxiv.org/html/2609.19770v1/fig1.png)Figure 1:TorchCraft optimizes binder sequences through a frozen all\-atom predictor\.Target context and editable sequence representations are evaluated using the TorchFold implementation with pretrained AF3 weights, and gradients of task\-specific objectives update the sequence logits\. Experimental campaigns and computational benchmarks reported here used the same AF3\-weight setting\. The framework is applied to minibinders, framework\-conditioned VHHs, cyclic peptides, and ligand\-conditioned proteins by changing the editable positions, molecular constraints, and loss terms\.
### 2\.2De novo design of protein binders against protein targets

We designed minibinders against IFNAR2, IL\-7Rα\\alpha, PDGFRβ\\beta, and PD\-L1 using target structures, binder\-length ranges, and hotspot definitions specified in Supplementary Table[S2](https://arxiv.org/html/2609.19770#A2.T2)\. Candidates were selected from 3,000 generated designs per target using the filters and ranking procedure in Appendix[A\.2\.2\.1](https://arxiv.org/html/2609.19770#A1.SS2.SSS2.P1)\. Multi\-concentration BLI measurements identified binders in all four campaigns, with representative apparent dissociation constants of 60\.2, 8\.55, 2\.04, and 23\.3 nM, respectively \(Figure[2](https://arxiv.org/html/2609.19770#S2.F2)a\)\. The experimentally tested sequences were obtained directly from TorchCraft without post hoc sequence redesign\. Predicted complexes of the analyzed designs displayed diverse binding configurations and differed from interactions identified in the PDB comparison \(Figure[2](https://arxiv.org/html/2609.19770#S2.F2)c,d\)\.

Structural objectives do not directly constrain all sequence features relevant to expression\. We therefore added an amino\-acid\-composition regularizer that matches the average residue distribution to a reference estimated from ProteinMPNN\-redesigned samples\. The regularizer altered the composition of TorchCraft sequences \(Figure[2](https://arxiv.org/html/2609.19770#S2.F2)e\) and increased ESMFold confidence across the 12\-target benchmark \(Supplementary Figure[S1](https://arxiv.org/html/2609.19770#A3.F1)a\)\. In two PDGFRβ\\betaminibinder campaigns, the round incorporating composition regularization showed higher expression than the preceding unregularized round \(Supplementary Figure[S1](https://arxiv.org/html/2609.19770#A3.F1)b\)\.

We next compared TorchCraft with BoltzGen and RFdiffusion across 12 protein targets and binder lengths of 75, 120, 160, and 200 residues\. Designs were evaluated using TorchScore, a score\-only AF3 evaluation of supplied coordinates \(Appendix[A\.4\.2](https://arxiv.org/html/2609.19770#A1.SS4.SSS2)\)\. Computational pass rates varied by target and binder length \(Figure[2](https://arxiv.org/html/2609.19770#S2.F2)f\)\. Raw TorchCraft designs were competitive on several targets, while optional ProteinMPNN redesign of noninterface residues further improved pass rates in many settings\. Because the evaluation uses predictor\-derived scores, we additionally report Rosetta interface\-score distributions \(Supplementary Figure[S2](https://arxiv.org/html/2609.19770#A3.F2)\)\.

![Refer to caption](https://arxiv.org/html/2609.19770v1/fig2.png)Figure 2:Experimental minibinder binding and computational evaluation of TorchCraft designs\.\(a\) Predicted complexes and BLI measurements for representative minibinders against IFNAR2, IL\-7Rα\\alpha, PDGFRβ\\beta, and PD\-L1\. Apparent dissociation constants of the displayed binders were 60\.2, 8\.55, 2\.04, and 23\.3 nM, respectively\. \(b\) Schematic of sequence optimization, showing conversion of a continuous sequence representation into a discrete designed sequence and predicted complex through iterative predictor evaluation and sequence updates\. \(c,d\) Diversity and divergence of predicted binding configurations for the analyzed designs, quantified using target\-aligned binder Cα\\alphaRMSD clustering and comparison with interactions identified around similar target chains in the PDB\. \(e\) Amino\-acid composition of TorchCraft minibinders optimized with or without the composition regularizer, which matches the mean residue distribution to a ProteinMPNN\-derived reference\. \(f\) Computational pass rates across 12 protein targets, aggregated over binder lengths of 75, 120, 160, and 200 residues\. TorchCraft, BoltzGen, and RFdiffusion designs were evaluated with TorchScore, which scores supplied coordinates using the same pretrained AF3 weights used for design and does not refold sequences\.
### 2\.3De novo VHH design by framework\-conditioned CDR optimization

We next applied TorchCraft to VHH design, holding a predefined framework sequence fixed while optimizing the three CDRs\. This confines sequence search to the paratope\-forming regions while retaining the selected scaffold context\. Designs were generated against BHRF1, EFNA5, PDGFRβ\\beta, and S100A4 using the task specifications in Supplementary Table[S3](https://arxiv.org/html/2609.19770#A2.T3)\. BLI measurements identified binders in all four campaigns, with representative apparent dissociation constants of 24\.3, 122, 268, and 354 nM, respectively \(Figure[3](https://arxiv.org/html/2609.19770#S2.F3)a\)\. These sequences were tested without post hoc sequence redesign\. The corresponding predicted complexes were analyzed for diversity and divergence from PDB binding configurations \(Figure[3](https://arxiv.org/html/2609.19770#S2.F3)g,h\)\.

Unregularized VHH optimization produced CDR sequences with residue preferences that differed from the SAbDab reference set\. To incorporate antibody\-sequence constraints during design, we added an IgLM\-derived objective evaluated separately for CDR1, CDR2, and CDR3\.\[[22](https://arxiv.org/html/2609.19770#bib.bib22)\]For each CDR, the framework and the current sequences of the other CDRs provide context for the local infilling objective \(Figure[3](https://arxiv.org/html/2609.19770#S2.F3)b; Algorithm[3](https://arxiv.org/html/2609.19770#algorithm3)\)\. This concentrates sequence guidance on the editable regions\. We compared this approach with the full\-sequence guidance used in the Germinal implementation evaluated here\.\[[18](https://arxiv.org/html/2609.19770#bib.bib18)\]

CDR\-restricted IgLM guidance increased IgLM likelihoods and shifted position\-specific residue preferences toward those observed in the SAbDab reference set, particularly in CDR1 and CDR2 \(Figure[3](https://arxiv.org/html/2609.19770#S2.F3)c,d\)\. Guided sequences also showed changes in TNP developability\-associated profiles and higher OASis humanness scores \(Figure[3](https://arxiv.org/html/2609.19770#S2.F3)e,f\)\.\[[23](https://arxiv.org/html/2609.19770#bib.bib23),[24](https://arxiv.org/html/2609.19770#bib.bib24)\]These analyses indicate improved agreement with selected sequence\-based reference distributions\.

We compared TorchCraft with RFantibody, BoltzGen, and Germinal across 15 targets and five VHH frameworks \(Figure[3](https://arxiv.org/html/2609.19770#S2.F3)i; Supplementary Figure[S5](https://arxiv.org/html/2609.19770#A3.F5)\)\.\[[25](https://arxiv.org/html/2609.19770#bib.bib25),[13](https://arxiv.org/html/2609.19770#bib.bib13),[18](https://arxiv.org/html/2609.19770#bib.bib18)\]Designs were assessed using the joint TorchScore\-confidence and ESM2\-perplexity criterion described in Appendix[A\.4](https://arxiv.org/html/2609.19770#A1.SS4)\. TorchCraft achieved higher computational pass rates on many targets, with additional gains from optional AbMPNN redesign in several settings\. Rosetta interface\-score distributions provide an additional assessment of the predicted complexes \(Supplementary Figure[S3](https://arxiv.org/html/2609.19770#A3.F3)\)\.

![Refer to caption](https://arxiv.org/html/2609.19770v1/fig3.png)Figure 3:Framework\-conditioned VHH design with CDR\-specific sequence guidance\.\(a\) Predicted complexes and BLI measurements for representative VHHs against BHRF1, EFNA5, PDGFRβ\\beta, and S100A4\. Apparent dissociation constants of the displayed binders were 24\.3, 122, 268, and 354 nM, respectively\. \(b\) Schematic of CDR\-restricted IgLM guidance: for each CDR, the framework and the remaining CDRs provide infilling context, and the IgLM\-derived objective is applied only to the editable loop\. \(c\) IgLM log\-likelihood distributions for natural SAbDab VHHs, Germinal\-generated sequences with or without CDR redesign, and TorchCraft sequences with or without CDR\-restricted IgLM regularization\. \(d\) Information\-content sequence logos for HCDR1, HCDR2, and HCDR3, shown together with position\-wise similarity to the SAbDab reference set\. \(e\) Therapeutic Nanobody Profiler \(TNP\) comparison of developability\-associated profiles for sequences generated with or without IgLM guidance\.\[[23](https://arxiv.org/html/2609.19770#bib.bib23)\]\(f\) BioPhi/OASis humanness\-score comparison of guided and unguided sequences\.\[[24](https://arxiv.org/html/2609.19770#bib.bib24)\]\(g,h\) Diversity and divergence of predicted VHH binding configurations, quantified using target\-aligned binder Cα\\alphaRMSD clustering and comparison with PDB interactions\. \(i\) Computational pass rates for VHH design across 15 targets, comparing TorchCraft with RFantibody, BoltzGen, and Germinal under a joint TorchScore\-confidence and ESM2\-perplexity criterion\. TorchScore scores supplied coordinates using the same pretrained AF3 weights used for design and does not refold sequences\. A framework\-stratified analysis is shown in Supplementary Figure[S5](https://arxiv.org/html/2609.19770#A3.F5)\.
### 2\.4In silico benchmark and analysis of cyclic peptide design

We next evaluated cyclic\-peptide design computationally using two parameterizations \(Figure[4](https://arxiv.org/html/2609.19770#S2.F4)a\)\. Head\-to\-tail designs used cyclic relative positional encoding to represent sequence adjacency across the termini\. Disulfide\-linked designs retained linear positional encoding and fixed the cysteine positions defining the intended linkage\. Predicted structures were then classified according to whether they satisfied the intended cyclization and backbone\-integrity criteria \(Supplementary Figure[S6](https://arxiv.org/html/2609.19770#A3.F6)\)\. Both settings used contact\-based objectives together with the additional terms specified in Supplementary Table[S1](https://arxiv.org/html/2609.19770#A2.T1)\.

We compared cyclic\-peptide designs for eight target systems with outputs from RFpeptides and BoltzGen using the structural and confidence criteria defined in Appendix[A\.4](https://arxiv.org/html/2609.19770#A1.SS4)\(Figure[4](https://arxiv.org/html/2609.19770#S2.F4)c\)\. Performance depended on both the target and cyclization mode\. Disulfide\-linked TorchCraft designs showed higher computational pass rates in several settings, including PD\-L1 and GABARAP, whereas head\-to\-tail designs displayed a different target\-dependent profile\. Optional ProteinMPNN redesign improved pass rates in several comparisons\. Representative predicted complexes and Rosetta interface\-score distributions illustrate the resulting interfaces \(Figure[4](https://arxiv.org/html/2609.19770#S2.F4)b; Supplementary Figure[S7](https://arxiv.org/html/2609.19770#A3.F7)\)\.

![Refer to caption](https://arxiv.org/html/2609.19770v1/fig4.png)Figure 4:Computational evaluation of head\-to\-tail and disulfide\-linked cyclic\-peptide designs\.\(a\) Schematic comparison of the two parameterizations: head\-to\-tail designs use cyclic relative positional encoding to represent sequence adjacency across the termini, whereas disulfide\-linked designs retain linear positional encoding and fix the cysteine positions that define the intended linkage\. \(b\) Representative predicted complexes for MCL\-1, MDM2, PD\-L1, and GABARAP, shown for both cyclization modes\. \(c\) Computational pass rates across eight target systems: MCL\-1, MDM2, PD\-L1, IL\-23R, albumin, KEAP1, GABARAP, and RagA:RagC\. BoltzGen, RFpeptides, and TorchCraft designs were compared using the structural and confidence criteria defined in Appendix[A\.4](https://arxiv.org/html/2609.19770#A1.SS4)\.
### 2\.5Computational design of ligand\-binding protein pockets

Designing proteins around small\-molecule ligands requires compatible folding, pocket geometry, and local chemical interactions\. We therefore combined ligand\-contact objectives with controls on binder compactness and secondary\-structure composition\. An isotropy regularizer was used to bias the overall binder shape, while helix andβ\\beta\-structure terms modulated secondary\-structure preferences \(Figure[5](https://arxiv.org/html/2609.19770#S2.F5)a,b\)\. These objectives were intended to support pocket formation without specifying a pre\-existing scaffold\.

Small\-molecule design began with a ligand\-free warm\-up stage that optimized the binder before ligand\-dependent objectives were introduced\. The ligand was then added, and the weight of the interface objective was gradually increased before the final optimization stages \(Appendix[A\.1\.3](https://arxiv.org/html/2609.19770#A1.SS1.SSS3)\)\. This schedule separates initial fold formation from subsequent pocket optimization\.

We evaluated a panel of ten small\-molecule targets spanning different chemical structures, including nucleotides, cofactors, metabolites, and drug\-like compounds \(Supplementary Figure[S8](https://arxiv.org/html/2609.19770#A3.F8)\)\.\[[17](https://arxiv.org/html/2609.19770#bib.bib17),[26](https://arxiv.org/html/2609.19770#bib.bib26),[27](https://arxiv.org/html/2609.19770#bib.bib27),[20](https://arxiv.org/html/2609.19770#bib.bib20)\]TorchCraft generated 500 independent 160\-residue proteins per ligand without a supplied native scaffold\. Raw outputs were evaluated without post hoc sequence redesign or score\-based preselection\. An optional LigandMPNN\-redesigned setting was analyzed separately\. Representative predicted pockets are shown in Figure[5](https://arxiv.org/html/2609.19770#S2.F5)e\.

We evaluated the predicted ligand\-binding proteins using AutoDock Vina scores and Boltz\-2 affinity predictions \(Figure[5](https://arxiv.org/html/2609.19770#S2.F5)c,d\),\[[28](https://arxiv.org/html/2609.19770#bib.bib28),[29](https://arxiv.org/html/2609.19770#bib.bib29),[6](https://arxiv.org/html/2609.19770#bib.bib6)\]with TorchScore pass rates reported separately \(Supplementary Figure[S9](https://arxiv.org/html/2609.19770#A3.F9)\)\. Score distributions varied across ligands and methods\. These complementary computational assessments support the feasibility of generating ligand\-conditioned pockets\.

![Refer to caption](https://arxiv.org/html/2609.19770v1/fig5.png)Figure 5:Computational generation and evaluation of ligand\-conditioned protein pockets\.\(a,b\) Helix andβ\\beta\-structure terms modulate the secondary\-structure composition of designed binders\. Ternary kernel density plots show compositions under different loss\-weighting schemes\. \(c\) AutoDock Vina docking scores \(kcal mol\-1\) for designed pockets across the 10\-ligand panel\. \(d\) Boltz\-2 affinity predictions for the same designs\. Score distributions vary by ligand and method\. \(e\) Representative predicted 160\-residue binders for four ligands: ATP, SAM, FAD, and IAI\. Designs were generated without a supplied native scaffold\. Raw outputs were evaluated without post hoc sequence redesign\. An optional LigandMPNN\-redesigned setting is analyzed separately\.

## 3Discussion

TorchCraft extends the predictor\-inversion approach to binder design within an all\-atom molecular representation\. Building on the principle established by BindCraft and related methods,\[[16](https://arxiv.org/html/2609.19770#bib.bib16),[17](https://arxiv.org/html/2609.19770#bib.bib17)\]it uses a common optimization engine with task\-specific constraints for minibinders, VHHs, cyclic peptides, and ligand\-conditioned proteins\. Experiments using pretrained AF3 weights established binding by designed minibinders and VHHs without post hoc sequence redesign\. These results show that direct sequence optimization can produce experimentally functional binders in distinct protein formats, while computational studies support extension to additional molecular contexts\.

A practical advantage of TorchCraft is that design tasks can be specified through editable residues, molecular context, restraints, and objective functions within the same framework\. This allows new constraints to be evaluated without training a separate generator for every task\. The present results support this approach across several design settings, although each requires appropriate objectives, sequence priors, and validation\. Optional sequence redesign remains useful in some applications, even though it was not required for the experimentally tested binders reported here\.

The current study has several limitations\. Experimental validation is confined to minibinders and VHHs, whereas cyclic\-peptide and small\-molecule results remain computational\. Predictor\-derived pass rates are sensitive to the evaluator and should not be interpreted as experimental success rates\. The functional consequences of sequence regularization also require matched experimental comparisons, and binding measurements do not by themselves establish the accuracy of the predicted interfaces\. Further validation across targets, formats, and independent assays will clarify the framework’s practical range\.

A further methodological direction is to incorporate objectives defined directly on atomic interactions\. Stable differentiation through coordinate generation could enable more explicit control of ligand\-contact geometry, buried polar networks, and coordination sites\. Such objectives would complement the confidence\- and distogram\-based signals used here, but their value must be assessed through both geometric validation and experimental function\.

TorchFold’s reported improvements in antibody–antigen structure prediction provide a promising direction for antibody design\.\[[21](https://arxiv.org/html/2609.19770#bib.bib21)\]Its specialized checkpoint may offer more informative guidance during CDR optimization\. Matched comparisons of experimental binding and expression under the same targets, frameworks, and candidate\-selection procedures will be needed to test this potential\.

## 4Acknowledgments

This work was funded by Changping Laboratory \(CPNL project 2026D\-03\-01\)\.

## 5Author Contributions

Yu Liu1,∗, Zhouhanyu Shen1,∗, Zhengyi Li1, Xikun Huang1, Jiaqi Liu1, Shuxian Gao2, Qilin Yu1, Xiayan Qin1, Yucheng Zhang2, Mingchen Chen1,†

1Changping Laboratory, Beijing, China

2Huawei Technologies Co\., Ltd\.

∗Equal contribution

†Corresponding author

Y\.L\. and Z\.S\. contributed equally to this work\. M\.C\. designed research; Y\.L\., Z\.S\., and X\.H\. performed research and analyzed data; Z\.L\. and S\.G\. performed code engineering; J\.L\. performed computational cyclic\-peptide analysis; Q\.Y\., X\.Q\., and Y\.Z\. participated in discussions; and Y\.L\. wrote the paper\.

## 6Data Availability

## References

- \[1\]A\. M\. Watkins and P\. S\. Arora\.Structure\-based inhibition of protein–protein interactions\.European Journal of Medicinal Chemistry, 94:480–488, 2015\.
- \[2\]H\. Lu, Q\. Zhou, J\. He, Z\. Jiang, C\. Peng, R\. Tong, and J\. Shi\.Recent advances in the development of protein–protein interactions modulators: Mechanisms and clinical trials\.Sig Transduct Target Ther, 5\(1\):213, 2020\.
- \[3\]H\. Khakzad, I\. Igashov, A\. Schneuing, C\. Goverde, M\. Bronstein, and B\. Correia\.A new age in protein design empowered by deep learning\.Cell Systems, 14\(11\):925–939, 2023\.
- \[4\]J\. Jumper, R\. Evans, A\. Pritzel, T\. Green, M\. Figurnov, O\. Ronneberger, K\. Tunyasuvunakool, R\. Bates, A\. Žídek, A\. Potapenko, A\. Bridgland, C\. Meyer, S\. A\. A\. Kohl, A\. J\. Ballard, A\. Cowie, B\. Romera\-Paredes, S\. Nikolov, R\. Jain, J\. Adler, T\. Back, S\. Petersen, D\. Reiman, E\. Clancy, M\. Zielinski, M\. Steinegger, M\. Pacholska, T\. Berghammer, S\. Bodenstein, D\. Silver, O\. Vinyals, A\. W\. Senior, K\. Kavukcuoglu, P\. Kohli, and D\. Hassabis\.Highly accurate protein structure prediction with AlphaFold\.Nature, 596\(7873\):583–589, 2021\.
- \[5\]J\. Abramson, J\. Adler, J\. Dunger, R\. Evans, T\. Green, A\. Pritzel, O\. Ronneberger, L\. Willmore, A\. J\. Ballard, J\. Bambrick, S\. W\. Bodenstein, D\. A\. Evans, C\.\-C\. Hung, M\. O’Neill, D\. Reiman, K\. Tunyasuvunakool, Z\. Wu, A\. Žemgulytė, E\. Arvaniti, C\. Beattie, O\. Bertolli, A\. Bridgland, A\. Cherepanov, M\. Congreve, A\. I\. Cowen\-Rivers, A\. Cowie, M\. Figurnov, F\. B\. Fuchs, H\. Gladman, R\. Jain, Y\. A\. Khan, C\. M\. R\. Low, K\. Perlin, A\. Potapenko, P\. Savy, S\. Singh, A\. Stecula, A\. Thillaisundaram, C\. Tong, S\. Yakneen, E\. D\. Zhong, M\. Zielinski, A\. Žídek, V\. Bapst, P\. Kohli, M\. Jaderberg, D\. Hassabis, and J\. M\. Jumper\.Accurate structure prediction of biomolecular interactions with AlphaFold 3\.Nature, 630\(8016\):493–500, 2024\.
- \[6\]S\. Passaro, G\. Corso, J\. Wohlwend, M\. Reveiz, S\. Thaler, V\. R\. Somnath, N\. Getz, T\. Portnoi, J\. Roy, H\. Stark, D\. Kwabi\-Addo, D\. Beaini, T\. Jaakkola, and R\. Barzilay\.Boltz\-2: Towards Accurate and Efficient Binding Affinity Prediction\.bioRxiv, 2025\.
- \[7\]ByteDance AML AI4Science Team, X\. Chen, Y\. Zhang, C\. Lu, W\. Ma, J\. Guan, C\. Gong, J\. Yang, H\. Zhang, K\. Zhang, S\. Wu, K\. Zhou, Y\. Yang, Z\. Liu, L\. Wang, B\. Shi, S\. Shi, and W\. Xiao\.Protenix \- Advancing Structure Prediction Through a Comprehensive AlphaFold3 Reproduction, 2025\.
- \[8\]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, B\. I\. M\. Wicky, N\. Hanikel, S\. J\. Pellock, A\. Courbet, W\. Sheffler, J\. Wang, P\. Venkatesh, I\. Sappington, S\. V\. Torres, A\. Lauko, V\. De Bortoli, E\. Mathieu, S\. Ovchinnikov, R\. Barzilay, T\. S\. Jaakkola, F\. DiMaio, M\. Baek, and D\. Baker\.De novo design of protein structure and function with RFdiffusion\.Nature, 620\(7976\):1089–1100, 2023\.
- \[9\]W\. Ahern, J\. Yim, D\. Tischer, S\. Salike, S\. M\. Woodbury, D\. Kim, I\. Kalvet, Y\. Kipnis, B\. Coventry, H\. R\. Altae\-Tran, M\. S\. Bauer, R\. Barzilay, T\. S\. Jaakkola, R\. Krishna, and D\. Baker\.Atom\-level enzyme active site scaffolding using RFdiffusion2\.Nat Methods, 23\(1\):96–105, 2026\.
- \[10\]J\. Butcher, R\. Krishna, R\. Mitra, R\. I\. Brent, Y\. Li, N\. Corley, P\. T\. Kim, J\. Funk, S\. Mathis, S\. Salike, A\. Muraishi, H\. Eisenach, E\. Sehgal, B\. Coventry, O\. Zhang, B\. Qiang, K\. Didi, F\. DiMaio, and D\. Baker\.De novo Design of All\-atom Biomolecular Interactions with RFdiffusion3\.
- \[11\]J\. Dauparas, I\. Anishchenko, N\. Bennett, H\. Bai, R\. J\. Ragotte, L\. F\. Milles, B\. I\. M\. Wicky, A\. Courbet, R\. J\. De Haas, N\. Bethel, P\. J\. Y\. Leung, T\. F\. Huddy, S\. Pellock, D\. Tischer, F\. Chan, B\. Koepnick, H\. Nguyen, A\. Kang, B\. Sankaran, A\. K\. Bera, N\. P\. King, and D\. Baker\.Robust deep learning–based protein sequence design using ProteinMPNN\.Science, 378\(6615\):49–56, 2022\.
- \[12\]J\. Dauparas, G\. R\. Lee, R\. Pecoraro, L\. An, I\. Anishchenko, C\. Glasscock, and D\. Baker\.Atomic context\-conditioned protein sequence design using LigandMPNN\.Nat Methods, 22\(4\):717–723, 2025\.
- \[13\]H\. Stark, F\. Faltings, M\. Choi, Y\. Xie, E\. Hur, T\. O’Donnell, A\. Bushuiev, T\. Uçar, S\. Passaro, W\. Mao, M\. Reveiz, R\. Bushuiev, T\. Pluskal, J\. Sivic, K\. Kreis, A\. Vahdat, S\. Ray, J\. T\. Goldstein, A\. Savinov, J\. A\. Hambalek, A\. Gupta, D\. A\. Taquiri\-Diaz, Y\. Zhang, A\. K\. Hatstat, A\. Arada, N\. H\. Kim, E\. Tackie\-Yarboi, D\. Boselli, L\. Schnaider, C\. C\. Liu, G\.\-W\. Li, D\. Hnisz, D\. M\. Sabatini, W\. F\. DeGrado, J\. Wohlwend, G\. Corso, R\. Barzilay, and T\. Jaakkola\.Toward Universal Binder Design\.
- \[14\]I\. Anishchenko, S\. J\. Pellock, T\. M\. Chidyausiku, T\. A\. Ramelot, S\. Ovchinnikov, J\. Hao, K\. Bafna, C\. Norn, A\. Kang, A\. K\. Bera, F\. DiMaio, L\. Carter, C\. M\. Chow, G\. T\. Montelione, and D\. Baker\.De novo protein design by deep network hallucination\.Nature, 600\(7889\):547–552, 2021\.
- \[15\]C\. A\. Goverde, B\. Wolf, H\. Khakzad, S\. Rosset, and B\. E\. Correia\.De novo protein design by inversion of theAlphaFoldstructure prediction network\.Protein Science, 32\(6\):e4653, 2023\.
- \[16\]M\. Pacesa, L\. Nickel, C\. Schellhaas, J\. Schmidt, E\. Pyatova, L\. Kissling, P\. Barendse, J\. Choudhury, S\. Kapoor, A\. Alcaraz\-Serna, Y\. Cho, K\. H\. Ghamary, L\. Vinué, B\. J\. Yachnin, A\. M\. Wollacott, S\. Buckley, A\. H\. Westphal, S\. Lindhoud, S\. Georgeon, C\. A\. Goverde, G\. N\. Hatzopoulos, P\. Gönczy, Y\. D\. Muller, G\. Schwank, D\. C\. Swarts, A\. J\. Vecchio, B\. L\. Schneider, S\. Ovchinnikov, and B\. E\. Correia\.One\-shot design of functional protein binders with BindCraft\.Nature, 646\(8084\):483–492, 2025\.
- \[17\]Y\. Cho, M\. Pacesa, Z\. Zhang, B\. E\. Correia, and S\. Ovchinnikov\.Boltzdesign1: Inverting All\-Atom Structure Prediction Model for Generalized Biomolecular Binder Design\.bioRxiv, 2025\.
- \[18\]L\. S\. Mille\-Fragoso, J\. N\. Wang, C\. L\. Driscoll, H\. Dai, T\. Widatalla, X\. Zhang, B\. L\. Hie, and X\. J\. Gao\.Efficient generation of epitope\-targeted de novo antibodies with Germinal\.
- \[19\]Y\. Cho, G\. Rangel, G\. Bhardwaj, and S\. Ovchinnikov\.Protein Hunter: Exploiting structure hallucination within diffusion for protein design\.
- \[20\]M\. Fang, C\. Wang, J\. Shi, F\. Lian, Q\. Jin, Z\. Wang, Z\. Cui, Y\. Wang, Y\. Ke, Q\. Han, and L\. Cao\.HalluDesign: Protein Optimization and de Novo Design via Iterative Structure Hallucination and Sequence Design\.
- \[21\]Y\. Liu, D\. Wang, Z\. Li, S\. Gao, H\. Wang, Z\. Shen, Z\. Ma, Y\. Zhang, and M\. Chen\.TorchFold: A PyTorch and NPU\-compatible reimplementation of AlphaFold3, 2026\.
- \[22\]R\. W\. Shuai, J\. A\. Ruffolo, and J\. J\. Gray\.IgLM: Infilling language modeling for antibody sequence design\.Cell Systems, 14\(11\):979–989\.e4, 2023\.
- \[23\]G\. L\. Gordon, J\. Gervasio, C\. Souders, and C\. M\. Deane\.The Therapeutic Nanobody Profiler: Characterising and predicting nanobody developability to improve therapeutic design\.
- \[24\]D\. Prihoda, J\. Maamary, A\. Waight, V\. Juan, L\. Fayadat\-Dilman, D\. Svozil, and D\. A\. Bitton\.BioPhi: A platform for antibody design, humanization, and humanness evaluation based on natural antibody repertoires and deep learning\.mAbs, 14\(1\):2020203, 2022\.
- \[25\]N\. R\. Bennett, J\. L\. Watson, R\. J\. Ragotte, A\. J\. Borst, D\. L\. See, C\. Weidle, R\. Biswas, Y\. Yu, E\. L\. Shrock, R\. Ault, P\. J\. Y\. Leung, B\. Huang, I\. Goreshnik, J\. Tam, K\. D\. Carr, B\. Singer, C\. Criswell, B\. I\. M\. Wicky, D\. Vafeados, M\. G\. Sanchez, H\. M\. Kim, S\. Vázquez Torres, S\. Chan, S\. M\. Sun, T\. Spear, Y\. Sun, K\. O’Reilly, J\. M\. Maris, N\. G\. Sgourakis, R\. A\. Melnyk, C\. C\. Liu, and D\. Baker\.Atomically accurate de novo design of antibodies with RFdiffusion, 2024\.
- \[26\]K\. Didi, D\. Reidenbach, M\. Penner, S\. Ravichandran, M\. Nichols, E\. Swanson, A\. Reis, M\. Prescott, Y\. Qian, D\. Qian, J\. Yang, W\. Li, L\. Li, D\. Shonai, S\. Gay, B\. B\. Mallik, H\. Yeung, L\. Chen, M\. A\. Juantay, H\. Klein, A\. U\. Macintyre, D\. Granata, Z\. Cao, G\. Zhou, T\. Geffner, X\. Chen, Z\. Zhang, T\. Zhang, K\. Gion, M\. M\. Bronstein, K\. Deibler, S\. Soderling, A\. Khmelinskaia, F\. Hollfelder, C\. Dallago, E\. Kucukbenli, A\. Vahdat, P\. Ogden, and K\. Kreis\.Latent Generative Search unlocks de novo Design of Untapped Biomolecular Interactions at Scale\.
- \[27\]R\. Krishna, J\. Wang, W\. Ahern, P\. Sturmfels, P\. Venkatesh, I\. Kalvet, G\. R\. Lee, F\. S\. Morey\-Burrows, I\. Anishchenko, I\. R\. Humphreys, R\. McHugh, D\. Vafeados, X\. Li, G\. A\. Sutherland, A\. Hitchcock, C\. N\. Hunter, A\. Kang, E\. Brackenbrough, A\. K\. Bera, M\. Baek, F\. DiMaio, and D\. Baker\.Generalized biomolecular modeling and design with RoseTTAFold All\-Atom\.Science, 384\(6693\):eadl2528, 2024\.
- \[28\]O\. Trott and A\. J\. Olson\.AutoDock Vina: Improving the speed and accuracy of docking with a new scoring function, efficient optimization, and multithreading\.J Comput Chem, 31\(2\):455–461, 2010\.
- \[29\]J\. Eberhardt, D\. Santos\-Martins, A\. F\. Tillack, and S\. Forli\.AutoDock Vina 1\.2\.0: New Docking Methods, Expanded Force Field, and Python Bindings\.J\. Chem\. Inf\. Model\., 61\(8\):3891–3898, 2021\.

## Appendix

Contents

Appendix A Methods\.[A](https://arxiv.org/html/2609.19770#A1)

A\.1 TorchCraft design protocol\.[A\.1](https://arxiv.org/html/2609.19770#A1.SS1)

A\.1\.1 General optimization framework\.[A\.1\.1](https://arxiv.org/html/2609.19770#A1.SS1.SSS1)

A\.1\.2 Four\-stage optimization\.[A\.1\.2](https://arxiv.org/html/2609.19770#A1.SS1.SSS2)

A\.1\.3 Target\-specific stage configurations\.[A\.1\.3](https://arxiv.org/html/2609.19770#A1.SS1.SSS3)

A\.1\.4 Design losses\.[A\.1\.4](https://arxiv.org/html/2609.19770#A1.SS1.SSS4)

A\.2 Experimental\-candidate design protocol\.[A\.2](https://arxiv.org/html/2609.19770#A1.SS2)

A\.2\.1 Design task specification\.[A\.2\.1](https://arxiv.org/html/2609.19770#A1.SS2.SSS1)

A\.2\.2 Design experiments\.[A\.2\.2](https://arxiv.org/html/2609.19770#A1.SS2.SSS2)

A\.2\.2\.1 Minibinder candidate generation and selection\.[A\.2\.2\.1](https://arxiv.org/html/2609.19770#A1.SS2.SSS2.P1)

A\.2\.2\.2 VHH candidate generation and selection\.[A\.2\.2\.2](https://arxiv.org/html/2609.19770#A1.SS2.SSS2.P2)

A\.2\.3 Structural novelty and diversity analyses\.[A\.2\.3](https://arxiv.org/html/2609.19770#A1.SS2.SSS3)

A\.3 Implementation optimizations\.[A\.3](https://arxiv.org/html/2609.19770#A1.SS3)

A\.3\.1 Multithreaded parallel conformer generation\.[A\.3\.1](https://arxiv.org/html/2609.19770#A1.SS3.SSS1)

A\.3\.2 Gradient rematerialization\.[A\.3\.2](https://arxiv.org/html/2609.19770#A1.SS3.SSS2)

A\.3\.3 Caching mechanism\.[A\.3\.3](https://arxiv.org/html/2609.19770#A1.SS3.SSS3)

A\.3\.4 NPU Fusion Attention\.[A\.3\.4](https://arxiv.org/html/2609.19770#A1.SS3.SSS4)

A\.3\.5 Other optimizations\.[A\.3\.5](https://arxiv.org/html/2609.19770#A1.SS3.SSS5)

A\.4 Benchmark settings\.[A\.4](https://arxiv.org/html/2609.19770#A1.SS4)

A\.4\.1 Target information\.[A\.4\.1](https://arxiv.org/html/2609.19770#A1.SS4.SSS1)

A\.4\.2 TorchScore\.[A\.4\.2](https://arxiv.org/html/2609.19770#A1.SS4.SSS2)

A\.4\.3 Method setup\.[A\.4\.3](https://arxiv.org/html/2609.19770#A1.SS4.SSS3)

A\.5 Experimental validation methods\.[A\.5](https://arxiv.org/html/2609.19770#A1.SS5)

A\.5\.1 Binder experimental methods\.[A\.5\.1](https://arxiv.org/html/2609.19770#A1.SS5.SSS1)

A\.5\.1\.1 Gene synthesis and subcloning\.[A\.5\.1\.1](https://arxiv.org/html/2609.19770#A1.SS5.SSS1.P1)

A\.5\.1\.2 Cell\-free protein expression\.[A\.5\.1\.2](https://arxiv.org/html/2609.19770#A1.SS5.SSS1.P2)

A\.5\.1\.3 Cell\-free protein purification and analysis\.[A\.5\.1\.3](https://arxiv.org/html/2609.19770#A1.SS5.SSS1.P3)

A\.5\.1\.4 Target protein preparation\.[A\.5\.1\.4](https://arxiv.org/html/2609.19770#A1.SS5.SSS1.P4)

A\.5\.1\.5 Binding characterization of binders\.[A\.5\.1\.5](https://arxiv.org/html/2609.19770#A1.SS5.SSS1.P5)

A\.5\.2 VHH experimental methods\.[A\.5\.2](https://arxiv.org/html/2609.19770#A1.SS5.SSS2)

A\.5\.2\.1 Framework selection\.[A\.5\.2\.1](https://arxiv.org/html/2609.19770#A1.SS5.SSS2.P1)

A\.5\.2\.2 Gene synthesis and subcloning\.[A\.5\.2\.2](https://arxiv.org/html/2609.19770#A1.SS5.SSS2.P2)

A\.5\.2\.3 VHH expression in CHO cells\.[A\.5\.2\.3](https://arxiv.org/html/2609.19770#A1.SS5.SSS2.P3)

A\.5\.2\.4 Protein purification and analysis\.[A\.5\.2\.4](https://arxiv.org/html/2609.19770#A1.SS5.SSS2.P4)

A\.5\.2\.5 Target protein preparation\.[A\.5\.2\.5](https://arxiv.org/html/2609.19770#A1.SS5.SSS2.P5)

A\.5\.2\.6 Binding characterization of VHHs\.[A\.5\.2\.6](https://arxiv.org/html/2609.19770#A1.SS5.SSS2.P6)

Appendix B Supplementary Tables\.[B](https://arxiv.org/html/2609.19770#A2)

Appendix C Supplementary Figures\.[C](https://arxiv.org/html/2609.19770#A3)

## Appendix AMethods

### A\.1TorchCraft design protocol

#### A\.1\.1General optimization framework

TorchCraft design trajectories are configured from a target molecular context, an editable binder sequence, and optional restraints\. Target structures are supplied as templates, with crops and hotspot definitions recorded for each task\. Editable positions may span the complete binder or selected residues within a fixed sequence framework\. Task configurations also specify excluded residue types, secondary\-structure objectives, and sequence priors\. This setup allows the same optimization engine to be used across minibinders, VHHs, cyclic peptides, and ligand\-binding proteins while changing the editable positions, loss terms, molecular constraints, and optimization schedules\.

The editable sequence is parameterized by a logit matrix𝐋\\mathbf\{L\}with one row per editable position and one column per standard amino acid\. At each step, the stage\-specific sequence representation is passed through a frozen TorchFold predictor, and the weighted design objective is differentiated with respect to𝐋\\mathbf\{L\}\. Only the editable sequence variables are updated\. Active objectives and their weights are specified separately for each task in Supplementary Table[S1](https://arxiv.org/html/2609.19770#A2.T1)\. All designs reported in this study used pretrained AF3 weights\. The final sequence is obtained by discrete decoding, followed by optional sequence redesign only in the explicitly designated benchmark settings\.

#### A\.1\.2Four\-stage optimization

TorchCraft uses a configurable sequence\-optimization schedule adapted from prior predictor\-inversion methods\.\[[17](https://arxiv.org/html/2609.19770#bib.bib17),[16](https://arxiv.org/html/2609.19770#bib.bib16)\]The schedule can include a soft warm\-up, a logits\-to\-probabilities transition, temperature annealing, and straight\-through discrete optimization\. Task\-specific subsets of these stages are used, as listed in Supplementary Table[S1](https://arxiv.org/html/2609.19770#A2.T1)\. The sequence to be optimized is parameterized as a trainable logit matrix𝐋\\mathbf\{L\}, which is then converted into the model input sequence representation𝐗\\mathbf\{X\}according to the optimization stage\. Given𝐗\\mathbf\{X\}, the frozen predictor produces the structural state𝒮^\\hat\{\\mathcal\{S\}\}, and gradients of the design objectiveℒ⁡\(𝒮^,𝐗\)\\mathcal\{L\}\(\\hat\{\\mathcal\{S\}\},\\mathbf\{X\}\)are backpropagated to update the sequence logits\. Algorithm[1](https://arxiv.org/html/2609.19770#algorithm1)summarizes the conversion from sequence logits to predictor inputs and the resulting gradient update\.

Soft warm\-up \(Stage 0\)\.During the optional soft warm\-up, sequence logits are converted to probabilities to provide normalized inputs before subsequent optimization:

𝐗=Softmax⁡\(𝐋\)\.\\mathbf\{X\}=\\mathrm\{Softmax\}\(\\mathbf\{L\}\)\.The target context and active losses during warm\-up are task\-dependent, as specified in Appendix[A\.1\.3](https://arxiv.org/html/2609.19770#A1.SS1.SSS3)\.

Logits\-to\-soft transition \(Stage 1\)\.A linearly scheduled mixing coefficientaais introduced to interpolate between the raw logit representation and the softmax\-normalized probabilistic representation:

𝐗=\(1−a\)​𝐋\+a​Softmax​\(𝐋\),\\mathbf\{X\}=\(1\-a\)\\mathbf\{L\}\+a\\,\\mathrm\{Softmax\}\(\\mathbf\{L\}\),whereaais gradually increased over the course of this stage\. This transitions the input from the raw logit representation toward a normalized sequence representation\.

Temperature annealing \(Stage 2\)\.A temperature parameterτ\\tauis used to control the sharpness of the softmax distribution:

𝐗=Softmax⁡\(𝐋/τ\)\.\\mathbf\{X\}=\\mathrm\{Softmax\}\(\\mathbf\{L\}/\\tau\)\.Given an initial temperatureτ0\\tau\_\{0\},τ\\tauis annealed according to

τ=max⁡\(τmin,τ0⋅\(τminτ0\)t/T\)\.\\tau=\\max\\left\(\\tau\_\{\\min\},\\;\\tau\_\{0\}\\cdot\\left\(\\frac\{\\tau\_\{\\min\}\}\{\\tau\_\{0\}\}\\right\)^\{t/T\}\\right\)\.As the temperature decreases, the sequence distribution sharpens from a smooth probability distribution toward a near one\-hot representation\. Herettis the step within the annealing stage andTTis the number of steps in that stage\. The temperature decreases fromτ0\\tau\_\{0\}toτmin\\tau\_\{\\min\}, sharpening each position’s amino\-acid distribution\.

Straight\-through hard optimization \(Stage 3\)\.The sequence representation is explicitly converted into a one\-hot form\. Gradients are still propagated through the underlying softmax probabilities\. Low\-temperature softmax probabilities are computed as

𝐏=Softmax⁡\(𝐋/τmin\),\\mathbf\{P\}=\\mathrm\{Softmax\}\(\\mathbf\{L\}/\\tau\_\{\\min\}\),and the amino acid with the highest probability is selected to form the hard one\-hot representation𝐇=OneHot⁡\(arg⁡max⁡𝐏\)\\mathbf\{H\}=\\mathrm\{OneHot\}\(\\arg\\max\\mathbf\{P\}\)\. The final sequence representation used as model input is defined as

𝐗=\(𝐇−𝐏\)stopgrad\+𝐏\.\\mathbf\{X\}=\(\\mathbf\{H\}\-\\mathbf\{P\}\)\_\{\\mathrm\{stopgrad\}\}\+\\mathbf\{P\}\.The forward pass uses the one\-hot sequence𝐇\\mathbf\{H\}, while the backward pass uses the derivative of𝐏\\mathbf\{P\}with respect to the logits\. This straight\-through estimator permits additional sequence updates under a discrete forward representation\.

Final decoding\.After the final stage, each editable position is assigned its highest\-logit amino acid\. Optional sequence\-redesign outputs are retained as a separate method setting\.

Algorithm 1Four\-Stage OptimizationInput:Initial sequence logits

𝐋\\mathbf\{L\}, frozen predictor

fθf\_\{\\theta\}
Design objective

ℒ\\mathcal\{L\}, Stages

\{s0,s1,s2,s3\}\\\{s\_\{0\},s\_\{1\},s\_\{2\},s\_\{3\}\\\}
Output:Optimized discrete sequence

S⋆S^\{\\star\}
1for*optimization​step​t\\mathrm\{optimization\\ step\\ \}t*do

//Stage 0: soft warm\-up

2if*t∈s0t\\in s\_\{0\}*then

3

𝐗←Softmax⁡\(𝐋\)\\mathbf\{X\}\\leftarrow\\mathrm\{Softmax\}\(\\mathbf\{L\}\)
//Stage 1: logits\-to\-soft transition

4else if*t∈s1t\\in s\_\{1\}*then

5

a←LinearSchedule⁡\(t\)a\\leftarrow\\mathrm\{LinearSchedule\}\(t\)
6

𝐏←Softmax⁡\(𝐋\)\\mathbf\{P\}\\leftarrow\\mathrm\{Softmax\}\(\\mathbf\{L\}\)
7

𝐗←\(1−a\)​𝐋\+a​𝐏\\mathbf\{X\}\\leftarrow\(1\-a\)\\mathbf\{L\}\+a\\mathbf\{P\}
//Stage 2: temperature annealing

8else if*t∈s2t\\in s\_\{2\}*then

9

τ←AnnealTemperature⁡\(t\)\\tau\\leftarrow\\mathrm\{AnnealTemperature\}\(t\)
10

𝐗←Softmax⁡\(𝐋/τ\)\\mathbf\{X\}\\leftarrow\\mathrm\{Softmax\}\(\\mathbf\{L\}/\\tau\)
//Stage 3: straight\-through hard optimization

11else if*t∈s3t\\in s\_\{3\}*then

12

𝐏←Softmax⁡\(𝐋/τmin\)\\mathbf\{P\}\\leftarrow\\mathrm\{Softmax\}\(\\mathbf\{L\}/\\tau\_\{\\min\}\)
13

𝐇←OneHot⁡\(arg⁡max⁡𝐏\)\\mathbf\{H\}\\leftarrow\\mathrm\{OneHot\}\(\\arg\\max\\mathbf\{P\}\)
14

𝐗←\(𝐇−𝐏\)stopgrad\+𝐏\\mathbf\{X\}\\leftarrow\(\\mathbf\{H\}\-\\mathbf\{P\}\)\_\{\\mathrm\{stopgrad\}\}\+\\mathbf\{P\}
15

𝒮^←fθ​\(𝐗\)\\hat\{\\mathcal\{S\}\}\\leftarrow f\_\{\\theta\}\(\\mathbf\{X\}\)
16

𝐋←UpdateLogits⁡\(𝐋,∇𝐋ℒ​\(𝒮^,𝐗\)\)\\mathbf\{L\}\\leftarrow\\mathrm\{UpdateLogits\}\(\\mathbf\{L\},\\nabla\_\{\\mathbf\{L\}\}\\mathcal\{L\}\(\\hat\{\\mathcal\{S\}\},\\mathbf\{X\}\)\)
17

S⋆←arg⁡max⁡Softmax⁡\(𝐋\)S^\{\\star\}\\leftarrow\\arg\\max\\mathrm\{Softmax\}\(\\mathbf\{L\}\)
18return*S⋆S^\{\\star\}*

#### A\.1\.3Target\-specific stage configurations

Minibinder and VHH runs used temperature annealing followed by straight\-through optimization\. Cyclic\-peptide runs used all four stages\. Stage lengths and learning rates are listed in Supplementary Table[S1](https://arxiv.org/html/2609.19770#A2.T1)\.

Small\-molecule design used an initial ligand\-free warm\-up followed by gradual introduction of the interface objective\. After this warm\-up, the ligand was added and the complex was jointly optimized\. We write the time\-dependent objective as

ℒ⁡\(t\)=ℒscaffold\+winterface​\(t\)⋅ℒinterface,\\mathcal\{L\}\(t\)=\\mathcal\{L\}\_\{\\mathrm\{scaffold\}\}\+w\_\{\\mathrm\{interface\}\}\(t\)\\cdot\\mathcal\{L\}\_\{\\mathrm\{interface\}\},wherewinterface​\(t\)w\_\{\\mathrm\{interface\}\}\(t\)increases from zero to its final value during the specified transition stage and remains fixed thereafter\. The molecular inputs, active losses, and stage lengths are reported in Supplementary Table[S1](https://arxiv.org/html/2609.19770#A2.T1)\.

#### A\.1\.4Design losses

Confidence losses\.Loss terms based on the following confidence scores are constructed:

pLDDT loss\.pLDDT \(predicted Local Distance Difference Test\) measures local structural confidence\. This loss increases predicted local confidence of binder residues or atoms\.

pTM loss\.pTM \(predicted TM\-score\) measures predicted global confidence\. This loss increases predicted global confidence for the selected structure\.

ipTM loss\.ipTM \(interface predicted TM\-score\) evaluates predicted confidence in the relative placement of different subunits\. This loss increases predicted interface confidence between chains or molecular components\.

PDE loss\.PDE \(predicted Distance Error\) penalizes higher predicted distance error between residue or atom pairs\.

PAE loss\.PAE \(predicted Aligned Error\) reflects uncertainty in the relative spatial placement of residue or token pairs\. This loss penalizes higher predicted alignment error\.

iPAE loss\.iPAE \(interface predicted Aligned Error\) focuses on predicted alignment error across chains or molecular components at the complex interface\.

Contact loss\.We impose soft contact constraints using the predicted distogram rather than the final inter\-residue distances in the predicted structure\. For each residue pair\(i,j\)\(i,j\), the distogram logits are used to estimate a probability distribution over distance bins\. Given a distance threshold, all bins below the threshold are treated as contact bins, and the contact loss is computed from the corresponding probabilities\.

In the optional binary formulation, the loss mainly penalizes insufficient total probability mass within the contact region\. Otherwise, the probability distribution is renormalized over the contact bins, and the corresponding cross\-entropy term is computed\. For each anchor residue, only a subset of partner residues with the lowest losses is retained\. The best\-performing fraction of anchor residues is then selected and averaged\. This aggregation rewards a selected subset of high\-probability contacts\.

Intra\-chain binder contact loss\.The intra\-chain binder contact loss encourages the designed binder to form a sufficient number of internal residue–residue contacts\. This biases the binder toward a more compact fold\.

Inter\-chain target–binder contact loss\.The inter\-chain target–binder contact loss encourages the designed binder to form a sufficient number of cross\-chain contacts with the target\. This strengthens interface formation between the two chains\. If hotspot residues are provided, the loss prioritizes contacts between the binder and the specified target sites\. If the designable positions on the binder side are further restricted, interface contacts are mainly encouraged between those designable binder residues and the target or hotspot region\.

α\\alpha\-Helix loss\.Inspired by BoltzDesign,\[[17](https://arxiv.org/html/2609.19770#bib.bib17)\]anα\\alpha\-Helix loss is introduced to explicitly encourage, or suppress when assigned a negative weight, the formation ofα\\alpha\-helical conformations\. It uses contact probabilities derived from the predicted distance distribution as a differentiable signal, and rewards residue pairsiiandi\+3i\+3within6​Å6\\penalty\\ \\text\{\\AA\}, as residues separated by three positions along the sequence are typically in close spatial proximity inα\\alpha\-helices\. Formally, theα\\alpha\-Helix loss is equivalent to minimizing the binary contact negative log\-likelihood over selected\(i,i\+3\)\(i,i\+3\)pairs:

ℒα=−1\|H\|∑\(i,j\)∈Hlog\(pi​jα\+ϵ\),\\mathcal\{L\}\_\{\\alpha\}=\-\\frac\{1\}\{\|H\|\}\\sum\_\{\(i,j\)\\in H\}\\log\(p^\{\\alpha\}\_\{ij\}\+\\epsilon\),where the candidate helical contact set is defined within the binder chain as

H=\{\(i,j\)∣\|i−j\|=3\}\.H=\\\{\(i,j\)\\mid\|i\-j\|=3\\\}\.Given the predicted pairwise distance distributionPi​j​\(d\)P\_\{ij\}\(d\), the confidence that a residue pair forms a local contact is defined as the probability mass below the distance threshold of6​Å6\\penalty\\ \\text\{\\AA\}:

pi​jα=∑d<6​ÅPi​j​\(d\)\.p^\{\\alpha\}\_\{ij\}=\\sum\_\{d<6\\penalty\\ \\text\{\\AA\}\}P\_\{ij\}\(d\)\.
β\\beta\-structure loss\.We introduced aβ\\beta\-structure loss to modulate theβ\\beta\-structure propensity of the binder, similar to Germinal\.\[[18](https://arxiv.org/html/2609.19770#bib.bib18)\]Together with theα\\alpha\-helix loss, this provides more flexible control over the secondary\-structure composition of designed samples\. Theβ\\beta\-structure loss consists of aβ\\beta\-strand term and aβ\\beta\-sheet term:

ℒβ=ℒβ​\-strand\+ℒβ​\-sheet\.\\mathcal\{L\}\_\{\\beta\}=\\mathcal\{L\}\_\{\\beta\\text\{\-strand\}\}\+\\mathcal\{L\}\_\{\\beta\\text\{\-sheet\}\}\.For localβ\\beta\-strand geometry, the probability of a residue\-pair distance falling within the interval\[9\.75,11\.5\)​Å\[9\.75,11\.5\)\\penalty\\ \\text\{\\AA\}is defined as

pi​jβ​\-strand=∑d∈\[9\.75,11\.5\)​ÅPi​j​\(d\)\.p^\{\\beta\\text\{\-strand\}\}\_\{ij\}=\\sum\_\{d\\in\[9\.75,11\.5\)\\penalty\\ \\text\{\\AA\}\}P\_\{ij\}\(d\)\.LetBBdenote the candidateβ\\beta\-design positions, define their neighboring position set as

N=\{i−1,i\+1∣i∈B\},N=\\\{i\-1,i\+1\\mid i\\in B\\\},and the localβ\\beta\-strand candidate pairs as

S=\{\(i,j\)∣i,j∈N,j=i\+3\}\.S=\\\{\(i,j\)\\mid i,j\\in N,\\;j=i\+3\\\}\.Among these candidates, we select the top\-KKpairs with the largest per\-pair losses, focusing optimization on the localβ\\beta\-strand constraints that are currently least satisfied, where

K=⌊\|B\|3⌋\.K=\\left\\lfloor\\frac\{\|B\|\}\{3\}\\right\\rfloor\.Theβ\\beta\-strand loss is then given by

ℒβ​\-strand=−1K∑\(i,j\)∈Stop​\-​Klog\(pi​jβ​\-strand\+ϵ\)\.\\mathcal\{L\}\_\{\\beta\\text\{\-strand\}\}=\-\\frac\{1\}\{K\}\\sum\_\{\(i,j\)\\in S\_\{\\mathrm\{top\}\\text\{\-\}K\}\}\\log\(p^\{\\beta\\text\{\-strand\}\}\_\{ij\}\+\\epsilon\)\.Forβ\\beta\-sheet formation, a shorter contact\-distance interval,\[4\.4,6\.0\)​Å\[4\.4,6\.0\)\\penalty\\ \\text\{\\AA\}, is used to characterize spatial contacts between twoβ\\beta\-strands:

pi​jβ​\-sheet=∑d∈\[4\.4,6\.0\)​ÅPi​j​\(d\)\.p^\{\\beta\\text\{\-sheet\}\}\_\{ij\}=\\sum\_\{d\\in\[4\.4,6\.0\)\\penalty\\ \\text\{\\AA\}\}P\_\{ij\}\(d\)\.Theβ\\beta\-sheet term enumerates a set of antiparallelβ\\beta\-sheet pairing patterns\. For each candidateβ\\beta\-regionRR, we construct multiple reverse\-diagonal pairing masks, each corresponding to a possible strand–strand pairing configuration\. We denote the resulting candidate pairing sets as

AR=\{A1,A2,⋯,Am\},A\_\{R\}=\\\{A\_\{1\},A\_\{2\},\\cdots,A\_\{m\}\\\},where eachAAis a set of residue pairs,A⊆\{\(i,j\)∣i,j∈binder\}A\\subseteq\\\{\(i,j\)\\mid i,j\\in\\text\{binder\}\\\}\. For a given candidate pairing patternAA, the averageβ\\beta\-sheet contact negative log\-likelihood is defined as

l\(A\)=−1\|A\|∑\(i,j\)∈Alog\(pi​jβ​\-sheet\+ϵ\)\.l\(A\)=\-\\frac\{1\}\{\|A\|\}\\sum\_\{\(i,j\)\\in A\}\\log\(p^\{\\beta\\text\{\-sheet\}\}\_\{ij\}\+\\epsilon\)\.For eachβ\\beta\-region, we take the maximum loss over all candidate pairing patterns:

lβ​\-sheet​\(R\)=maxA∈AR⁡l⁡\(A\)\.l\_\{\\beta\\text\{\-sheet\}\}\(R\)=\\max\_\{A\\in A\_\{R\}\}l\(A\)\.The overallβ\\beta\-sheet loss is therefore

ℒβ​\-sheet=∑RmaxA∈AR\[−1\|A\|∑\(i,j\)∈Alog\(pi​jβ​\-sheet\+ϵ\)\]\.\\mathcal\{L\}\_\{\\beta\\text\{\-sheet\}\}=\\sum\_\{R\}\\max\_\{A\\in A\_\{R\}\}\\left\[\-\\frac\{1\}\{\|A\|\}\\sum\_\{\(i,j\)\\in A\}\\log\(p^\{\\beta\\text\{\-sheet\}\}\_\{ij\}\+\\epsilon\)\\right\]\.Full details are provided in Algorithm[2](https://arxiv.org/html/2609.19770#algorithm2)\.

Algorithm 2Beta LossInput:Predicted distance distribution

Pi​j​\(d\)P\_\{ij\}\(d\); candidate

β\\betadesign positions

BB; candidate

β\\betaregions

ℛ\\mathcal\{R\}; numerical constant

ϵ\\epsilon
Output:

β\\betastructural loss

ℒβ\\mathcal\{L\}\_\{\\beta\}
//

β\\beta\-strand loss

1

ℒβ​\-strand←0\\mathcal\{L\}\_\{\\beta\\text\{\-strand\}\}\\leftarrow 0
2

N←\{i−1,i\+1∣i∈B\}N\\leftarrow\\\{i\-1,i\+1\\mid i\\in B\\\}
3

S←\{\(i,j\)∣i,j∈N,j=i\+3\}S\\leftarrow\\\{\(i,j\)\\mid i,j\\in N,\\;j=i\+3\\\}
4

K←⌊\|B\|/3⌋K\\leftarrow\\left\\lfloor\|B\|/3\\right\\rfloor
5for*\(i,j\)∈S\(i,j\)\\in S*do

6

pi​jβ​\-strand←∑d∈\[9\.75,11\.5\)​ÅPi​j​\(d\)p^\{\\beta\\text\{\-strand\}\}\_\{ij\}\\leftarrow\\sum\_\{d\\in\[9\.75,11\.5\)\\,\\text\{\\AA\}\}P\_\{ij\}\(d\)
7

ℓi​jβ​\-strand←−log⁡\(pi​jβ​\-strand\+ϵ\)\\ell^\{\\beta\\text\{\-strand\}\}\_\{ij\}\\leftarrow\-\\log\\left\(p^\{\\beta\\text\{\-strand\}\}\_\{ij\}\+\\epsilon\\right\)
8

Stop​\-​K←TopK⁡\(S,ℓi​jβ​\-strand,K\)S\_\{\\mathrm\{top\}\\text\{\-\}K\}\\leftarrow\\mathrm\{TopK\}\\left\(S,\\;\\ell^\{\\beta\\text\{\-strand\}\}\_\{ij\},\\;K\\right\)
9

ℒβ​\-strand←−1K∑\(i,j\)∈Stop​\-​Klog\(pi​jβ​\-strand\+ϵ\)\\mathcal\{L\}\_\{\\beta\\text\{\-strand\}\}\\leftarrow\-\\frac\{1\}\{K\}\\sum\_\{\(i,j\)\\in S\_\{\\mathrm\{top\}\\text\{\-\}K\}\}\\log\\left\(p^\{\\beta\\text\{\-strand\}\}\_\{ij\}\+\\epsilon\\right\)
//

β\\beta\-sheet loss

10

ℒβ​\-sheet←0\\mathcal\{L\}\_\{\\beta\\text\{\-sheet\}\}\\leftarrow 0
11for*R∈ℛR\\in\\mathcal\{R\}*do

12Construct antiparallel pairing masks

AR=\{A1,A2,⋯,Am\}A\_\{R\}=\\\{A\_\{1\},A\_\{2\},\\cdots,A\_\{m\}\\\}for

RR
13for*A∈ARA\\in A\_\{R\}*do

14for*\(i,j\)∈A\(i,j\)\\in A*do

15

pi​jβ​\-sheet←∑d∈\[4\.4,6\.0\)​ÅPi​j​\(d\)p^\{\\beta\\text\{\-sheet\}\}\_\{ij\}\\leftarrow\\sum\_\{d\\in\[4\.4,6\.0\)\\,\\text\{\\AA\}\}P\_\{ij\}\(d\)
16

l\(A\)←−1\|A\|∑\(i,j\)∈Alog\(pi​jβ​\-sheet\+ϵ\)l\(A\)\\leftarrow\-\\frac\{1\}\{\|A\|\}\\sum\_\{\(i,j\)\\in A\}\\log\\left\(p^\{\\beta\\text\{\-sheet\}\}\_\{ij\}\+\\epsilon\\right\)
17

lβ​\-sheet​\(R\)←maxA∈AR⁡l⁡\(A\)l\_\{\\beta\\text\{\-sheet\}\}\(R\)\\leftarrow\\max\_\{A\\in A\_\{R\}\}l\(A\)
18

ℒβ​\-sheet←ℒβ​\-sheet\+lβ​\-sheet​\(R\)\\mathcal\{L\}\_\{\\beta\\text\{\-sheet\}\}\\leftarrow\\mathcal\{L\}\_\{\\beta\\text\{\-sheet\}\}\+l\_\{\\beta\\text\{\-sheet\}\}\(R\)
19

ℒβ←ℒβ​\-strand\+ℒβ​\-sheet\\mathcal\{L\}\_\{\\beta\}\\leftarrow\\mathcal\{L\}\_\{\\beta\\text\{\-strand\}\}\+\\mathcal\{L\}\_\{\\beta\\text\{\-sheet\}\}
20return*ℒβ\\mathcal\{L\}\_\{\\beta\}*

Paratope loss\.Inspired by Germinal,\[[18](https://arxiv.org/html/2609.19770#bib.bib18)\]a distogram\-based paratope contact loss is introduced to restrict the designed binding interface to predefined CDR or paratope regions\. The goal is to strengthen predicted contacts between CDR residues and the target epitope or hotspot residues, while discouraging framework–target contacts\.

We compute three contact losses: the CDR–hotspot contact lossℒCDR​\-​Hotspot\\mathcal\{L\}\_\{\\mathrm\{CDR\}\\text\{\-\}\\mathrm\{Hotspot\}\}, the CDR–interface contact lossℒCDR​\-​Interface\\mathcal\{L\}\_\{\\mathrm\{CDR\}\\text\{\-\}\\mathrm\{Interface\}\}, and the framework–target contact lossℒframework\\mathcal\{L\}\_\{\\mathrm\{framework\}\}\. Since a smaller contact loss indicates stronger predicted contact, minimizingℒCDR​\-​Hotspot\\mathcal\{L\}\_\{\\mathrm\{CDR\}\\text\{\-\}\\mathrm\{Hotspot\}\}andℒCDR​\-​Interface\\mathcal\{L\}\_\{\\mathrm\{CDR\}\\text\{\-\}\\mathrm\{Interface\}\}jointly promotes interface formation through the CDR regions\. In contrast, contacts between the framework and the target should remain weak\. We therefore placeℒframework\\mathcal\{L\}\_\{\\mathrm\{framework\}\}in the denominator as a suppression term:

ℒparatope=ℒCDR​\-​Hotspot⋅ℒCDR​\-​InterfaceReLU⁡\(ℒframework−λ\)\+ϵ\.\\mathcal\{L\}\_\{\\mathrm\{paratope\}\}=\\frac\{\\mathcal\{L\}\_\{\\mathrm\{CDR\}\\text\{\-\}\\mathrm\{Hotspot\}\}\\cdot\\mathcal\{L\}\_\{\\mathrm\{CDR\}\\text\{\-\}\\mathrm\{Interface\}\}\}\{\\operatorname\{ReLU\}\\left\(\\mathcal\{L\}\_\{\\mathrm\{framework\}\}\-\\lambda\\right\)\+\\epsilon\}\.The denominator is lower\-bounded byϵ\\epsilonwhenℒframework−λ\\mathcal\{L\}\_\{\\mathrm\{framework\}\}\-\\lambdais negative or close to zero\.

Distogram\-based compactness loss\.To penalize overly extended conformations during sequence optimization, we constructed a differentiable radius\-of\-gyration \(ROG\) proxy using the predicted distogram probability distribution\. For a binder chain containingNNresidues, the squared radius of gyration of an equally weighted point cloud can be expressed as the average over all pairwise Euclidean distances:

Rg2=12​N2​∑i∑j∥𝐫i−𝐫j∥2,R\_\{g\}^\{2\}=\\frac\{1\}\{2N^\{2\}\}\\sum\_\{i\}\\sum\_\{j\}\\lVert\\mathbf\{r\}\_\{i\}\-\\mathbf\{r\}\_\{j\}\\rVert^\{2\},where𝐫i\\mathbf\{r\}\_\{i\}denotes the spatial position of residueii\. For each residue pair\(i,j\)\(i,j\), letbkb\_\{k\}denote thekk\-th distogram bin,ckc\_\{k\}its representative distance, taken as the bin center, andpi​j​\(bk\)p\_\{ij\}\(b\_\{k\}\)the corresponding predicted probability\. The expected squared distance for this residue pair is approximated as

𝔼⁡\[di​j2\]=∑kpi​j​\(bk\)​ck2\.\\mathbb\{E\}\[d\_\{ij\}^\{2\}\]=\\sum\_\{k\}p\_\{ij\}\(b\_\{k\}\)c\_\{k\}^\{2\}\.A distogram\-based approximation ofRg2R\_\{g\}^\{2\}is then obtained by averaging the expected squared distances over all residue pairs in the binder:

Rg2=12​N2​∑i∑j𝔼⁡\[di​j2\]\.R\_\{g\}^\{2\}=\\frac\{1\}\{2N^\{2\}\}\\sum\_\{i\}\\sum\_\{j\}\\mathbb\{E\}\[d\_\{ij\}^\{2\}\]\.We further define the radius of gyration as

Rg=Rg2\+ϵ\.R\_\{g\}=\\sqrt\{R\_\{g\}^\{2\}\+\\epsilon\}\.To impose a length\-dependent compactness upper bound, we define the target radius of gyration as

Rg,target=α​Nβ\+γ\.R\_\{g,\\mathrm\{target\}\}=\\alpha N^\{\\beta\}\+\\gamma\.The final ROG regularization term is defined as

ℒrog=ReLU⁡\(Rg−Rg,target\)\.\\mathcal\{L\}\_\{\\mathrm\{rog\}\}=\\operatorname\{ReLU\}\\left\(R\_\{g\}\-R\_\{g,\\mathrm\{target\}\}\\right\)\.
Isotropy loss\.A radius\-of\-gyration penalty controls overall size but does not uniquely specify shape\. Elongated rods, thin disks, and spherical conformations can exhibit similar values ofRgR\_\{g\}\. To bias the binder toward more similar extents along its principal axes, we additionally defined an isotropy objective from a distogram\-derived distance matrix\. From the distogram, we first compute the expected squared distance for each residue pair and assemble the intra\-binder squared distance matrix:

𝐃i​j\(2\)=𝔼⁡\[di​j2\]\.\\mathbf\{D\}^\{\(2\)\}\_\{ij\}=\\mathbb\{E\}\[d\_\{ij\}^\{2\}\]\.The matrix is then symmetrized as

𝐃\(2\)←12​\(𝐃\(2\)\+𝐃\(2\)​T\),\\mathbf\{D\}^\{\(2\)\}\\leftarrow\\frac\{1\}\{2\}\\left\(\\mathbf\{D\}^\{\(2\)\}\+\\mathbf\{D\}^\{\(2\)T\}\\right\),and its diagonal entries are set to zero:

Di​i\(2\)=0\.D^\{\(2\)\}\_\{ii\}=0\.We next recover a centered Gram matrix from the squared distance matrix using the standard double\-centering formula:

𝐆=−12​𝐉𝐃\(2\)​𝐉,\\mathbf\{G\}=\-\\frac\{1\}\{2\}\\mathbf\{J\}\\mathbf\{D\}^\{\(2\)\}\\mathbf\{J\},where

𝐉=𝐈−1N​𝟏𝟏T\.\\mathbf\{J\}=\\mathbf\{I\}\-\\frac\{1\}\{N\}\\mathbf\{1\}\\mathbf\{1\}^\{T\}\.When𝐃\(2\)\\mathbf\{D\}^\{\(2\)\}is derived from real three\-dimensional coordinates,𝐆\\mathbf\{G\}is equivalent to the inner\-product matrix of the centered coordinate matrix,𝐆=𝐗𝐗T\\mathbf\{G\}=\\mathbf\{X\}\\mathbf\{X\}^\{T\}\. The eigenvalues of𝐆\\mathbf\{G\}reflect the variance scale of the point cloud along its principal axes\. We take the three largest non\-negative eigenvalues,λ1≥λ2≥λ3\\lambda\_\{1\}\\geq\\lambda\_\{2\}\\geq\\lambda\_\{3\}, which correspond to the extent of the structure along the three principal axes, and penalize deviations among them:

ℒisotro=\(λ1−λ2\)2\+\(λ2−λ3\)2\+\(λ1−λ3\)2\(λ1\+λ2\+λ3\)2\+ϵ\.\\mathcal\{L\}\_\{\\mathrm\{isotro\}\}=\\frac\{\(\\lambda\_\{1\}\-\\lambda\_\{2\}\)^\{2\}\+\(\\lambda\_\{2\}\-\\lambda\_\{3\}\)^\{2\}\+\(\\lambda\_\{1\}\-\\lambda\_\{3\}\)^\{2\}\}\{\(\\lambda\_\{1\}\+\\lambda\_\{2\}\+\\lambda\_\{3\}\)^\{2\}\+\\epsilon\}\.For a near\-spherical conformation, the three principal extents should be comparable, such thatλ1≈λ2≈λ3\\lambda\_\{1\}\\approx\\lambda\_\{2\}\\approx\\lambda\_\{3\}\.

Amino\-acid composition loss\.An aa\-type loss regularizes the global residue distribution of the optimized chain\. A reference composition is estimated from ProteinMPNN\-redesigned samples, and the current sequence probabilities are averaged over editable positions and matched to this reference by cross\-entropy\. This term constrains global residue usage and is evaluated separately from position\-specific structural and language\-model objectives\. Letℰ\\mathcal\{E\}denote the editable residue positions, and let𝐏=Softmax⁡\(𝐋\)\\mathbf\{P\}=\\mathrm\{Softmax\}\(\\mathbf\{L\}\)be the amino\-acid probability matrix obtained from the current sequence logits\. The empirical amino\-acid composition of the optimized region is

p¯a=1\|ℰ\|​∑i∈ℰPi,a,a∈𝒜,\\bar\{p\}\_\{a\}=\\frac\{1\}\{\|\\mathcal\{E\}\|\}\\sum\_\{i\\in\\mathcal\{E\}\}P\_\{i,a\},\\qquad a\\in\\mathcal\{A\},where𝒜\\mathcal\{A\}is the 20\-amino\-acid alphabet\. Given a ProteinMPNN\-derived reference compositionqaq\_\{a\}, the amino\-acid composition loss is

ℒAA=−∑a∈𝒜qalog\(p¯a\+ϵ\)\.\\mathcal\{L\}\_\{\\mathrm\{AA\}\}=\-\\sum\_\{a\\in\\mathcal\{A\}\}q\_\{a\}\\log\\left\(\\bar\{p\}\_\{a\}\+\\epsilon\\right\)\.
CDR\-restricted IgLM loss\.In nanobody CDR design, the CDR sequences to be optimized are represented as a continuous logit matrix𝐋CDR\\mathbf\{L\}\_\{\\mathrm\{CDR\}\}\. Inspired by Germinal,\[[18](https://arxiv.org/html/2609.19770#bib.bib18)\]we adopt a decoupled dual\-path strategy to incorporate antibody language\-model priors while preserving differentiable sequence optimization\.\[[22](https://arxiv.org/html/2609.19770#bib.bib22)\]

The first path constructs the discrete context for IgLM\. A pseudo sequence is obtained by taking thearg⁡max\\arg\\maxof the current logits; equivalently, of a temperature\-scaled softmax of those logits\. For fixed logits, this discrete context does not depend on the softmax temperature\. For each CDR, we then construct an infilling input independently: the CDR region being evaluated is replaced with mask tokens, while the framework regions and the remaining CDRs are provided as context to the frozen IgLM\. Under this local context, IgLM predicts the conditional amino acid distribution at each masked position, yielding a context\-dependent target distribution𝐏^IgLM\\hat\{\\mathbf\{P\}\}\_\{\\mathrm\{IgLM\}\}\.

The second path is used for differentiable gradient propagation\. The original logits are directly passed through a softmax with temperature 1 to obtain the continuous predicted distribution𝐏pred\\mathbf\{P\}\_\{\\mathrm\{pred\}\}\. The local conditional distribution predicted by IgLM is then used as the teacher distribution, and a cross\-entropy loss is computed over the CDR region\. Because the loss is backpropagated only through the continuous𝐏pred\\mathbf\{P\}\_\{\\mathrm\{pred\}\}path, gradients can act stably on the original logits, while the discrete pseudo sequence is used solely to provide context for IgLM\. This avoids the gradient interruption introduced byarg⁡max\\arg\\maxdiscretization, while still using the antibody sequence prior learned by IgLM to guide CDR optimization\.

We evaluated the sequence\-prior objective separately over the three editable CDRs, allowing their contributions to be weighted independently\. This differs from a full\-sequence objective in both the positions scored and the conditioning context \(Algorithm[3](https://arxiv.org/html/2609.19770#algorithm3)\)\.

Algorithm 3CDR\-restricted IgLM LossInput:Sequence logits

𝐋CDR\\mathbf\{L\}\_\{\\mathrm\{CDR\}\}
Fixed framework sequence

SfwS\_\{\\mathrm\{fw\}\}
CDR regions

ℛ=\{R1,⋯,Rm\}\\mathcal\{R\}=\\\{R\_\{1\},\\cdots,R\_\{m\}\\\}
CDR weights

\{wi\}i=1m\\\{w\_\{i\}\\\}\_\{i=1\}^\{m\}
Output:IgLM infilling loss

ℒIgLM\\mathcal\{L\}\_\{\\mathrm\{IgLM\}\}
//Path 1: Discrete target for IgLM Context

1

τs​t​e​p←ExponentialDecay​\(τs​t​a​r​t,τm​i​n,step\)\\tau\_\{step\}\\leftarrow\\text\{ExponentialDecay\}\(\\tau\_\{start\},\\tau\_\{min\},\\text\{step\}\)
2

𝐏h​a​r​d←Softmax​\(𝐋CDR/τs​t​e​p\)\\mathbf\{P\}\_\{hard\}\\leftarrow\\text\{Softmax\}\(\\mathbf\{L\}\_\{\\mathrm\{CDR\}\}/\\tau\_\{step\}\)
3

Sp​s​e​u​d​o←Argmax​\(𝐏h​a​r​d\)S\_\{pseudo\}\\leftarrow\\text\{Argmax\}\(\\mathbf\{P\}\_\{hard\}\)//Pseudo\-one\-hot sequence

//Path 2: Differentiable prediction for gradient flow

4

𝐏pred←Softmax⁡\(𝐋CDR\)\\mathbf\{P\}\_\{\\mathrm\{pred\}\}\\leftarrow\\mathrm\{Softmax\}\(\\mathbf\{L\}\_\{\\mathrm\{CDR\}\}\)
5

S←combine​Sfw​and​Sp​s​e​u​d​oS\\leftarrow\\text\{combine \}S\_\{\\mathrm\{fw\}\}\\text\{ and \}S\_\{pseudo\}
6

ℒIgLM←0\\mathcal\{L\}\_\{\\mathrm\{IgLM\}\}\\leftarrow 0
7for*each CDR regionRi∈ℛR\_\{i\}\\in\\mathcal\{R\}*do

//Define Context forRiR\_\{i\}using other discrete CDRs

8

𝐶𝑜𝑛𝑡𝑒𝑥𝑡i←\{Sfw\}∪\{Sp​s​e​u​d​o\[Rj\]forj≠i\}\\mathit\{Context\}\_\{i\}\\leftarrow\\\{S\_\{\\mathrm\{fw\}\}\\\}\\cup\\\{S\_\{pseudo\}\[R\_\{j\}\]\\text\{ for \}j\\neq i\\\}
//Construct infilling prompt withRiR\_\{i\}masked

9

𝐏^IgLM,Ri←fθIgLM​\(\[𝙼𝙰𝚂𝙺\]∣𝐶𝑜𝑛𝑡𝑒𝑥𝑡i\)\\hat\{\\mathbf\{P\}\}\_\{\\mathrm\{IgLM\},R\_\{i\}\}\\leftarrow f\_\{\\theta\}^\{\\mathrm\{IgLM\}\}\(\[\\mathtt\{MASK\}\]\\mid\\mathit\{Context\}\_\{i\}\)
10

ℒi←CrossEntropy⁡\(𝐏^pred,Ri,𝐏iglm,Ri\)\\mathcal\{L\}\_\{i\}\\leftarrow\\mathrm\{CrossEntropy\}\\left\(\\hat\{\\mathbf\{P\}\}\_\{\\mathrm\{pred\},R\_\{i\}\},\\mathbf\{P\}\_\{\\mathrm\{iglm\},R\_\{i\}\}\\right\)
11

ℒIgLM←ℒIgLM\+wi​ℒi\\mathcal\{L\}\_\{\\mathrm\{IgLM\}\}\\leftarrow\\mathcal\{L\}\_\{\\mathrm\{IgLM\}\}\+w\_\{i\}\\mathcal\{L\}\_\{i\}
12return*ℒIgLM\\mathcal\{L\}\_\{\\mathrm\{IgLM\}\}*//Update via Path 2

### A\.2Experimental\-candidate design protocol

#### A\.2\.1Design task specification

Minibinder design\.Experimental minibinders were designed against the four protein targets reported in Figure[2](https://arxiv.org/html/2609.19770#S2.F2)a using pretrained AF3 weights through TorchFold\. For each target, TorchCraft generated 3,000 candidate molecules using the target crops, hotspot definitions, and binder\-length ranges listed in Table[S2](https://arxiv.org/html/2609.19770#A2.T2)\. The design task allowed the full binder sequence to be optimized while keeping the target template fixed\. The candidates selected for experimental validation were raw TorchCraft outputs and were not subjected to post hoc MPNN sequence redesign\.

VHH design\.Experimental VHHs were designed against the four protein targets reported in Figure[3](https://arxiv.org/html/2609.19770#S2.F3)a using pretrained AF3 weights through TorchFold\. The scaffold framework, CDR length ranges, target crops, and hotspot definitions followed the settings in Table[S3](https://arxiv.org/html/2609.19770#A2.T3)\. For VHH designs, TorchCraft optimized the CDR regions under the fixed framework context, with the interface objective restricted toward CDR\-driven target recognition\. The candidates selected for experimental validation were raw TorchCraft outputs under this framework\-conditioned setting, without post hoc MPNN sequence redesign\.

#### A\.2\.2Design experiments

##### A\.2\.2\.1Minibinder candidate generation and selection

For each minibinder target, 3,000 TorchCraft candidates were sampled\. After generation, candidates were filtered by radius of gyration \(ROG<17<17\), binder pTM \(\>0\.7\>0\.7\), and TorchCraft ipTM \(\>0\.7\>0\.7\)\. Passing candidates were then ranked using Rosetta Interface Analyzer\. Candidates were selected for experimental validation using the composite score,

scorecomposite=100×ipTMTorchCraft−scoreRosetta​interface\.\\mathrm\{score\}\_\{\\mathrm\{composite\}\}=100\\times\\mathrm\{ipTM\}\_\{\\mathrm\{TorchCraft\}\}\-\\mathrm\{score\}\_\{\\mathrm\{Rosetta\\ interface\}\}\.Higher composite scores were prioritized for wet\-lab validation\.

##### A\.2\.2\.2VHH candidate generation and selection

For each VHH target, 12,500 TorchCraft candidates were generated\. Candidates were filtered using CDR interface rate \(\>0\.6\>0\.6\), CDR3 hotspot coverage rate \(\>0\>0\), and TorchCraft ipTM \(\>0\.7\>0\.7\)\. Passing candidates were ranked using Rosetta Interface Analyzer with the same composite score used for minibinders,

scorecomposite=100×ipTMTorchCraft−scoreRosetta​interface\.\\mathrm\{score\}\_\{\\mathrm\{composite\}\}=100\\times\\mathrm\{ipTM\}\_\{\\mathrm\{TorchCraft\}\}\-\\mathrm\{score\}\_\{\\mathrm\{Rosetta\\ interface\}\}\.This ranking favors designs that combine high TorchCraft interface confidence with favorable Rosetta interface scores, and the top\-ranked designs were selected for experimental validation\.

#### A\.2\.3Structural novelty and diversity analyses

Structural novelty\.We assessed the divergence of predicted binding configurations from interactions identified around similar target chains in the PDB\. Target\-similar chains were identified by taking the union of a sequence search \(mmseqs easy\-search \-s 7\.5 \-\-max\-seqs 1000\) and a structure search \(foldseek easy\-search \-s 7\.5 \-\-alignment\-type 1 \-\-max\-seqs 1000\) of the target chain against the PDB\. For each target\-similar chain, all protein chains with one or more heavy\-atom contacts \(<5​Å<5\\penalty\\ \\text\{\\AA\}\) were taken as its binders\. After superposing the design target onto the target\-similar chain with CEAlign, structural divergence was measured as the nearest\-neighbour binder Cα\\alphaRMSD; for each design, we report the minimum target\-aligned binder Cα\\alphaRMSD over all interactions with target\-similar chains\.

Structural diversity\.We clustered predicted binding configurations using average\-linkage hierarchical clustering of the target\-aligned binder Cα\\alphaRMSD matrix\. Using the same structural distance applied between pairs of designs, we computed the pairwise distance matrixDDover all designs in a cohort, built a dendrogram by UPGMA average\-linkage clustering \(scipy\.cluster\.hierarchy\.linkage\(squareform\(D\), method="average"\)\), and obtained the number of clusters at a given RMSD threshold by cutting the dendrogram at that linkage threshold \(scipy\.cluster\.hierarchy\.fcluster,criterion="distance"\)\. The number of clusters as a function of the RMSD threshold is reported per cohort\.

### A\.3Implementation optimizations

#### A\.3\.1Multithreaded parallel conformer generation

CPU multithreading is implemented for residue\-level parallel computing\. Parallel determinism is supported through pre\-extraction of random\-state snapshots, and each thread maintains an independent RandomState instance to avoid race conditions during generation of protein reference conformations\.

#### A\.3\.2Gradient rematerialization

The memory bottleneck of TorchCraft stems from the large number of activations, complex computational graphs, and high\-complexity structure\-related intermediate tensors\. We used gradient checkpointing to reduce activation memory by recomputing selected intermediate tensors during backpropagation\. For TorchCraft, a reentrant gradient\-rematerialization implementation was used together with nativetorch\.utils\.checkpointfor selected modules\.

Furthermore, the Template and MSA modules exhibit no significant computational\-graph nesting that leads to memory accumulation\. For these modules, non\-reentrant gradient checkpointing from nativetorch\.utils\.checkpointwas used\.

#### A\.3\.3Caching mechanism

Caching was restricted according to feature dependence\. Features that remained unchanged were reused, while sequence\-dependent conditioning was recomputed when the sequence representation changed\. Within a single diffusion prediction, conditioning could be reused across denoising steps\.

Before diffusion begins, the model runs the trunk network, such as Pairformer, once on the current sequence representation and target context, producingsingle\_condandpair\_cond\. These conditioning tensors are reused across denoising steps within the same prediction and refreshed at the next design update\.

#### A\.3\.4NPU Fusion Attention

The NPU fusion\-attention operator was modified to support diverse input layouts, reducing data movement and transpose operations\. Fused attention reduced runtime for several larger sequence settings in the reported NPU benchmark, while its effect depended on sequence length and batch size \(Supplementary Table[S9](https://arxiv.org/html/2609.19770#A2.T9)\)\.

#### A\.3\.5Other optimizations

Operator substitutions and memory\-layout adjustments were used on Ascend NPU, including reduced random memory access and contiguous allocations where possible\. On GPU, optional substitution of equivariant kernels from cuequivariance was evaluated\. Runtime benchmarks for NPU with and without fused attention, and for GPU with and without cuequivariance, are summarized in Supplementary Table[S9](https://arxiv.org/html/2609.19770#A2.T9)\.

### A\.4Benchmark Settings

#### A\.4\.1Target information

The target structures, crop regions, and hotspot residues used in the wet\-lab validation campaigns and computational benchmarks are summarized in Supplementary Tables[S2](https://arxiv.org/html/2609.19770#A2.T2)–[S6](https://arxiv.org/html/2609.19770#A2.T6)\.

#### A\.4\.2TorchScore

TorchScore is a score\-only loading of the TorchFold implementation\.\[[21](https://arxiv.org/html/2609.19770#bib.bib21)\]Given input coordinates, it bypasses the diffusion\-based structure module and evaluates the complex through the confidence pathway, returning predictor\-derived scores including pLDDT, pTM, and ipTM\. No separate scoring network is trained\. In this study, TorchScore used pretrained AF3 weights, the same checkpoint used for design\. Designed sequences that were rebuilt with FlowPacker were scored from the resulting coordinates; they were not refolded from sequence by TorchScore\.

#### A\.4\.3Method setup

##### A\.4\.3\.1Minibinder benchmark\.

For de novo minibinder design, we compared BoltzGen, RFdiffusion, and TorchCraft\. For each method, at each benchmark binder length and for each target, 100 designs were first generated using the default settings of the corresponding method\. For each BoltzGen and RFdiffusion design, we then redesigned the full binder sequence with ProteinMPNN without fixing any residue, sampling eight redesigned sequences per generated backbone\. Each redesigned sequence was rebuilt into an all\-atom side\-chain model with FlowPacker\. The eight rebuilt models were scored with TorchScore, and the redesign with the highest pTM \+ ipTM was selected as the final structure and score for that original design\. For TorchCraft, we evaluated raw and MPNN\-polished settings separately\. In the raw setting, which corresponds to the default TorchCraft core procedure, outputs were scored directly with TorchScore without sequence redesign\. In the MPNN\-polished setting, following the BindCraft\-style protocol, TorchCraft\-designed interface residues were fixed and all remaining positions were redesigned eight times with ProteinMPNN; FlowPacker side\-chain rebuilding and TorchScore\-based selection were then performed exactly as for BoltzGen and RFdiffusion\. A minibinder design was counted as passing the computational criterion when both TorchScore pTM and TorchScore ipTM exceeded 0\.7\.

##### A\.4\.3\.2VHH benchmark\.

For VHH design, we compared BoltzGen, RFantibody, Germinal, and TorchCraft\. For each method, at each benchmark framework and for each target, 100 designs were first generated using the default settings of the corresponding method\. For BoltzGen and RFantibody, the full designed sequence was redesigned eight times with AbMPNN without fixing any residue\. For Germinal, we followed the original pipeline by fixing CDR residues that contacted the target interface and applying AbMPNN redesign only to residues outside the CDR regions\. Each redesigned sequence was rebuilt with FlowPacker to recover an all\-atom side\-chain structure\. The eight rebuilt models were scored with TorchScore, and the redesign with the highest ipTM was selected as the final structure and score for that original design\. For TorchCraft, we again evaluated raw and MPNN\-polished settings separately\. Raw TorchCraft outputs were scored directly with TorchScore without sequence redesign\. In the MPNN\-polished setting, interface CDR residues designed by TorchCraft were fixed and all other positions were redesigned eight times with AbMPNN\. The subsequent FlowPacker rebuilding and TorchScore\-based selection were identical to those used for BoltzGen, RFantibody, and Germinal\. A VHH design passed the computational criterion only when it satisfied both a structural\-confidence criterion and an expression proxy: TorchScore ipTM had to exceed 0\.7, and ESM2\-150M perplexity had to be below 6\.31\. The perplexity threshold was obtained from a retrospective nanobody\-expression analysis, in which public expression measurements were combined with accumulated TorchCraft expression data\. Designs with total expression of at least 0\.08 mg were classified as high\-expression cases, ESM2\-150M perplexity was swept as a one\-dimensional classifier, and the operating threshold was selected by maximizing the Matthews correlation coefficient\.

##### A\.4\.3\.3Cyclic\-peptide benchmark\.

For cyclic\-peptide design, we compared BoltzGen, RFpeptides, and TorchCraft\. In the head\-to\-tail cyclization benchmark, each method generated 100 designs per target using its default settings\. For BoltzGen and RFpeptides, the full peptide sequence of each generated structure was redesigned eight times with ProteinMPNN without fixing any residue\. Each redesigned sequence was rebuilt with FlowPacker, scored with TorchScore, and the redesign with the highest pLDDT \+ 100×\\timesipTM was selected as the final structure and score for that original design\. For head\-to\-tail TorchCraft outputs, we evaluated raw designs scored directly with TorchScore and an optional ProteinMPNN\-polished variant in which all peptide positions were redesigned eight times; the subsequent FlowPacker and TorchScore selection procedure was identical to that used for BoltzGen and RFpeptides\. TorchCraft was also evaluated in a disulfide\-linked cyclization setting\. For this setting, raw outputs were scored directly, or all positions except the two cysteines were redesigned eight times with ProteinMPNN, followed by the same FlowPacker rebuilding and TorchScore selection protocol used for the head\-to\-tail setting\. A cyclic\-peptide design passed the computational criterion only if the predicted structure formed the intended cycle without chain breaks and satisfied TorchScore pLDDT\>70\>70and ipTM\>0\.5\>0\.5\.

##### A\.4\.3\.4Small\-molecule binder benchmark\.

For small\-molecule binder design, we compared BoltzDesign and TorchCraft\. For each method and each target, 500 designs were generated using the default settings of the corresponding method\. BoltzDesign and the raw TorchCraft setting were evaluated without sequence redesign\. The score distributions of the resulting designs were assessed with AutoDock Vina and Boltz\-2\. For TorchCraft, we additionally reported a TorchScore\-based computational pass rate, where a design passed the computational criterion when TorchScore pLDDT exceeded 70 and TorchScore ipTM exceeded 0\.7\. We also tested a TorchCraft redesign variant in which ligand\-interface residues were fixed, all remaining positions were redesigned eight times with LigandMPNN, and the redesigned sequences were refolded with TorchFold\. The refolded structure with the highest pTM was selected as the redesigned structure and was then evaluated with AutoDock Vina and Boltz\-2\.

### A\.5Experimental validation methods

#### A\.5\.1Binder experimental methods

The following procedures were used for the wet\-lab validation of binder designs reported in Figure[2](https://arxiv.org/html/2609.19770#S2.F2)a\.

##### A\.5\.1\.1Gene synthesis and subcloning

The DNA sequences encoding the designed minibinders were codon\-optimized and synthesized by GenScript Biotechnology Co\., Ltd\. \(Nanjing, China\)\. The synthesized gene was subcloned into the pIVEX vector for protein expression in a cell\-free system\. Subcloning into the pIVEX vector yielded the following product: MSG\-\[protein\]\-GSGSHHWGSTHHHHHH, containing a C\-terminal SNAC cleavage tag and a6×6\\timesHis affinity tag\.

##### A\.5\.1\.2Cell\-free protein expression

Cell\-free protein synthesis reactions were assembled by combining S30 cell lysate, synthesis buffer, required enzymes, and plasmid DNA in a 24\-deep\-well plate\. Each reaction had a final volume of 5 mL and was incubated at25∘​C25\\,^\{\\circ\}\\mathrm\{C\}for 16 hours\. The reaction mixture was then centrifuged at 4000 rpm for 5 minutes and the supernatant was collected for purification\.

##### A\.5\.1\.3Cell\-free protein purification and analysis

Designed minibinders were obtained by Ni\-column purification using Hamilton instruments \(Hamilton, MICRO LAB Starlet\)\. The purified protein was then dialyzed in the desired buffer \(either PBS, pH 7\.4 or 50 mM Tris, 150 mM NaCl, 10% glycerol, pH 8\.0\)\. Before aliquoting and storage, the protein was filtered through a 0\.22μ\\mum filter\. Protein concentration was determined by the A280 protein assay using bovine serum albumin \(BSA\) as the standard\. Protein purity was verified by standard SDS\-PAGE electrophoresis\. For SDS\-PAGE analysis: samples were mixed with5×5\\timesreducing loading buffer \(300 mM Tris\-HCl pH 6\.8, 10% SDS, 30% glycerol, 0\.5% bromophenol blue, and 250 mM DTT\)\. Proteins were separated on a 12% homogeneous SDS\-PAGE gel \(GenScript, Cat\. No\. M00668\) and visualized accordingly\.

##### A\.5\.1\.4Target protein preparation

The four minibinder campaigns used the Fc\-fusion target proteins listed in Table[S7](https://arxiv.org/html/2609.19770#A2.T7)\. His\-tagged designed binders were immobilized for BLI measurements\.

##### A\.5\.1\.5Binding characterization of binders

Initial screening of binder designs for target protein binding was performed using Biolayer Interferometry \(BLI, Gator Bio\)\. For target proteins without the His\-tag \(IFNAR2, PD\-L1, PDGFRβ\\beta, and IL\-7Rα\\alpha\), His\-tagged binders were prepared at 5μ\\mug/mL in PBSTA buffer \(10 mM Na2HPO4⋅\{\}\_\{4\}\\cdot12H2O, 2 mM KH2PO4, 137 mM NaCl, 2\.7 mM KCl, 0\.05% Tween\-20, 0\.1% BSA, pH 7\.4\) for loading\. Target proteins were diluted to 1000 nM in PBSTA buffer\. Anti\-His sensors \(Gator Bio, Cat\. No\. 20\-5066\) were saturated with His\-tagged binders\. The BLI assay sequence was as follows: 60 s baseline, 120 s ligand loading, 60 s post\-loading baseline, 120 s association phase, 300 s dissociation phase, and 30 s regeneration\. Baseline\-subtracted signals \(in nanometers\) were calculated to prioritize binders for further characterization\.

To determine apparent affinities of selected binder designs: His\-tagged binders \(5μ\\mug/mL in PBSTA\) were immobilized onto Anti\-His sensors for 120 s\. Serial dilutions of target proteins were prepared as follows: IFNAR2 \(4000 nM to 62\.5 nM or 125 nM to 1\.95 nM\), PDGFRβ\\beta\(100 nM to 3\.125 nM\), PD\-L1 \(4000 nM to 62\.5 nM\), and IL\-7Rα\\alpha\(500 nM to 31\.25 nM\)\. Diluted target proteins were allowed to associate with the immobilized ligand for 120 s, followed by dissociation in PBSTA buffer for 300 s\. After background subtraction using buffer\-only \(PBSTA\) control curves, apparent dissociation constants \(KDK\_\{D\}\) were determined using the 1:1 binding model in the Results & Analysis curve\-fitting module\.

#### A\.5\.2VHH experimental methods

The following procedures were used for the wet\-lab validation of VHH designs reported in Figure[3](https://arxiv.org/html/2609.19770#S2.F3)a\.

##### A\.5\.2\.1Framework selection

VHH frameworks were randomly selected from 7EOW \(caplacizumab\), 8Z8V \(ozoralizumab\), 5JDS \(envafolimab\), 7XL0 \(vobarilizumab\), and 8COH \(gefurulimab\)\.

##### A\.5\.2\.2Gene synthesis and subcloning

VHH DNA sequences were codon\-optimized and synthesized by GenScript Biotechnology Co\., Ltd\. \(Nanjing, China\)\. The synthesized genes were subcloned into the pCDNA3\.4 vector for protein expression in a CHO cell system\. Subcloning into the pCDNA3\.4 vector yielded the following product: MGWSCIILFLVATATGVHS \(signal peptide\)\-\[Nanobody\]\-GGGGSHHHHHH, with a C\-terminal6×6\\timesHis affinity tag\.

##### A\.5\.2\.3VHH expression in CHO cells

Transfection\-grade plasmids were prepared in large quantities using a GenScript self\-developed plasmid extraction kit for CHO cell expression\. Cells were maintained at37∘​C37\\,^\{\\circ\}\\mathrm\{C\}with 5% CO2on an orbital shaker\. One day before transfection, the cells were seeded at an appropriate density\. On the day of transfection, DNA and Reagent \(self\-developed by GenScript\) were mixed at an optimal ratio and then added into cells ready for transfection\. Approximately 24 hours post transfection, Feed was added to each sample\.

##### A\.5\.2\.4Protein purification and analysis

Cell culture broth was centrifuged and followed by filtration\. Filtered cell culture supernatant was loaded onto an affinity purification column at an appropriate flowrate\. After washing and elution with appropriate buffers, the eluted fractions were pooled and buffer exchanged to the final formulation buffer \(PBS, pH 7\.2\)\. The purified protein was analyzed by SDS\-PAGE and SEC\-HPLC analysis to determine the molecular weight and purity\. The concentration was determined by A280 method\.

##### A\.5\.2\.5Target protein preparation

EFNA5, PDGFRβ\\beta, and S100A4 used the Fc\-fusion constructs listed in Table[S8](https://arxiv.org/html/2609.19770#A2.T8)\. For BHRF1, commercially available proteins lacking alternative tags were unavailable\. Therefore, BHRF1 was expressed with a His\-SUMO tag in HEK293 cells, followed by tag cleavage\.

##### A\.5\.2\.6Binding characterization of VHHs

Initial screening of VHH designs for target protein binding was performed using BLI \(Gator Bio\)\. For target proteins without His\-tag \(PDGFRβ\\beta, EFNA5, BHRF1, and S100A4\), His\-tagged VHHs were prepared at 5μ\\mug/mL in PBSTA buffer\. Target proteins were diluted to 1000 nM in PBSTA buffer\. Anti\-His sensors \(Gator Bio, Cat\. No\. 20\-5066\) were saturated with His\-tagged VHHs\. The BLI assay sequence was as follows: 60 s baseline, 120 s ligand loading, 60 s post\-loading baseline, 120 s association phase, 300 s dissociation phase, and 30 s regeneration\. Baseline\-subtracted signals \(in nanometers\) were calculated to prioritize VHHs for further characterization\.

To determine apparent affinities of selected designs, 5μ\\mug/mL His\-tagged design VHHs prepared in PBSTA were immobilized onto Anti\-His sensor for 120 s\. Serial dilutions of the target proteins \(BHRF1: from 2000 nM diluted to 31\.25 nM, PDGFRβ\\beta: from 3200 nM diluted to 50 nM, S100A4 and EFNA5 from 4000 nM diluted to 125 nM\) were then allowed to associate with the immobilized ligand for 120 s, followed by a dissociation step in PBSTA for 300 s\. After background subtraction using buffer\-only \(PBSTA\) control curves, apparentKDK\_\{D\}values were determined using the 1:1 binding model in the Results & Analysis curve\-fitting module\.

## Appendix BSupplementary Tables

Supplementary tables collect the target definitions, sampling settings, benchmark panels, and experimental\-validation reagents used in this study\.

Table S1:Design tasks and corresponding hyperparameters\.Design taskLoss weightStage iterationsLearning rateMinibinderIntra\-chain binder contact loss = 1
Inter\-chain target–binder contact loss = 1
Binder PAE loss = 1
Amino\-acid composition loss = 5Stage 0 = 0
Stage 1 = 0
Stage 2 = 80
Stage 3 = 51VHHParatope loss = 1
ipTM loss = 10
Binder–target interface PAE loss = 1
CDR1\-restricted IgLM loss = 1\.5
CDR2\-restricted IgLM loss = 3\.5
CDR3\-restricted IgLM loss = 5Stage 0 = 0
Stage 1 = 0
Stage 2 = 80
Stage 3 = 50\.1Cyclic peptideIntra\-chain binder contact loss = 1
Inter\-chain target–binder contact loss = 1
Binder PAE loss = 1
Amino\-acid composition loss = 5Stage 0 = 30
Stage 1 = 60
Stage 2 = 45
Stage 3 = 50\.1Small\-molecule binderIntra\-chain binder contact loss = 1
Inter\-chain target–binder contact loss = 1
α\\alpha\-Helix loss = 0\.01
Beta loss = 0\.15
Isotropy loss = 0\.3
Amino\-acid composition loss = 5Stage 0 = 30
Stage 1 = 75
Stage 2 = 80
Stage 3 = 50\.1\* All design tasks were optimized using the same SGD optimizer\.Table S2:Mini\-binder experimental\-validation sampling settings for the designs reported in Figure[2](https://arxiv.org/html/2609.19770#S2.F2)a\.\* For IFNAR2 \(PDB: 3se4\), missing residues at the protein interface were repaired using homology modeling via SWISS\-MODEL\.

Table S3:VHH experimental\-validation sampling settings for the designs reported in Figure[3](https://arxiv.org/html/2609.19770#S2.F3)a\. The length range lists HCDR1, HCDR2, and HCDR3, respectively\.Table S4:Mini\-binder benchmark targets\. Hotspots are listed separately for each binder\-length setting\.Table S5:VHH benchmark targets\. All designs used CDR length settings of HCDR1 = 8 aa, HCDR2 = 8 aa, and HCDR3 = 9–21 aa\.Table S6:Cyclic\-peptide benchmark targets\.Table S7:Target proteins used for binder experimental validation\.Table S8:Target proteins used for VHH experimental validation\.Table S9:TorchCraft runtime benchmark across sequence lengths on NPU \(with/without fused attention, FA\) and GPU \(with/without cuequivariance\)\. Batch size 2 is the recommended setting\. Runtime is reported in minutes per design, obtained by dividing the total wall\-clock time of a batch\-size\-2 run by 2\. GPU timings are the mean of three independent runs\.
## Appendix CSupplementary Figures

Figure S1:Sequence\-composition regularization, predicted confidence, and observed minibinder expression\.\(a\) ESMFold pLDDT comparison for TorchCraft minibinders optimized with or without the composition regularizer across the 12\-target benchmark\. \(b\) PDGFRβ\\betaminibinder expression in two experimental rounds\. The round incorporating composition regularization showed higher expression than the preceding unregularized round\.Figure S2:Rosetta interface\-score benchmark for de novo minibinders\.Distribution of Rosetta interface scores for minibinder benchmark designs\.Figure S3:Rosetta interface\-score benchmark for framework\-conditioned nanobody designs\.Distribution of Rosetta interface scores for nanobody benchmark designs\. Panels a–e show results for each of the five VHH frameworks, and panel f shows the average across frameworks\.![Refer to caption](https://arxiv.org/html/2609.19770v1/figS3-1.png)Figure S4:ESM2\-150M perplexity retrospectively predicts VHH expression\.\(a\) Retrospective analysis of public expression measurements and accumulated TorchCraft expression data\. ESM2\-150M perplexity is correlated with expression, with lower perplexity generally associated with higher expression\. The horizontal dashed line marks the high\-expression cutoff of 0\.08 mg\. \(b\) Threshold sweep for classifying high\-expression designs by ESM2\-150M perplexity\. The selected threshold of 6\.309 maximizes the Matthews correlation coefficient \(MCC = 0\.598; Pearsonr=−0\.538r=\-0\.538; Spearmanρ=−0\.602\\rho=\-0\.602\), with designs below the threshold classified as high\-expression candidates\. \(c\) Confusion matrix obtained using the maximum\-MCC perplexity threshold\.Figure S5:Framework\-stratified VHH benchmark across five nanobody scaffolds\.TorchScore\-based VHH design benchmark split by framework, showing how TorchCraft performance varies across five framework choices while using the same target panel and computational pass\-rate criterion\.Figure S6:Cyclization outcomes for cyclic\-peptide designs\.Fractions of successfully cyclized, intact\-but\-not\-cyclized, and backbone\-broken predictions across cyclic\-peptide benchmark targets for the head\-to\-tail and disulfide\-linked TorchCraft settings\.Figure S7:Rosetta interface\-score benchmark for cyclic\-peptide designs\.The cyclic\-peptide benchmark from Figure[4](https://arxiv.org/html/2609.19770#S2.F4)c evaluated using Rosetta interface score as an orthogonal assessment of predicted target\-binding quality\.![Refer to caption](https://arxiv.org/html/2609.19770v1/figS5-1.png)Figure S8:Small\-molecule targets used in the SMI benchmark\.Benchmark panel of chemically diverse ligand targets used for small\-molecule interaction design, including ALE, ATP, CHD, CMP, DLU, FAD, IAI, OQO, SAM, and TRP\.Figure S9:TorchScore computational pass rates in the small\-molecule benchmark\.Pass\-rate evaluation of TorchCraft ligand\-conditioned protein designs across the 10\-ligand panel using the TorchScore criterion\.

Similar Articles

TD3B: Transition-Directed Discrete Diffusion for Allosteric Binder Generation

Hugging Face Daily Papers

TD3B is a sequence-based generative framework for designing allosteric binders with specific agonist or antagonist behaviors using transition-directed discrete diffusion. The paper introduces a method to control directional transitions in protein states, addressing limitations of static structure-based design.

Co-folding model guided by structural proteomics

arXiv cs.LG

Introduces AIMS-Fold, an inference-time guided-diffusion framework that integrates cross-linking mass spectrometry (XL-MS) and hydrogen-deuterium exchange (HDX-MS) data to improve protein co-folding predictions for induced proximity drug targets.