Skip to main content
QUICK REVIEW

[Paper Review] Implementation of a Practical Distributed Calculation System with Browsers and JavaScript, and Application to Distributed Deep Learning

Ken Miura, Tatsuya Harada|arXiv (Cornell University)|Mar 19, 2015
Advanced Neural Network ApplicationsComputer Science4 references9 citations
TL;DR

This paper presents Sashimi, a browser-based distributed computing framework that enables any web browser to act as a computation node without client software, and Sukiyaki, a JavaScript-based deep learning library that accelerates deep CNN training 30× faster than prior JavaScript libraries. Together, they enable practical, browser-embedded distributed deep learning using general-purpose GPUs, achieving up to 2× faster training of convolutional layers with four clients and 1.5× faster training of fully-connected layers compared to standalone execution.

ABSTRACT

Deep learning can achieve outstanding results in various fields. However, it requires so significant computational power that graphics processing units (GPUs) and/or numerous computers are often required for the practical application. We have developed a new distributed calculation framework called "Sashimi" that allows any computer to be used as a distribution node only by accessing a website. We have also developed a new JavaScript neural network framework called "Sukiyaki" that uses general purpose GPUs with web browsers. Sukiyaki performs 30 times faster than a conventional JavaScript library for deep convolutional neural networks (deep CNNs) learning. The combination of Sashimi and Sukiyaki, as well as new distribution algorithms, demonstrates the distributed deep learning of deep CNNs only with web browsers on various devices. The libraries that comprise the proposed methods are available under MIT license at http://mil-tokyo.github.io/.

Motivation & Objective

  • To address the challenge of deploying distributed deep learning in environments where installing specialized software or configuring clusters is impractical.
  • To enable any web browser to function as a distributed computation node without requiring client software installation.
  • To develop a high-performance JavaScript-based deep learning framework that leverages general-purpose GPUs for efficient training of deep convolutional neural networks.
  • To design a distributed training pipeline that concurrently trains convolutional and fully-connected layers, minimizing idle time and communication overhead.
  • To create an open-source, accessible, and scalable framework for distributed deep learning using only web technologies.

Proposed method

  • Sashimi uses a two-server architecture: a CalculationFramework (server-side Node.js) and a Distributor (HTTPServer and TicketDistributor) to manage task distribution and result collection via WebSocket and MySQL.
  • Clients join the computation by loading a basic HTML/JavaScript program that connects to the TicketDistributor via WebSocket to receive and execute tasks, caching data and code for performance.
  • Sukiyaki is a GPU-accelerated JavaScript DNN framework that uses WebGL and general-purpose GPU computing to achieve high-speed matrix operations and backpropagation for deep CNNs.
  • The system employs data parallelism for convolutional layers, distributing training across multiple browsers, while fully-connected layers are trained on the server to avoid idle time and reduce communication costs.
  • Tasks are divided into tickets with arguments, external libraries, and datasets, which are sent via MySQL and executed in browsers, with results returned and aggregated by the CalculationFramework.
  • A least-recently-used (LRU) garbage collection mechanism manages memory to prevent long-running processes from consuming excessive resources.

Experimental results

Research questions

  • RQ1Can a distributed deep learning system be built using only web browsers and JavaScript, without requiring client software installation?
  • RQ2Can a JavaScript-based deep learning framework achieve performance competitive with native GPU-accelerated libraries?
  • RQ3How does concurrent training of convolutional and fully-connected layers across clients and server improve efficiency compared to sequential or model-parallel approaches?
  • RQ4What is the performance gain of using browser-based computation for distributed deep learning compared to standalone execution?
  • RQ5Can communication costs and idle time be minimized in a browser-based distributed system through intelligent task scheduling and server-side processing?

Key findings

  • Sukiyaki achieves 30× faster training of deep convolutional neural networks compared to conventional JavaScript-based DNN libraries.
  • With four clients, the proposed method trains convolutional layers at twice the speed of standalone execution due to effective data parallelism.
  • The training of fully-connected layers is 1.5× faster than standalone execution because the server is dedicated to this task while clients train convolutional layers.
  • The system reduces idle time by concurrently training fully-connected layers on the server and convolutional layers on clients, minimizing resource underutilization.
  • The framework successfully enables distributed deep learning using only web browsers and general-purpose GPUs, with no client software installation required.
  • The Sashimi and Sukiyaki libraries are open-sourced under the MIT license, enabling community extension and integration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.