arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.07582cs.LGq-bio.BM
收藏

化学transformer压缩,用于加速分子建模的训练和推理

Chemical transformer compression for accelerating both training and inference of molecular modeling

University of Gothenburg(哥德堡大学)

Yi Yu, Karl Borjesson

摘要:

Transformer模型是近年来发展起来的分子生物学模型,在定量构效关系(QSAR)和虚拟筛选(VS)等方面具有良好的应用前景。然而,与其他类型的模型相比,它们很大,这导致了对硬件的高要求,以缩短训练和推理过程的时间。在这项工作中,跨层参数共享(CLPS),和知识蒸馏(KD)被用来减少在分子科学中的Transformers的大小。与原始BERT模型相比,这两种方法不仅具有竞争力的QSAR预测性能,而且参数效率更高。此外,通过将CLPS和KD集成到一个两态化学网络中,我们引入了一个新的深层化学Transformer模型DeLiCaTe。DeLiCaTe捕获一般领域以及特定于任务的知识,由于参数和层数分别减少了10倍和3倍,因此训练和推理的速度都提高了4倍。同时,它在QSAR和VS建模中取得了相当的性能。此外,我们预计,模型压缩策略提供了一种途径,有效的生成Transformer模型的有机药物和材料的设计。

英文摘要:

Transformer models have been developed in molecular science with excellent performance in applications including quantitative structure-activity relationship (QSAR) and virtual screening (VS). Compared with other types of models, however, they are large, which results in a high hardware requirement to abridge time for both training and inference processes. In this work, cross-layer parameter sharing (CLPS), and knowledge distillation (KD) are used to reduce the sizes of transformers in molecular science. Both methods not only have competitive QSAR predictive performance as compared to the original BERT model, but also are more parameter efficient. Furthermore, by integrating CLPS and KD into a two-state chemical network, we introduce a new deep lite chemical transformer model, DeLiCaTe. DeLiCaTe captures general-domains as well as task-specific knowledge, which lead to a 4x faster rate of both training and inference due to a 10- and 3-times reduction of the number of parameters and layers, respectively. Meanwhile, it achieves comparable performance in QSAR and VS modeling. Moreover, we anticipate that the model compression strategy provides a pathway to the creation of effective generative transformer models for organic drug and material design.

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

↑