Uni-Fold: An Open-Source Platform for Developing Protein Folding Models beyond AlphaFold
Ziyao LiiD, Xuyang LiuiD, Weijie CheniD, Fan Shen, Hangrui Bi, Guolin KeiD, Linfeng ZhangiD
Abstract
Recent breakthroughs on protein structure prediction, namely AlphaFold, have led to unprecedented new possibilities in related areas. However, the lack of training utilities in its current open-source code hinders the community from further developing or adapting the model. Here we present Uni-Fold as a thoroughly open-source platform for developing protein folding models beyond AlphaFold. We reimplemented AlphaFold and AlphaFold-Multimer in the PyTorch framework, and reproduced their from-scratch training processes with equivalent or better accuracy. Based on various optimizations, Uni-Fold achieves about 2.2 times training acceleration compared with AlphaFold under similar hardware configuration. On a benchmark of recently released multimeric protein structures, Uni-Fold outperforms AlphaFold-Multimer by approximately 2% on the TM-Score. Uni-Fold is currently the only open-source repository that supports both training and inference of multimeric protein models. The source code, model parameters, test data, and web server of Uni-Fold are publicly available3.
02 /Specification & Classification
Click any tag to browse matching papersIn-depth summary
Claude Opus 5.5 · xhigh effort · 8 Nov 2026 · from the full text of version 3 (30 Aug 2022) · CC BY 4.0
PyTorch reimplementation of AlphaFold and AlphaFold-Multimer with training code, retrained from scratch to equal or better accuracy, about 2.2 times faster training and roughly 2% higher multimer TM-Score.
AlphaFold's public code has no training utilities, is written in JAX and was built for TPUs, so smaller groups cannot retrain or adapt it. Among the reimplementations the paper reviews (RoseTTAFold, OpenFold, FastFold, MEGA-Fold, HelixFold), the authors present Uni-Fold as the only open-source code that both trains and runs multimeric (AlphaFold-Multimer-style) models.
Key results
ShownUni-Fold Multimer, retrained from scratch, scores higher than AlphaFold-Multimer (v2 parameters; all 5 public models were evaluated) on RMSD and TM-Score for whole, recently released assemblies. AlphaFold-Multimer stays ahead on GDT-HA and Cα-LDDT, which the authors read as possibly better local accuracy.
About 2% higher TM-Score on 162 assemblies (PDB, released 17 Jan to 14 Jul 2022, below 40% template identity); every method received the same features. On three example complexes: TM-score 0.984 vs 0.969 and Cα-LDDT 0.924 vs 0.968 (Uni-Fold vs AlphaFold-Multimer). The text does not reproduce the per-metric values from Table 2. · Abstract; Data; Baselines; Results
ShownRetraining the monomer model from scratch in PyTorch gave accuracy equal to or better than AlphaFold Model 2 and OpenFold Model 2 on recent single chains, which the authors take as evidence that the reimplementation is correct.
Evaluated on 301 unique sequences (876 structures) with resolution below 3 Å, length 50 to 1024 and below 40% template identity; Table 2 is summarised as equivalent or better without numbers in the text. Accuracy dropped clearly when multimer models were run on monomer inputs. · 1 Introduction; Data; Baselines; Results
SuggestedEnd-to-end training is about 2.2 times faster than official AlphaFold under similar hardware and benchmark settings, and also ahead of the other recent baselines in Table 4. The multimer model reached better accuracy 1.9 times faster than AlphaFold-Multimer.
Uni-Fold ran on 128 NVIDIA A100 GPUs, AlphaFold on 128 TPU cores and MEGA-Fold on 128 Ascend 910, all in bfloat16 (Table 4). OpenFold and HelixFold times were taken from their own reports, and the AlphaFold-Multimer finetuning steps are unknown. Under Uni-Fold's actual configuration, total training took about 4.11 days. · 3.3 Efficiency Benchmarks; Training
ShownPer Evoformer layer, Uni-Fold runs faster and uses less peak GPU memory than the baselines tested, including OpenFold, OpenFold with Low Memory Attention and FastFold, so longer sequences fit on the same GPU.
One Evoformer layer on an A100 40GB with 512 MSAs and bfloat16: at chunk size 4, the maximum length is about 6720 residues for Uni-Fold vs about 5888 for OpenFold. In a forward-plus-backward test with 128 MSAs and 256 residues, Uni-Fold had the best time and memory (Table 5); OpenFoldLMA was slower and used more memory than plain OpenFold. · Inference; Evoformer Benchmark
SuggestedClipping gradients per sample, as AlphaFold does, converges better than the per-batch clipping used in most AlphaFold replicas such as OpenFold.
Training Cα-LDDT of Uni-Fold Monomer with per-sample global-norm clipping at 0.1, compared with per-batch clipping at 0.1, 0.05 and 0.025: per-sample clipping was consistently better (Figure 3). No held-out test accuracy is reported for this comparison. · Per-Sample Gradient Clipping; 3.4 Effect of Per-Sample Gradient Clipping
Methods, data and reproducibility
PyTorch reimplementation of AlphaFold and AlphaFold-Multimer with changes (GELUs, a postprocessing layer on the OuterProductMean output to lower its values, shuffled Cα-RMSD chain alignment, entity-sharing MSA masks, representation norm losses) and speedups (selective bfloat16, fused softmax/layer norm, 2D blocking in triangular multiplication); both trained from scratch on PDB and self-distillation data.
- PDB training structures released before 16 Jan 2022: chains for the monomer model, assemblies (at most 18 chains) for the multimer model; resolution filter 9 Å · n = 600,000+ protein chains with 130,000+ unique sequences
- Self-distillation set from Uniclust30 (2018_08) clusters with center length 200 to 1,024; MSAs from HHBlits; labels from an early Uni-Fold, with residues below 50% predicted LDDT masked · n = about 360,000 sequences
- Monomer test set from 1,181 recent PDB structures (released 17 Jan to 14 Jul 2022): template identity below 40%, resolution below 3 Å, length 50 to 1024 · n = 301 unique sequences with 876 structures
- Multimer test set: recent PDB assemblies with 2 or more chains, every chain below 40% template identity, resolution below 3.5 Å, 50 to 1536 residues in total · n = 162 assemblies
- Sequence databases for MSA search: MGnify, UniRef90, Uniclust30 + BFD; UniProt with species annotations for multimer MSA pairing
- Structure templates from PDB released before 29 April 2020, ranked with HHSearch
- Methods & tools
- PyTorch, JackHMMER, HHBlits, HHSearch, NVIDIA APEX, OneFlow, AlphaFold, AlphaFold-Multimer, OpenFold, FastFold, HelixFold, MEGA-Fold
- Code
- https://github.com/dptech-corp/Uni-Foldhttps://github.com/dptech-corp/Uni-Fold-jaxhttps://colab.research.google.com/github/dptech-corp/Uni-Fold/blob/main/notebooks/unifold.ipynbhttps://github.com/guolinke/fused_ops
- Data & accessions
- https://github.com/dptech-corp/Uni-Fold
- Software & environment
- PyTorch; release described is Uni-Fold v2.0.0. Web server: https://hermite.dp.tech. Baselines run at OpenFold commit a44bbebbfa4dbb8b228e0c8d77338173cf78d699 and FastFold commit 665e6c97a7d95d3db2df860d104fa3c456c71fe2. No package versions, containers or requirement files stated.
- Assay conditions & compute
- Training on 128 NVIDIA A100 40GB GPUs, one sample per GPU; about 4.11 days total under the real Uni-Fold configuration. Inference benchmarks on one A100 40GB. Compressed training features take about 2TB (down from more than 300TB).
- Reproducibility gaps
- Code, model parameters and test data are released; the text gives no release location for the self-distillation set or the preprocessed training features. AlphaFold-Multimer finetuning steps are unknown, so the multimer timing comparison is approximate.
Limitations (5)
- AlphaFold-Multimer scores higher on GDT-HA and Cα-LDDT, so its predictions may capture local structure more accurately than Uni-Fold's. · stated by the authors
- AlphaFold-Multimer's training details were too brief to know its exact finetuning steps, so the 1.9 times multimer speedup is not an exact comparison. · stated by the authors
- Table 4 flags some training-time entries as not rigorous benchmark performance, and FastFold is left out of the training-time comparison because it reported no 128-GPU timing. · stated by the authors
- The accuracy gain over AlphaFold-Multimer is credited to newer training data plus the model and loss changes, but no ablation separates them; only gradient clipping is ablated, and only on training Cα-LDDT. · noted in this summary
- Accuracy rests on one test set the authors built themselves and on assembly-level metrics they adapted (not DockQ). The training-speed comparison sets A100 GPUs against TPU cores and Ascend 910 chips and partly uses times reported by other groups. · noted in this summary
Who should read:Read this if you want to retrain, fine-tune or modify an AlphaFold or AlphaFold-Multimer-style model in PyTorch on GPUs, or need its speed and memory optimizations for long sequences or complexes.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Refinement of AlphaFold-Multimer structures with single sequence input
Toshiyuki Oda·bioRxiv·Dec 27, 2022
- OpenFold: Retraining AlphaFold2 yields new insights into its learning mechanisms and capacity for generalization
Gustaf Ahdritz, Nazim Bouatta, … Mohammed AlQuraishi·Nature MethodsPeer-reviewed·May 14, 2024
- Protein complex prediction with AlphaFold-Multimer
Richard Evans, Michael O’Neill, … Demis Hassabis·bioRxiv·Oct 4, 2021
- Efficient and accurate prediction of protein structure using RoseTTAFold2
M. Baek, I. Anishchenko, … F. DiMaio·bioRxiv·May 24, 2023
- AtlasFold: Protein structure prediction with metagenomic-scale language models
Seonghwan Seo, Hyeongwoo Kim, … Team KAIST·bioRxiv·Sep 7, 2026
- Improvement of protein tertiary and quaternary structure predictions using the ReFOLD4 refinement method and the AlphaFold2 recycling process
Recep Adiyaman, Nicholas S. Edmunds, … Liam James McGuffin·bioRxiv·Dec 6, 2022