AI应用程序对速度的需求:本机算法实现与基于浏览器的算法实现的性能比较
The Need for Speed of AI Applications: Performance Comparison of Native vs. Browser-based Algorithm Implementations
摘要:
人工智能应用程序对性能的要求越来越高,因此客户端分布式软件的时代变得越来越重要也就不足为奇了。除了已经使用移动硬件的许多人工智能应用程序,甚至是计算要求高的人工智能应用程序的浏览器之外,我们已经见证了客户端(联合)机器学习算法的出现,这是由大公司和初创公司的利益驱动的。除了数学和算法方面的问题外,这一趋势还特别要求客户端环境的计算效率达到新的水平。因此,本文通过对本机代码和不同的基于浏览器的实现(JavaScript、ASM.js以及WebAssembly)的代表性混合算法进行比较研究,来处理最先进性能的问题。我们的研究结果表明,目前在运行时优化的努力推动边界以及(甚至超越)本机二进制性能。我们分析了获得的结果,并推测了一些惊喜背后的原因,通过概述未来的可能性以及我们自己的一些研究工作来完成论文。
英文摘要:
AI applications pose increasing demands on performance, so it is not surprising that the era of client-side distributed software is becoming important. On top of many AI applications already using mobile hardware, and even browsers for computationally demanding AI applications, we are already witnessing the emergence of client-side (federated) machine learning algorithms, driven by the interests of large corporations and startups alike. Apart from mathematical and algorithmic concerns, this trend especially demands new levels of computational efficiency from client environments. Consequently, this paper deals with the question of state-of-the-art performance by presenting a comparison study between native code and different browser-based implementations: JavaScript, ASM.js as well as WebAssembly on a representative mix of algorithms. Our results show that current efforts in runtime optimization push the boundaries well towards (and even beyond) native binary performance. We analyze the results obtained and speculate on the reasons behind some surprises, rounding the paper off by outlining future possibilities as well as some of our own research efforts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。