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/.
Introduction
Deep learning is notoriously power-hungry. Traditionally, training complex models requires expensive dedicated GPUs or the setup of complex distributed environments like Hadoop, which often demand specific operating systems and tedious software installations on every node. This creates a high barrier to entry for researchers or organizations without dedicated infrastructure.
This research addresses the need for a "practical" and "instant" distributed system. The goal is to enable anyone to contribute computational power to a project simply by visiting a URL, effectively turning the ubiquitous web browser into a distributed worker node without any software installation.
System Architecture
The authors introduced two primary components to achieve this browser-based distributed compute model:
- Sashimi (The Orchestrator): A distributed calculation framework. It uses a server-side CalculationFramework (built on Node.js) to define tasks and a Distributor to manage them. Communication happens via WebSockets. The system breaks down a "Project" into "Tasks," which are then issued as "Tickets" to any browser that connects to the server.
- Sukiyaki (The Engine): A neural network framework written in JavaScript. Unlike previous libraries that relied on the CPU, Sukiyaki leverages GPGPU (General-Purpose computing on Graphics Processing Units) through a matrix library called Sushi, which utilizes WebCL/WebGL.
To handle the slow communication speeds of the internet, the system employs a hybrid distribution algorithm. Client browsers handle the computationally intensive convolutional layers in parallel, while the central server handles the fully-connected layers. This minimizes the amount of data (weights) that needs to be synced across the network, as fully-connected layers often contain the bulk of a model's parameters but require less raw math.
Performance Evaluation
The researchers evaluated their system using classic computer vision benchmarks: MNIST for raw distribution efficiency and CIFAR-10 for deep learning performance.
Sukiyaki Performance
In a standalone environment, Sukiyaki trained networks 30 times faster than ConvNetJS when running on Node.js. By utilizing GPGPU via the browser, the authors proved that JavaScript isn't the bottleneck; the hardware interface is. Sukiyaki's speedup over CPU-based libraries demonstrates that browsers can handle "heavy" AI workloads.
Distributed Efficiency
Using the MNIST benchmark, the Sashimi framework showed near-linear speedups on mobile devices. For a Nexus 7 tablet, adding four clients reduced the elapsed time from 768 seconds to 255 seconds. When training a CNN on CIFAR-10, the proposed distributed method was twice as fast as a standalone machine when using four clients to process convolutional layers. The training of fully-connected layers was 1.5 times faster than the standalone baseline because the server could focus entirely on those layers while clients handled the rest.
Conclusion
This work demonstrates a striking "access-to-compute" model. By using standard web technologies (HTML/JS/WebSockets), the cost of adding a new node to a cluster is reduced to the time it takes to load a webpage. While the system is practical, it remains sensitive to the number of clients and their individual capabilities. Future work involves improving the distribution algorithm to better account for heterogeneous client devices and further optimizing the "Sushi" matrix library for even better GPGPU performance.
Summary updated