arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.12708cs.LGcs.PF
收藏

Faith:一种有效的GPU Transformer验证框架

Faith: An Efficient Framework for Transformer Verification on GPUs

University of California, Santa Barbara(加利福尼亚大学圣巴巴拉分校)

Boyuan Feng, Tianqi Tang, Yuke Wang, Zhaodong Chen, Zheng Wang, Shu Yang, Yuan Xie, Yufei Ding

摘要:

Transformer验证在机器学习研究和工业中引起越来越多的关注。它正式验证了transformer对对抗攻击的鲁棒性,例如在一个句子中交换同义词。然而,Transformer验证的性能仍然是不令人满意的,由于边界为中心的计算,这是显着不同于标准的神经网络。在本文中,我们提出了信仰,一个有效的框架Transformer验证的GPU。我们首先提出了一个语义感知的计算图转换,以确定语义信息,如绑定计算在Transformer验证。我们利用这样的语义信息,使有效的内核融合在计算图的水平。其次,我们提出了一个验证专用的内核crafter来有效地将Transformer验证映射到现代GPU。该验证器利用一组GPU硬件支持来加速通常是内存密集型的验证专用操作。第三,我们提出了一个专家指导的自动调整,将专家知识的GPU后端,以促进大搜索空间探索。广泛的评估表明,信仰实现了$2.1\times$到$3.4\times$(平均$2.6\times$)的加速比国家的最先进的框架。

英文摘要:

Transformer verification draws increasing attention in machine learning research and industry. It formally verifies the robustness of transformers against adversarial attacks such as exchanging words in a sentence with synonyms. However, the performance of transformer verification is still not satisfactory due to bound-centric computation which is significantly different from standard neural networks. In this paper, we propose Faith, an efficient framework for transformer verification on GPUs. We first propose a semantic-aware computation graph transformation to identify semantic information such as bound computation in transformer verification. We exploit such semantic information to enable efficient kernel fusion at the computation graph level. Second, we propose a verification-specialized kernel crafter to efficiently map transformer verification to modern GPUs. This crafter exploits a set of GPU hardware supports to accelerate verification specialized operations which are usually memory-intensive. Third, we propose an expert-guided autotuning to incorporate expert knowledge on GPU backends to facilitate large search space exploration. Extensive evaluations show that Faith achieves $2.1\times$ to $3.4\times$ ($2.6\times$ on average) speedup over state-of-the-art frameworks.

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

↑