arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.05477cs.DCcs.LGq-bio.BM
收藏

HelixFold:一种基于PaddlePaddle的AlphaFold2的高效实现

HelixFold: An Efficient Implementation of AlphaFold2 using PaddlePaddle

Baidu Inc.(百度公司)

Guoxia Wang, Xiaomin Fang, Zhihua Wu, Yiqun Liu, Yang Xue, Yingfei Xiang, Dianhai Yu, Fan Wang, Yanjun Ma

摘要:

准确的蛋白质结构预测可以极大地促进生命科学的发展。AlphaFold 2是一个前沿的端到端结构预测系统,其准确性已经接近实验测定技术。由于AlphaFold 2模型架构复杂、内存消耗大,从头开始实现AlphaFold 2的训练和推理需要大量的计算资源和时间。运行原始AlphaFold 2的成本对于大多数个人和机构来说都很昂贵。因此,降低这种成本可以加速生命科学的发展。我们使用PaddlePaddle实现AlphaFold 2,即HelixFold,以提高训练和推理速度,并减少内存消耗。通过算子融合、张量融合和混合并行计算提高了性能,而通过Recompute、BFloat 16和内存读/写就地优化了内存。与最初的AlphaFold 2(用Jax实现)和OpenFold(用PyTorch实现)相比,HelixFold完成完整的端到端训练仅需7.5天,使用混合并行时仅需5.3天,而AlphaFold 2和OpenFold都需要约11天。HelixFold节省1倍的训练时间。我们在CASP 14和CAMEO数据集上验证了HelixFold的准确性与AlphaFold 2相当。HelixFold的代码可以在GitHub上免费下载:https://github.com/PaddlePaddle/PaddleHelix/tree/dev/apps/protein_folding/helixfold,我们还在https://paddlehelix.baidu.com/app/drug/protein/forecast上提供稳定的Web服务。

英文摘要:

Accurate protein structure prediction can significantly accelerate the development of life science. The accuracy of AlphaFold2, a frontier end-to-end structure prediction system, is already close to that of the experimental determination techniques. Due to the complex model architecture and large memory consumption, it requires lots of computational resources and time to implement the training and inference of AlphaFold2 from scratch. The cost of running the original AlphaFold2 is expensive for most individuals and institutions. Therefore, reducing this cost could accelerate the development of life science. We implement AlphaFold2 using PaddlePaddle, namely HelixFold, to improve training and inference speed and reduce memory consumption. The performance is improved by operator fusion, tensor fusion, and hybrid parallelism computation, while the memory is optimized through Recompute, BFloat16, and memory read/write in-place. Compared with the original AlphaFold2 (implemented with Jax) and OpenFold (implemented with PyTorch), HelixFold needs only 7.5 days to complete the full end-to-end training and only 5.3 days when using hybrid parallelism, while both AlphaFold2 and OpenFold take about 11 days. HelixFold saves 1x training time. We verified that HelixFold's accuracy could be on par with AlphaFold2 on the CASP14 and CAMEO datasets. HelixFold's code is available on GitHub for free download: https://github.com/PaddlePaddle/PaddleHelix/tree/dev/apps/protein_folding/helixfold, and we also provide stable web services on https://paddlehelix.baidu.com/app/drug/protein/forecast.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑