Anatomizing Deep Learning Inference in Web Browsers

Author:

Wang Qipeng1ORCID,Jiang Shiqi2ORCID,Chen Zhenpeng3ORCID,Cao Xu2ORCID,Li Yuanchun4ORCID,Li Aoyu3ORCID,Ma Yun1ORCID,Cao Ting2ORCID,Liu Xuanzhe1ORCID

Affiliation:

1. Peking University, China

2. Microsoft Research Asia, China

3. Nanyang Technological University, Singapore

4. Institute for AI Industry Research (AIR), Tsinghua University, China

Abstract

Web applications have increasingly adopted Deep Learning (DL) through in-browser inference , wherein DL inference performs directly within Web browsers. The actual performance of in-browser inference and its impacts on the quality of experience ( QoE ) remain unexplored, and urgently require new QoE measurements beyond traditional ones, e.g., mainly focusing on page load time. To bridge this gap, we make the first comprehensive performance measurement of in-browser inference to date. Our approach proposes new metrics to measure in-browser inference: responsiveness, smoothness, and inference accuracy. Our extensive analysis involves 9 representative DL models across Web browsers of 50 popular PC devices and 20 mobile devices. The results reveal that in-browser inference exhibits a substantial latency gap, averaging 16.9 times slower on CPU and 4.9 times slower on GPU compared to native inference on PC devices. The gap on mobile CPU and mobile GPU is 15.8 times and 7.8 times, respectively. Furthermore, we identify contributing factors to such latency gap, including underutilized hardware instruction sets, inherent overhead in the runtime environment, resource contention within the browser, and inefficiencies in software libraries and GPU abstractions. Additionally, in-browser inference imposes significant memory demands, at times exceeding 334.6 times the size of the DL models themselves, partly attributable to suboptimal memory management. We also observe that in-browser inference leads to a significant 67.2% increase in the time it takes for GUI components to render within Web browsers, significantly affecting the overall user QoE of Web applications reliant on this technology.

Publisher

Association for Computing Machinery (ACM)

Reference124 articles.

1. Retrived in April 2024. ANGLE (software). https://en.wikipedia.org/wiki/ANGLE_(software).

2. Retrived in April 2024. Selenium with Python. https://selenium-python.readthedocs.io/.

3. Retrived in April 2024. Using the SavedModel format. https://www.tensorflow.org/guide/saved_model.

4. Retrived in April 2024. WEBGL_debug_renderer_info extension. https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info.

5. Retrived in April, 2024. XNNPACK: High-efficiency floating-point neural network inference operators for mobile, server, and Web. https://github.com/google/XNNPACK.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3